A CMD source has only a rudimentary ability to perform validation. Typically, end-user business rules are applied by a validation program. See CRTCMD VLDCKR (). VCP is very similar to CPP, unless the command performs validation, your VCP sends the * DIAG message with detailed reason information to the caller, and CPF0002 * ESCAPE to the caller to tell him that the command is not working.
source share