The trlog file contains transaction logging information for ODBC databases, as shown in Table 3-8.
Name |
Type |
Precision |
Description |
---|---|---|---|
AFLD |
SQL_INTEGER |
10 |
Auto increment field (AutoNumber) |
RUN_ID |
SQL_BIGINT |
9 |
Runtime ID – loaded from internal run id number that was passed in as a –id parameter. This run id is also loaded once into the SYS_RUNID system variable, but the value of SYS_RUNID is not used for TRLOG. The run id always numeric from initial parameter value. |
TYP |
SQL_VARCHAR |
1 |
Type flag:
|
RUN_DATE |
SQL_TIMESTAMP |
14 |
Runtime date – loaded from the SYS_DATE and SYS_HHMMSS system variables (SYS_DATE and SYS_HHMMSS are loaded from the system time.) |
ACKBY_DATE |
SQL_TIMESTAMP |
14 |
Date by which an acknowledgement must be made
|
TRANS_CODE |
SQL_VARCHAR |
2 |
Transaction code – loaded from the SYS_TRCODE system variable.
|
TRANS_NAME |
SQL_VARCHAR |
6 |
Transaction name – loaded from the SYS_TRANS system variable, which is loaded from internal transaction code before each log write. Message Type – MSH 00009 |
TPTNER_ID |
SQL_VARCHAR |
35 |
Code used to identify the trading partner Loaded from the SYS_TRADNO system variable.
|
VERSION |
SQL_VARCHAR |
12 |
Version of EDI standard used in the map Loaded from the X12_VERSION system variable.
|
ISA_TYPE |
SQL_VARCHAR |
5 |
EDI standard used by this trading partner in this transaction
|
INTERCHANG |
SQL_VARCHAR |
35 |
Interchange code – loaded from the INT_HEAD_NUM system variable
|
GROUP_NO |
SQL_VARCHAR |
35 |
Group number – loaded from the FUNC_GP_NUM system variable
|
TRANS_NO |
SQL_VARCHAR |
35 |
Transaction number – loaded from the FUNC_ST_NUM system variable
|
APP_RCV_CD |
SQL_VARCHAR |
35 |
Code used to identify the group level receiver on outbound maps and sender on inbound maps. Loaded from the APP_RECV_CODE system variable.
|
APP_SND_CD |
SQL_VARCHAR |
35 |
Code used to identify the group level sender on outbound maps and receiver on inbound maps. Loaded from the APP_SEND_CODE system variable.
|
RECV_CODE |
SQL_VARCHAR |
35 |
Code used to identify the interchange level receiver on outbound maps and sender on inbound maps. Loaded from the RECV_CODE system variable.
|
SEND_CODE |
SQL_VARCHAR |
35 |
Code used to identify the interchange level sender on outbound maps and receiver on inbound maps. Loaded from the SEND_CODE system variable.
|
RECV_QUAL |
SQL_VARCHAR |
4 |
Qualifier that specifies the type of code used to identify the interchange level receiver on outbound maps and sender on inbound maps. Loaded from the RECV_QUAL system variable.
|
SEND_QUAL |
SQL_VARCHAR |
4 |
Qualifier that specifies the type of code used to identify the interchange level sender on outbound maps and receiver on inbound maps. Loaded from the SEND_QUAL system variable.
|
ERRORS |
SQL_BIGINT |
10 |
Total errors – loaded from internal system count of errors between ST and SE. The LOG_ERRS and TOT_ERRS system variables are loaded at same time. LOG_ERRS is the number of errors between ST and SE. TOT_ERRS is the total number of errors for the run. |
STAT |
SQL_VARCHAR |
1 |
Status – loaded from internal count of total # errors. The LOG_STATUS system variable is also loaded at time of write log.
|
BYTE-COUNT |
SQL_BIGINT |
10 |
Count of the number of bytes between ST and SE – will be zero for every ST and increment until SE is written. The LOG_SIZE system variable is loaded with the byte count at time of write log. |
DIR |
SQL_VARCHAR |
3 |
Direction of map
There is no system variable |
FLOW_LEVEL |
SQL_VARCHAR |
5 |
Level of segment in flow – the LOG_LEVEL system variable is loaded at time of write log. |
RECORD_NAM |
SQL_VARCHAR |
10 |
Record name – the LOG_RECNAME system variable is loaded at time of write log. Can be assigned by user in write log if the following conditions are present:
|
RECORD_NO |
SQL_VARCHAR |
6 |
Record number – the LOG_READ_CNT system variable can be assigned by user in write log command. Otherwise the system variable and log are loaded and written at the same time.
|
FIELD_NAME |
SQL_VARCHAR |
15 |
Field name – the LOG_FIELDNAME system variable can be assigned by user in write log command. Otherwise LOG_FIELDNAME and FIELD_NAME log field are loaded at the same time of write log. If mapping is in progress and the field being mapped to or from is a record field, then this field name value is used. If error occurs during a rule, then code attempts to identify the field name involved. This field cannot be written to by the user directly assigning a value to the system variable. |
SEGMENT |
SQL_VARCHAR |
3 |
Segment – can be assigned by user in write log command.
|
SEG_COUNT |
SQL_INTEGER |
10 |
Segment count – can be assigned by user in write log command. Count of segments between ST and SE inclusive. The SEGMENT_COUNT system variable loaded every time segment is written/read from EDI File. |
ELEMENT |
SQL_VARCHAR |
2 |
Element – can be assigned by user in write log command. The LOG_ELEM system variable |
SUBELEM |
SQL_VARCHAR |
2 |
Sub-element – can be assigned by user in write log command. The LOG_SUBELEM system variable |
SEV_CODE |
SQL_VARCHAR |
2 |
Severity code – can be assigned by user in write log command. For all system error messages this code is a 1. For other system non-error messages this code is 0. |
MSG_NO |
SQL_VARCHAR |
5 |
Message number – can be assigned by user in write log command. The LOG_MSG_NO system variable |
MSG_TEXT |
SQL_VARCHAR |
100 |
Message text – can be assigned by user in write log command. The LOG_MSG system variable |
FILENAME |
SQL_VARCHAR |
160 |
For ST segments:
For SE segments and inbound transactions: FILENAME
|
FIELDVAL |
SQL_VARCHAR |
30 |
Field value – the LOG_VALUE system variable. Can be assigned by user in write log command. Otherwise the system variable and log field value are loaded at time of write to the log. If this is an error message, the value of the field code attempts to load the value of the record field, memory variable, or string constant in error. |
USER_IDENT |
SQL_VARCHAR |
35 |
User-defined field – the SYS_USER_FIELD system variable. Log field is loaded from system variable. RTP does not assign values to SYS_USER_FIELD. |
ACK_EXPECT |
SQL_VARCHAR |
1 |
Flag that specifies whether a TA1 interchange-level acknowledgement is expected, only on outbound maps:
The ACK_REQSTD system variable. Inbound – Loaded from EDI Envelope (ISA element 14). |
TR_ACK_TYP |
SQL_VARCHAR |
1 |
Flag that specifies whether a group-level functional acknowledgement is expected, only on outbound maps:
The corresponding system variable is TR_ACK. Outbound – Loaded from tradstat table |
T_P_IND |
SQL_VARCHAR |
1 |
Test/Production Indicator
The TEST_IND system variable Inbound – Loaded from EDI envelope Outbound – Loaded from Tradstat. |
TRANS_CNT |
SQL_INTEGER |
10 |
Transaction count – no system Variable. Inbound/Outbound – This log value is loaded from an internal count of the number of ST-SE transactions read or written between SEG_GS and SEG_GE. |
FILEOFFSET |
SQL_BIGINT |
10 |
Number of Bytes File Offset – no system variable. Written from internal count of number of bytes read (inbound) or number of bytes written to the EDI file. |
RCOUNT |
SQL_SMALLINT |
1 |
Field for Record Manipulation – always set equal to 1 before log write. |
SNDR_ROUTE |
SQL_VARCHAR |
14 (35 for Syntax 4) |
Internal code used to identify the interchange level sender on outbound maps and receiver on inbound maps. Interchange Sender Internal ID – UNB S002 0008 |
SNDR_SUBID |
SQL_VARCHAR |
35 |
Internal sub-code used to identify the interchange level sender on outbound maps and receiver on inbound maps. (EDIFACT Syntax 4 only) Interchange Sender Internal Sub-ID – UNB S002 0042 |
RCVR_ROUTE |
SQL_VARCHAR |
14 (35 for Syntax 4) |
Internal code used to identify the interchange level receiver on outbound maps and sender on inbound maps. Interchange Receiver Internal ID – UNB S003 0014 |
RCVR_SUBID |
SQL_VARCHAR |
35 |
Internal sub-code used to identify the interchange level receiver on outbound maps and sender on inbound maps. (EDIFACT Syntax 4 only) Interchange Receiver Internal Sub-ID-UNB S003 0046 |
APPL_REF |
SQL_VARCHAR |
14 |
Name of the application messages contained in the EDIFACT UNB envelope. Application Reference – UNB S005 0026 |
PROC_PRIOR |
SQL_VARCHAR |
1 |
Processing Priority Code – UNB S005 0029 |
COMM_AGM |
SQL_VARCHAR |
35 |
Interchange Agreement Identifier – UNB S005 0032 |
APP_SND_QL |
SQL_VARCHAR |
4 |
Qualifier that specifies the type of code used to identify the trading partner at the group level – as the sender on outbound maps and as the receiver on inbound maps. Application Sender ID/ID Code Qualifier – UNG S006 0007 |
APP_RCV_QL |
SQL_VARCHAR |
4 |
Qualifier that specifies the type of code used to identify the trading partner at the group level – as the receiver on outbound maps and as the sender on inbound maps. Application Receiver ID/ID Code Qualifier – UNG S007 0007 |
ASSOC_CODE |
SQL_VARCHAR |
6 |
Association Assigned Code –
|
APP_PSWD |
SQL_VARCHAR |
14 |
Application Password – UNG S008 0058 |
CLIST_VER |
SQL_VARCHAR |
6 |
(EDIFACT Syntax 4 only) Code List Directory Version Number – UNH S009 0110 |
MSG_TYPE |
SQL_VARCHAR |
6 |
(EDIFACT Syntax 4 only) Message Type Sub-Function Identifier – UNH S009 0113 |
RPT_NO |
SQL_VARCHAR |
2 |
(X12 version 40020 and later) Repeat Number – this field holds the number of a repeating element |
ST03 |
SQL_VARCHAR |
35 |
Implementation Convention Reference – ST 03 Value to be used as the third element in the transaction on outbound X12 processing. |