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 |
How can you add a particular field in copybook?
Why occurs cannot be used in 01 level in COBOL?
What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?
Which division and paragraphs are mandatory for a COBOL program?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
what is difference between cobol and cobol/400
I have a sequential file. How do I access a record in this sequential file randomly in my program ?
Can you call an OS VS COBOL pgm from a VS COBOL II pgm ?
what is record label is empty or standard in file description of data division?
What kind of error is trapped by on size error option?
What is a subscript ?
give the examples for strings and unstrings in cobol