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 |
How do u find the programs calling the given module, without having doing 3.13 on loadlib/source library?
can we redefine 77 level item is it possible
I have a PS file and I would like to manually insert the binary values (like a COMP format) into the file. How can i do that? the way do in COMP-3 format.. suppose i want to insert -12345 in to file in comp-3 format. simply we can open a file in edit mode and do HEX-ON and insert the value . SEE BELOW-- 135 24D in 3 bytes - this will be COMP-3 presenatation of -12345.
IF I mention stop run in CICS what happens?
77 I pic 99 value 5 Perorm para-A I times. Para -A. move 10 to I. How many times the para-A will be executed.?
How many types of sorts are there in cobol?
How to delete leading spaces/blank in COBOL ? Example:- 01 data-name-1 pic x(220) " English is a language". I would like to delete leading spaces.
how do you reference the variable block file formats from cobol programs
Can we redefine the field of x(200) to less than 200?
write a program to eliminate duplicate records in a input file and send them to output file.
What is Alternate Index ? How is it different from regular index ?
Can anybody give me example of subscript and index