Status codes from RENAME

After the RENAME macro instruction is executed, the last byte of each 12-byte entry in the volume list indicates one of the that are described in Table 1.

Table 1. Status Codes from RENAME Macro Instruction
Rename Status Code Description
0 (X'00') The format-1 DSCB for the data set has been renamed in the VTOC on this volume.
1 (X'01') The VTOC of this volume does not contain the format-1 DSCB of the data set to be renamed.
2 (X'02') One of the following conditions occurred:
  • The data set could not be renamed because the data set was password protected and the password was not supplied in the two attempts allowed.
  • An attempt was made to rename a VSAM data space or a catalogued VSAM data set.
  • An attempt was made to rename a VTOC index data set.
  • An SMS validation failure occurred.
3 (X'03') A format-1 DSCB containing the new data set name already exists in the VTOC of this volume, or an attempt was made to rename a data set to a name starting with 'SYS1.VTOCIX'
4 (X'04') One of the following conditions occurred:
  • A permanent I/O error occurred while trying to rename the data set on this volume.
  • An incorrect format-1 DSCB was encountered while processing this volume.
  • No space is available in the index VIER for the new name, and no additional VIERs are available.
5 (X'05') It could not be verified that this volume was mounted nor was a unit available for mounting the volume.
6 (X'06') The operator was unable to mount this volume.
7 (X'07') The data set was not renamed, because it was currently open for processing.
8 (X'08') The data set is defined to RACF®, but either you are not authorized to access the data set or the data set is defined to RACF on multiple volumes.