BY seeing a program how can we say that it is static call
or dynamic call
Answers were Sorted based on User's Feedback
Answer / amit bhomle
Dynamic call is identified by a call variable whereas
static call is identified by the the call literal.In the
program it is idetified as follows:
1)Dynamic call:- If the PGM name is moved to the ws-
variable in cobol and PGM is called using this ws-
variable,then it is called Dynamic call.
Ex:- 01 WS-PGM PIC X(08)
MOVE 'PGM-NAME' TO WS-PGM
CALL WS-PGM
2)Static call:-If the PGM is called directly by using the
PGM name,then it is static call and it is default in COBOL.
Ex:- CALL 'PGM-NAME'
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / shikha
One can differnciate b/w a dynamic and static call by
looking at the load.
Incase of static call the load of the called module is also
included in the load of main program but in case of dynamic
call load of the called module would not be there in main
program load.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / siddhesh
If you have CALL identifier, it is always a dynamic call.
If you have CALL literal, it may be a static call (NODYNAM)
or dynamic call (DYNAM).
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / khazi shaheen
incase of static call within the main program itself
calling program inlcuded
incase of dynamic call the calling program should be reside
in another member
| Is This Answer Correct ? | 1 Yes | 7 No |
Wat is the difference between NEXT and CONTINUE statement in cobol,can any one explain with example.
what are decleratives in cobol?
How to read records which is in sequential file in reverse order ? Exp. 1 2 3 4 5 . i want 5 4 3 2 1?please clear my doubt any one
can u give result for the fallowing example... 05 a pic 9(2) 05 b redifines a pic x(2). move 'xy' to b. display a,b.
What is file status 39 ?
What does the IS NUMERIC clause establish ?
How can I tell if a module is being called DYNAMICALLY or STATICALLY?
What are the functions like c or c++ in cobol?
How do you come out of an EVALUATE statement?
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.
a pic s9(4) comp b pic s9(4) comp-3 c ???????????????? d ???????????????? move a to c add a+B giving d. what is ur declaration for c,d?
Why occurs can not be used in 01 level ?