Exit Program for Text Area Data


  Required Parameter Group for Single Parameter Interface:


  QSYSINC Member Name: EUITAEX

  Required Parameter Group for Multiple Parameter Interface:

  Interface Level 1:

  Interface Level 2:

  No additional parameters are required for interface level 2.

The exit program can update the data in a text area every time a panel is displayed and returns control to the UIM through a normal return. The UIM will then finish formatting the panel and display it. The area formatted by the application is displayed as defined by the contents of the dialog variable or by the data pointed to by the dialog variable.

A text area exit program can be specified on the USREXIT attribute of the text area (TEXT) tag. This attribute specifies the name of a dialog variable identifying the program to call. The UIM calls the program when:

If the dialog variable identifying the program to call is null for a pointer variable or blanks for a character variable, escape message CPF6A14 is sent to the calling program. If the exit program returns control normally, any messages sent to the UIM by the exit program are displayed on the message line.

The UIM does not reevaluate conditions after the text area exit program is called; therefore, changing dialog variables that affect conditions has no effect during this display of the panel.

The exit and cancel flags for the job are not reset before the exit program is called and the flag are not checked after the exit program returns control to the UIM. Therefore, the exit and cancel flags should not be turned on by the exit program.


Authorities and Locks

None.


Required Parameter Group

Text area data information
INPUT; CHAR(*)

A structure that provides information related to the user request. For details, see Single Parameter Structure.

Type of call
INPUT; BINARY(4)

This parameter must be set to the following value:


Application handle
INPUT; CHAR(8)

The application handle of the application that is currently being processed by the UIM.

Panel name
INPUT; CHAR(10)

The name of the panel that is currently being processed by the UIM.

Function key pressed
INPUT; BINARY(4)

The function key that is pressed:


Function key qualifier
INPUT; BINARY(4)

Provides information about why the user exit program is being called.


Text area width
INPUT; BINARY(4)

The width of the text area within this panel to be formatted.

Text area depth
INPUT; BINARY(4)

The depth of the text area within this panel to be formatted.

Panel bidirectional orientation
INPUT; CHAR(1)

Identifies the attribute orientation of the panel group. Here are the possible values:


Device code page
INPUT; BINARY(4)

The number for the code page of the requester's display device.


Single Parameter Structure

For detailed descriptions of the fields in this table, see Field Descriptions.



Field Descriptions

Application handle. The application handle of the application that is currently being processed by the UIM.

Device code page. The number for the code page of the requester's display device.

Function key pressed. The function key that is pressed:


Function key qualifier. Provides information about why the user exit program is being called.


Panel bidirectional orientation. Identifies the attribute orientation of the panel group. Here are the possible values:


Panel name. The name of the panel that is currently being processed by the UIM.

Reserved. A reserved field.

Structure level. The interface level supported by this structure, indicating which fields and values are available for the current interface level.

Text area depth. The depth of the text area within this panel to be formatted.

Text area width. The width of the text area within this panel to be formatted.

Type of call. This field must be set to the following value:




Exit program introduced: V3R1

[ Back to top | User Interface Manager APIs | APIs by category ]