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
 

 

How to change length of Key field in VSAM?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: How to change length of Key field in VSAM?
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Thu Apr 21, 2011 1:14 pm    Post subject: Reply to: How to change length of Key field in VSAM?
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    IBMMAINFRAMES.com Support Forums -> CICS 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 recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm


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