Joined: 31 May 2006 Posts: 200 Location: Netherlands
If you can change your copy book then you can as well declare the three fields that make the key as one
and use that field as RECORD KEY
ASSIGN TO JARBI
FILE STATUS WS-JABI-STATUS
RECORD KEY PRIMARYKEYS.
Offcourse you can try this only if can change the copy book
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
You cannot use the 'THRU' statement in this context.
You only have two options that I see.
1 - define and create a secondary index for the file only with the fields your interested in. I think you may be able to do this under your own ID, I'm not sure, I've never tried. This is not efficient because the system will have to sequentialy read the entire file to create the index.
2 - Sequentialy read the file, picking out the records you need. Probably, overall the fastest way.