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



Hi, Pete:

Let me clarify that last reply ...

(I pressed Send before I was quite done typing ... I was still composing my thoughts, and decided to run a quick test to verify this.)

If you run DSPMSG * OUTPUT(*PRINT) and look at your spool files, you will see that the DSPMSG command uses a file named QPDSPMSG.

So, you can do this:

CRTPF FILE(QTEMP/QPDSPMSG) RCDLEN(132) LVLCHK(*NO)

OVRDBF FILE(QPDSPMSG) TOFILE(QTEMP/QPDSPMSG)

DSPMSG MSGQ(*WRKUSR) OUTPUT(*PRINT)

DLTOVR FILE(QPDSPMSG)

DSPPFM FILE(QTEMP/QPDSPMSG)


Then, in effect, you have an "outfile" (of sorts).

This is a very old trick from the System/38 CPF days; many commands that do not directly support an *OUTFILE can do this.

Does that help?

Mark S. Waterbury

> On 4/12/2011 5:45 PM, Pete Helgren wrote:
I guess I thought that API's were more efficient by design, but you are
right, I could just use dspmsg, although if it had an *OUTFILE option it
would be more appealing. I could dump to print file and then parse and
then output to an IFS file (which is where I want to end up).

Pete Helgren
Value Added Software, Inc
www.asaap.com
www.opensource4i.com


On 4/12/2011 1:16 PM, Scott Klement wrote:
Hi Pete,

Are you looking for QMHLSTM? Or QMHRCVM? Or QGYOLMSG?

I'm really not sure what you mean by "do what DSPMSG does". If you want
to do what DSPMSG does, why not just call DSPMSG?


On 4/12/2011 1:20 PM, Pete Helgren wrote:
I noodled around a bit and downloaded what I thought would be good
examples of an API that would basically do what DSPMSG does but the
examples I stumbled across are retrieving job messages from a specific job.

What API('s) are involved in the DSPMSG command? I am looking for an
ILE RPG example (Free format would be nice) that would basically do what
DSPMSG does with the option to filter on the message queue, message
types and severity. I plan to dump the results into a file (which I know
how to do). I am sure there are tons of examples out there but my
Googling turned up little of value.

TIA,


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.