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 |
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
01 WS-NAME PIC X(10) OCCURES 2. by this we can get ws-name 2 times. My qustion is how can we access the second name
what is the diff b/w select stsmt and cursor ?
Are you comfortable in cobol or jcl?
I am sending values a and b with pic x(10) and pic x(10) by using call statement. In linkage section, I am receiving values with pic x(10) and pic x(11). Will my program fail? will it be compile error or run time abend?
How to convert bunch of words in a line to relvant ASCII values?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What is the difference between goback, stop run and exit program in cobol?
What are the steps you go through while creating a COBOL program executable?
What is the difference between SEARCH and SEARCH ALL?
where will we code call by content and call by reference dude pls reply soon ?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?