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

JCL Override


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon May 09, 2011 11:44 am
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: 1702
Location: Australia

PostPosted: Mon May 09, 2011 11:44 am
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
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

Superior Member


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

PostPosted: Mon May 09, 2011 2:07 pm
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: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon May 09, 2011 4:20 pm
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

Superior Member


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

PostPosted: Mon May 09, 2011 4:22 pm
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: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon May 09, 2011 4:24 pm
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

Senior Member


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

PostPosted: Mon May 09, 2011 4:58 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts AN OVERRIDE MAY NOT TARGET OVERRIDING... JCL & VSAM 1
No new posts Compare Two datasets and Override Mat... DFSORT/ICETOOL 7
No new posts proc step return code to override in ... JCL & VSAM 3
No new posts IEHPROGM ENQUEUE OVERRIDE JCL & VSAM 4
No new posts Can DFSPARM override SORTKEYS paramet... DB2 2
Search our Forums:

Back to Top