BY seeing a program how can we say that it is static call
or dynamic call

Answers were Sorted based on User's Feedback



BY seeing a program how can we say that it is static call or dynamic call..

Answer / in.ameen

If the program name is moved to a WSS variable and then a call
is moved using this variable then its a dynamic call else if
the Call is made directly using the sub program name then its
a static call

Is This Answer Correct ?    16 Yes 0 No

BY seeing a program how can we say that it is static call or dynamic call..

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

BY seeing a program how can we say that it is static call or dynamic call..

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

BY seeing a program how can we say that it is static call or dynamic call..

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

BY seeing a program how can we say that it is static call or dynamic call..

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

Post New Answer

More COBOL Interview Questions

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.

2 Answers  


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 ?

2 Answers   TCS,


What is the difference beetween Arrays and Tables in Cobol? please dont give the answer that arrays in cobol terminology is called tables......

3 Answers   BirlaSoft,


i want a program using by if, evaluate , string, unstring, perform, occurs?

1 Answers  


What is a scope terminator give example?

0 Answers  






what is mainframe? what is the mainframe software ? what is use in s/w field?

7 Answers   CSE,


What was removed from COBOL in the COBOL II implementation?

0 Answers  


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?

4 Answers   CSC, TCS,


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.

3 Answers   CTS,


What are various search techniques in cobol? Explain.

0 Answers  


What is the difference between comp and comp-3 usage?

0 Answers  


What are the different data types in cobol?

0 Answers  


Categories