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

GDG generation created at step1 unable to use at step2


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
karthick Ramesh

New User


Joined: 19 Mar 2008
Posts: 12
Location: India

PostPosted: Thu Apr 10, 2008 5:52 pm
Reply with quote

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
View user's profile Send private message
sril.krishy

Active User


Joined: 30 Jul 2005
Posts: 183
Location: hyderabad

PostPosted: Thu Apr 10, 2008 6:00 pm
Reply with quote

Karthick,
Your step2 shoud contain (+1) only.Please read the IBM manuals for more info.


Thanks
Krishy
Back to top
View user's profile Send private message
karthick Ramesh

New User


Joined: 19 Mar 2008
Posts: 12
Location: India

PostPosted: Thu Apr 10, 2008 6:05 pm
Reply with quote

krish
in the step2 i want to read only the currrent gen. so only i have given 0.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Apr 10, 2008 6:12 pm
Reply with quote

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
View user's profile Send private message
karthick Ramesh

New User


Joined: 19 Mar 2008
Posts: 12
Location: India

PostPosted: Thu Apr 10, 2008 6:27 pm
Reply with quote

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!!! icon_lol.gif
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


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

PostPosted: Thu Apr 10, 2008 10:53 pm
Reply with quote

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
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 DFHPI1008 JSON generation failed COBOL Programming 0
No new posts Started task using a generation dataset JCL & VSAM 7
No new posts Infosphere Optim - unable to save Col... IBM Tools 0
No new posts Report generation JCL & VSAM 18
No new posts How can I get Generation Nbr of GDG f... IBM Tools 1
Search our Forums:

Back to Top