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

How to convert GDG of length 103 to 150


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

New User


Joined: 08 May 2007
Posts: 26
Location: hyderabad

PostPosted: Fri Jun 01, 2007 3:51 pm
Reply with quote

How to convert GDG of length 103 to 150 (LRECL) with the increased bytes filled with default values icon_question.gif

Is there any process of direct convertion (i.e. change of LRECL for the GDG) ?
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri Jun 01, 2007 4:22 pm
Reply with quote

Laxminarsimharao,

Quote:
Is there any process of direct convertion (i.e. change of LRECL for the GDG) ?


Do you want to increase the record lenght of existing generations or the generations you would create in future(if at all)?
Back to top
View user's profile Send private message
Laxminarsimharao

New User


Joined: 08 May 2007
Posts: 26
Location: hyderabad

PostPosted: Fri Jun 01, 2007 4:28 pm
Reply with quote

murmohk1,

Yes, I wanted to change it for existing generation
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Jun 01, 2007 5:47 pm
Reply with quote

Your best bet is to use DFSORT to copy the data to the new required length, and update the version so that the position of the generation in the GDG doesn't change:

Code:

//STEPX    EXEC PGM=ICEMAN
//SORTIN   DD   DISP=SHR,DSN=THE.EXISTING.GDG.GxxxxV00
//SORTOUT  DD   DSN=THE.EXISTING.GDG.GxxxxV01,
//         DISP=(,CATLG,DELETE),UNIT=SYSDA,SPACE=.....
//SYSOUT   DD   SYSOUT=*
//SYSIN    DD   *
  OPTION COPY
  OUTREC FIELDS=(1:1,103,150:X)
/*


where xxxx is the existing generation number (0001-9999).
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri Jun 01, 2007 6:24 pm
Reply with quote

Superk has given the best solution, however, call me old fashioned, but I would take a backup of the generations before starting - just in case.
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Need to convert date format DFSORT/ICETOOL 20
Search our Forums:

Back to Top