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



The CL Programming manual discusses how to process the QHST* files in the
chapter Working with Messages.  It includes how to make sure the files are
current (DSPLOG with a fictitious message identifier), how to make sure you
process the files in chronological order (use the text of the file object),
and the file layout for program access.   This approach (using the files)
should beat out using the printed reports as an input to a program in terms
of new release considerations, language translations, etc.

Bruce



                                                                                
                                                    
                      qsrvbas@xxxxxxxxxx                                        
                                                    
                      et (Tom Liotta)           To:       rpg400-l@xxxxxxxxxxxx 
                                                    
                      Sent by:                  cc:                             
                                                    
                      rpg400-l-bounces@m        Subject:  RE: API to retrieve 
messages from history log                             
                      idrange.com                                               
                                                    
                                                                                
                                                    
                                                                                
                                                    
                      12/01/2003 02:35                                          
                                                    
                      PM                                                        
                                                    
                      Please respond to                                         
                                                    
                      RPG programming on                                        
                                                    
                      the AS400 /                                               
                                                    
                      iSeries                                                   
                                                    
                                                                                
                                                    
                                                                                
                                                    




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.






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