View previous topic :: View next topic
|
Author |
Message |
karthick Ramesh
New User
Joined: 19 Mar 2008 Posts: 12 Location: India
|
|
|
|
Hi all,
I have 2 consecutive steps in a proc
initially no generation for the file GDG.
step1: Im writing an output in this step in new gen.
DSN=File(+1),
// DISP=(,CATLG,DELETE),
// RECFM=FB,
// LRECL=464,
// BLKSIZE=0,
// DATACLAS=LARGE,
// MGMTCLAS=STANDARD
step2: Im using the Current generation created at step1 to do a process.
DSN=file(0),
DISP=SHR
When i submit this Job for the first time.. the job abends at step2 saying JCLerror. But the step1 creates the gen and its successful but the step 2 is not taking that gen.
When i create an empty gen before running it for the first time the job is successful.
Can someone explain why though creating a gen at step1 is not used at step 2 when i running it for the first time. |
|
Back to top |
|
|
sril.krishy
Active User
Joined: 30 Jul 2005 Posts: 183 Location: hyderabad
|
|
|
|
Karthick,
Your step2 shoud contain (+1) only.Please read the IBM manuals for more info.
Thanks
Krishy |
|
Back to top |
|
|
karthick Ramesh
New User
Joined: 19 Mar 2008 Posts: 12 Location: India
|
|
|
|
krish
in the step2 i want to read only the currrent gen. so only i have given 0. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
karthick Ramesh,
had you bothered to read the manual, as krish suggested, you would have been realized that until the job is completed, the new gen is always refered to as +1. in subsequent jobs, use 0.
Quote: |
so only i have given 0
|
that's about the effort you have given. none,........................
your ignorance is only surpassed by your obstinacy |
|
Back to top |
|
|
karthick Ramesh
New User
Joined: 19 Mar 2008 Posts: 12 Location: India
|
|
|
|
Thank you Krish and Dick.
I was bit excited and couldnt understand krish explanation. So that i didnt gothru the manual. Apologies
Now its working!!! |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
My congratualtions to you, though, for using the correct word - generation - and not the oft-used incorrect word - version - in this context. |
|
Back to top |
|
|
|