25 pts.
 controlling C D I R options in the workstation message queue.
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:
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
Last Wiki Answer Submitted:  March 16, 2010  1:02 am  by  TomLiotta   108,240 pts.
All Answer Wiki Contributors:  TomLiotta   108,240 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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