Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
proc override of exec statement

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: proc override of exec statement
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

Active Member


Joined: 08 May 2006
Posts: 998
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Fri Jun 03, 2011 3:45 pm    Post subject:
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Fri Jun 03, 2011 4:54 pm    Post subject:
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    Post subject: Reply to: proc override of exec statement
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: 6968
Location: porcelain throne

PostPosted: Fri Jun 03, 2011 7:19 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts exec macro in the end of edit anatol CLIST & REXX 8 Fri Sep 22, 2017 5:10 am
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm
No new posts Suppress value reported by BREAK in D... Learncoholic DFSORT/ICETOOL 3 Wed Aug 16, 2017 6:03 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us