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 anyone tell me how to handle the array beyond the limit. If we have an array or a table which can handle 5000 records but now we have to compensate 20000 records with the same array? how to handle the situation.
how many subpgms we can use in a main pgm ? how do u link sub pgm to main pgm ? how can i use the parameters declared in main pgm to sub pgm ?
What is the difference beetween Arrays and Tables in Cobol? please dont give the answer that arrays in cobol terminology is called tables......
i want a program using by if, evaluate , string, unstring, perform, occurs?
What is a scope terminator give example?
what is mainframe? what is the mainframe software ? what is use in s/w field?
What was removed from COBOL in the COBOL II implementation?
How to define variable 9(20) in COBOL, because compiler does not allow us to declare variables with Pic 9(18). Can anyone please let me know the answer... I know one answer to this question which is to use Compiler option Arith (Extend) during Compilation. It extends the maximum limit to 9(32)..Just wanted to know if there is any other way to extend this?
If there are two copybooks which have same variables and we are using both the copybooks in our program. will there be an error and if i move values to the variable which copybook varibales gets the values i move in.
What are various search techniques in cobol? Explain.
What is the difference between comp and comp-3 usage?
What are the different data types in cobol?