Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
GDG generation created at step1 unable to use at step2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: GDG generation created at step1 unable to use at step2
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    Post subject:
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    Post subject:
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: 6968
Location: porcelain throne

PostPosted: Thu Apr 10, 2008 6:12 pm    Post subject:
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    Post subject:
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

Active Member


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

PostPosted: Thu Apr 10, 2008 10:53 pm    Post subject:
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    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 Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts I am unable to use SWAPBAR ON command... mrsidhu12 TSO/ISPF 3 Thu Sep 01, 2016 1:10 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us