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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JCL question...

Status
Not open for further replies.

nxm150

Programmer
May 22, 2002
78
US
Sorry, could not find a JCL forum to put this under. I have a proc with 2 steps. 1st step is a SORT, 2nd step is executes a DB2 program. My run JCL looks like

//JS020 EXEC PROC=PROCNAME
//SYSTSIN DD *
DSN SYSTEM (DB2T)
RUN PROGRAM(PROGNAME) -
PARM('PARMNAME') -
PLAN(DSYB001)
END

Looks like the SYSTSIN is being associated with the 1st step (SORT) instead of the 2nd step in my proc. How do I associate SYSTSIN with the 2nd step?
 
You have to specify the Proc Step name on the dd statement as follows:
Code:
  //DB2.SYSTSIN DD*
of course replacing "DB2" by the actual name of the EXEC statement that executes the DB2 processor.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top