BY seeing a program how can we say that it is static call
or dynamic call
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
how do u indetify files succesfully executed or not ?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
what is the difference between Plan & package?
where will u code file status ?
How much salary you are expecting? If they ask in an interview, what we have to tell?
6 Answers Tech Mahindra, Wipro,
I have the requirement to compare the two files and pick up the matching records. File 1. file2 23 32 32 13 34 15 35 36 36 35 43 Get the matching records from this 2 files to out file. how you will do this in cobol program?
15 Answers ADP, Broadridge, CTS, HSBC, L&T, RBS, TCS,
Explain complete concept of table handling in COBOL with an example?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
DATAONLY, MAPONLY functionality?
hi dudes.....can any one help me..... what is SET TO TRUE all about,anyway?
how do you reference the variable block file formats from cobol programs
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.