Check Password (CHKPWD)
Check Password (CHKPWD)
Where allowed to run: Interactive environments (*INTERACT *IPGM *IREXX *EXEC)
Threadsafe: No
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.
Parameters
| Keyword | Description | Choices | Notes |
|---|---|---|---|
| PASSWORD | User password | Character value | Required, Positional 1 |
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.
Examples
CHKPWD PASSWORD(JOHNJONES)
This command checks whether the current password is JOHNJONES.
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.