× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Larry,

They are not actually "reason codes" in the sense you are thinking of. They are "exit status". All Unix programs have the ability to return an integer when they end. The programmer who writes this software can return any integer they wish.

The most common Unix convention is to return 0 to indicate success, and anything else to indicate failure.

But, the values they can return vary widely from program-to-program, any one can write a program to be run in Unix, and each program can return whatever they wish. So there is no way to get a list of them all on a general basis.

You could potentially get a list for a particular program if that program has documentation showing what the expected exit statuses may be.

But, most unix programmers just check for 0=success, (or non-zero is failure) and that's all.

-SK



On 6/7/2015 10:59 PM, DrFranken wrote:
Right but the thing returns reason codes with the QSH0005 number. I
can't find the definition of the reason codes.

I don't need it any longer, though, as I found a script from Scott
Klement that lets me do what I need using expect and environment
variables. Very cool I must say.

- Larry "DrFranken" Bolhuis

www.frankeni.com
www.iDevCloud.com
www.iInTheCloud.com

On 6/7/2015 12:48 PM, Jack Kingsley wrote:

Maybe??

When the command ends, STRQSH sends one of three messages:

- QSH0005 when the process running the command ends normally. The
message includes the exit status of the process.
- QSH0006 when the process running the command ends by signal. The
message includes the signal number.
- QSH0007 when the process running the command ends by exception.

By default, the messages are sent as completion messages. You can have
the
messages sent as escape messages by setting the environment variable
QIBM_QSH_CMD_ESCAPE_MSG. When the value of the environment variable is
"Y",
the QSH0006, and QSH0007 messages are always sent as escape messages and
the QSH0005 message is sent as an escape message if the exit status is
greater than zero.


On Sun, Jun 7, 2015 at 11:36 AM, DrFranken <midrange@xxxxxxxxxxxx> wrote:

Where are these defined? Try as I might finding them evades me......

--

- Larry "DrFranken" Bolhuis

www.frankeni.com
www.iDevCloud.com
www.iInTheCloud.com
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.