In COBOL CALL-CALLING,if a program A is calling 3 sub-
programs, dynamically, then it is said sub-programs will
always will always in Initial Mode. My question is : Do we
need to code CANCEL or (IS INITIAL) for dynamically called
sub-programs or it is the property of Dynamically called
pgms so every time sub-pgms are called they will be in initial
mode. ***This question is only Dynamic call****,
Please reply. Thank you in advance.

Answers were Sorted based on User's Feedback



In COBOL CALL-CALLING,if a program A is calling 3 sub- programs, dynamically, then it is said sub-p..

Answer / adarsha

The DYNAMIC call has to have 2 load modules separately.
Hence the called module is always in the INITIAL state, you
need not to INITIALIZE or CANCEL.

For STATIC CALL above said things are other way around !

Hope I answered ... lem me know if you have any qustns

Is This Answer Correct ?    5 Yes 0 No

In COBOL CALL-CALLING,if a program A is calling 3 sub- programs, dynamically, then it is said sub-p..

Answer / garry

Thanks Adarsha,

I agree to that. But just wondering why it is said that CANCEL will work only with DYNAMIC Call. If dynamically called PGMs are always in initial mode/state then CAncel has no meaning for dynamic call. I hope u get my confusion regarding this.

Pls reply

Is This Answer Correct ?    1 Yes 0 No

In COBOL CALL-CALLING,if a program A is calling 3 sub- programs, dynamically, then it is said sub-p..

Answer / vinay sonar

NO NEED TO USE CANCLE EVERY TIE.WHEN SUBPROGRAM IS CALLED IT IS ALWAYS IN ITS INITIAL STATE.THIS IS COBOL 85 FEATURE.

Is This Answer Correct ?    1 Yes 1 No

In COBOL CALL-CALLING,if a program A is calling 3 sub- programs, dynamically, then it is said sub-p..

Answer / kingmanish

The dynamically called program is loaded once a call is
made to it dynamically by a calling program.
The program is initialised only when it is called for the
first time and remains in memory till the end of calling
program.

After the first call from second call onwards the called
program should be initialised.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(10) VALUE 'ABCDEFGHIJ'. 01 WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345'. What will happen I want Display WS-VARX and WS-VARN?

3 Answers   Xansa,


I have a File that has duplicate records. I need only those records that occur more than thrice.?

3 Answers   IBM, Wipro,


Which of the following files can be OPENed in all the 4 modes? The four modes are INPUT, I-O, OUTPUT and EXTEND. (a) INDEXED (b) RELATIVE (c) SEQUENTIAL (d) All of the above

7 Answers   TCS,


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

4 Answers  


Which of the following characters is NOT valid in column 7? a. - b. \ c. * d. # e. $

4 Answers  






IF there 5 to 6 files in a JCL and there is some space abends, how can we identify which file has space abend and what can be done to get off that abend or rectify that abend.

2 Answers   ADNA, CSC,


How can I tell if a module is being called DYNAMICALLY or STATICALLY?

3 Answers   CTS,


01 A pic 9(100) find record length of it

6 Answers   TCS,


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

0 Answers   TryTechnicals Pvt Ltd,


wht is the diff b/w if and evaluate stmts ?

2 Answers   DELL,


there is a file whose ORGANISATION is INDEXED.you want to read the records from the file in RANDOM fashion as well as sequentially.then which of the access mode would you specify? a.SEQUENTIAL b.RANDOM c.DYNAMIC D.ACCESS MODE has nothing to do with it

3 Answers   TCS,


I have dataset DS1 which has records say 1 2 3 4 5 ... ... etc And also I have second dataset DS2 whcih has records 1 3 4 5 6 8 .. ... Both the files are sorted and now I want to compare these files and write it into the third files if the records are matching.

4 Answers   FIS, Wipro,


Categories