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 have files that contains both duplicates files(occur more than twice) and non-duplicate files.The file is already sorted by a key.I want to determine those records that are duplicate and will be move to a duplicate file and non- duplicate files to be move to a valid file.thank you.help please

2 Answers  


what is the purpose of linkage section?

10 Answers  


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

0 Answers  


what is redefines? where it can be effectively use for the purpose of memory utilization? give an example?

4 Answers   IBM,


In a COBOL II PERFORM statement, when is the conditional tested, before or after the perform execution?

3 Answers  






How do you reference the following file formats from cobol programs?

0 Answers  


wht is the difference between goto and perform stmts

7 Answers   DELL,


Study the DATA DIVISION entries and the three PROCEDURE DIVISION entries given below: 01 END-OF-FILE-SWITCH PIC XXX. 88 NO-MORE-RECS VALUE "YES". 88 MORE-RECS VALUE "NO". (i) READ SAMPLE-FILE AT END MOVE "YES" TO NO-MORE-RECS. (ii) IF NO-MORE-RECS = "YES" GO TO LAST-PARA. (iii) IF NO-MORE-RECS GO TO LAST-PARA. Which are wrong? (a) (i) and (ii) (b) (ii) and (iii) (c) (i) and (iii) (d) all

5 Answers   TCS,


DATAONLY, MAPONLY functionality?

1 Answers   IBM,


i have n records in one file and in this file there is some fields and i want to count that how many sharma in my file so plz give the coding that how we read sharma ?

2 Answers  


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

0 Answers  


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

0 Answers  


Categories