× 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.



I thought there have been recent posts on this topic - check the archives, search on "qsh". There's some environment variable for this, I think. Oh, yeah, just looked up QShell in InfoCenter:

QIBM_QSH_CMD_ESCAPE_MSG (Send escape messages from QSH CL command) is new to V5R2, so, in honor of Rob, get on V5R2.

Also, there is a file in QSYSIND/SYS(ERRNO) that has the meanings of the various errno values - maybe this corresponds to the second data item in the QSH0002 message.

HTH

Vern

At 10:57 AM 5/6/2003 -0500, you wrote:
Dan,

QSH002 is really just an indication that the return code was "not normal" --
whatever that might mean.  I'm not too sure of the mechanics of error
handling in QSH.  I was just interested in trapping ANY error, so it was a
no-brainer for my application. Sorry I can't say more....


Eric DeLong Sally Beauty Company MIS-Project Manager (BSG) 940-898-7863 or ext. 1863



-----Original Message-----
From: Dan [mailto:dbcemid@xxxxxxxxx]
Sent: Tuesday, May 06, 2003 10:29 AM
To: Midrange Systems Technical Discussion
Subject: RE: error checking following QSH execution


Thanks Eric!


Is it usually enough to know that QSH0002 was issued, or do you want to
interrogate the reason
code and/or error number?  The message shows what the reason codes are, but
they are very vague.
Where are the errno's documented?  Are they set by the Java application?

Specifically, I have been asked to trap errors such as when the spool file
no longer exists when
the java program expects it to be available to create the PDF from it.
Also, any errors when the
email fails to send.

Bottom line:  It would be nice to be able to issue a message "PDF creation
failed because spool
file no longer exists".  Note: I would like to avoid having to test for its
existence before
calling the java program.

--- "DeLong, Eric" <EDeLong@xxxxxxxxxxxxxxx> wrote:
> Dan
>
> QSH throws an *Escape message QSH0002 to return error notification to
OS400.
> Read the HELP for the QSH command, and you will find:
>
> *ESCAPE Messages
> QSH0002     Error found with QSH session, reason code &1, errno &2.



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.