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



When you do the dsplog you can hit F10 and select only certain message 
id's.  This should help your process run faster.

Rob Berendt
-- 
"They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety." 
Benjamin Franklin 




"Mike Tobey" <Mike.Tobey@xxxxxxxxxxxxxxxxx> 
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
12/01/2003 03:49 PM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
"RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx>
cc

Fax to

Subject
RE: API to retrieve messages from history log






Thanks Tom,

I just looked in the QHST* files and they look scarier than the spool 
file.  This to be a stand alone process to be run daily so reading through 
the spool file shouldn't be too bad.  If I first check against the message 
ID and the scan the text of the appropriate messages I should be fine.

Thanks again to everyone for their ideas.

Mike.

-----Original Message-----
From: Tom Liotta [mailto:qsrvbas@xxxxxxxxxxxx]
Sent: Monday, December 01, 2003 2:35 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: RE: API to retrieve messages from history log


rpg400-l-request@xxxxxxxxxxxx wrote:

>   7. API to retrieve messages from history log (Mike Tobey)
>
>Does anyone know of an API that can be used to retrieve messages from the 
history log?

Mike:

Your major problem is that the "messages" you're after probably will _not_ 
be in the QHST message queue. Most likely they'll be in one of the QHSTxxx 
physical files in QSYS, and there they won't be "messages" but just 
records. No "API" needed, just open the files and read them.

The secondary problem is flushing messages that _might_ still be in the 
QHST message queue out to the PFs. I vaguely recall that a technique 
exists for this, but I'm no longer certain what it was. Maybe something 
like execution of DSPLOG caused the flush, but not sure. Perhaps this will 
jog memories from someone else, perhaps experimentation is in order, or 
perhaps it's documented.

Tom Liotta

-- 
Tom Liotta
The PowerTech Group, Inc.
19426 68th Avenue South
Kent, WA 98032
Phone  253-872-7788 x313
Fax    253-872-7904
http://www.powertech.com


__________________________________________________________________
McAfee VirusScan Online from the Netscape Network.
Comprehensive protection for your entire computer. Get your free trial 
today!
http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397

Get AOL Instant Messenger 5.1 free of charge.  Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455
_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-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.