Its not quite that simple. You have to build an alternate index and the
read by the alternate index. This is so because there could be multiple
MERIW* records.
So, you use POINT to position to the first MERIW* record shown by the
alternate index. Then you use a read next loop, reading down the alternate
index until you find the one you want. Then you can use POINT to get the
record by primary key, with the HOLD if you want to update it.
Primary Keys cannot have duplicate values, alternate keys can.
Joe
Post by Mike Schwab ***@gmail.com [hercules-os380]http://www.edwardbosworth.com/My3121Textbook_HTM/MyText3121_Ch28_V01.htm
Open
next key: point
Next record: get
Repeat next record until key is too high
Repeat next key until done.
Close
Post by ***@yahoo.com [hercules-os380]I am using the MVS 3.8j in TK4- and would like to read a VSAM
key-sequenced dataset using a partial key or generic key, e.g., 'MERIW*' .
Does that version of VSAM permit a partial key read? Could someone point
me to an example of assembler code to do that kind of read?
Thanks so much for your help.
Wayne Meriwether
--
Mike A Schwab, Springfield IL USA
Where do Forest Rangers go to get away from it all?