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

What are all the divisions of a COBOL program?

658


Explain the configuration section of a cobol program with examples of syntax.

648


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8138


explain sorting techniques in cobol program?

682


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

705






can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1895


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

669


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

673


What rules are followed by the search verb.

629


) How do u handle errors in BMS macro?

1418


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?

1221


What type of SDLC u followed? Why?

1512


how do you reference the variable block file formats from cobol programs

674


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

668


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

1919