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 |
Can we redefine the field of x(200) to less than 200?
Why did you choose to work with ibm mainframe cobol programming?
What is difference between COBOL and VS COBOL II?.
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
how many bytes does s9(7)COMP-3 field occupies?
In file1 have 80 records are like d1,d2,d3......D80. File2 have 1000records are like a1d1,a1d2,a3d3.....Etc. I want matching records in file3 ? Plse tell me the matching logic???I want answer only in cobol ?Not using any tool or jcl?
what modification we need to do in jcl if we use sort in cobol? I mean whether we need to include tempary file used for sorting in assign statement?
write a program to eliminate duplicate records in a input file and send them to output file.THIS IS IGATE RECENT QUESTIONN.....JUST 1 WEEK BACKKKK...
01 x pic s9(8) comp. How will the following value be internally allocated '18787'
What is the difference between external and global variables in COBOL?
Explain how you can characterize tables in cobol?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?