Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Need to change the LRECL for the GDG

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Need to change the LRECL for the GDG
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: 356
Location: New York

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

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

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

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

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

Senior Member


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

PostPosted: Tue Mar 31, 2009 2:56 pm    Post subject:
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    Post subject: Reply to: Need to change the LRECL for the GDG
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    Post subject:
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

Senior Member


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

PostPosted: Tue Mar 31, 2009 3:09 pm    Post subject:
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    Post subject: Reply to: Need to change the LRECL for the GDG
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    Post subject:
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    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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts WER247A incompatible lrecl Danielle.Filteau SYNCSORT 8 Tue May 02, 2017 4:04 am
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us