We have 3 programms A,B,C.In the middle of the program A
the controls goes to program B and in the middle of the
program B control wants to go program C,after completion of
program C again control comes to program B and again after
completion of program B control comes to program A.How the
process will takes and what are the controls we use for
that process.If it is possible anybody of you explain with
example?

Answer Posted / suresh ramaiyan

if it is a fully cobol program we can use the following
statement to pass the control to another program, which
will return the control to the next line of calling program.

A -> B -> C
In program A: call 'B'.
In program B: call 'C'.
EXIT PROGRAM.(instead of STOP RUN)
In program C: EXIT PROGRAM.(instead of STOP RUN).

if it is CICS program, we have to user LINK for getting the
control back to the calling program.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain sorting techniques in cobol program?

882


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

889


Can we change the password using ALTER? anyone tried and changed?

1742


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1735


i need a small 3d program using inline and outline.

1882


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

898


How many bytes S(8) comp field occupy and its maximum value?

1845


How to remove 2 duplicate records and copy only one using job control language?

966


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

900


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

2229


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1234


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

1034


Explain how to differentiate call by context by comparing it to other calls?

897


HOw can I get the negative sign while deduct high value from low value

1998


What are all the divisions of a COBOL program?

879