how to read the record randomly based on the part of the key



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

how to read the record randomly based on the part of the key

Postby mohd dalib » Tue Oct 14, 2008 12:45 pm

hi
file structure is given below

LFI ,TEXT ,1 , ,TEXT ,,1 , , ,, ,, ,, ,,KEY
SUB_NO ,TEXT ,2 , ,TEXT ,,7 , , ,, ,, ,, ,,KEY
A_LFI ,TEXT ,9 , ,TEXT ,,1 , , ,, ,, ,, ,,KEY
BUS_CAT ,TEXT ,10 , ,TEXT ,,2 , , ,, ,, ,, ,,KEY
PERCENT ,SMALL ,12 , ,ZONED ,,3 , , ,, ,, ,, ,,
D_CR ,BIG ,15 , ,PACKED ,,4 , , ,, ,, ,, ,,
D_UPD ,BIG ,19 , ,PACKED ,,4 , , ,, ,, ,, ,,
UPD_SEQ ,SMALL ,23 , ,PACKED ,,2 , , ,, ,, ,, ,,
FILLER ,TEXT ,25 , ,TEXT ,,11 , , ,, ,, ,, ,,


I have to read the sub_no from other file and then based on that sub_no i have to read the record from the above file.
can we do that?
so is there anyway to read the record based on part of the key, randomly?
mohd dalib
 
Posts: 6
Joined: Thu Jul 03, 2008 9:08 pm
Has thanked: 0 time
Been thanked: 0 time

Re: how to read the record randomly based on the part of the key

 

Re: how to read the record randomly based on the part of the key

Postby dick scherrer » Wed Oct 15, 2008 2:40 am

Hello,

You need to post a more clear definition of what you want to do.

Using the "Code" tag, post some sample records and describe how you want to process them.

What you have posted needs clarification and some sample records should help us help you.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to VSAM/SMS

 


  • Related topics
    Replies
    Views
    Last post