How to retrive only MSGW status in AS/400 through CL?

5 pts.
Tags:
AS/400
CL
MSGW
How can I retrive only a MSGW status in AS/400 through CL?

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: 5  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
  • CharlieBrowne
    Thanks for coming to ITKE.
    Can you give us more information as the problem you are trying to solve? Some jobs that are @ MSGW are OK like that depending on what you are all doing on your iSeries.
    I'm guessing you may be trying to monitor QSYSOPR for messages. If so, the best way is to use APIs. You can search this site for examples of that.
    Please let us know if you have more questions that we can help you with.
    41,380 pointsBadges:
    report
  • WoodEngineer
    We are doing what I suspect you wish to do.  As Charlie Brown recommends, we use an API to retrieve QSYSOPR messages and look for MSGW status.  If found, an e-mail is sent to a couple of key people in IT.  

    There are indeed jobs which are in MSGW as a normal part of their processing, such as jobs which are waiting for data to arrive at a data queue.  You will need a technique to skip such exceptions.
    6,765 pointsBadges:
    report
  • JohnD2
    Are these API's something already on the 400 or are they something you purchase?
    15 pointsBadges:
    report
  • Splat
    APIs are part of the system - no additional purchase is required.
    7,565 pointsBadges:
    report
  • ToddN2000
    Are you looking for messages that need a reply from a message queue or any job running in a MSGW status? There have been some solutions mentioned already. What is the purpose of the request? There may be an easier solution to complete your task.
    15,080 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