View previous topic :: View next topic
|
Author |
Message |
subdalal
New User
Joined: 27 Sep 2010 Posts: 21 Location: Boudh
|
|
|
|
Code: |
//STREAM PROC
//STEP001 EXEC PGM=IEBCOPY
//SYSUT1 DD DSN=S23604.TOSORT.PS,DISP=SHR
//SYSUT2 DD DSN=S23604.SORTED.PS9,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(1,1),RLSE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)
//*
//STEP002 EXEC PGM=IEFBR14
//SYSUT3 DD DSN=S23604.SRTFLD.PS,
// DISP=(OLD,DELETE,DELETE)
// PEND
//*
//STEP003 EXEC PROC=STREAM
//PGM.STEP001=IEBGENER --------------------->
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY |
I want override STEP001 using the arroowed (---->) statement.
Is it correct ? If not please suggest.
Thanks |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
No it's not correct. In fact, it doesn't look too good at all.
I suggest you read the JCL Reference and the DFSMSdfp Utilities manuals.
Garry. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Code: |
//STREAM PROC P=IEBCOPY
//STEP001 EXEC PGM=&P
.
.
.
//STEP003 EXEC PROC=STREAM,P=IEBGENER
|
will work. However, if you don't make the program a parameter of the procedure you cannot change it. The JCL you posted absolutely will not work. As Garry suggested, you need to spend a LOT of time reading the JCL Reference manual (link at the top of the page). |
|
Back to top |
|
|
subdalal
New User
Joined: 27 Sep 2010 Posts: 21 Location: Boudh
|
|
|
|
Thank you Garry and Robert...Hope u guys will respond so nicely in future also..HAIL MAINFRAMES |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Quote: |
Hope u guys will respond so nicely in future |
hope you will research and test such elementary/beginner problems in the future,
before giving us fodder.
have a nice weekend. |
|
Back to top |
|
|
|