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 are all the divisions of a COBOL program?
Explain the configuration section of a cobol program with examples of syntax.
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
explain sorting techniques in cobol program?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is the difference between comp and comp-3 usage?
Why would you use find and get rather than to obtain?
What rules are followed by the search verb.
) How do u handle errors in BMS macro?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
What type of SDLC u followed? Why?
how do you reference the variable block file formats from cobol programs
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue