z/OS DFSMSdss Storage Administration
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


SET command—setting condition codes and patch bytes

z/OS DFSMSdss Storage Administration
SC23-6868-01

As an alternative to setting flags in ADRPATCH (a module in the DFSMSdss load module ADRDSSU), you can customize certain DFSMSdss functions by temporarily setting patch bytes during DFSMSdss processing through a SET PATCH command.

The SET command also allows you to set the LASTCC and MAXCC variables to any value from 0 to 16, inclusive. By doing so, you can influence the logical path that DFSMSdss takes in the command sequence following the SET command.

You can set the following condition codes with the SET command. Use an IF-THEN-ELSE command sequence to test for these condition codes.

0
The function was processed as expected. Informational messages may have been issued.
4
A problem occurred, but processing continued. The result may not be exactly what you wanted, but no permanent harm was done. A warning message was issued.
8
A function did not process, began processing but ended prematurely, or the job ran without processing all requested functions. An error message is issued. If an abend occurs in any of the DFSMSdss subtasks, the return code is set to 8.
12
The job did not process. No functions were processed.
16
A function processed and left at least one volume or data set in an unusable condition. For example, a full-volume dump operation ended prematurely, leaving the output tape in an unusable condition.

If you are running a batch job, the condition codes that are tested in the IF-THEN-ELSE command sequence, and that can be set by the SET command, cannot be passed from one job step to the next. However, the final maximum condition code is passed to the MVS system when DFSMSdss returns control to the system at the completion of step processing. Do not use SET LASTCC before the first function command.

You can determine the condition code of the last-requested operation (LASTCC) and the maximum code of all completed operations (MAXCC) with an IF command. When an IF MAXCC or SET MAXCC command is encountered, DFSMSdss waits for all previously requested function commands to complete before the highest return code is determined. Also, when an IF LASTCC or SET LASTCC command is encountered, DFSMSdss waits for the last-requested function command to complete before the return code is determined. After the return code is determined and if the condition code is tested and satisfied, DFSMSdss ends the command or commands following the THEN keyword. If the tested condition is not satisfied, DFSMSdss bypasses the command or commands following the THEN keyword.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014