Validity checking

The system performs validity checking on commands. You may also write your own validity checking program although it is not required.

The validity checking performed by the system ensures that:

The system performs validity checking when:

If you need more validity checking than the system performs, you can write a program called a validity checking program or you can include the checking in the command processing program. You specify the names of both the command processing and validity checking programs on the CRTCMD command.

If a command has a validity checking program, the system passes the command parameter values to the validity checking program. This happens before the system calls the command processing program. A validity checking program runs during syntax checking during the following conditions:

When the program finds an error, the user receives a message to allow immediate correction of errors. The command processing program can assume that the data that is passed to it is correct.

Related concepts
Use command-related APIs
Related tasks
Write a validity checking program