Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing MVS JCL variables to DB2

Status
Not open for further replies.

mat92

MIS
Aug 6, 2003
1
US
Is it possible to pass variables from MVS JCL to a DB2 cobol program. Below are the variables that I am setting and the run parameter for the program. If there is another way, I would be interested in that as well. Thanks!

//PO SET PO=12050320
//JV SET JV=030017


//SYSTSIN DD *
DSN SYSTEM(DB83)
RUN PROGRAM(NTSPP11) PLAN(NTSPDPB0) PARM('REPRINT ,&PO,&JV')
END
 
you can pass it as a sysin and accept in your cobol program.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top