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

I try to use some column names in my cobol progorm but these column not in db2 table ..when do i get error ..while bind time or runtime?

2 Answers  


What is COMP-1? COMP-2?

4 Answers   CitiGroup,


COBOL program to read the string ' BOMBAY' in reverse order as 'YABMOB'

8 Answers   Barclays, IBM,


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,


In CICS/VSAM every file that is accessed should be defined in FCT. we have CICS READ, WRITE, BROWSE commands for VSAM files. How does it work with DB2 tables. It know it has to do with the plan. Please expain with examples.

1 Answers  






How would the number +1234 be stored if a PIC clause of PICTUREs9(4) comp-3 were used?

6 Answers  


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

0 Answers  


In a program, there are 2 sections defined say SECTION-A and SECTION-B. There is a paragraph say CALC-INT in both the sections. If this para has to be called directly for SECTION-A, then PERFORM CALC-INT will not work as it is present in both sections. How the PERFORM statement has to be coded here?

5 Answers  


What is report-item in COBOL?

0 Answers   Arigo Infotech,


How do u know what version of cobol u are using?

3 Answers  


how you will define variables length in cobol.

3 Answers   Temenos,


if a=b how the flow will complete??? perform test through test-exit. perform activa through activa-exit. test. if a=b then next sentence else move a to c. test-exit. exit. activa. -- -- activa-exit. exit.

1 Answers   IBM,


Categories