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
 

 

JCL Override

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Subha Sreenivasan

New User


Joined: 04 Aug 2008
Posts: 5
Location: Chennai

PostPosted: Mon May 09, 2011 11:26 am    Post subject: JCL Override
Reply with quote

Code:
//STEP3   EXEC PGM=IEBGENER
//SYSUT1  DD DSN=DATASET.ONE, DISP=SHR     
//             DD DSN=DATASET.TWO, DISP=SHR
//             DD DSN=DATASET.THR, DISP=SHR
//             DD DSN=DATASET.FOR, DISP=SHR
//             DD DSN=DATASET.FIV, DISP=SHR
//SYSUT2  DD DSN=DATASET.OUT, DISP=(NEW,CATLG,DELETE),
//             UNIT=SYSDA,                             
//             SPACE=(27930,(1191,238),RLSE),         
//             DCB=(RECFM=FB,LRECL=133,BLKSIZE=27930)
//SYSIN    DD DUMMY                                 
//SYSPRINT DD SYSOUT=*                               
//SYSDUMP  DD SYSOUT=*


In the above JOB is it possible to place an override for the input dataset DATASET.THR with new dataset DATASET.SIX during restart of the job?

Thanks

Edited: Please use BBcode when You post some code/error, that's rather readable, Thanks... Anuj
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Mon May 09, 2011 11:44 am    Post subject: Reply to: JCL Override
Reply with quote

yes...
the manual will tell You how ( the link is at the top of the page )
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Mon May 09, 2011 11:44 am    Post subject:
Reply with quote

Hi,

is this a cataloged or instream procedure ?


Gerry
Back to top
View user's profile Send private message
Subha Sreenivasan

New User


Joined: 04 Aug 2008
Posts: 5
Location: Chennai

PostPosted: Mon May 09, 2011 1:51 pm    Post subject: Re: JCL Override
Reply with quote

gcicchet wrote:
Hi,

is this a cataloged or instream procedure ?


Gerry


This is a Cataloged procedure
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon May 09, 2011 2:07 pm    Post subject:
Reply with quote

If I get correctly what you are looking for, this should do the Job:
Code:
//STEP3   EXEC PGM=IEBGENER
//SYSUT1  DD
//             DD
//             DD DSN=...desired.dsn.name,DISP=SHR
//             DD
//             DD
//SYSUT2  DD DSN=DATASET.OUT, DISP=(NEW,CATLG,DELETE),
//             UNIT=SYSDA,                             
//             SPACE=(27930,(1191,238),RLSE),         
//             DCB=(RECFM=FB,LRECL=133,BLKSIZE=27930)
//SYSIN    DD DUMMY                                 
//SYSPRINT DD SYSOUT=*                               
//SYSDUMP  DD SYSOUT=*
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Mon May 09, 2011 4:20 pm    Post subject:
Reply with quote

Anuj,
its a PROC


Code:

//PROC01  EXEC IEBPROC
//SYSUT1  DD
//        DD
//        DD DSN=...desired.dsn.name,DISP=SHR
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon May 09, 2011 4:22 pm    Post subject:
Reply with quote

Is there a question for me, Peter...icon_smile.gif
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Mon May 09, 2011 4:24 pm    Post subject:
Reply with quote

Well Anuj,

i didnt see you using a PROC for the asked for OVERRIDE.

And no i dont want to be pedantic.
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 961
Location: Richmond, Virginia

PostPosted: Mon May 09, 2011 4:58 pm    Post subject:
Reply with quote

How can this code even run? The incorrectly spaced spaces are obvious.
Back to top
View user's profile Send private message
DB2 Guy

New User


Joined: 28 Oct 2008
Posts: 98
Location: Cubicle

PostPosted: Mon May 09, 2011 6:58 pm    Post subject:
Reply with quote

If STEP3 of
Quote:
//STEP3 EXEC PGM=IEBGENER
is a par tof a PROC - what 's a big deal, justuse PROCstepname.DDname and use what Anuj has suggested - that much is expected from OP.

I think the mere question here is, how to override concatenated DSNs...
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 Compiler option for override the exte... muralikrishnan_new COBOL Programming 9 Fri Jul 08, 2016 12:09 pm
No new posts Symbolic OverRide within a 'Include' ... Sysaron JCL & VSAM 7 Thu Aug 27, 2015 10:51 pm
No new posts Help in File Tailoring services ( Ove... thesumitk TSO/ISPF 8 Wed Jun 17, 2015 12:04 pm
No new posts Override Condition code richards12388 JCL & VSAM 3 Sat May 16, 2015 9:47 am
No new posts To Dummy out a PDs through Override Sikkandhar JCL & VSAM 8 Tue Nov 26, 2013 11:18 pm


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