Check Password (CHKPWD)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Check Password (CHKPWD) command checks a password for the user running the command and determines its validity. If the password is correct, no message is sent. If the password is not correct, an error message is sent.

The password is the security key that allows a user to sign on to the system.

Top

Parameters

Keyword Description Choices Notes
PASSWORD User password Character value Required, Positional 1
Top

User password (PASSWORD)

Specifies a password value that is checked for validity.

This is a required parameter.

character-string
Specify the password value to be checked.
Top

Examples

CHKPWD   PASSWORD(JOHNJONES)

This command checks whether the current password is JOHNJONES.

Top

Error messages

*ESCAPE Messages

CPF2362
Password not correct.
CPF2363
Only 1 attempt left to check password.
CPF2364
Maximum number of attempts to check password reached.
Top