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

which is faster either static call or dynamic call ? and specify the reasons for it ? reply fast

1 Answers  


suppose a cobol programme A calling programme B,C and D. If C undergoes some change what if A,B,C,D need to be recompiled or only C nee to be recompliled.

2 Answers   IBM,


where did you see the information regarding abend codes in jcl?

1 Answers   Hewitt,


Hi Guys, I have faced one interview question if I have requirement to add 5 new columns to existing table what are prerequisite do i need to take.

1 Answers  


How can i write a comp-3 variable into a sequential file should i declara the field in the file description as comp- 3?

1 Answers  






I have a variable account-number declared as comp-3, s9(10) comp-3 in a file. How do i find a particular account number say 123456 in that file?

3 Answers  


In COBOL, what is the different between index and subscript?

0 Answers   TryTechnicals Pvt Ltd,


Should I use STOP RUN in the sub program??why?

6 Answers   Xansa,


what is the default print format? in cobol

3 Answers   HSBC,


what is the use of filler in cobol programing?

4 Answers   MAT,


consider the fallowing 77 stat pic 9. 88 male value 1,2,3. 88 female value 4 through7. what will be the value of stat a) set male to true. b) set female to true.

5 Answers  


how to fetch the record before the last record in a cobol file( its a huge file and if the key field is not known)

5 Answers   IBM,


Categories