Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 991
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: 7932
Location: Bellevue, IA

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: 6966
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
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
No new posts Strange EXEC function call in z/VM Willy Jensen CLIST & REXX 3 Wed Oct 05, 2016 2:07 pm
No new posts hot to get details when "EXEC CI... Andi1982 CICS 11 Tue Sep 20, 2016 5:01 pm
No new posts COBOL DB2 - CALL statement - high CPU... TS70363 DB2 15 Sun Sep 11, 2016 6:07 am
No new posts Converting NULL column into NOT NULL ... Raghu navaikulam DB2 5 Sat Aug 06, 2016 3:45 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us