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

GDG generation Error: DATA SET RESERVATION UNSUCCESSFUL


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

New User


Joined: 28 Nov 2006
Posts: 69
Location: India

PostPosted: Fri Jan 05, 2007 11:18 am
Reply with quote

I have a problem
I allocated gdg base USERID.LEARN.GDG.BASE and copied a flat file to next generation usig simple sort

Code:

//STEP1    EXEC PGM=SORT                                 
//SORTIN   DD DSN=USERID.LEARN.INPUT,DISP=SHR           
//SORTOUT  DD DSN=USERID.LEARN.GDG.BASE(+1),             
//           DISP=(NEW,CATLG,DELETE),                   
//           UNIT=SYSDA,                                 
//           SPACE=(TRK,(1,2),RLSE),                     
//           DCB=(DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=800)
//SYSOUT   DD SYSOUT=*                                   
//SYSPRINT DD SYSOUT=*                                   
//SYSIN    DD *   
   SORT FIELDS=COPY
/*           


It generated -> USERID.LEARN.GDG.BASE.G0001V00
Then i manually copied the same to new version
(Option 3.3)
USERID.LEARN.GDG.BASE.G0001V01

For some reason i deleted the base and reallocated with same name.Till the point no problem .....

But when i use above jcl to add new generations to this base i am getting JCL Error :
SORTOUT - DATA SET RESERVATION UNSUCCESSFUL

I am not sure why this is not working. Anybody having any idea about what may be error ????
The gdg allocated with options - >

DEFINE GDG -
(NAME(USERID.LEARN.GDG.BASE) -
LIMIT(10) -
EMPTY -
SCRATCH)
Back to top
View user's profile Send private message
Selvamani

New User


Joined: 19 Dec 2006
Posts: 21
Location: California

PostPosted: Fri Jan 05, 2007 11:37 am
Reply with quote

I am thinking that you have to create next version with only USERID.LEARN.GDG.BASE(+1).
Since your dataset USERID.LEARN.GDG.BASE.G0001V01, I guess it gives this error. Try to create a dataset USERID.LEARN.GDG.BASE.G0001V00 or USERID.LEARN.GDG.BASE.G0002V00.

Correct me if I am wrong
Back to top
View user's profile Send private message
hsk

New User


Joined: 28 Nov 2006
Posts: 69
Location: India

PostPosted: Fri Jan 05, 2007 12:21 pm
Reply with quote

But that is what my requirement is. I have to creat new version and not generation. There is no problem if i increment generation.
What i am trying to see is what is the problem if i increment version of same generation.

e.g. i have 3 geneartions
USERID.LEARN.GDG.BASE.G0001V00
USERID.LEARN.GDG.BASE.G0002V00
USERID.LEARN.GDG.BASE.G0003V00

And in jcl i specify USERID.LEARN.GDG.BASE(0) it will pickup USERID.LEARN.GDG.BASE.G0003V00

Now suppose i have
USERID.LEARN.GDG.BASE.G0001V00
USERID.LEARN.GDG.BASE.G0002V00
USERID.LEARN.GDG.BASE.G0003V00
USERID.LEARN.GDG.BASE.G0003V01

in jcl i specify USERID.LEARN.GDG.BASE(0) it will pickup
USERID.LEARN.GDG.BASE.G0003V01
and
in jcl i specify USERID.LEARN.GDG.BASE(-1) it will pickup
USERID.LEARN.GDG.BASE.G0002V00


G0003V01 actually replaces G0003V00 in the GDG stack.

Am i correct ?
And more than that what is the meaning of this error
SORTOUT - DATA SET RESERVATION UNSUCCESSFUL


I think i has to do some thing with the CATLG entry of the gdg base i allocated previously.
I am trying to solve this problem.
What i did was
1.Creat Base
2.Creat generation(sort JCL)
3.Creat version(manual copy)
4.Delete all versions/generations and base
5.reallocate the base with same name
6.Creat generation(sort JCL)

At step 6 i am getting jcl error
SORTOUT - DATA SET RESERVATION UNSUCCESSFUL

And i want to know why?
If anybody can help
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Fri Jan 05, 2007 2:47 pm
Reply with quote

Hi !

Have a look over here, perhaps it's helpful:
www-1.ibm.com/support/docview.wss?uid=isg1OA01622

And also this is a must, chapter 3.10:
publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/dgt2d430/CCONTENTS

Regards, UmeySan
Back to top
View user's profile Send private message
hsk

New User


Joined: 28 Nov 2006
Posts: 69
Location: India

PostPosted: Fri Jan 05, 2007 3:19 pm
Reply with quote

That helped a lot
Thanks.....
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 Store the data for fixed length COBOL Programming 1
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
Search our Forums:

Back to Top