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
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 |
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 |
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 |
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 |
What is the file organization clause ?
what is rediffine clause?in what situation it can use?give me real time example?
how would find total records in files using seqientional
How is sign stored in Packed Decimal fields and Zoned Decimal fields?
wht is the use of evalute verb ? how do u declare recfm in cobol and jcl ?
What is the difference between index and subscript?
what is jcl approach for programming?
what is the difference between implicit and explicit scope terminator with example?
have in 100 records in a file i want to move only matched records to one output_file1 and nonmathed records are moved to another output_file2 ... any one can provide logic code
how can i see junk values in dclgen or in hostvariable of comp ?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
How do we get current date from system with century?