controlling C D I R options in the workstation message queue.

25 pts.
Tags:
AS/400 DB2
Hello All,

Could youplease tell me how to control the C D I R options via programs. I mean that i do not want R to appear in screen and the functionality is automatically done . Can it be possible. If yes please tell in detail and if not then what is the reason.

 



Software/Hardware used:
AS400
ASKED: March 15, 2010  4:04 PM
UPDATED: March 16, 2010  1:03 AM

Answer Wiki

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

You control the available responses by having programs handle errors. When the programming is poorly done and errors are not handled, the system’s default error handlers are called.

That is, the <i>correct</i> way is to monitor for errors in the program code and to have the program run instructions that are appropriate for whatever errors arise.

Since errors can be essentially anything, there is no way for us to tell you how to handle an inquiry message. It’s perfectly possible to handle a message automatically and thereby start an infinite loop, especially if the automatic response is ‘R’etry.

If you want to restrict a particular reply, you can register <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/apis/XREPLY.htm”>a program that you write</a> against the QIBM_QMH_REPLY_INQ exit point. And you can write <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/apis/XDEFAULT.htm”>your own default handlers for *ESCAPE messages</a> as well — those could help avoid having selected inquiry messages from appearing on workstations, but wouldn’t be easy to get to ‘automatically handle’ the actual problems.

The kinds of inquiry messages that you’re asking about are ones that indicate a significant error condition. The only real way of handling them is by coding for those conditions in the programs.

Tom

Discuss This Question: 1  Reply

 
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
  • Bigdumbo
    Hello All, Could youplease tell me how to control the C D I R options via programs. I mean that i do not want R to appear in screen and the functionality is automatically done . Can it be possible. If yes please tell in detail and if not then what is the reason.
    25 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