Auto reply to CL-created messages

10 pts.
Tags:
CL
CL Program
SNDPGMMSG
SNDUSRMSG
Is there a way to automatically reply to either the SNDUSRMSG or SNDPGMMSG commands?

Software/Hardware used:
iSeries

Answer Wiki

Thanks. We'll let you know when a new response is added.

<b>Only if you write a program</b>

Discuss This Question: 4  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
    Can you give us an idea of what you are trying to accomplish? You may be able to do what you want by using the SNDMSG command. You can send messages to a specific message queue and then have a program running that is doing RCVF for that queue. There is no overhead as it waits for a message. Then when one is received, it can read it a and your program can have logic to determine what type of automated action to take.
    41,380 pointsBadges:
    report
  • TomLiotta
    More information is needed, especially what OS version/release are you coding for? At i 6.1 and later, you might want to create and register an Inquiry Handling Exit Program. At earlier releases (or current ones), you might want to code your own message monitor programming. Please describe some specific circumstances. Tom
    125,585 pointsBadges:
    report
  • deepu9321
    You can set a default reply by using SNDUSRMSG command. But, not Auto Reply. The message was intended for Notifying the user, and He should be able to give reply for that message. Will you give the scenario for which you are expecting auto-reply. Pradeep.
    4,290 pointsBadges:
    report
  • pdraebel
    You will alway shave to have a program running that does the answering part. Answering to an Inquiry Message is usually done by sending a reply message to the correct message queue and message key. There are a lot of scenarios possible with messages, it just depends what your business case is how to proceed.
    3,230 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