What is CALL statement in COBOL?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6820


what is amode(24), amode(31), rmode(24) and rmode(any)?

691


Write the code implementing the perform … varying.

639


What are the pertinent COBOL commands?

2621


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

654






Write a program to explain size error.

669


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1228


What is static and dynamic call in cobol?

590


How do you get the data to code the BMS macro?

1472


how to refer the data field?

1802


Write the code to count the sum of n natural numbers.

697


What are the different types of condition in cobol and write their forms.

656


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1111


What are the different open modes available in cobol?

713


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1840