× 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 wrote this utility some ten years ago. Recently I needed it again and
tried to compile the C code. I got it to compile but was not allowed to
access the MSGF object due to the fact the program was not a system-state
program. IBM recommended that I switch mine to using the API that you
mentioned--but I just didn't bother. I mean a message file is nothing more
than an independent index object with the MSGID as the key to the index. 
I do have the C code, but again, it doesn't "work" anymore. :(

-Bob Cozzi
www.RPGxTools.com
If everything is under control, you are going too slow.
- Mario Andretti


-----Original Message-----
From: mi400-bounces@xxxxxxxxxxxx [mailto:mi400-bounces@xxxxxxxxxxxx] On
Behalf Of Thomas Raddatz
Sent: Friday, March 11, 2005 1:45 PM
To: MI400@xxxxxxxxxxxx
Subject: [MI400] MI replacement for QMHRTVM API

Hi All,

I am looking for a fast replacement for the QMHRTVM API. Probably one of you
MI 
guys can help me.

I need a fast solution to search for a message help text (no second level
text). 
The utility that I have written and that we use in our company uses the
QMHRTVM 
API. However it is somewhat slow. Spinning, let us say 20 times, through
8000+ 
message descriptions takes some minutes.

I would greatly appreciate an utility (or snip of code) that can search a 
message file for a given message text faster. The utility should return the 
message ID. It would be great if there was an option to ignore case or not.

Of course I could try to figure out the internal structure of a message file
and 
then search the associated space by RPG. But that would be a lot of work. I 
already do that for binding directories. Probably someone wants to exchange 
code? ;-)

Thanks.

Thomas Raddatz.

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





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.