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


While QCAPCMD was interesting it did not solve the problem. At first I thought that QCAPCMD would actually generate the request msg but then realized that I would do that. Once I sent a request message and received the message key back I used that. I don't need QCAPCMD and can still use QCMDEXC. Once the error is fired I use the key from the send program message to start getting messages from the queuel. I also tried to use the key value sent back in RETEXCPD but the key doesn't work unless the request message had been sent previously. I not thrilled with this overhead from the send, receive and then qcmdexc just to get the actual error if one occurs but don't know another way.

I suppose I could just surf the qjobmsgq directly but while faster will even add more complexity to the problem which is now solved. Just curious - I'm seeing the messages stored in the user's qjobmsgq but un-resolved. Are they actually stored resolved anywhere or do the dspjoblog pgms resolve them first before display.


From: "Dennis Lovelady" <dennislovelady@xxxxxxxxxxxxx>
Reply-To: MI Programming on the AS400 / iSeries <mi400@xxxxxxxxxxxx>
To: "MI Programming on the AS400 / iSeries" <mi400@xxxxxxxxxxxx>
Subject: Re: [MI400] QCMDEXC errors
Date: Wed, 17 Mar 2004 09:44:11 -0500

From: "Ted Slate" <tslateone@xxxxxxxxxxx>
Sent: Wednesday, March 17, 2004 9:06 AM

> I'm trying to get the error message occurring after a QCMDEXC call and > failure. <snip> > Unfortunately, the only message I can seem to trap are the ones from > prompted calls. For example, if I call RPG pgm "A" while "A" is in my stack

I would suggest using QCAPCMD instead; opens up a number of possibilities.
Dennis Lovelady
"There are only two lasting bequests we can hope to give our children. One
of these is roots; the other, wings."
        - Hodding Carter

This is the MI Programming on the AS400 / iSeries (MI400) mailing list
To post a message email: MI400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/mi400
or email: MI400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/mi400.

Get tax tips, tools and access to IRS forms ? all in one place at MSN Money! http://moneycentral.msn.com/tax/home.asp

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2023 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.