REWR Rewrite Command for multiple Update

Editing Options during Rewrite

The CFS Rewrite function can also be used to create new records in data objects, or to erase existing records.

The format of the Write file created by ONXFIND should be noted when using these extended Edit options.

The records have the following format:

DNNNNNNNX.................

|  |   |   |

|  |   |   |

|  |   |   À- Data content (with additional information such as PAM key).

|  |   |      Record type or record ID for PLAM library records)

|  |   |

|  |   À- X: Marker column (Normally blank)

|  |

|  À- NNN: Record number/Block number

|

À- D: Print control character (Write file can be printed with SPACE=E)

Inserting Data Records

If additional records are to be inserted in the Write file after a particular extracted record n , then these should be inserted into the Write file at the end of the record n. The columns DNNNNNNX should be left empty for the inserted records (continuous insertion). The data content of the records should begin at column 10. Any number of records can be inserted.

If new records should be inserted into the Write file after records that do not appear in the Write file, then these should be inserted into the Write file between records with the next largest, and next smallest record number. The first record should contain the record number n in the record number column N. An 'A' should be inserted into the Marker column (A=insert After). The data content of the record to be inserted follows the Marker column. If 2 or more successive records are to be inserted, then the 2nd and succeeding records should contain blanks in the columns N..N and X (continuous insertion). If the insertion is to be before the first record in the data object, then the record number 0 should be specified in the N..N column. If the insertion is to be after the last record, then a large hypothetical record number should be specified, e.g. 9999999.

Replacing Data Records

If a data record is to be completely replaced, then the number of the required record should be specified in the N..N column. Replacing existing records is the primary function of the Rewrite command.

Deleting Data Records

Entering an 'E' (Eliminate) in the Marker column will cause the record/PAM block with the number specified in the N..N columns to be deleted. It is not necessary to enter the data content of the record. For example, entering '______78E' will cause the 78th record to be deleted.

All records of a data object can be written to a Write file as follows: FIND ''=W file.