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
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
What is the use of intialize verb?
What is length is cobol?
What is difference between static and dynamic call in cobol?
How do we get current date from system with century in COBOL?
what happens if parmparameter passes zero bytes to the program
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
How are the next sentence and continue different from each other?
What is report-item in COBOL?
) How do u handle errors in BMS macro
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
How do define dynamic array in cobol.
What is perform what is varying?
i want a program using by if, evaluate , string, unstring, perform, occurs?