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

can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

0 Answers  


Using string statement.Is coding three destination string from one source string possible in one code?or three codes for every destination string of one source string.?thank you

1 Answers   BPL,


how can u redefine picx(10) with pic 9(6).

3 Answers   TCS,


File status must be checked both while opening and reading the file or only while reading the file?

2 Answers  


what is SYNCHRONIZATION?

3 Answers   Syntel,






How you can characterize tables in cobol?

0 Answers  


The following entries appear in the WORKING-STORAGE SECTION: 01 DATE-TODAY. 05 YY PIC XX VALUE "90". 05 MM PIC XX VALUE "12". 05 DD PIC XX VALUE :31". 01 DATE-EDIT PIC XX/XX/XX. MOVE DATE-TODAY TO DATE-EDIT. (a) 901231 (b) 90/12/31 (c) 31/12/90 (d) 311290

4 Answers   TCS,


Which is not true about evaluate statement

0 Answers  


How are the next sentence and continue different from each other?

0 Answers  


What are the situations u have used in ur project for Subcript and Index ? 1.if u use Subscript why not Index,why u choose Subscript only? 2.if u use Index why not Subscript,what abt Displacement?

2 Answers   Cap Gemini,


which one is better among static call and dynamic call?

3 Answers  


What are the access modes of START statement?

0 Answers  


Categories