how can i use the parameters decalred in main pgm in sub pgm
Answers were Sorted based on User's Feedback
Answer / venkat
specify the field as GLOBAL.
EX.
Main program
WSS.
01 WS-ENO PIC X(9) GLOBAL.
Sub program.
PD.
DISPLAY WS-ENO.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / 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 |
Can we give TIME = (1440, 59) also ? or is TIME = (1439, 59) is the last one ?
What is a GDG
what is the resolution for sb37 error
what is A-MODE and R-MODE?
TIME parameter in JOB statement or EXEC statement specifies What type of time (CPU time or execution time)?
how many max steps can we use in a job? pls answer to my question
how do you resolve for soc7 error
GDG Create syntax ?
write a jcl to execute a job by 7:00 am on jan 20,1986?
What is the meaning of data definition name (ddname) and dataset name (dsname) in the DD statement?
How can the submitting users racf authority be overridden in a job stream?
Why block size is multiple of lrecl in jcl?