|
View previous topic :: View next topic
|
| Author |
Message |
hsk
New User
Joined: 28 Nov 2006 Posts: 69 Location: India
|
|
|
|
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 |
|
 |
Selvamani
New User
Joined: 19 Dec 2006 Posts: 21 Location: California
|
|
|
|
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 |
|
 |
hsk
New User
Joined: 28 Nov 2006 Posts: 69 Location: India
|
|
|
|
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 |
|
 |
UmeySan
Active Member

Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
| Back to top |
|
 |
hsk
New User
Joined: 28 Nov 2006 Posts: 69 Location: India
|
|
|
|
That helped a lot
Thanks..... |
|
| Back to top |
|
 |
|
|