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

how can we code index in an array of cobol pgm?

1 Answers   Wipro,


in a indexed file what is procedure for read the records from 12 to 18. please give the code example

2 Answers   L&T,


how many bytes does a s9(12)COMP-4 field occupy?? a.2 b.4 c.8 d.1 ans with reason please

2 Answers  


Can printer files (having 133 characters) be of variable length?

3 Answers  


What is SDSF?

3 Answers  






How does IDMS insure data integrity?

1 Answers  


write a program to eliminate duplicate records in a input file and send them to output file.THIS IS IGATE RECENT QUESTIONN.....JUST 1 WEEK BACKKKK...

5 Answers   iGate,


What is the difference between CALL BY VALUE and CALL BY CONTENT?

7 Answers  


I have the file which is having the extension no as records. sample file will look like below. 2310 3410 3256 4350 3781 5408 I need to replace the record which is starting with 3 to 5 (i.e) 3410 to 5410. How can we do it through cobol and cobol-db2 program? I need the possible logic?

5 Answers   RBS,


subscript and index r not coded in u r application program what will happen?

2 Answers  


I have a field with data type X(10). I want to perform arithmetic operation on this field? I tried doing it by moving the value into a numeric field. but it didn't work out. I am getting a S0C7 abend. Pls let me know if there is any way of getting this done?

1 Answers  


WHY LRECL NEEDS TO BE 4 EXTRA THEN THE COBOL FILE LENGTH & WHAT IT CONTAIN IN THAT LENGTH

2 Answers   Cap Gemini,


Categories