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 are ISOLATION LEVELS? Where do we need to specify them in compiling JCL (Exactly which statement and what is syntax for it)?
What is the Linkage section? What is the Use and Why the parm length use alway "PARM-LENGTH PIC S9(4) or PIC S9 (4) COMP." any reason?.Please let me know any one... Cheers,Prasad
What is the LINKAGE SECTION used in COBOL?
What is the different between index and subscript?
How many maximum number of procedures can we write in one COBOL program?
The disposition parameter in the jcl is share ( DISP+SHR ) and the program opens file in extend mode what will happen?
how to submit a jcl by cobol program. clear me with an example.
how can count the number of character in feild ?? suppose for instance i have a feild with value ' rajesh sarkar' then how can v count the number of characters whitout spaces...........
what happens when a copybook variables are declared using include statement ?
When is inspect verb is used in cobol?
i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?
How to print 10 to 1 if the input have only 10 digit number?