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?
Answers were Sorted based on User's Feedback
Answer / chakri
Deepak if u want to make control go to program B from
Program A we can do it by using a CALL statement and same
way we can make control go to Program C from Program B . In
Program C we have to code GOBACK instead of STOP RUN so
taht control will return to Program B after the completion
of Program B and similarly we have to code GOBACK in
Program B so that control wil return to Program A but in
Program A we have to code STOP RUN as last statement.
I think its clear for u
| Is This Answer Correct ? | 17 Yes | 0 No |
Answer / shailendra
Hi the first ans will work when you are working with cics
and second one will work when jcl + cobol.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / rockish
XCTL may not work.. XCTL is used to transfer the control and
the control will not be returned back..
| Is This Answer Correct ? | 6 Yes | 1 No |
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 |
Why occurs cannot be used in 01 level in COBOL?
what is lrec=f,what is difference between f,fb,v,vb?what is default value?how do we came to know that records are in f,fb,v,vb?
I am sending values a and b with pic x(10) and pic x(10) by using call statement. In linkage section, I am receiving values with pic x(10) and pic x(11). Will my program fail? will it be compile error or run time abend?
Explain about different table spaces.
what happens if we dont close cursor in db2-cobol pgm?
How can I tell if a module is being called DYNAMICALLY or STATICALLY?
What type of Call you would use if you don;t want the control back to the calling program?
What is LENGTH in COBOL II?
i need the code for this program in cobol. 2 + 1 = 3 4+3=7 6+5=11 8+7=15 10+9=19
how do you reference the rrds file formats from cobol programs
what is SYNCHRONIZATION?
How can you submit a job from COBOL programs?