How to Retrieve Message File

1355 pts.
Tags:
RPGLE Program
Hi, i am posting new question for how to retrive message files when i given specific *lib or *allĀ 

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 14  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    ...how to retrive message files when i given specific *lib or *all Please describe what you mean by "retrive message files". Do you only want to retrieve a list of message files? Or do you want to retrieve message descriptions from a message file? Or is there something else you need to do? Tom
    125,585 pointsBadges:
    report
  • 9783444184
    Thanks TomLiotta, I have creating a program in which i want to retrieve a list of message files in subfile.
    1,355 pointsBadges:
    report
  • 9783444184
    just like WRKMSGF command
    1,355 pointsBadges:
    report
  • CharlieBrowne
    Can you tell us why you want to write a program to do that when the commands wo work with message files already exist?
    41,370 pointsBadges:
    report
  • philpl1jb
    Well I suppose you can get a list by using DSPOBJD to an outfile. And I'm sure Tom will have a nifty API which can also get your list. But first, as Charlie Browne said, look at the WRKMSGF command. Phil
    49,590 pointsBadges:
    report
  • TomLiotta
    I probably would use the List Objects (QUSLOBJ) API to build the list, but DSPOBJD to an *OUTFILE should work fine. It can easily be tested standing alone outside of any program. Tom
    125,585 pointsBadges:
    report
  • 9783444184
    Hi Sorry to all, i m new in as400 actually i want to search a message in message file which is exist in message file or not.because some time we don't remember message id then we add new message in message file that the problem. if you have any idea about this please suggest me
    1,355 pointsBadges:
    report
  • TomLiotta
    ...actually i want to search a message in message file which is exist in message file or not. That becomes much more complicated. If you have a message file that's small, the easiest thing to do is run this command:
    DSPMSGD RANGE(*ALL) MSGF(<mymsgf>) DETAIL(*BASIC) OUTPUT(*PRINT)
    Then you can search through the spooled output. If the message file is too large, you'll need to call a couple APIs to retrieve the attributes of each message description and to scan the text. Message descriptions can be retrieved with the Retrieve Message (QMHRTVM) API. Scanning the retrieved text for words or phrases would be done in various ways depending how you do your programming. Tom
    125,585 pointsBadges:
    report
  • 9783444184
    hi thanks tom, Do you have any sample example for because i am new in API
    1,355 pointsBadges:
    report
  • 9783444184
    hi All, Please guide me qmhrtvm in api how to code please give me one sample code
    1,355 pointsBadges:
    report
  • 9783444184
    [...] 2. TomLiotta, CharlieBrowne and Philpl1jb are trying to solve 9783444184’s problem of retrieving a list of message files in a subfile. [...]
    0 pointsBadges:
    report
  • 9783444184
    Hi Tom, I have completed some part of my program in which i fetched msgfile data to physical file through qmhrtvm now i want to search text in my physical file column in that column contained msg description.
    1,355 pointsBadges:
    report
  • bvining
    You might be interested in a series of articles I wrote about a year ago for MC Press. The last one, found here provides a search function across the message text of retrieved messages. Earlier articles (linked to by the article referenced above) demonstrate retrieving messages, changing messages, etc. Bruce Vining
    6,465 pointsBadges:
    report
  • TomLiotta
    ...now i want to search text... Bruce Vining's articles in the above comment are your best direction right now. I have my own functions for this, but explanations of the code would be lengthy (and the code is lengthy enough). Since Bruce has already written excellent articles, I can't think of a better place to look. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following