passing values of variables from one step to another step.

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
anandmsteds
Member
Posts: 4
Joined: Fri Aug 01, 2008 6:09 pm

passing values of variables from one step to another step.

Post by anandmsteds » Fri Aug 29, 2008 11:35 am

Hi All,
Is there any possibility of passing the values of variables from one step to another step.

I will explain my case:

in Step01, i am executing one program and in that program there is one varible which will hold a value.
Now in the next step (say Step02), i am calling some other program, but i want to use the value of the above variable in this program.

Please let me know if you need any other information..

Thanks
Anand
=-=-=-=-=-=
MaInFrAmEs R O C K Z ....

User avatar
Krishna
Site Admin
Posts: 1052
Joined: Fri Jan 27, 2006 7:50 am

Post by Krishna » Fri Aug 29, 2008 12:29 pm

Only way..i know is use dataset to pass the data.
If you want to send any sepcific/limited info to second step ( Ex. YES or NO ).
We can do that using IF condition..

In first step you can move some specific value into RETURN-CODE.
based on return code of first step... you need to execute step passing value YES to the program using PARM (OR) step passing value NO to the program using PARM.

anandmsteds
Member
Posts: 4
Joined: Fri Aug 01, 2008 6:09 pm

Post by anandmsteds » Fri Aug 29, 2008 4:24 pm

I will go with dataset thing..

Thanks for your support Krishna...



Thanks
Anand
=-=-=-=-=-=
MaInFrAmEs R O C K Z ....

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others