IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

proc override of exec statement


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
subdalal

New User


Joined: 27 Sep 2010
Posts: 21
Location: Boudh

PostPosted: Fri Jun 03, 2011 3:09 pm
Reply with quote

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
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Fri Jun 03, 2011 3:45 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Fri Jun 03, 2011 4:54 pm
Reply with quote

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
View user's profile Send private message
subdalal

New User


Joined: 27 Sep 2010
Posts: 21
Location: Boudh

PostPosted: Fri Jun 03, 2011 5:25 pm
Reply with quote

Thank you Garry and Robert...Hope u guys will respond so nicely in future also..HAIL MAINFRAMES
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Jun 03, 2011 7:19 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts JCL EXEC PARM data in C Java & MQSeries 2
No new posts JOIN STATEMENT PERFORMANCE. DFSORT/ICETOOL 12
No new posts Issue with EXEC CICS QUERY SECURITY c... CICS 6
No new posts Relate COBOL statements to EGL statement All Other Mainframe Topics 0
No new posts process statement for SUPREC, CMPCOLM... TSO/ISPF 4
Search our Forums:

Back to Top