Troubleshooting
Problem
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/shell.cat 19
Note: The last number is 19; this is from the message 001-0019.
dspmsg -n /qibm/proddata/os400/shell/mri2924/shell.cat 19
Note: The last number is 19; this is from the message 001-0019.
For example:
> dspmsg -n /qibm/proddata/os400/shell/mri2924/shell.cat 19
Error found searching for command %1$s. %2$s
$
This will show you the text of the message ID specified. In this example the text is "Error found searching for command"
> dspmsg -n /qibm/proddata/os400/shell/mri2924/shell.cat 19
Error found searching for command %1$s. %2$s
$
This will show you the text of the message ID specified. In this example the text is "Error found searching for command"
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
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":"LOB68","label":"Power HW"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m0z0000000CbFAAU","label":"Data Access-\u003EQShell"},{"code":"a8m0z0000000CHQAA2","label":"Qshell"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions"}]
Historical Number
333313199
Was this topic helpful?
Document Information
More support for:
IBM i
Component:
Data Access->QShell, Qshell
Software version:
All Versions
Operating system(s):
IBM i
Document number:
639227
Modified date:
18 November 2024
UID
nas8N1016156
Manage My Notification Subscriptions