Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

wht is the difference between goto and perform stmts

7 Answers   DELL,


in how many mode we can open a file ?

4 Answers  


How To move a value to an array using move verb?

3 Answers   IBM,


What is the difference between static call & Dynamic call?

2 Answers   CSC, TCS,


what are the paramater we cannot use in procedure?how many instream we can write in single jcl?can we call instream to catalog and ctalog to instream?

2 Answers   Satyam,


What divisions, sections and paragraphs are mandatory for a COBOL program?

8 Answers   Arigo Infotech,


what happens if we dont close cursor in db2-cobol pgm?

6 Answers  


01 a pic 9(6) value is 123456 01 b pic 9(3) move a to b wht will be the value ?

6 Answers   Patni,


Are you comfortable in cobol or jcl?

0 Answers  


what will happen if pass values more than 100 using PARM parameter?

1 Answers  


Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol.

12 Answers   CTS, Wipro,


If i have a variable A pic 9(2) value 10 Compute A = a - 100 what will be the value of A and will there be any error becoz of the Negative value

3 Answers   CTS,


Categories