IBM Support

How to Find Qshell Error Message Text.



This document explains how to find the text of a message, such as message 001-0019. It also lists the meanings of command exit statuses.

Resolving The Problem

To find the text of a Qshell message, such as message 001-0019, open a Qshell session (qsh) and execute the following command:

dspmsg -n /qibm/proddata/os400/shell/mri2924/ 19

Note: The last number is 19; this is from the message 001-0019.

This will show you the text of the message ID specified. To get the message with the text and values, press F6 (print) in the failing Qshell session to spool out the data in standard output.

Command exit status

Each command has an exit status that can influence the behavior of other shell commands. By convention, a command exits with zero for normal or success, and non-zero for failure, error, or a false indication. The documentation for each command describes the exit codes it returns and what they mean. The exit status can be one of these values:

o 0 for success.
o 1 to 125 for failure.
o 126 when qsh finds the command but it is not executable.
o 127 when qsh cannot find the command.
o 128 and above when the command is ended by a signal. The value is 128 plus the signal number.

[{"Type":"MASTER","Line of Business":{"code":"LOB08","label":"Cognitive Systems"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"6.1.0"}]

Historical Number


Document Information

Modified date:
18 December 2019