Adding records to VSAM RRDS file
How do I add a record to an existing VSAM RRDS file?
Easytrieve all supported releases and environments
To add records to VSAM RRDS file:
- Define a KEY as a 4 byte binary field
- Use the POINT and PUT functions.
DEFINE REC-CNT S 4 B VALUE xxx - (xxx is 1 greater than the current number of records on file)
POINT RRDSFILE GE REC-CNT STATUS (check status)
STATUS (check status)
REC-CNT = REC-CNT + 1 (loop back to point and put for next record)