PROTECT command operands

data_set_name
specifies the name of the data set you want to protect. If the data set is not cataloged, you must specify the fully-qualified name. For example:
protect 'userid.dsn.qual' list(password)
control_password
Required on all operands except the LIST operand. It provides the control for authorized personnel to alter the password structure on the PROTECT command. See Password data set for additional information.
ADD | REPLACE | DELETE | LIST
ADD(password_2)
specifies a new password is to be required for access to the named data set. ADD is the default.

If the data set exists and is not already protected by a password, its security counter is set and the assigned password is flagged as the control password for the data set. The security counter is not affected when additional passwords are entered.

REPLACE(password_1, password_2)
specifies that you want to replace an existing password, access type, or optional security information. The first value (password_1) is the existing password; the second value (password_2) is the new password.
DELETE(password_1)
specifies that you want to delete an existing password, access type, or optional security information.

If the entry being removed is the control password (see the discussion following these operand descriptions), all other entries for the data set are also removed.

LIST(password_1)
specifies that you want the security counter, the access type, and any optional security information in the password data set entry to be displayed at your terminal.
password_1
specifies the existing password that you want to replace, delete, or have its security information listed.
password_2
specifies the new password that you want to add or to replace an existing password.
PWREAD | NOPWREAD
PWREAD
specifies the password must be given before the data set can be read.
NOPWREAD
specifies the data set can be read without using a password.
PWWRITE | NOWRITE
PWWRITE
specifies the password must be given before the data set can be written to.
NOWRITE
specifies the data set cannot be written to.
DATA(‘string’)
specifies optional security information to be retained in the system. The value that you supply for string specifies the optional security information that is to be included in the password data set entry (up to 77 bytes).