View previous topic :: View next topic
|
Author |
Message |
Subha Sreenivasan
New User
Joined: 04 Aug 2008 Posts: 5 Location: Chennai
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
yes...
the manual will tell You how ( the link is at the top of the page ) |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
is this a cataloged or instream procedure ?
Gerry |
|
Back to top |
|
|
Subha Sreenivasan
New User
Joined: 04 Aug 2008 Posts: 5 Location: Chennai
|
|
|
|
gcicchet wrote: |
Hi,
is this a cataloged or instream procedure ?
Gerry |
This is a Cataloged procedure |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Anuj,
its a PROC
Code: |
//PROC01 EXEC IEBPROC
//SYSUT1 DD
// DD
// DD DSN=...desired.dsn.name,DISP=SHR
|
|
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Is there a question for me, Peter... |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
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 |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
How can this code even run? The incorrectly spaced spaces are obvious. |
|
Back to top |
|
|
DB2 Guy
New User
Joined: 28 Oct 2008 Posts: 98 Location: Cubicle
|
|
|
|
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 |
|
|
|