The following WFL job can be used to initiate the PATCH utility:
BEGIN JOB PATCH; RUN SYSTEM/PATCH; . . <file equation>; . . DATA . . <input record> . . ?END JOB.
<input record>
──┬─<patch compiler record>───┬────────────────────────────────────────┤ ├─<literal compiler record>─┤ ├─<patch delimiter record>──┤ ├─<patch comment record>────┤ ├─<patch patch record>──────┤ ├─<patch WFL record>────────┤ └─<patch control record>────┘
Explanation
<file equation>
Contains the necessary file equations for the files discussed later in this section. The files to be used in the $.DISK, $.DISK $, $.FILE, $.PATCHDECK, and $.INSERT options can also be file-equated in this section of the WFL job. Refer to the Work Flow Language (WFL) Programming Reference Manual for a definition of file equation.
<input record>
Contains the data necessary to run the PATCH utility. The input record consists of patches, dollar records and comments.
Considerations for Use
When running the PATCH utility using a WFL job, you can interrogate the TASKVALUE attribute of the PATCH utility task to determine if errors were detected in the patches. If TASKVALUE is not equal to 1, errors have been detected.