The IBM i OS will send two parameters to your exit program:
An exit point can have multiple "formats" which describe the different ways that the OS calls the program.
Each exit point is subject to OS rules about when it is called.
Example - checking a password
The input parameter will include the user profile, the old password, the new password and other information depending on the level of the IBM i OS. The password information is passed in plain text, so the exit program has to be sensitive to this. Passwords should NEVER be stored in a database or data area for any reason as this would create a serious security exposure. It is also important to know that the exit program will only be called when all other password checks in the IBM i OS have been satisfied. If another rule is not met, the exit program will not be called.
Once the program has been created and tested it needs to be registered to the IBM i OS. Refer here for help with registering exit programs.
The password validation exit is called QIBM_QSY_VLD_PASSWRD. There are two formats. Plan on coding for both:
Refer to the IBM i documentation for details about this exit point.
The easiest way to find the relevant documentation for any exit point is to Google "IBM i" plus the format code for a given exit point.
BROWSE KISCO U