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

Need to change the LRECL for the GDG


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

New User


Joined: 12 Dec 2008
Posts: 96
Location: Gurgaon

PostPosted: Tue Mar 31, 2009 2:29 pm
Reply with quote

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

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Tue Mar 31, 2009 2:41 pm
Reply with quote

Refer the following link. It might be useful for your requirment.

www.ibmmainframes.com/about20225.html
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Mar 31, 2009 2:50 pm
Reply with quote

You do not need to change the base
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Mar 31, 2009 2:56 pm
Reply with quote

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

New User


Joined: 12 Dec 2008
Posts: 96
Location: Gurgaon

PostPosted: Tue Mar 31, 2009 3:02 pm
Reply with quote

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

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Tue Mar 31, 2009 3:06 pm
Reply with quote

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

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Mar 31, 2009 3:09 pm
Reply with quote

Hi,

No - before I show you some code, please post the scrap from the code where this GDG is getting created . . .
Back to top
View user's profile Send private message
rupesh gullu

New User


Joined: 12 Dec 2008
Posts: 96
Location: Gurgaon

PostPosted: Tue Mar 31, 2009 3:09 pm
Reply with quote

I got it ..thank you all for help.

regards,
rupesh
Back to top
View user's profile Send private message
mkk157

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Tue Mar 31, 2009 3:12 pm
Reply with quote

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
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 WER247A SORTOUT HAS INCOMPATIBLE LRECL SYNCSORT 7
No new posts VB to FB - Finding LRECL SYNCSORT 4
No new posts 3270 personal communications. Can't c... TSO/ISPF 2
No new posts SELECT from data change table DB2 5
No new posts Trying to change copybook in online c... CICS 4
Search our Forums:

Back to Top