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

How to change length of Key field in VSAM?


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ayapatsr

New User


Joined: 01 Apr 2009
Posts: 14
Location: pune

PostPosted: Thu Apr 21, 2011 1:02 pm
Reply with quote

Hi Frnds,

I have one VSAM file with fields below.
Telephone Number, Countr code, City Code,City Name. Telephone Number is the key. Key length is 10. Due to the business requirements, the Phone Number lenght changed from 10 to 15. Now i need to update this in my VSAM file.

Is it possible to update the lentth of a KEY field in VSAM file?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Apr 21, 2011 1:14 pm
Reply with quote

why not ?
unload the old vsam to a sequential dataset,
carry on all the record changes you need, ( layout and content )
delete the old vsam
define the new vsam with the new parameters ( record and key lengths )
reload the new vsam

all this if You want to keep the old name
I would recommend , if possible, to change the name in order not to clobber all the backup/restore logic

the process can also be shortened
define the new vsam
read the old vsam and load the new vsam!
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 -> CICS

 


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 Access to non cataloged VSAM file JCL & VSAM 18
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
Search our Forums:

Back to Top