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
What is inspect in cobol ?
how to convert the recors form vsam file to db2 table tru file aid
What are the different rules to perform a Search?
What are the different rules of SORT operation?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
What is the difference between perform … with test after and perform … with test before?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
How to remove 2 duplicate records and copy only one using job control language?
What is the LINKAGE SECTION used in COBOL?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
Can a Search can be done on a table with or without Index?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
Can we change the password using ALTER? anyone tried and changed?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What are the different data types in cobol?