UNLOAD
Purpose
Unloads journal records to the sequential data set defined by ddname CCVUNLD.
You can optionally follow UNLOAD with one or more CRITERIASET commands to select which journal records to unload. If you do not specify any CRITERIASET commands, UNLOAD selects all journal records.
To unload all journal records to CCVUNLD, and delete them from the journal, specify UNLOAD with no parameters, and no CRITERIASET.
Format
.-DELETE=YES-. >>-UNLOAD--+------------+--+-------------------------+--------->< '-DELETE=NO--' '-,KEEPINSTANCES=-+-n---+-' '-ALL-'
- DELETE
- Specifies whether to delete records from the journal after unloading
them. The default is YES.
If you specify NO, then KEEPINSTANCES is ignored.
To delete records from the journal without unloading them to a file, use UNLOAD with DELETE=YES, and specify the ddname CCVUNLD with DSNAME=NULLFILE.
- KEEPINSTANCES
- Specifies the number of instances of before/after image records of each resource
definition to keep in the journal, regardless of whether the records are selected for unloading. You
can specify a number, 1 - 9999, or ALL, to keep all
before/after image records.
KEEPINSTANCES applies only to journal records that contain before/after images of resource definitions, such as records created as the result of an Update command. Journal records for operational commands that do not affect resource definitions, such as Discard, Install and Newcopy, do not contain before/images, and are not affected by KEEPINSTANCES.
To unload journal records for operational commands without deleting any before/after image records, specify KEEPINSTANCES=ALL.