EDS Utility Processor
KEBUTIL return codes
KEBUTIL terminates with a return code to notify you of the status of the reload operation:
The program completed successfully. The RKEIMSG SYSOUT output shows the number of records processed.
4 8 16
The program completed successfully. No records were deleted. There were syntax errors in the control statements; no data was copied.
There was an error in either the input or output DD statements; no data was copied.
The dataset was only partially written. An error occurred on the VSAM file.
Sample KEBUTIL job
The rhilev.midlev.RKANSAM dataset contains a sample jobstream to unload and reload a reusable EPILOG datastore (see Figure 42 ). This job deletes any data from the new EDS which is over 5 days old or from a weekend.
If you have not marked your VSAM cluster REUSE or defined it as UNIQUE, the job does not work as is. You must add an extra step between the UNLOAD and RELOAD steps to delete and reallocate the cluster. See the sample job in rhilev.midlev.RKANSAM(KEIDFNVS) for details.
Note: The cluster should not be initialized with KEBINIT before reloading; the initialization record from the original EPILOG datastore is restored to the file by KEBUTIL.