View previous topic :: View next topic |
Author |
Message |
JOSHI.SHOBHA Beginner
Joined: 28 Jul 2007 Posts: 20 Topics: 7
|
Posted: Wed May 07, 2008 1:33 pm Post subject: VSAM File Prmiary Key Length Increase |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed May 07, 2008 4:56 pm Post subject: |
|
|
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 |
|
 |
JOSHI.SHOBHA Beginner
Joined: 28 Jul 2007 Posts: 20 Topics: 7
|
Posted: Wed May 07, 2008 9:25 pm Post subject: |
|
|
Thanks a lot !!! _________________ Thanks |
|
Back to top |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Thu May 08, 2008 2:54 am Post subject: |
|
|
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 |
|
 |
JOSHI.SHOBHA Beginner
Joined: 28 Jul 2007 Posts: 20 Topics: 7
|
Posted: Thu May 08, 2008 7:58 am Post subject: |
|
|
Thanks a lot !!! Will suggest them this approach.
Thanks
Shobha _________________ Thanks |
|
Back to top |
|
 |
slade Intermediate
Joined: 07 Feb 2003 Posts: 266 Topics: 1 Location: Edison, NJ USA
|
Posted: Thu May 15, 2008 10:13 am Post subject: |
|
|
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 |
|
 |
chandra Beginner
Joined: 26 Sep 2003 Posts: 130 Topics: 36
|
Posted: Sat Nov 05, 2011 7:23 am Post subject: |
|
|
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 |
|
 |
papadi Supermod
Joined: 20 Oct 2009 Posts: 594 Topics: 1
|
Posted: Sat Nov 05, 2011 1:28 pm Post subject: |
|
|
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  _________________ All the best,
di |
|
Back to top |
|
 |
misi01 Advanced
Joined: 02 Dec 2002 Posts: 629 Topics: 176 Location: Stockholm, Sweden
|
Posted: Sun Nov 13, 2011 5:12 am Post subject: |
|
|
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 |
|
 |
chandra Beginner
Joined: 26 Sep 2003 Posts: 130 Topics: 36
|
Posted: Mon Nov 14, 2011 10:05 am Post subject: |
|
|
Yes Misi01...That's true. We are analysing all the screens.
Thanks for pointing out... _________________ Regards,
Chandra |
|
Back to top |
|
 |
|
|