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

How can you add a particular field in copybook?

2 Answers   L&T,


Why occurs cannot be used in 01 level in COBOL?

0 Answers   Arigo Infotech,


What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?

7 Answers   T systems,


Which division and paragraphs are mandatory for a COBOL program?

0 Answers  


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.

0 Answers   iNautix,


what is difference between cobol and cobol/400

1 Answers   HCL,


I have a sequential file. How do I access a record in this sequential file randomly in my program ?

8 Answers   CGI, Xansa,


Can you call an OS VS COBOL pgm from a VS COBOL II pgm ?

3 Answers   Microsoft,


what is record label is empty or standard in file description of data division?

2 Answers   HCL,


What kind of error is trapped by on size error option?

0 Answers  


What is a subscript ?

3 Answers  


give the examples for strings and unstrings in cobol

2 Answers   IBM,


Categories