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 declaratives and what are their uses in cobol?
why do u need inspect verb?
what happens when a copybook variables are declared using include statement ?
what is the minimum number of lines a Cobol program should have to successfully compile and run
11 Answers ABC, Societe Generale,
PERFORM ACCUMULATE-TOTALS VARYING A FROM 1 BY 2 UNTIL A >2 AFTER B FROM1 BY 1 UNTIL B>2 AFTER C FROM 2 BY -1 UNTIL C<2 How many times the paragraph ACCUMULATE-TOTALS would be exicuted?
What kind of error is trapped by on size error option?
There are two flat files one having 10 records and other having 5 records. write a cobol pgm to find the duplicate records(matching records)from both files.
What rules are followed by the search verb.
what is mainframe? what is the mainframe software ? what is use in s/w field?
waht is inspect verb? where it can be in real time?
what is redefines? where it can be effectively use for the purpose of memory utilization? give an example?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.