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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why would you use find and get rather than to obtain?

919


How do you define a variable of comp-1 and comp-2?

924


What are the different data types in cobol?

1066


What are 77 levels used for?

862


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

2195


How do you get the data to code the BMS macro?

1721


What is rmode(24)

912


what happens if parmparameter passes zero bytes to the program

1890


What are the pertinent COBOL

2254


What is the default value(s) for an initialize and what keyword allows for an override of the default?

964


How to print 10 to 1 if the input have only 10 digit number?

1046


What is an in line perform? When would you use it? Anything else you wish to say about it.

854


how to access the file from prodution from changeman tool and to submit a file to production

7117


What is the difference between PIC 9.99 and PIC9v99?

1048


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1088