My VSAM KSDS file record key will be like this,
I need to update the record which having 001 as first 3 byte. If i use read update and rewrite, each time i should pass full key. Is it possible to write with readnext update and rewrite.....since rewrite need full key instead of partial key..
Joined: 06 Jun 2008 Posts: 8344 Location: Dubuque, Iowa, USA
I need to update the record which having 001 as first 3 byte.
Since you have THREE records listed with 001 in the first 3 bytes, you cannot do any update on a VSAM file using only the first three bytes of the key. An update must be done to only a single record at a time.
As Bill said, save the full key of the record you want to update, end the browse, read the full key for update, rewrite it, then start a new browse.