Error handling
After a command finishes processing, a return code is displayed or logged to provide the success or failure of the command. The pdadmin command has the following return code values:
- 0
- The command that completed successfully.
- 1
- The command failed. When a command fails, the pdadmin command displays a description of the error and an error status code in hexadecimal format (for example, 0x14c012f2).
See Error messages in the IBM Knowledge Center. This reference provides a list of the ISAM error messages by decimal or hexadecimal codes.
For information about how to use the message number associated with a message to display only the descriptive text, see errtext.
- Return codes for a single command
A single command is normally typed from a command prompt such as a DOS command prompt, Korn shell prompt, and C shell prompt. Single command mode does not automatically display the 0 or 1 return code values; the operating system must be queried for the return code value.- Return codes for an interactive command
Interactive command mode does not automatically display the 0 or 1 return code values. Also, we cannot follow an interactive command with the AIX , Linux , and Solaris echo or the Windows errorlevel command.- Return codes for multiple commands
We can use a text file containing pdadmin commands to run those commands in a single pdadmin invocation.
Parent topic: pdadmin commands