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



We have 3 programms A,B,C.In the middle of the program A the controls goes to program B and in the..

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

We have 3 programms A,B,C.In the middle of the program A the controls goes to program B and in the..

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

We have 3 programms A,B,C.In the middle of the program A the controls goes to program B and in the..

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

We have 3 programms A,B,C.In the middle of the program A the controls goes to program B and in the..

Answer / asmara

LINK and XCTL are helpful for the control flow

Is This Answer Correct ?    5 Yes 3 No

We have 3 programms A,B,C.In the middle of the program A the controls goes to program B and in the..

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

More COBOL Interview Questions

how to convert vsam table into DB2 table?

1 Answers   IBM, Wipro,


study the following 01 A PIC 99V0 VALUE 5 01 B PIC 9V9 VALUE 6 01 C PIC 99V9 VALUE 2.5 01 D PIC 99 VALUE 3 COMPUTE A ROUNDED B C = A+B*C/D ON SIZE ERROR PERFORM PRINT-ERROR the comments of A.B.C after execution of the above statement are a.A=10 B=0 C=10 b.A=10 B=9.9 C=9.9 c.A=10 B=0 C=9.9 d.A=10 B=6 C=10

4 Answers   TCS,


db2 variable decimal(15,2) what is the equalent size of cobol variable

2 Answers   Syntel,


Consider the following: 77 A PIC 9(10) 77 B PIC 9(10) 77 C PIC 9(19) MULTIPLY AB BY B GIVING C Which of the following is true ? (a) The execution of the above may result in size error. (b) The execution of the above will result in size error. (c) The definition of C is invalid resulting in compilation error. (d) No error will be thee and the program would proceed correctly.

4 Answers   TCS,


What is difference between COBOL and VS COBOL II?.

1 Answers   Winsol Solutions,






C1 C2 C3 are three conditions whose TRUTH values are as folloes. C1-TRUE C2-FALSE C3-TRUE A,B,C are defined as given below A:C1 AND(NOT C2) OR C3 B.(NOT C1) OR (NOT C2 AND NOT C3) C.(C1 OR C2)AND C3 D.C1 AND C2 OR C3 given the above information which of the following statements are valid? a.only A,B and C are TRUE b.only A,C and D are TRUE c.A,B,C and D are TRUE d.only C and D are TRUE

1 Answers   TCS,


soc-7 is a bad data,invalid data. when ever we are moving the alphabets in the position of numeric then we got this abend. so my question is if o1 ws-data pic 9(1) value passing the alphabet some x. then we got soc-7 or not? i want clarification ?

7 Answers   CitiGroup, IBM,


What rules are followed by the search verb.

0 Answers  


Have you used comp and comp-3 in your project? And how?

0 Answers   IBM,


What is the meaning of 'TALLING' verb in cobol?

5 Answers  


In an EVALUTE statement is the order of the WHEN clauses significant?

4 Answers  


What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?

2 Answers  


Categories