View previous topic :: View next topic
Author
Message
rupesh gullu New User Joined: 12 Dec 2008Posts: 96 Location: Gurgaon
Hi,
I have one GDG which I am using for some time. Now I want to Increase its length by some bytes without changing the GDG base. Can any one let me know how we can implement this.
regards,
rupesh gupta
Back to top
ksk Active User Joined: 08 Jun 2006Posts: 355 Location: New York
Back to top
expat Global Moderator Joined: 14 Mar 2007Posts: 8797 Location: Welsh Wales
You do not need to change the base
Back to top
Anuj Dhawan Superior Member Joined: 22 Apr 2006Posts: 6250 Location: Mumbai, India
Hi,
Just code the new LRECL in DCB of next generation in JCL to create the new record length . . .(and I believe your site is SMS managed)
Back to top
rupesh gullu New User Joined: 12 Dec 2008Posts: 96 Location: Gurgaon
Anuj,
That means if i am using say rg$z1e5.test.g0345v00 gdg and now i want to change its lrecl i will be using this as i/p and create another GDG
rg$z1e5.test.g0346v00 with new lrecl
can you share some code for this.
regards,
rupesh
Back to top
mkk157 Active User Joined: 17 May 2006Posts: 310
Hi rupesh,
For GDG base, There is no length.
The LRECL is there only for its Generations. And in case of a GDG, we can have different LRECL versions. I mean,
GDG Base: PROD.GDG.BASE
Version 1 : PROD.GDG.BASE.G001V00 LRECL = 100
Version 2 : PROD.GDG.BASE.G002V00 LRECL = 120
Version 3 : PROD.GDG.BASE.G003V00 LRECL = 50
This is possible with the help of DCB statement,
//GDGDD1 DD DSN=PROD.GDG.BASE(+1),
// DISP=(,CATLG,DELETE),
// UNIT=DISK,SPACE=(CYL,(10,10),RLSE),
// DCB=(RECFM=FB,LRECL=100,BLKSIZE=10000 )
//GDGDD2 DD DSN=PROD.GDG.BASE(+1),
// DISP=(,CATLG,DELETE),
// UNIT=DISK,SPACE=(CYL,(10,10),RLSE),
// DCB=(RECFM=FB,LRECL=120,BLKSIZE=12000 )
//GDGDD3 DD DSN=PROD.GDG.BASE(+1),
// DISP=(,CATLG,DELETE),
// UNIT=DISK,SPACE=(CYL,(10,10),RLSE),
// DCB=(RECFM=FB,LRECL=50,BLKSIZE=5000 )
Back to top
Anuj Dhawan Superior Member Joined: 22 Apr 2006Posts: 6250 Location: Mumbai, India
Hi,
No - before I show you some code, please post the scrap from the code where this GDG is getting created . . .
Back to top
rupesh gullu New User Joined: 12 Dec 2008Posts: 96 Location: Gurgaon
I got it ..thank you all for help.
regards,
rupesh
Back to top
mkk157 Active User Joined: 17 May 2006Posts: 310
I assumed that rg$z1e5.test.g0345v00 is the current gneration of the GDG. And the new LRECL of the next generation of the GDG is 50
//GDGIN DD DSN=rg$z1e5.test(0) ,
// DISP=SHR
//SYSUT2 DD DSN=rg$z1e5.test(+1),
// DISP=(,CATLG,DELETE),
// UNIT=DISK,SPACE=(CYL,(10,10),RLSE),
// DCB=(RECFM=FB,LRECL=50,BLKSIZE=5000)
Back to top
Please enable JavaScript!