Previous Topic: Default ProcessingNext Topic: Building on z/OS


Customizing the Exit

Copy the default exit from the CA Gen CEHBSAMP library to one of your libraries. The member name is TIRHELPX. The skeleton includes sample code, as comments, for invoking the CA Gen Help system. This code may be uncommented for use with that system, or used as an example for invoking other help applications.

The Dialog Manager provides an error message parameter to the Help exit and a parameter list that contains the following information:

If the cursor is on a field that has a field help identifier (helpid), the Dialog Manager also provides the following information:

TIRHELPX calls User Exit TIRMTQB. TIRMTQB finds a message number in the runtime error message table and returns the corresponding message and its length. If the message number is not in the table, TIRMTQB returns a default message. For more information, see Runtime Message Table Exit in this chapter.

TIRHELPX can use the provided data to invoke a user-written help system. TIRHELPX must set a return code to instruct the Dialog Manager which action to take. The Dialog Manager can either terminate the transaction and not redisplay the screen, or redisplay the screen with the contents of the message parameter as the screen’s error message.