how can i use the parameters decalred in main pgm in sub pgm
Answer Posted / lakshmisudha
if we defined the variables in main program like below
data division
working-storage section.
01 a1 pic 99.
01 a2 pic 9(3).
if you want use same variables in sub program you define
like below in sub program
DATA DIVISION.
LINKAGE SECTION.
01 B1 PIC 99.
01 B2 PIC 9(2).
PROCEDURE DIVISION USING A1, A2.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is job control language?
Explain about LMFREE�free data set from its association with data ID
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
Name the parameters which can be used to limit the number of records written to a sysout dataset?
How to submit a jcl from cics?
How to override loadlib?
What is the use of symbol // in jcl?
Define concatenating?
if the submitter of a job wants to inform another user about the job completion, how can it be done?
Can I share my data with other jobs? How?
IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C
How to pass data to a program that is coded in an exec statement?
Must tape dataset definitions include vol=ser specifications?
What is timing concept in mainframe?
Can I send output of job to my remote device careerride123?