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 concatenating?
I need exexution process for JCL programs
Is condition checking possible in jcl?
what is use of disp parameter in dd statement?
What are steplib and joblib?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
How can the attributes of one sms dataset be copied to another dataset?
What is the use of symbol // in jcl?
A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?
Explain the function of a dd statement?
which utility is used to sort a file in jcl?
How can a jobs execution priority be modified?
how you can direct the data to spool using SYSOUT option?
How do you access an uncatalogued dataset in a jcl?
how you can access an uncataloged dataset in a JCL?