Accessing a KSDS file with partial key



Help for IBM's record-oriented filesystem VSAM, ESDS, KSDS, RRDS, LDS and Storage management Subsystems

Accessing a KSDS file with partial key

Postby coollearner » Sat Jul 17, 2010 3:31 pm

If I know only a part of the key, How can I access a particular record in KSDS file?
Knowledge is wealth
coollearner
 
Posts: 33
Joined: Thu Jun 03, 2010 3:15 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Accessing a KSDS file with partial key

Postby Robert Sample » Sat Jul 17, 2010 5:10 pm

As long as you know the FIRST part of the key, you can do a generic read to find the first record matching the part of the key you have. If you do not have the first part of the key, either an alternate index must be built for the part of the key you have, or what you are asking is not possible.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to VSAM/SMS

 


  • Related topics
    Replies
    Views
    Last post