I have a cobol program with a sub program. How ca i find that
it is a dynamic call? or static call..?

Answers were Sorted based on User's Feedback



I have a cobol program with a sub program. How ca i find that it is a dynamic call? or static call..

Answer / adarsh

in addition to above answers, we can find by seeing compiler
option.if copt=dynam it is dynamic call,default is nodynam
i.e static call.

Is This Answer Correct ?    6 Yes 2 No

I have a cobol program with a sub program. How ca i find that it is a dynamic call? or static call..

Answer / rammateti

It is very easy to find...........

1st u check the stmt call 'sub-name' or call 'ws-name'...


if it is call 'sub-name' then it is STATIC CALL
OR
If it is call 'ws-name' then it is DYNAMIC CALL....



By
(PRATHAP)

Is This Answer Correct ?    4 Yes 3 No

I have a cobol program with a sub program. How ca i find that it is a dynamic call? or static call..

Answer / seema dawlekar

In a main program if we are calling subprogram directly ie
by giving 'call subprog' then it is static call.
ex:call subprog.

if we are moving the subprogram name to the working storage
variable and calling the working storage variable then it a
dynamic call ie.,
ex:
01 ws-var1 pic x(10).
move subpgrog to ws-var1.
call ws-var1.

Is This Answer Correct ?    7 Yes 7 No

Post New Answer

More COBOL Interview Questions

describe 805 error

6 Answers   DELL,


Explain what you understand by passing by value.

0 Answers  


How to resolve the soc4 & soc7 other than following answers. Soc4 can resolved using mispleed dd name and dd name is not matching with file and soc7 check the sysdump and copy the offest address then correct it in the program.

10 Answers   ADP, Amdocs, Cap Gemini, Keane India Ltd, Super Value, TCS,


period is missing in the cobol program which error we getting

5 Answers   TCS, Tesco,


What are ISOLATION LEVELS? Where do we need to specify them in compiling JCL (Exactly which statement and what is syntax for it)?

2 Answers   T systems,






i have the job which has written updated 100 records into the table and for 101th record it got abended and i want to start the job again and should wirte from 101th record not from 1st record..how to do it..?

6 Answers  


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

0 Answers  


How can we find out wether to declare the data items like Integer, Char,Comp? If comp types how can we decide wether it is Comp and Comp3.How it is? Please Explain... Cheers.

1 Answers   Syntel,


What are the different ways to run a COBOL DB2 program using JCL?

2 Answers  


Consider the following COBOL entries 05 X PIC 99 VALUE 10. ADD 40 X TO X. COMPUTE X = 3 * X - 40. The result in X is

12 Answers   TCS,


Define static linking and dynamic linking.

0 Answers  


We know that size of redefine and redefining need not to be same..Then does the below case true 01 ws-date pic 9(6). 01 ws-redf-date REDEFINES ws-date 05 ws-year pic 9(4) 05 ws-mon pic 9(2) 05 ws-day pic 9(2)

1 Answers   Cap Gemini,


Categories