MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

VSAM File Prmiary Key Length Increase

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
JOSHI.SHOBHA
Beginner


Joined: 28 Jul 2007
Posts: 20
Topics: 7

PostPosted: Wed May 07, 2008 1:33 pm    Post subject: VSAM File Prmiary Key Length Increase Reply with quote

Hi All,

I have a scenario like we had 6 digits Policy No. and now we are expanding it to 7 digit.
Policy no was a primary Key for the VSAM KSDS file where we have our data. Now I have been asked to increment the Key length without using any intermediate file or infact any other file. I have to do it with the same VSAM file. Is it doable ? As I doubt if it can be done as in VSAM KSDS I dont think that we can alter with the key

Please advise
Thanks
Shobha
_________________
Thanks
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed May 07, 2008 4:56 pm    Post subject: Reply with quote

JOSHI.SHOBHA wrote:
Now I have been asked to increment the Key length without using any intermediate file or infact any other file. I have to do it with the same VSAM file. Is it doable ? As I doubt if it can be done as in VSAM KSDS I dont think that we can alter with the key


JOSHI.SHOBHA,

NO you canNOT do it. You need to repro the vsam to a seq file , delete the cluster and define it with the new key of 7 bytes and repro back the contents.

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
JOSHI.SHOBHA
Beginner


Joined: 28 Jul 2007
Posts: 20
Topics: 7

PostPosted: Wed May 07, 2008 9:25 pm    Post subject: Reply with quote

Thanks a lot !!!
_________________
Thanks
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Thu May 08, 2008 2:54 am    Post subject: Reply with quote

might have to modify the seq file (expand policy number by 1 byte) before repro back to new vsam file.

suggest you increase policy number to 10 or 12.

also, since the policy number field is being expanded by 1 byte, that means the record is also 1 byte longer. you are talking about modifying every module that accesses these records in order to reflect the new record length (as well as the new relative location of every field following policy number.

too bad the people who give you your instructions have so little understanding of computers.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
JOSHI.SHOBHA
Beginner


Joined: 28 Jul 2007
Posts: 20
Topics: 7

PostPosted: Thu May 08, 2008 7:58 am    Post subject: Reply with quote

Thanks a lot !!! Will suggest them this approach.

Thanks
Shobha
_________________
Thanks
Back to top
View user's profile Send private message
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Thu May 15, 2008 10:13 am    Post subject: Reply with quote

It may be more than "expanding the key". You may have to restructure the key data.

Do you want existing policy# A12345 to be changed to A123450 or A12345b or A012345? Some pgms may do math on the numeric part of the P#, e.g. add 1 to the high# to assign the next #.

Be careful.
_________________
Regards, Jack.

"A problem well stated is a problem half solved" -- Charles F. Kettering
Back to top
View user's profile Send private message
chandra
Beginner


Joined: 26 Sep 2003
Posts: 130
Topics: 36

PostPosted: Sat Nov 05, 2011 7:23 am    Post subject: Reply with quote

Hi Dick and Jack,

We are having same situation. We are expanding the policy number from X(6) to X(10).

I am doing an analysis of building a tool that can change all the COBOL copybooks that are impacted, Programs that are have a working storage variables, BMS Maps, LRECL of all output files, Reports and the downstream impact of the LRECL change in the dataset finally the other systems that are interface with this system.

I am planning to write a REXX program that will change the all impacted copybooks from X(6) to X(10) after changing it will compare with the original copybook and list the difference for our reference.

Can you please let me know if you have any suggestions?
_________________
Regards,
Chandra
Back to top
View user's profile Send private message
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Sat Nov 05, 2011 1:28 pm    Post subject: Reply with quote

Suggest you have not yet discovered the size of the bear you plan to eat. . .

Identifying "every" point of impact is probably out of reach.
A couple of examples:
1. Nested copybooks
2. Generated "stuff" like Easytrieve code, sort control statements, other control statements.

If this is worked on, plan on this taking more than just a little bit of time/effort.

Is your management willing to do without your services while this is worked on?

Also, if this is worked on, i'd suggest scoping out pieces and implement these rather than trying to to this as one big exec.

Good luck Smile
_________________
All the best,

di
Back to top
View user's profile Send private message
misi01
Advanced


Joined: 02 Dec 2002
Posts: 629
Topics: 176
Location: Stockholm, Sweden

PostPosted: Sun Nov 13, 2011 5:12 am    Post subject: Reply with quote

You mentioned BMS maps. What about the scenario where a BMS layout has the policy number on a line and the rest of the line is "occupied" with other fields as well.

That could mean you'll have to do a redesign of the layout to accommodate those extra 4 bytes
_________________
Michael
Back to top
View user's profile Send private message Send e-mail
chandra
Beginner


Joined: 26 Sep 2003
Posts: 130
Topics: 36

PostPosted: Mon Nov 14, 2011 10:05 am    Post subject: Reply with quote

Yes Misi01...That's true. We are analysing all the screens.

Thanks for pointing out...
_________________
Regards,
Chandra
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group