Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Return codes from the extended set z/OS DFSMShsm Managing Your Own Data SC23-6870-00 |
|||||||||||||||||||||
When the EXTENDRC parameter is specified on the HBACKDS, HDELETE, HRECALL, HRECOVER or HMIGRATE commands, DFSMShsm assigns both a return code and a reason code in register 15 that provides a more detailed indication of the results from processing the request. In most cases, the return codes correspond to the message number that DFSMShsm issues to provide an explanation when the request fails. If there is a reason code associated with the failure, it is also returned. Important: The return code is returned
in the high-order two bytes of register 15. The reason code is returned
in the low-order two bytes of register 15.
To obtain the corresponding message number from the contents of
register 15, the following algorithms are used:
The following example shows how to obtain the return code, the corresponding message number, and any associated reason code from the contents of register 15. For this example, when we tried to migrate a data set that was not eligible for migration, we received the following values:
When you are using a TSO CLIST, the return and reason codes are both provided in register 15 for access as the CLIST variables: &LASTCC or &MAXCC; The CLIST example (see below) shows how to separate the return and reason codes set by DFSMShsm from the &LASTCC variable. When you are using ISPF, the return and reason codes are both provided in register 15 and can be obtained by using the HELP function. Use the given algorithms to obtain the return code, the corresponding message number, and any associated reason code. The EXTENDRC parameter is best used when single data set requests are issued. When a multiple data set request is issued, multiple failures are reported with a single, generic return code of 112. Table 2 lists the return codes that
belong to the extended set. These return codes are returned in the
high-order two bytes of register 15 with the exception of return code
18, which is returned in the low-order two bytes of register 15.
These reason codes have meaning only with specific return codes. Reason codes are described with the corresponding messages. See or z/OS MVS System Messages, Vol 2 (ARC-ASA). The following fragment is an example of checking return
codes when issuing DFSMShsm commands
from a CLIST running in the foreground:
|
Copyright IBM Corporation 1990, 2014
|