REWR Rewrite Command for multiple Update
Using the Variable Action ONXFIND... =W file, or the User Option FIND ... =W file, a printable file is produced. This file will consist of all records from a number of data objects (files, library elements, Job variables) that contain a particular search string (e.g. 'D3475'). The names of the data objects from which the records were extracted are also stored in the Write file. Often, it would be advantageous to be able to make a single, central amendment to the search string (e.g. replace 'D3475' with 'D348E' ), and then rewrite the respective data object with this amendment in a single command.
This function is provided by the Rewrite command of CFS. The Write file may contain any mixture of files, library elements or Job variables (FIND...=W file,E). An example of the application of the Rewrite command can be found on page 19-.