What is CALL statement in COBOL?
Answers were Sorted based on User's Feedback
Answer / santosh khot
Call Statement in cobol calls sub program from main program
by Content or by reference but default is by reference
syntex is
CALL program-name by Content/Reference by Var-1, Var-2.
| Is This Answer Correct ? | 31 Yes | 3 No |
Answer / jack
Call Statement in cobol calls sub program from main program
by Content or by reference but default is by reference
eg.
CALL "sub-prog".
CALL "sub-prg" using var-1, var-2.
CALL program-name using var-1, var-2.
| Is This Answer Correct ? | 19 Yes | 3 No |
Answer / jey
IN COBOL, Call Statement calls sub program from main program
by Content or by reference.
syntax is :
CALL subroutine name
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / siri
CALL:-CALL statement is used to execute the SUB program from the MAIN program.....
EX:-CALL 'SUB1' USING BY REFERENCE WS-VAR1
BY CONTENT WS-VAR1
BY REFERENCE IS DEAFAULT ITS NO NEED TO CODE...BY CONTENT IS NEED TO CODE IT IS PASS THE LENGTH OF THE DATA ITEM TO THE CALLED PROGRAM....
| Is This Answer Correct ? | 1 Yes | 0 No |
what is MSGLEVEL?
How many times the loop runs here 01 a pic 9(2) value 10. perform para1 a times stop run. para1: move 20 to a.
wht is structured cobol pgm and non structred cobol pgm ?
what are the error codes in cobol, db2, cics, vsam , and jcl
How to know whether the module is dynamical or statistical?
What is the maximum length of a field you can define using COMP-3?
4 Answers Complex System, Infosys,
how to refer the data field?
What are the differences between COBOL and COBOL II?
What is the compute verb? How is it used?
How can we find out wether to declare the data items like Integer, Char,Comp? If comp types how can we decide wether it is Comp and Comp3.How it is? Please Explain... Cheers.
How to resolve the soc4 & soc7 other than following answers. Soc4 can resolved using mispleed dd name and dd name is not matching with file and soc7 check the sysdump and copy the offest address then correct it in the program.
10 Answers ADP, Amdocs, Cap Gemini, Keane India Ltd, Super Value, TCS,
What is the difference between perform … with test after and perform … with test before?