

Accessing Auxiliary Storage: FILE › VSAM Files › FILE Functions for VSAM Records › Update a VSAM Record
Update a VSAM Record
To update a record, specify the UPDATE operation on the FILE definition.
- Retrieve the record you want to update, and then enter the appropriate command:
FUNC= GETU
RCID= key (for all VSAM files)
FUNC= GET
RCID= key (for KSDS files only)
Press Enter, or browse the file.
- Change any portion of the record, except a KSDS key. For details, see Change Data in the Work Area.
- After you have made all the changes, specify the following, and then press Enter:
FUNC= PUT
SIZE= new record size
Specify the SIZE field only when changing the size of a variable length record.
- FILE rewrites the updated record.
Copyright © 2014 CA Technologies.
All rights reserved.
 
|
|