z/OS DFSMSdfp Advanced Services
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Return Codes from the PROTECT Macro

z/OS DFSMSdfp Advanced Services
SC23-6861-01

When the PROTECT macro finishes processing, register 15 contains one of the following return codes:

Table 1. PROTECT Return Codes
Return Code Description
0 (X'00') Updating of the PASSWORD data set completed successfully.
4 (X'04') The password of the data set name was already in the PASSWORD data set.
8 (X'08') The password of the data set name was not in the PASSWORD data set.
12 (X'0C') A control password is required or the one supplied is incorrect.
16 (X'10') The supplied parameter list was incomplete or incorrect.
20 (X'14') There was an I/O error in the PASSWORD data set or the system residence volume (which contains the PASSWORD data set), has an actual UCB that resides above the 16 MB line.
24 (X'18') 1 The PASSWORD data set was full.
28 (X'1C') The validity check of the buffer address failed.
32 (X'20') 2 The LOCATE macro failed. LOCATE's return code is in register 1, and the number of indexes searched is in register 0.
36 (X'24') 2 The OBTAIN macro for the user data set failed. OBTAIN's return code is in register 1. The user data set resides on a volume that has an actual UCB that resides above the 16 MB line. Register 1 contains a 4, which simulates an OBTAIN return code.
40 (X'28') 2 The DSCB could not be updated.
44 (X'2C') The PASSWORD data set does not exist.
48 (X'30') 2 Tape data set cannot be protected.
52 (X'32') 2 Data set in use.
56 (X'38') 2 The data set uses the virtual storage access method (VSAM).
60 (X'3C') The data set is cataloged as being on more than 20 volumes. The DSCBs on the first 20 volumes have been updated. PROTECT does not support updating the rest.

Note:
  1. A message is written to the console indicating that the PASSWORD data set is full.
  2. The PASSWORD data set has been updated, but the DSCB has not been flagged to indicate the protected status of the data set.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014