Previous Topic: ExampleNext Topic: Add a VSAM Record


Update a VSAM Record

To update a record, specify the UPDATE operation on the FILE definition.

  1. 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.

  2. Change any portion of the record, except a KSDS key. For details, see Change Data in the Work Area.
  3. 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.

  4. FILE rewrites the updated record.