What is CALL statement in COBOL?

Answers were Sorted based on User's Feedback



What is CALL statement in COBOL?..

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

What is CALL statement in COBOL?..

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

What is CALL statement in COBOL?..

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

What is CALL statement in COBOL?..

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

Post New Answer

More COBOL Interview Questions

The maximum number of dimensions that an array can have in COBOL-85 is ?

11 Answers  


can i give 9(10) in comp 3 instead of s9(10) ? if i can give wht would be ths ans

2 Answers   DELL,


In COBOL programming, what is PERFORM? What is VARYING?

1 Answers   CDC,


What was removed from COBOL in the COBOL II implementation?

0 Answers  


Size of a column has been changed in DB2 table (Suppose it was of 5 characters and later changed to 4 characters) and forgot to change the DCLGEN in COBOL program, what will happen during the execution of code? If the program Abends then what will be the error? If it doesn't abend then hpw the error can be catched?

5 Answers   IBM,


What is Control Break processing ?

1 Answers   iGate,


COMPUTE X = A * B - C * D and COMPUTE X = (A * B) - (C * D) (a) Are not the same (b) Are same (c) Syntactically wrong (d) Will yield a run time error

1 Answers   TCS,


What is the output generated by the following code? 01 GRP-I. 05 SUBFLD1 PIC XX VALUE "AB". 05 FILTER PIC X(6) VALUE SPACES. 01 GRP-2 REDEFINED GRP-1. 05 SUB-FLD2 PIC XX. 05 SUB-FLD3 PIC XX. 05 FILTER PIC X(4). IF SUB-FLD1 NOT = SPACES DISPLAY "SUBFLD1" MOVE "ABBCCD" TO GRP-1 IF SUB-FLD3 = SPACES DISPLAY "SPACES" ELSE DISPLAY "SUBFLD3" DISPLAY "END" ELSE DISPLAY "SPACES" DISPLAY "END". (a) SUBFLD1 SUBFLD3 END (b) SPACES END (c) SUBFLD1 END (d) SUBFLD1 SPACES

7 Answers   TCS,


WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?

3 Answers   TCS,


i want all ERRORS codes in COBOL ,JCL,VSAM ,DB2,CICS

4 Answers   Infosys,


What is report-item in COBOL?

1 Answers   Arigo Infotech,


i want a program using by if, evaluate , string, unstring, perform, occurs?

2 Answers  


Categories