Trace Exit Program for Trace TCP/IP Application command


  Required Parameter Group:


  QSYSINC/H member name: ESCWCHT

Note 1: Valid only when watch for trace event facility is enabled (WCHMSG or WCHLICLOG or WCHPAL parameters were specified)

The Trace TCP/IP Application (TRCTCPAPP) command has the capability to call a user-written program, if specified in the TRCPGM parameter. This user written program will be called in the following circumstances:

For SET(*ON), the trace program will be called:

For SET(*OFF), the trace program will be called:

For SET(*END), the trace program will be called:

Also, the Trace TCP/IP Application (TRCTCPAPP) command has the capability to watch for a specific event and end the trace when this event occurs. An event can be a message being sent to a specific message queue, history log or job log; or a LIClog, or a PAL entry. PAL stands for Product Activity Log which shows errors that have occurred (such as in disk and tape units, communications, and work stations). If specified in the TRCPGM parameter, the watch for trace event facility will call a user-written program at the moments specified in the Trace option setting parameter.

See the online help for more information on the TRCTCPAPP command.


Authorities and Locks

None.


Required Parameter Group

Trace option setting
INPUT; CHAR(10)

The reason indicating the moment at which the user-written program was called. The possible values are:


Application.
INPUT; CHAR(10)

The possible values for the "Application" parameter are the same as the values for the APP parameter on the TRCTCPAPP command. Ignored by watch for trace event facility.

Error detected
OUTPUT; CHAR(10)

Indicates if the trace event facility should stop or continue running, or if an error on the user-written program was found. The possible values are:

  • *CONTINUE1 - The trace and the watch for trace event facility.
  • *STOP1 - The trace and the watch for trace event facility will be ended.
  • *ERROR - Error detected by customer trace program.

Comparison data
INPUT; CHAR(*)

The format of the trace information depends on the Trace option setting causing the exit program to be called. The format of the Comparison data is as follows if the Trace option setting is *MSGID:


The format of the Comparison data is as follows if the Trace option setting is *LICLOG or *CMPDATA:


The format of the Comparison data is as follows if the Trace option setting is *ON, *INTVAL or *WCHTIMO:


The format of the Comparison data is as follows if the Trace option setting is *PAL:


Field Descriptions

Device name. The name of a physical device or program that has an entry in the log.

Device type. The number or word used to identify a product.

Length of trace information. The length of the Comparison data parameter passed to the user-written exit program.

Length of comparison data.  The length of the user specified text to be compared against the event data.

LIC Log identifier. The LIC Log entry identifier of the LIC Log that occurred.

LIC Log major code. The major code of the LIC Log that occurred.

LIC Log minor code. The minor code of the LIC Log that occurred.

LIC Log comparison data. The user specified text string used to compare against the entry data of the watched for log entry.

Log identifier. The unique identifier that ties together all data related to a single error condition.

Message ID.  The identifier of the message that occurred.

Message comparison data. The user specified text string used to compare against the entry data of the watched for message.

Start of changeMessage watched. The message that ocurred. The following special values can be passed:

End of change

Model. The numbers or letters used to identify the feature level of a product with a given type (for example, Model A or Model 1).

Offset to comparison data.  The offset to the field that holds the comparison data.

PAL timestamp. The timestamp of when the PAL entry was added. The format for this field is the system time-stamp format. The Convert Date and Time Format (QWCCVTDT) API can be used to convert a time-stamp value to character format.

Reference code.The code that identifies the unique condition for logging the PAL entry.

Resource name. The name of a physical device that has an entry in the log. A resource name is assigned at first by the system, but may have been changed to a new value by a user.

Secondary code. The code for the failing condition (for example, IOP return code, processor step code, program return code, or major minor code).

Sequence.The numbers assigned to the entries in the log that indicate the sequence in which the entries were added. The highest number is the most recent.

Serial number. The number assigned to a part or machine type at the time of manufacture.

System reference code. The code that identifies a unique logging condition. The system reference code is made up of the first four digits of the translate table ID followed by the four digits of the reference code.

Table ID.The identifier of the table that identifies a group of reference codes.


Related Information

See the Trace TCP/IP Application (TRCTCPAPP) command for more information.



Exit program introduced: V5R3

[ Back to top | Communications APIs | APIs by category ]