Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Programming Guide


Updating QSAM files

You can update QSAM files only if they reside on direct access storage devices. You cannot update files in the HFS.

Replace an existing record with another record of the same length by doing these steps:

  1. Open the file as I-O.
  2. Use REWRITE to update an existing record. (The last file processing statement before REWRITE must have been a successful READ statement.)

You cannot open as I-O an extended format data set that you allocate in compressed format.

related references  
REWRITE statement (Enterprise COBOL Language Reference)


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)