This statement encrypts the specified file password and enters the result in the password table of the task. The encrypted password is also output to SYSOUT.
Purpose of the statement
A protected file was taken from a system with password encryption and added to a system without password encryption (e.g. with ARCHIVE). The catalog entry of the file contains an encrypted password. The file can consequently only be accessed by someone who specifies the encrypted password.
ENCPASS enters the specified password in the password table in encrypted form, thus enabling the user to access the file protected by the password.
Format
ENCPASS / EP |
fpassword |
Operands
fpassword
File password consisting of 1 to 4 bytes (see “Format conventions for passwords” (Passwords)).
Example
/start-password ENTER COMMAND NOW : *encpass c'susi' PASSWORD X'9A41632A' *end PASSWORD : NORMAL END /