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 |
One of My Job is running in production, which contains five steps?i want to pass the input to FIFTH step while running is it possible? if how?
How can values be passed from the job stream to an executable program?
Can I copy the FB (fixed Block) record length file to a VB (variable Block)record length file and Vise Versa? If Yes then how ? is that thru one of the JCL utility ?
How to DEBUG a JCL?
in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?
if we give TIME=0 how many sec that job/step
What is multithreading in jcl?
how can you check if a file is empty using jcl?
what is pupose and meaning of the REGION keyword and what jcl statement is it associated with?
I have 5 steps in my job. say s1, s2, s3, s4, s5 //s1 exec ............. //s2 exec ............ //s3 exec .......... //s4 exec ........ //s5 exec ............... my question is i want to exeute only s2 and s4 steps... please advice me how to do this:
what is use of disp parameter in dd statement?
How would I code JCL to copy a gdg data set G001v00 and create a gdg Data set G001v01