Railinc
/
Terminal Operations and Intermodal Ramp Activity
  • Specification
  • EDI Inspector
Stedi maintains this guide based on public documentation from Railinc. Contact Railinc for official EDI specifications. To report any errors in this guide, please contact us.
Go to Stedi Network
Railinc logo

X12 322 Terminal Operations and Intermodal Ramp Activity

X12 Release 8030

This X12 Transaction Set contains the format and establishes the data contents of the Terminal Operations and Intermodal Ramp Activity Transaction Set (322) for use within the context of an Electronic Data Interchange (EDI) environment.
The transaction set can be used to provide all the information necessary for a terminal operation, port authority or intermodal ramp to communicate terminal and intermodal ramp activities (e.g., "ingates" and "outgates") to authorized parties to a shipment.

Delimiters
  • ~ Segment
  • * Element
  • > Component
  • ^ Repetition
EDI samples
  • None included
View the latest version of this implementation guide as an interactive webpage
https://www.stedi.com/app/guides/view/railinc/terminal-operations-and-intermodal-ramp-activity/01HCDE39Z30AG455GCVDE646MY
Powered by
Build EDI implementation guides at stedi.com
Overview
ISA
-
Interchange Control Header
Max use 1
Required
GS
-
Functional Group Header
Max use 1
Required
heading
ST
0100
Transaction Set Header
Max use 1
Required
ZC1
0150
Beginning Segment for Data Correction or Change
Max use 1
Optional
Q5
0160
Status Details
Max use 1
Required
N7 Loop
N7
0200
Equipment Details
Max use 1
Required
DTM
0400
Date/Time Reference
Max use 2
Optional
M7
0500
Seal Numbers
Max use 5
Optional
W09
0600
Equipment and Temperature
Max use 1
Optional
W2
0700
Equipment Identification
Max use 1
Optional
NA
0800
Cross-Reference Equipment
Max use 30
Optional
V1
1100
Vessel Identification
Max use 1
Optional
H3
1400
Special Handling Instructions
Max use 6
Optional
N1 Loop
N9
1700
Extended Reference Information
Max use 30
Optional
L3
3000
Total Weight and Charges
Max use 2
Optional
SE
3100
Transaction Set Trailer
Max use 1
Required
GE
-
Functional Group Trailer
Max use 1
Required
IEA
-
Interchange Control Trailer
Max use 1
Required
ISA

Interchange Control Header

RequiredMax use 1

To start and identify an interchange of zero or more functional groups and interchange-related control segments

Example
ISA-01
I01
Authorization Information Qualifier
Required
Identifier (ID)

Code identifying the type of information in the Authorization Information

00
No Authorization Information Present (No Meaningful Information in I02)
ISA-02
I02
Authorization Information
Required
String (AN)
Min 10Max 10

Information used for additional identification or authorization of the interchange sender or the data in the interchange; the type of information is set by the Authorization Information Qualifier (I01)

ISA-03
I03
Security Information Qualifier
Required
Identifier (ID)

Code identifying the type of information in the Security Information

00
No Security Information Present (No Meaningful Information in I04)
ISA-04
I04
Security Information
Required
String (AN)
Min 10Max 10

This is used for identifying the security information about the interchange sender or the data in the interchange; the type of information is set by the Security Information Qualifier (I03)

ISA-05
I05
Interchange ID Qualifier
Required
Identifier (ID)
Min 2Max 2

Code indicating the system/method of code structure used to designate the sender or receiver ID element being qualified

Codes
ISA-06
I06
Interchange Sender ID
Required
String (AN)
Min 15Max 15

Identification code published by the sender for other parties to use as the receiver ID to route data to them; the sender always codes this value in the sender ID element

ISA-07
I05
Interchange ID Qualifier
Required
Identifier (ID)
Min 2Max 2

Code indicating the system/method of code structure used to designate the sender or receiver ID element being qualified

Codes
ISA-08
I07
Interchange Receiver ID
Required
String (AN)
Min 15Max 15

Identification code published by the receiver of the data; When sending, it is used by the sender as their sending ID, thus other parties sending to them will use this as a receiving ID to route data to them

ISA-09
I08
Interchange Date
Required
Date (DT)
YYMMDD format

Date of the interchange

ISA-10
I09
Interchange Time
Required
Time (TM)
HHMM format

Time of the interchange

ISA-11
I65
Repetition Separator
Required
String (AN)
Min 1Max 1

Type is not applicable; the repetition separator is a delimiter and not a data element; this field provides the delimiter used to separate repeated occurrences of a simple data element or a composite data structure; this value must be different than the data element separator, component element separator, and the segment terminator

^
Repetition Separator
ISA-12
I11
Interchange Control Version Number Code
Required
Identifier (ID)

Code specifying the version number of the interchange control segments, the version of the data elements within the control segments, and the code values within those data elements.

00803
00803 Standards Approved for Publication by ASC X12 Procedures Review Board through December 2021
ISA-13
I12
Interchange Control Number
Required
Numeric (N0)
Min 9Max 9

A control number assigned by the interchange sender

ISA-14
I13
Acknowledgment Requested Code
Required
Identifier (ID)
Min 1Max 1

Code indicating sender's request for an interchange acknowledgment

0
No Interchange Acknowledgment Requested
1
Interchange Acknowledgment Requested (TA1)
2
Interchange Acknowledgment Requested only when Interchange is "Rejected Because Of Errors"
3
Interchange Acknowledgment Requested only when Interchange is "Rejected Because Of Errors" or "Accepted but Errors are Noted"
ISA-15
I14
Interchange Usage Indicator Code
Required
Identifier (ID)
Min 1Max 1

Code indicating whether data enclosed by this interchange envelope is test, production or information

I
Information
P
Production Data
T
Test Data
ISA-16
I15
Component Data Element Separator
Required
String (AN)
Min 1Max 1

Type is not applicable; the component data element separator is a delimiter and not a data element; this field provides the delimiter used to separate component data elements within a composite data structure; this value must be different than the data element separator and the segment terminator

>
Component Element Separator

Functional Group Header

RequiredMax use 1

To indicate the beginning of a functional group and to provide control information

Example
GS-01
479
Functional Identifier Code
Required
Identifier (ID)

Code identifying a group of application related transaction sets

SO
Ocean Shipment Information (304, 311, 317, 319, 322, 323, 324, 325, 326, 361)
GS-02
142
Application Sender's Code
Required
String (AN)
Min 2Max 15

Code identifying party sending transmission; codes agreed to by trading partners

GS-03
124
Application Receiver's Code
Required
String (AN)
Min 2Max 15

Code identifying party receiving transmission; codes agreed to by trading partners

Required
Date (DT)
CCYYMMDD format

Date expressed as CCYYMMDD where CC represents the first two digits of the calendar year

Required
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format

Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)

GS-06
28
Group Control Number
Required
Numeric (N0)
Min 1Max 9

Assigned number originated and maintained by the sender

GS-07
455
Responsible Agency Code
Required
Identifier (ID)
Min 1Max 2

Code identifying the issuer of the standard; this code is used in conjunction with Data Element 480

T
Transportation Data Coordinating Committee (TDCC)
X
Accredited Standards Committee X12
GS-08
480
Version / Release / Industry Identifier Code
Required
String (AN)

Code indicating the version, release, subrelease, and industry identifier of the EDI standard being used, including the GS and GE segments; if code in DE455 in GS segment is X, then in DE 480 positions 1-3 are the version number; positions 4-6 are the release and subrelease, level of the version; and positions 7-12 are the industry or trade association identifiers (optionally assigned by user); if code in DE455 in GS segment is T, then other formats are allowed

008030
008030 Standards Approved for Publication by ASC X12 Procedures Review Board through December 2021

Heading

ST
0100
Heading > ST

Transaction Set Header

RequiredMax use 1

To indicate the start of a transaction set and to assign a control number

Example
ST-01
143
Transaction Set Identifier Code
Required
Identifier (ID)

Code identifying a Transaction Set

  • The transaction set identifier (ST01) is used by the translation routines of the interchange partners to select the appropriate transaction set definition (e.g., 810 selects the Invoice Transaction Set).
322
Terminal Operations and Intermodal Ramp Activity
ST-02
329
Transaction Set Control Number
Required
Numeric (N)
Min 4Max 9

Identifying control number that must be unique within the transaction set functional group assigned by the originator for a transaction set

ZC1
0150
Heading > ZC1

Beginning Segment for Data Correction or Change

OptionalMax use 1

To transmit identifying numbers, dates, and other basic data relating to the transaction set

Example
ZC1-01
145
Shipment Identification Number
Optional
String (AN)
Min 1Max 30

Identification number assigned to the shipment by the shipper that uniquely identifies the shipment from origin to ultimate destination and is not subject to modification; (Does not contain blanks or special characters)

ZC1-02
206
Equipment Initial
Optional
String (AN)
Min 1Max 4

Prefix or alphabetic part of an equipment unit's identifying number

  • For any rail shipment, ZC102 is required.
Usage notes

See guideline for Equipment Initials and Numbers in the Standards Conventions chapter of the Rail Front Matter section 4.8
Must be identical to equipment shown in N7 of previous 322 being deleted.

ZC1-03
207
Equipment Number
Required
String (AN)
Min 1Max 15

Sequencing or serial part of an equipment unit's identifying number (pure numeric form for equipment number is preferred)

Usage notes

See guideline for Equipment Initials and Numbers in the Standards Conventions chapter of the Rail Front Matter section 4.8
Must be identical to equipment shown in N7 of previous 322 being deleted.

ZC1-04
244
Transaction Reference Number
Required
String (AN)
Min 1Max 50

Sender's assigned number for referenced transaction set

ZC1-05
243
Transaction Reference Date
Required
Date (DT)
CCYYMMDD format

Date of referenced transaction set expressed in format CCYYMMDD where CC represents the first two digits of the calendar year

ZC1-06
202
Correction Indicator Code
Required
Identifier (ID)

Code indicating that the transaction set contains information which corrects previous information

DE
Delete Event
ZC1-07
140
Standard Carrier Alpha Code
Required
Identifier (ID)
Min 2Max 4

Code identifying the Standard Carrier Alpha Code

ZC1-08
91
Transportation Method/Type Code
Required
Identifier (ID)

Code specifying the method or type of transportation for the shipment

  • If ZC108 is "R" (Rail), then ZC102 is required.
X
Intermodal (Piggyback)
ZC1-09
761
Equipment Number Check Digit
Optional
Numeric (N0)
Min 1Max 1

Number which designates the check digit applied to a piece of equipment

  • ZC109 is the equipment check digit for the equipment number in ZC103.
Usage notes

See guideline for Equipment Initials and Numbers in the Standards Conventions chapter of the Rail Front Matter section 4.8

Q5
0160
Heading > Q5

Status Details

RequiredMax use 1

To specify the status of the shipment in terms of dates, time, reference numbers, and location

Example
If either Time (Q5-03) or Time Code (Q5-04) is present, then the other is required
Q5-01
157
Shipment Status Code
Optional
Identifier (ID)

Code indicating the status of a shipment

A
Arrived

Used if N901 is equal to BM, BN, CR, OB or WY and/or N101 is equal to BN, CN, or SH. Used to report arrival of flatcar conveyance at final destination.

AE
Loaded on Vessel

Used if N901 is equal to BN or OB and/or N101 is equal to SH or SS.

AI
Shipment Has Been Reconsigned
AL
Loaded on Rail

Used if N901 is equal to BM, BN, CR, OB, or WY and/or N101 is equal to BN or SH. Used to report loading of intermodal unit onto flatcar conveyance. Flatcar number should be reported in accompanying NA segment in the transaction set.

AO
Loaded on Barge
AR
Rail Arrival at Destination Intermodal Ramp

Used if N901 is equal to BM, BN, CR, OB or WY and/or N101 is equal to CN, N1 or N2. Used to report placement of flatcar conveyance at Intermodal Ramp.

B
Bad Order (Inoperative or Damaged)

Used if N901 is equal to BM, BN, CR, OB or WY and/or N101 is equal to CN, SH, N1 or N2.

BO
Rail Conveying Car Bad Ordered
CA
Shipment Cancelled
CB
Chassis Tie

Used if N901 is equal to BM, BN, CR, OB or WY and/or N101 is equal to BN, CN, N1, N2 or SH. Used to report container moving COFC being grounded to a chassis. Chassis number should be reported in accompanying W2 segment in the transaction set.

CC
Chassis Un-Tie

Used if N901 is equal to BM, BN, CR, OB or WY and/or N101 is equal to BN or SH. Used to report container moving COFC being removed from chassis. Chassis number should be reported in accompanying W2 segment in the transaction set.

CS
Container Sealed

Used when equipment arrived at rail facility without seals and seal was applied by carrier.

CT
Customs Released

Used if N901 is equal to BN, CR or OB and/or N101 is equal to CB, SH, SS, XB, XQ, XR or XU.

D
Completed Unloading at Delivery Location

Used if N901 is equal to BM, BN, CR or OB and/or N101 is equal to BN, CN or SH.

DA
Repair Authorization Requested

Used if N901 is equal to FI and/or N101 is equal to SS

DC
Unit Cleaned

Used if N901 is equal to IV and/or N101 is equal to VN or SS.

DP
Unit Pre-Tripped

Used if N901 is equal to IV and/or N101 is equal to SH or SS.

DR
Repair Authorization Received

Used if N901 is equal to FR or OW and/or N101 is equal to SS.

DS
Damage Survey Requested

Used if N901 is equal to FI and/or N101 is equal to BT, PA or PV.

DT
Damage Survey Completed

Used if N901 is equal to FI and/or N101 is equal to PA or PV.

EA
Estimate Approved

Used if N901 is equal to FI. Refers to the damage estimate.

ER
Estimate Received

Used if N901 is equal to FI and/or N101 is equal to VN. Refers to the damage estimate.

G
Repaired and/or Released from Bad Order

Used if N901 is equal to FI or IV and/or N101 is equal to II or VN.

GI
Terminal Gate Inspection
I
In-Gate

Used if N901 is equal to BM, BN, CR, OB or VT and/or N101 is equal to BN, CN, SH or MC.

J
Delivered to Connecting Line

Used to report Rail to Rail (Steel Wheel) interchanges

K
Arrived at Customs

Used if N901 is equal to OB and/or N101 is equal to CB, XR, XU or XQ.

L
Loading
LE
Locked Estimated Time of Notification (ETN)

The estimated time that a unit will be available for pick-up at destination

MA
Mexican Customs, Arrival at In-bond Facility
MD
Mexican Customs, Departure from In-bond Facility
ME
Mexican Customs, De-Ramp at In-bond Facility
MI
Mexican Customs, Ingate at In-bond Facility
MO
Mexican Customs, Outgate from In-bond Facility
MR
Mexican Customs, Ramp at In-bond Facility
MT
Empty Committed

Used if N901 is equal to BN and/or N101 is equal to AG, SH or SS.

N
No Paperwork Received with Shipment or Equipment

Used if N901 is equal to CR and/or N101 is equal to CN, SF, SH or MC.

NC
Confirmation of Notification
ND
Technical Charges Due

Used if N901 is equal to FR and/or origin N101 is equal to SF, SH or SS and/or destination N101 is equal to N1, N3, SS or MC.

NF
Free Time to Expire

Used if N901 is equal to BM, BN, CR or OB and/or N101 is equal to CN, MC, N1, N2, SS or SH.

NG
Non-Gate Inspection
NH
No Hazardous Material Document Received

Used if N901 is equal to BM, BN, CR or OB and/or N101 is equal to AG, MC, SF or SH.

NO
Ocean Charges Paid

Used if N901 is equal to CK, FR, PB, S4, VV or 01 and/or N101 is equal to PR.

NP
Terminal Charges Paid

Used if N901 is equal to CK, FR PB, S4, VV or 01 and/or N101 is equal to PR.

NS
No Seal on Load

Used if N901 is equal to CR or TI and/or N101 is equal to OC or OR.

NT
Notification

Used if N901 is equal to BM, BN, CR, OB, RE or XC and/or N101 is equal to MC, N1, N2 or RT.

O
Paperwork Received- Did Not Receive Shipment or Equipment

Used if N901 is equal to BM, BN, CR or OB and/or N101 is equal to MC, CN or SH.

OA
Out-Gate

Used if N901 is equal to BM, BN, CR, OB, IE or VT and/or N101 is equal to MC.

OH
On Hand

Used if N901 is equal to BM, BN, CR or OB and/or N101 is equal to CN, SH or SS.

P
Departed Terminal Location

Used if N901 is equal to BM, BN, CR, OB or WY and/or N101 is equal to BN or SH. Used to report departure of flat car conveyance from origin.

PA
U.S. Customs and Border Protection (CBP) Hold, Intensive Examination

Used if N901 is equal to BM, BN or OB and/or N101 is equal to CB, XR, XU or XQ.

PB
U.S. Customs and Border Protection (CBP) Hold, Insufficient Paperwork

Used if N901 is equal to BM, BN or OB and/or N101 is equal to CB, XR, XU, XQ.

PC
U.S. Customs and Border Protection (CBP) Hold, Discrepancy in Paperwork

Used if N901 is equal to BM, BN or OB and/or N101 is equal to CB, XR, XU or XQ.

PD
U.S. Customs and Border Protection (CBP) Hold, Discrepancy in Piece Count

Used if N901 is equal to BM, BN or OB and/or N101 is equal to CB, XR, XU or XQ.

PE
U.S. Customs and Border Protection (CBP) Hold, Hold by Coast Guard

Used if N901 is equal to BM, BN or OB and/or N101 is equal to CB, XR, XU, XQ.

PF
U.S. Customs and Border Protection (CBP) Hold, Hold by F.B.I.

Used if N901 is equal to BM, BN or OB and/or N101 is equal to CB, XR, XU or XQ.

PG
U.S. Customs and Border Protection (CBP) Hold, Hold by Local Law Enforcement

Used if N901 is equal to BM, BN or OB and/or N101 is equal to CB, XR, XU or XQ.

PH
U.S. Customs and Border Protection (CBP) Hold, Hold by Court Imposed Lien

Used if N901 is equal to BM, BN or OB and/or N101 is equal to CB, XR, XU or XQ.

PI
U.S. Customs and Border Protection (CBP) Hold, Hold by Food and Drug

Used if N901 is equal to BM, BN or OB and/or N101 is equal to CB, XR, XU or XQ.

PJ
U.S. Customs and Border Protection (CBP) Hold, Hold by Fish and Wildlife

Used if N901 is equal to BM, BN or OB and/or N101 is equal to CB, XR, XU or XQ.

PK
U.S. Customs and Border Protection (CBP) Hold, Hold by Drug Enforcement

Used if N901 is equal to BM, BN or OB and/or N101 is equal to CB, XR, XU or XQ.

PL
US Dept. Agr, Hold for Intensive Investigation

Used if N901 is equal to BM, BN or OB and/or N101 is equal to CB, XR, XU or XQ.

PM
US Dept. Agr, Hold for Unregistered Producer

Used if N901 is equal to BM, BN or OB and/or N101 is equal to CB, XR, XU or XQ.

PN
US Dept. Agr, Hold for Restricted Commodity

Used if N901 is equal to BM, BN or OB and/or N101 is equal to CB, XR, XU or XQ.

PO
US Dept. Agr, Hold for Insect Infestation

Used if N901 is equal to BM, BN or OB and/or N101 is equal to CB, XR, XU or XQ.

PP
US Dept. Agr, Hold for Bacterial Contamination

Used if N901 is equal to BM, BN or OB and/or N101 is equal to CB, XR, XU or XQ.

R
Received from Prior Carrier

Used to report Rail to Rail (Steel Wheel) interchanges

RF
Rail Conveying Car Released from Bad Order
RL
Rail Departure from Origin Intermodal Ramp

Used if N901 is equal to BM, BN, CR, OB or WY and/or N101 is equal to BN or SH. Used to report pull of flatcar conveyance from origin intermodal Ramp.

RN
Renotification
RY
Movement from Intermodal Facility to Rail Yard
SC
Seals Altered

Used when equipment arrived at rail facility with damaged seals and carrier applied new seal.

SF
Move off Spot

Indicates that the unit is not available for unloading

SO
Move on Spot

Indicates that the unit has been spotted for unloading

T
At Terminal; Intra-Terminal Movement
TE
Tactical Estimated Time of Notification (ETN)

The revised estimated time that a unit will be available for pick- up at destination

UR
Unloaded from a Rail Car

Used if N901 is equal to BM, BN, CR, OB or WY and/or N101 is equal to BN, CN, N1, N2 or SH. Used to report unloading of intermodal unit from flatcar conveyance. Flatcar number should be reported in accompanying NA segment in the transaction set.

UV
Unloaded From Vessel

Used if N901 is equal to BN or OB and N101 is equal to CB, XR, XU, XQ or BN.

WH
Weight Too Heavy - Highway

Used if N901 is equal to OB or WY.

WR
Weight Too Heavy - Rail

Used if N901 is equal to BM, BN, CR or OB and/or N101 is equal to SH or SS.

YR
Movement from Rail Yard to Intermodal Facility
Optional
Date (DT)
CCYYMMDD format

Date expressed as CCYYMMDD where CC represents the first two digits of the calendar year

  • Q502 is the date of the status reported in Q501.
Optional
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format

Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)

  • Q503 is the time of the status reported in Q501.
Q5-04
623
Time Code
Optional
Identifier (ID)

Code identifying the time. In accordance with International Standards Organization standard 8601, time can be specified by a + or - and an indication in hours in relation to Universal Time Coordinate (UTC) time; since + is a restricted character, + and - are substituted by P and M in the codes that follow

CT
Central Time
ET
Eastern Time
LT
Local Time
MT
Mountain Time
NT
Newfoundland Time
PT
Pacific Time
TT
Atlantic Time
UT
Universal Time Coordinate
N7 Loop
RequiredMax 1000
N7
0200
Heading > N7 Loop > N7

Equipment Details

RequiredMax use 1

To identify the equipment

Example
If either Weight (N7-03) or Weight Qualifier (N7-04) is present, then the other is required
N7-01
206
Equipment Initial
Optional
String (AN)
Min 1Max 4

Prefix or alphabetic part of an equipment unit's identifying number

  • N701 is mandatory for rail transactions.
Usage notes

See guideline for Equipment Initials and Numbers in the Standards Conventions chapter of the Rail Front Matter section 4.8

N7-02
207
Equipment Number
Required
String (AN)
Min 1Max 15

Sequencing or serial part of an equipment unit's identifying number (pure numeric form for equipment number is preferred)

Usage notes

See guideline for Equipment Initials and Numbers in the Standards Conventions chapter of the Rail Front Matter section 4.8

N7-03
81
Weight
Optional
Decimal number (R)
Min 1Max 10

Numeric value of weight

Usage notes

If N717 is blank, weight is assumed to be expressed in pounds.
Must include dunnage weight

N7-04
187
Weight Qualifier
Optional
Identifier (ID)

Code specifying the type of weight

E
Estimated Net Weight
G
Gross Weight
N
Actual Net Weight
N7-11
40
Equipment Description Code
Optional
Identifier (ID)

Code identifying type of equipment used for shipment

CC
Container resting on a Chassis
CH
Chassis
CJ
Container, Insulated/Ventilated
CN
Container
CZ
Refrigerated Container
TL
Trailer (not otherwise specified)
TW
Trailer, Refrigerated
N7-12
140
Standard Carrier Alpha Code
Optional
Identifier (ID)
Min 2Max 4

Code identifying the Standard Carrier Alpha Code

  • N712 is the owner of the equipment.
Usage notes

SCAC of the Equipment Owner

N7-15
567
Equipment Length
Optional
Numeric (N0)
Min 4Max 5

Length (in feet and inches) of equipment ordered or used to transport shipment (The format is FFFII where FFF is feet and II is inches; the range for II is 00 through 11)

Usage notes

Outside length of equipment

N7-17
188
Weight Unit Code
Optional
Identifier (ID)

Code specifying the weight unit

K
Kilograms
L
Pounds
N7-18
761
Equipment Number Check Digit
Optional
Numeric (N0)
Min 1Max 1

Number which designates the check digit applied to a piece of equipment

Usage notes

Check digit for the Container
See guideline for Equipment Initials and Numbers in the Standards Conventions chapter of the Rail Front Matter section 4.8

N7-20
65
Height
Optional
Decimal number (R)
Min 1Max 8

Vertical dimension of an object measured when the object is in the upright position

  • N720 and N721 are expressed in inches.
Usage notes

Expressed in inches

Optional
Decimal number (R)
Min 1Max 8

Shorter measurement of the two horizontal dimensions measured with the object in the upright position

Usage notes

Expressed in inches

N7-22
24
Equipment Type Code
Optional
Identifier (ID)
Min 4Max 4

Code identifying equipment type

Usage notes

ISO size and type code, a four digit code for container type based on the ISO standard.

N7-23
140
Standard Carrier Alpha Code
Optional
Identifier (ID)
Min 2Max 4

Code identifying the Standard Carrier Alpha Code

  • N723 is the operator or carrier of the rights of the equipment.
Usage notes

SCAC of the equipment operator responsible for moving the cargo.

DTM
0400
Heading > N7 Loop > DTM

Date/Time Reference

OptionalMax use 2

To specify pertinent dates and times

Example
If Time Code (DTM-04) is present, then Time (DTM-03) is required
DTM-01
374
Date/Time Qualifier
Required
Identifier (ID)

Code specifying type of date or time, or both date and time

017
Estimated Delivery

If used, this is intended to identify the estimated date and time of grounding at the destination carrier’s ramp facility.

371
Estimated Arrival Date
Optional
Date (DT)
CCYYMMDD format

Date expressed as CCYYMMDD where CC represents the first two digits of the calendar year

Optional
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format

Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)

DTM-04
623
Time Code
Optional
Identifier (ID)

Code identifying the time. In accordance with International Standards Organization standard 8601, time can be specified by a + or - and an indication in hours in relation to Universal Time Coordinate (UTC) time; since + is a restricted character, + and - are substituted by P and M in the codes that follow

AT
Alaska Time
CT
Central Time
ET
Eastern Time
LT
Local Time
MT
Mountain Time
NT
Newfoundland Time
PT
Pacific Time
TT
Atlantic Time
M7
0500
Heading > N7 Loop > M7

Seal Numbers

OptionalMax use 5

To record seal numbers used and the organization that applied the seals

Example
M7-01
225
Seal Number
Required
String (AN)
Min 1Max 15

Unique number on seal used to close a shipment

M7-02
225
Seal Number
Optional
String (AN)
Min 1Max 15

Unique number on seal used to close a shipment

M7-03
225
Seal Number
Optional
String (AN)
Min 1Max 15

Unique number on seal used to close a shipment

M7-04
225
Seal Number
Optional
String (AN)
Min 1Max 15

Unique number on seal used to close a shipment

W09
0600
Heading > N7 Loop > W09

Equipment and Temperature

OptionalMax use 1

To relate equipment type and required temperatures

Example
If either Temperature (W09-02) or Unit or Basis for Measurement Code (W09-03) is present, then the other is required
If either Temperature (W09-04) or Unit or Basis for Measurement Code (W09-05) is present, then the other is required
W09-01
40
Equipment Description Code
Required
Identifier (ID)

Code identifying type of equipment used for shipment

CJ
Container, Insulated/Ventilated
CZ
Refrigerated Container
TW
Trailer, Refrigerated
W09-02
408
Temperature
Optional
Decimal number (R)
Min 1Max 4

Temperature

  • W0902 is the minimum allowable temperature condition for shipment; (the qualifying temperature scale is specified in W0903).
Usage notes

Actual setting of the container temperature*-

W09-03
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)

Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken

CE
Centigrade, Celsius
FA
Fahrenheit
W09-04
408
Temperature
Optional
Decimal number (R)
Min 1Max 4

Temperature

  • W0904 is the maximum allowable temperature condition for shipment; (the qualifying temperature scale is specified in W0905).
W09-05
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)

Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken

CE
Centigrade, Celsius
FA
Fahrenheit
W09-06
3
Free-form Message
Optional
String (AN)
Min 1Max 60

Free-form text

  • W0906 is used to describe the environment required within an ocean-type, refrigerated container when other than normal air is required.
Usage notes

Special use as per the following:
+KF Keep From Freezing
+VF Vents Open, Fans Running
+NT No Temperature, Dry Load
Y Live Reefer

W09-07
1122
Vent Setting Code
Optional
Identifier (ID)

Code specifying the setting on the air vents on ocean-type containers

A
Vent 25% Open
B
Vent 50% Open
C
Vent 75% Open
D
Vent 100% Open
E
Closed
F
Vent 10% Open
Z
Carrier to Set Based on Commodity Type
W09-08
488
Percent, Integer Format
Optional
Numeric (N0)
Min 1Max 3

Percent given in integer format (e.g., 0 through 100 represents 0% through 100%)

  • W0908 is the humidity percentage.
Usage notes

Percent humidity required.

W2
0700
Heading > N7 Loop > W2

Equipment Identification

OptionalMax use 1

To identify equipment and the commodity being carried

Usage notes

Used to report load/empty status of equipment specified in the preceding N7 segment and associated chassis if applicable.

Example
If either Equipment Initial (W2-11) or Equipment Number (W2-12) is present, then the other is required
W2-01
206
Equipment Initial
Required
String (AN)
Min 1Max 4

Prefix or alphabetic part of an equipment unit's identifying number

Usage notes

See guideline for Equipment Initials and Numbers in the Standards Conventions chapter of the Rail Front Matter section 4.8
This should match the N701 initial

W2-02
207
Equipment Number
Required
String (AN)
Min 1Max 15

Sequencing or serial part of an equipment unit's identifying number (pure numeric form for equipment number is preferred)

Usage notes

See guideline for Equipment Initials and Numbers in the Standards Conventions chapter of the Rail Front Matter section 4.8
This should match the N702 Number

W2-04
40
Equipment Description Code
Required
Identifier (ID)

Code identifying type of equipment used for shipment

CC
Container resting on a Chassis
CH
Chassis

Used only if chassis moving alone or bundle of banded chassis

CJ
Container, Insulated/Ventilated
CN
Container
CZ
Refrigerated Container
TL
Trailer (not otherwise specified)
TW
Trailer, Refrigerated
W2-05
578
Equipment Status Code
Required
Identifier (ID)

Code indicating status of equipment

Usage notes

Used to report status of equipment in preceding N701 and N702

AK
Out of Service
E
Empty
L
Load
W2-07
177
Intermodal Service Code
Optional
Identifier (ID)
Min 1Max 2

Code identifying the Intermodal Service Plan

Usage notes

See Rail Data Element Dictionary

W2-11
206
Equipment Initial
Optional
String (AN)
Min 1Max 4

Prefix or alphabetic part of an equipment unit's identifying number

  • W211 (when available) is the chassis initial if W204 equals "CC". If unknown, use NONZ for chassis initial.
Usage notes

Chassis Initial

W2-12
207
Equipment Number
Optional
String (AN)
Min 1Max 15

Sequencing or serial part of an equipment unit's identifying number (pure numeric form for equipment number is preferred)

  • W212 (when available) is the chassis number if W204 equals "CC".
Usage notes

Chassis Number

W2-13
761
Equipment Number Check Digit
Optional
Numeric (N0)
Min 1Max 1

Number which designates the check digit applied to a piece of equipment

Usage notes

Chassis Check Digit

W2-16
1073
Yes/No Condition or Response Code
Optional
Identifier (ID)

Code indicating a Yes or No condition or response

  • W216 indicates if equipment needs repair. A "Y" indicates equipment needs repair; an "N" indicates equipment does not need repair.
N
No
Y
Yes
W2-17
1554
Tag Status Code
Optional
Identifier (ID)
Min 1Max 1

Code indicating the status of an Automatic Equipment Identification Tag

W2-18
1543
Equipment Orientation Code
Optional
Identifier (ID)
Min 1Max 1

Code indicating the direction the equipment is entrained or the lading is loaded; When used to indicate the lading orientation, direction is defined relative to the equipment on which it is loaded

NA
0800
Heading > N7 Loop > NA

Cross-Reference Equipment

OptionalMax use 30

To cross-reference additional equipment to a primary piece of equipment

Usage notes

Used to report conveying flat car

Example
NA-03
206
Equipment Initial
Required
String (AN)
Min 1Max 4

Prefix or alphabetic part of an equipment unit's identifying number

  • NA03 contains the equipment initial of an associated shipment and is required by rail. If unknown, use NONZ for van or NONU for container.
Usage notes

See guideline for Equipment Initials and Numbers in the Standards Conventions chapter of the Rail Front Matter section 4.8

NA-04
207
Equipment Number
Required
String (AN)
Min 1Max 15

Sequencing or serial part of an equipment unit's identifying number (pure numeric form for equipment number is preferred)

  • NA04 contains the equipment number of an associated shipment.
Usage notes

See guideline for Equipment Initials and Numbers in the Standards Conventions chapter of the Rail Front Matter section 4.8

NA-05
231
Cross Reference Type Code
Optional
Identifier (ID)

Code specifying relationship of equipment to equipment cross-referenced

B
Basket Attached to Chassis (to hold generator set)
F
Conveying Flat Car
H
Generator Set
K
Clip-on Front-Mounted Generator Unit For Container
S
Saddle to Conveying Flatcar
NA-06
219
Position
Optional
String (AN)
Min 1Max 3

Relative position of shipment in car, trailer, or container (mutually defined)

Usage notes

See Rail Data Element Dictionary for explanation of position code

NA-11
1073
Yes/No Condition or Response Code
Optional
Identifier (ID)

Code indicating a Yes or No condition or response

  • NA11 indicates the equipment damage status. A "Y" indicates equipment is damaged; an "N" indicates equipment is not damaged.
N
No
Y
Yes
NA-12
761
Equipment Number Check Digit
Optional
Numeric (N0)
Min 1Max 1

Number which designates the check digit applied to a piece of equipment

  • NA12 is the check digit for the equipment number in NA04.
Usage notes

See guideline for Equipment Initials and Numbers in the Standards Conventions chapter of the Rail Front Matter section 4.8

V1
1100
Heading > N7 Loop > V1

Vessel Identification

OptionalMax use 1

To provide vessel details and voyage number

Example
At least one of Vessel Code (V1-01) or Vessel Name (V1-02) is required
If Vessel Code Qualifier (V1-08) is present, then Vessel Code (V1-01) is required
V1-01
597
Vessel Code
Optional
Identifier (ID)
Min 1Max 8

Code identifying vessel

Usage notes

Lloyd’s Code or Radio Call Sign as qualified in V108

V1-02
182
Vessel Name
Optional
String (AN)
Min 2Max 28

Name of ship as documented in "Lloyd's Register of Ships"

V1-04
55
Flight/Voyage Number
Optional
String (AN)
Min 2Max 30

Identifying designator for the particular flight or voyage on which the cargo travels

V1-08
897
Vessel Code Qualifier
Optional
Identifier (ID)

Code specifying vessel code source

C
Ship's Radio Call Signal
L
Lloyd's Register of Shipping
R4 Loop
RequiredMax 20
R4
1200
Heading > N7 Loop > R4 Loop > R4

Port or Terminal

RequiredMax use 1

Contractual or operational port or point relevant to the movement of the cargo

Example
If either Location Qualifier (R4-02) or Location Identifier (R4-03) is present, then the other is required
R4-01
115
Port or Terminal Function Code
Required
Identifier (ID)

Code specifying function performed at the port or terminal with respect to a shipment

1
Final Port of Discharge (Operational)
5
Activity Location (Operational)

Qualifies the location of the Q5 event. One occurrence of this code is mandatory for all rail use and only one occurrence per transaction is allowed.

6
Origin Rail Intermodal Terminal

Waybill Origin

7
Destination Rail Intermodal Terminal

Waybill Destination

D
Port of Discharge (Operational)
E
Place of Delivery (Contractual)
I
Interim Point (Operational)
L
Port of Loading (Operational)
M
Destination (Operational)
P
Dispatching Pool (Operational)
R
Place of Receipt (Contractual)
R4-02
309
Location Qualifier
Optional
Identifier (ID)

Code identifying type of location

CS
Canadian SPLC
D
Census Schedule D
K
Census Schedule K
OL
Open and Prepay Station List Code(SCAC & Number)
SL
U.S. SPLC
UN
United Nations Location Code (UNLOCODE)
R4-03
310
Location Identifier
Optional
String (AN)
Min 1Max 30

Code which identifies a specific location

R4-04
114
Port Name
Optional
String (AN)
Min 2Max 24

Free-form name for the place at which an offshore carrier originates or terminates (by transshipment or otherwise) its actual ocean carriage of property

Usage notes

Limited to the Rail 19 character station name as defined in the AAR Centralized Station Master

R4-08
156
State or Province Code
Optional
Identifier (ID)
Min 2Max 2

Code specifying the Standard State/Province as defined by appropriate government agency

R4 Loop end
H3
1400
Heading > N7 Loop > H3

Special Handling Instructions

OptionalMax use 6

To specify special handling instructions in coded or free-form format

Example
H3-01
152
Special Handling Code
Optional
Identifier (ID)

Code specifying special transportation handling instructions

DM
Domestic
HM
Endorsed as Hazardous Material

Used to specify hazardous materials shipments if full hazardous billing information (LH1 loop) is not available. H1 information should be provided if available.

IP
Import Shipment
XP
Export
N1 Loop
OptionalMax 10
N1
1500
Heading > N7 Loop > N1 Loop > N1

Party Identification

RequiredMax use 1

To identify a party by type of organization, name, and code

Example
At least one of Name (N1-02) or Identification Code Qualifier (N1-03) is required
If either Identification Code Qualifier (N1-03) or Identification Code (N1-04) is present, then the other is required
N1-01
98
Entity Identifier Code
Required
Identifier (ID)

Code identifying an organizational entity, a physical location, property or an individual

AG
Agent/Agency
BN
Beneficial Owner
BT
Bill-to-Party
CB
Customs Broker
CN
Consignee
II
Issuer of Invoice
MC
Motor Carrier
N1
Notify Party no. 1
N2
Notify Party no. 2
PA
Party to Receive Inspection Report
PR
Payer
PV
Party performing certification
RT
Returned to
SF
Ship From
SH
Shipper
SS
Steamship Company
ST
Ship To
VN
Vendor
XB
In-land Mexican Broker
XQ
Canadian Customs Broker
XR
Mexican Customs Broker
XU
United States Customs Broker
Optional
String (AN)
Min 1Max 60

Free-form name

N1-03
66
Identification Code Qualifier
Optional
Identifier (ID)

Code specifying the system/method of code structure used for Identification Code (67)

2
Standard Carrier Alpha Code (SCAC)
12
Telephone Number (Phone)
17
Automated Broker Interface (ABI) Routing Code

Only used to report Customs ABI Routing Code if N101 equals ‘CB’ or ‘XU’

93
Code assigned by the organization originating the transaction set
94
Code assigned by the organization that is the ultimate destination of the transaction set
BF
Broker Filer ID

Used to pass the Mexican Customs Patente Number. Only used when N101 equals ‘CB’, ‘XB’ or ‘XR’

C5
Customer Identification File
ZZ
Mutually Defined
N1-04
67
Identification Code
Optional
String (AN)
Min 2Max 80

Code identifying a party or other code

  • This segment, used alone, provides the most efficient method of providing organizational identification. To obtain this efficiency the "ID Code" (N104) must provide a key to the table maintained by the transaction processing party.
Usage notes

When qualified by ‘C5’ this field should contain the full 13 character CIF format including leading zeros. This format is defined as either 9 character alphanumeric (CIF ID) or 9 digit numeric (DUNS number) plus the 4 digit sub-location number. When conveying a primary location the sub-location will be zeros. For example: ‘0123456780000’ where DUNS = 012345678 and the + 4 = 0000. ‘A222222220000’ where CIF ID = A22222222 and the + 4 = 0000.
When qualified by a value = 12, Telephone number provided must contain area code; or where applicable for international dialing, the international access code or the plus ‘+’ sign and the country and city code as required in addition to the telephone number

N4
1560
Heading > N7 Loop > N1 Loop > N4

Geographic Location

OptionalMax use 1

To specify the geographic place of the named party

Example
If Location Identifier (N4-06) is present, then Location Qualifier (N4-05) is required
N4-01
19
City Name
Optional
String (AN)
Min 2Max 30

Free-form text for city name

  • A combination of either N401 through N404, or N405 and N406 may be adequate to specify a location.
N4-02
156
State or Province Code
Optional
Identifier (ID)
Min 2Max 2

Code specifying the Standard State/Province as defined by appropriate government agency

N4-03
116
Postal Code
Optional
Identifier (ID)
Min 3Max 15

Code specifying international postal zone code excluding punctuation and blanks (zip code for United States)

  • N403 contains the postal code in an unstructured format. N408 contains the postal code in a structured format. When a postal code data field is used, the parties shall agree as to which data element (N403 or N408) shall be used in the transaction set.
N4-04
26
Country Code
Optional
Identifier (ID)

Code identifying the country

Usage notes

US, CA, MX

CA
Canada
MX
Mexico
US
United States of America (the)
N4-05
309
Location Qualifier
Optional
Identifier (ID)
Min 1Max 2

Code identifying type of location

N4-06
310
Location Identifier
Optional
String (AN)
Min 1Max 30

Code which identifies a specific location

N1 Loop end
N9
1700
Heading > N7 Loop > N9

Extended Reference Information

OptionalMax use 30

To transmit identifying information as specified by the Reference Identification Qualifier

Example
If Time Code (N9-06) is present, then Time (N9-05) is required
N9-01
128
Reference Identification Qualifier
Required
Identifier (ID)

Code identifying the Reference Identification

01
American Bankers Assoc. (ABA) Transit/Routing Number (Including Check Digit, 9 Digits)
5J
Driver's License
7W
Interchange Train Identification

Used to convey train ID associated with the status reported in the Q501

BL
Government Bill of Lading
BM
Bill of Lading Number
BN
Booking Number
BO
Bin Location Number
CK
Check Number
CR
Customer Reference Number
CT
Contract Number
FI
File Identifier
FR
Freight Bill Number
HW
High/Wide File Number
IE
Interchange Agreement Number
IV
Seller's Invoice Number
LO
Load Planning Number
M0
Mexican Pedimento Number
OB
Ocean Bill of Lading
ON
Dealer Order Number
OR
Order/Paragraph Number
OW
Service Order Number
PB
Payer's Financial Institution Account Number for Check, Draft, or Wire Payments; Originating Company Account Number for ACH Transfers
PO
Purchase Order Number
RE
Release Number
S4
Shippers Bond Number
SI
Shipper's Identifying Number for Shipment (SID)
TI
TIR Number
VT
Motor Vehicle ID Number
VV
Voucher
WY
Waybill Number
X3
Defect Code Number

Used to pass roadability component defect code.

XC
Cargo Control Number
YS
Yard Position

Location where equipment has been placed in a yard, parking lot, etc.; defined by sender

ZB
Ultimate Consignee
N9-02
127
Reference Identification
Optional
String (AN)
Min 1Max 80

Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier

Usage notes

Codes to be used with the code of ‘HW’ in N901 are: OH Overheight
OLF## Over length fore ## inches OLA Over length aft ## inches OWR## Over width right ## inches OWL## Over width left ## inches
If N901 equals ‘X3’ send the roadability component defect (RCD) code as prescribed by Federal Motor Carrier Safety Administration (FMCSA) law.

Optional
Date (DT)
CCYYMMDD format

Date expressed as CCYYMMDD where CC represents the first two digits of the calendar year

Optional
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format

Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)

N9-06
623
Time Code
Optional
Identifier (ID)

Code identifying the time. In accordance with International Standards Organization standard 8601, time can be specified by a + or - and an indication in hours in relation to Universal Time Coordinate (UTC) time; since + is a restricted character, + and - are substituted by P and M in the codes that follow

  • N906 reflects the time zone which the time reflects.
CT
Central Time
ET
Eastern Time
LT
Local Time
MT
Mountain Time
NT
Newfoundland Time
PT
Pacific Time
TT
Atlantic Time
UT
Universal Time Coordinate
L0 Loop
OptionalMax 999
L0
1800
Heading > N7 Loop > L0 Loop > L0

Line Item - Quantity and Weight

RequiredMax use 1

To specify quantity, weight, volume, and type of service for a line item including applicable "quantity/rate-as" data

Example
If either Billed/Rated-as Quantity (L0-02) or Billed/Rated-as Qualifier (L0-03) is present, then the other is required
If either Weight (L0-04) or Weight Qualifier (L0-05) is present, then the other is required
If either Volume (L0-06) or Volume Unit Qualifier (L0-07) is present, then the other is required
If either Lading Quantity (L0-08) or Packaging Form Code (L0-09) is present, then the other is required
If Weight Unit Code (L0-11) is present, then Weight (L0-04) is required
If either Quantity (L0-13) or Yes/No Condition or Response Code (L0-15) is present, then the other is required
L0-01
213
Lading Line Item Number
Optional
Numeric (N0)
Min 1Max 6

Sequential line number for a lading item

L0-02
220
Billed/Rated-as Quantity
Optional
Decimal number (R)
Min 1Max 11

Basis for rating (miles, value, volume, etc.); Note: Weight may be defined by either data element 220 or 81

L0-03
221
Billed/Rated-as Qualifier
Optional
Identifier (ID)
Min 2Max 2

Code identifying the type of quantity or value on which the rate or item pricing is based

L0-04
81
Weight
Optional
Decimal number (R)
Min 1Max 10

Numeric value of weight

L0-05
187
Weight Qualifier
Optional
Identifier (ID)
Min 1Max 2

Code specifying the type of weight

L0-06
183
Volume
Optional
Decimal number (R)
Min 1Max 8

Value of volumetric measure

L0-07
184
Volume Unit Qualifier
Optional
Identifier (ID)
Min 1Max 1

Code identifying the volume unit

L0-08
80
Lading Quantity
Optional
Numeric (N0)
Min 1Max 7

Number of units (pieces) of the lading commodity

  • L008 is the number of handling units of the line item tendered to the carrier.
L0-09
211
Packaging Form Code
Optional
Identifier (ID)
Min 3Max 3

Code specifying the packaging form of the lading quantity

L0-10
458
Dunnage Description
Optional
String (AN)
Min 2Max 25

Material used to protect lading

L0-11
188
Weight Unit Code
Optional
Identifier (ID)
Min 1Max 1

Code specifying the weight unit

L0-12
56
Type of Service Code
Optional
Identifier (ID)
Min 2Max 2

Code specifying extent of transportation service requested

L0-13
380
Quantity
Optional
Decimal number (R)
Min 1Max 15

Numeric value of quantity

  • L013 can only be used if the code in L009 is PLT, SKD, or SLP.
  • L013 is used to convey the total number of boxes, cartons, or pieces contained on a pallet, skid, or slip sheet for the line item.
L0-14
211
Packaging Form Code
Optional
Identifier (ID)
Min 3Max 3

Code specifying the packaging form of the lading quantity

L0-15
1073
Yes/No Condition or Response Code
Optional
Identifier (ID)

Code indicating a Yes or No condition or response

  • L015 designates whether the carrier will be required to verify the number of units contained on a pallet, slip sheet or skid. Code "Y" indicates that the carrier will be required to verify. Code "N" indicates that the carrier will not be required to verify.
N
No
Y
Yes
L5
1900
Heading > N7 Loop > L0 Loop > L5

Description, Marks and Numbers

OptionalMax use 1

To specify the line item in terms of description, quantity, packaging, and marks and numbers

Example
If either Commodity Code (L5-03) or Commodity Code Qualifier (L5-04) is present, then the other is required
If Marks and Numbers Qualifier (L5-07) is present, then Marks and Numbers (L5-06) is required
If either Commodity Code Qualifier (L5-08) or Commodity Code (L5-09) is present, then the other is required
L5-01
213
Lading Line Item Number
Optional
Numeric (N0)
Min 1Max 6

Sequential line number for a lading item

Usage notes

Start with 1 and increment by 1 for each new commodity

L5-02
79
Lading Description
Optional
String (AN)
Min 1Max 50

Description of an item as required for rating and billing purposes

  • L502 may be used to send quantity information as part of the product description.
L5-03
22
Commodity Code
Optional
String (AN)
Min 1Max 30

Code describing a commodity or group of commodities

L5-04
23
Commodity Code Qualifier
Optional
Identifier (ID)
Min 1Max 2

Code identifying the commodity coding system used for Commodity Code

L5-05
103
Packaging Code
Optional
String (AN)
Min 3Max 5

Code identifying the type of packaging; Part 1: Packaging Form, Part 2: Packaging Material; if the Data Element is used, then Part 1 is always required

L5-06
87
Marks and Numbers
Optional
String (AN)
Min 1Max 48

Marks and numbers used to identify a shipment or parts of a shipment

Usage notes

Used to report VIN numbers

L5-07
88
Marks and Numbers Qualifier
Optional
Identifier (ID)
Min 1Max 2

Code specifying the application or source of Marks and Numbers (87)

L5-08
23
Commodity Code Qualifier
Optional
Identifier (ID)
Min 1Max 2

Code identifying the commodity coding system used for Commodity Code

L5-09
22
Commodity Code
Optional
String (AN)
Min 1Max 30

Code describing a commodity or group of commodities

L5-10
595
Compartment ID Code
Optional
Identifier (ID)
Min 1Max 1

Code identifying the compartment in a compartmentalized tank car

H1
2000
Heading > N7 Loop > L0 Loop > H1

Hazardous Material

OptionalMax use 3

To specify information relative to hazardous material

Usage notes

Use of the LH loop is preferred when reporting Hazardous Materials/Dangerous Goods

Example
If either Flashpoint Temperature (H1-07) or Unit or Basis for Measurement Code (H1-08) is present, then the other is required
H1-01
62
Hazardous Material Code
Required
String (AN)
Min 4Max 10

Code relating to hazardous material code qualifier for regulated hazardous materials

Usage notes

United Nations Number

H1-02
209
Hazardous Material Class Code
Optional
String (AN)
Min 1Max 4

Code specifying the kind of hazard for a material

Usage notes

IMO Class

H1-03
208
Hazardous Material Code Qualifier
Optional
Identifier (ID)

Code identifying the source of the Hazardous Material Class Code (209)

I
Intergovernmental Maritime Organization (IMO) Code
H1-04
64
Hazardous Material Description
Optional
String (AN)
Min 2Max 30

Material name, special instructions, and phone number if any

Usage notes

Proper Shipping Name

H1-05
63
Hazardous Material Contact
Optional
String (AN)
Min 1Max 24

Phone number and name of person or department to contact in case of emergency

H1-06
200
Hazardous Materials Page
Optional
String (AN)
Min 1Max 6

The United Nations page number as required for the international transport of hazardous materials

Usage notes

IMO Page Number

H1-07
77
Flashpoint Temperature
Optional
Numeric (N)
Min 1Max 3

The flashpoint temperature for hazardous material

  • H107 is the lowest temperature for hazardous materials.
H1-08
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)

Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken

CE
Centigrade, Celsius
FA
Fahrenheit
H1-09
254
Packing Group Code
Optional
Identifier (ID)
Min 1Max 3

Code indicating degree of danger in terms of Roman number I, II or III

LH1 Loop
OptionalMax 1000
Usage notes

For detailed usage see Hazardous Materials/Dangerous Goods Looping Structure guidelines in Rail Front Matter section 5.5

LH1
2100
Heading > N7 Loop > L0 Loop > LH1 Loop > LH1

Hazardous Identification Information

RequiredMax use 1

To specify the hazardous commodity identification reference number and quantity

Example
If either Unit or Basis for Measurement Code (LH1-06) or Quantity (LH1-07) is present, then the other is required
LH1-01
355
Unit or Basis for Measurement Code
Required
Identifier (ID)
Min 2Max 2

Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken

  • LH101 and LH102 are used to convey the number and type of packages for bulk and nonbulk movements.
LH1-02
80
Lading Quantity
Required
Numeric (N0)
Min 1Max 7

Number of units (pieces) of the lading commodity

LH1-03
277
UN/NA Identification Code
Optional
Identifier (ID)
Min 6Max 6

Code identifying the hazardous material identification number as required by Title 49 of the code of Federal Regulations; UN/NA stands for United Nations/North America

LH1-04
200
Hazardous Materials Page
Optional
String (AN)
Min 1Max 6

The United Nations page number as required for the international transport of hazardous materials

LH1-05
22
Commodity Code
Optional
String (AN)
Min 1Max 30

Code describing a commodity or group of commodities

LH1-06
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2

Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken

  • LH106 and LH107 are used to convey the quantity or volume and unit of measure for shipments.
LH1-07
380
Quantity
Optional
Decimal number (R)
Min 1Max 15

Numeric value of quantity

LH1-08
595
Compartment ID Code
Optional
Identifier (ID)
Min 1Max 1

Code identifying the compartment in a compartmentalized tank car

LH1-09
665
Residue Indicator Code
Optional
Identifier (ID)
Min 1Max 1

Code indicating that the material being described is that which remains in a packaging (including a tank car) after it has been unloaded

  • In LH109, a value of "R" or "P" requires that the receiver generate the words "residue: last contained" prior to the shipping name in accordance with regulations.
LH1-10
254
Packing Group Code
Optional
Identifier (ID)
Min 1Max 3

Code indicating degree of danger in terms of Roman number I, II or III

LH1-11
1375
Interim Hazardous Material Regulatory Number
Optional
String (AN)
Min 1Max 5

Identifies the current regulatory version number used for hazardous materials shipments

LH1-12
1271
Industry Code
Optional
String (AN)
Min 1Max 30

Code indicating a code from a specific industry code list

  • LH112 is the packaging form code for the non-bulk container passed in the LH101 as defined in 49 CFR 178 and required by 49 CFR 172. (See Code Source 937)
LH2
2200
Heading > N7 Loop > L0 Loop > LH1 Loop > LH2

Hazardous Classification Information

OptionalMax use 4

To specify the hazardous notation and endorsement information

Usage notes

For detailed usage see Hazardous Materials/Dangerous Goods Looping Structure guidelines in Rail Front Matter section 5.5

Example
If either Unit or Basis for Measurement Code (LH2-06) or Temperature (LH2-07) is present, then the other is required
If either Unit or Basis for Measurement Code (LH2-08) or Temperature (LH2-09) is present, then the other is required
If either Unit or Basis for Measurement Code (LH2-10) or Temperature (LH2-11) is present, then the other is required
If either Weight Unit Code (LH2-12) or Net Explosive Quantity (LH2-13) is present, then the other is required
LH2-01
215
Hazardous Classification Code
Optional
Identifier (ID)
Min 1Max 30

Code specifying the hazardous classification corresponding to the shipping name of the hazardous commodity

LH2-02
983
Hazardous Class Qualifier
Optional
Identifier (ID)
Min 1Max 1

Code identifying hazardous class

LH2-03
218
Hazardous Placard Notation Code
Optional
Identifier (ID)
Min 14Max 40

Code identifying the placard notation corresponding to the hazard class of the hazardous commodity

LH2-04
222
Hazardous Endorsement Code
Optional
Identifier (ID)
Min 4Max 25

Code specifying the placard endorsement that is to be shown on the shipping papers for the hazardous commodity

LH2-05
759
Reportable Quantity Code
Optional
Identifier (ID)
Min 2Max 2

Code identifying presence of hazardous substance

LH2-06
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2

Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken

  • LH206 and LH207 indicate the flashpoint temperature.
LH2-07
408
Temperature
Optional
Decimal number (R)
Min 1Max 4

Temperature

LH2-08
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2

Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken

  • LH208 and LH209 indicate the control temperature.
LH2-09
408
Temperature
Optional
Decimal number (R)
Min 1Max 4

Temperature

LH2-10
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2

Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken

  • LH210 and LH211 indicate the emergency temperature.
LH2-11
408
Temperature
Optional
Decimal number (R)
Min 1Max 4

Temperature

LH2-12
188
Weight Unit Code
Optional
Identifier (ID)
Min 1Max 1

Code specifying the weight unit

  • LH212 and LH213 indicate the net explosive weight.
LH2-13
267
Net Explosive Quantity
Optional
Numeric (N0)
Min 1Max 10

Net weight of the explosive quantity of the hazardous commodity

LH3
2300
Heading > N7 Loop > L0 Loop > LH1 Loop > LH3

Hazardous Material Shipping Name Information

OptionalMax use 10

To specify the hazardous material shipping name and additional descriptive requirements

Usage notes

For detailed usage see Hazardous Materials/Dangerous Goods Looping Structure guidelines in Rail Front Matter section 5.5

Example
If either Hazardous Material Shipping Name (LH3-01) or Hazardous Material Shipping Name Qualifier (LH3-02) is present, then the other is required
LH3-01
224
Hazardous Material Shipping Name
Optional
String (AN)
Min 1Max 25

The proper shipping name of the hazardous commodity as specified by Title 49 Code of Federal Regulations, or the shipping name of the dangerous good as defined in the Canadian Transportation of Dangerous Goods Act and Regulations, or the international regulations as promulgated by the United Nations

LH3-02
984
Hazardous Material Shipping Name Qualifier
Optional
Identifier (ID)
Min 1Max 1

Code indicating the source (regulatory) of the proper shipping name

LH3-03
985
N.O.S. Indicator Code
Optional
Identifier (ID)
Min 3Max 3

Code indicating the type of regulatory requirements that apply to a description; N.O.S. stands for Not Otherwise Specified

LH3-04
1073
Yes/No Condition or Response Code
Optional
Identifier (ID)

Code indicating a Yes or No condition or response

  • If LH304 is "Y", then this is an Association of American Railroads Operations and Transportation Bulletin 55 commodity. If "N", it is not an Association of American Railroads Operations and Transportation Bulletin 55 commodity.
N
No
Y
Yes
LFH
2400
Heading > N7 Loop > L0 Loop > LH1 Loop > LFH

Free-form Hazardous Material Information

OptionalMax use 25

To uniquely identify the variable information required by government regulation covering the transportation of hazardous material shipments

Usage notes

For detailed usage see Hazardous Materials/Dangerous Goods Looping Structure guidelines in Rail Front Matter section 5.5

Example
If either Unit or Basis for Measurement Code (LFH-05) or Quantity (LFH-06) is present, then the other is required
LFH-01
808
Hazardous Material Shipment Information Qualifier
Required
Identifier (ID)
Min 3Max 3

Code indicating the type of information being passed so that a receiver may format a description of hazardous commodity movements that meets regulatory requirements

LFH-02
809
Hazardous Material Shipment Information
Required
String (AN)
Min 1Max 25

Specific information required by law for hazardous material shipments

LFH-03
809
Hazardous Material Shipment Information
Optional
String (AN)
Min 1Max 25

Specific information required by law for hazardous material shipments

LFH-04
1023
Hazard Zone Code
Optional
Identifier (ID)
Min 1Max 1

Code specifying the Department of Transportation assigned zone designating the Inhalation Toxicity Hazard Zone

LFH-05
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2

Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken

LFH-06
380
Quantity
Optional
Decimal number (R)
Min 1Max 15

Numeric value of quantity

  • LFH06 indicates activity of the radioactive material.
LFH-07
380
Quantity
Optional
Decimal number (R)
Min 1Max 15

Numeric value of quantity

  • LFH07 indicates transport index of the radioactive material.
Optional
Date (DT)
CCYYMMDD format

Date expressed as CCYYMMDD where CC represents the first two digits of the calendar year

  • LFH08 is the date fumigation began.
LEP
2500
Heading > N7 Loop > L0 Loop > LH1 Loop > LEP

EPA Required Data

OptionalMax use 3

To specify the Environmental Protection Agency (EPA) information relating to shipments of hazardous material

Usage notes

For detailed usage see Hazardous Materials/Dangerous Goods Looping Structure guidelines in Rail Front Matter section 5.5

Example
If either State or Province Code (LEP-03) or Reference Identification (LEP-04) is present, then the other is required
LEP-01
806
EPA Waste Stream Number Code
Optional
Identifier (ID)
Min 4Max 6

Code specifying the waste stream number applicable to the movement of hazardous waste as determined by government regulations

LEP-02
807
Waste Characteristics Code
Optional
Identifier (ID)
Min 12Max 16

Code indicating the waste characteristics as defined by regulatory requirements

LEP-03
156
State or Province Code
Optional
Identifier (ID)
Min 2Max 2

Code specifying the Standard State/Province as defined by appropriate government agency

  • LEP03 is used to identify the state or province responsible for the hazardous waste number contained in LEP04.
LEP-04
127
Reference Identification
Optional
String (AN)
Min 1Max 80

Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier

  • LEP04 is the hazardous waste number.
LH4
2600
Heading > N7 Loop > L0 Loop > LH1 Loop > LH4

Canadian Dangerous Requirements

OptionalMax use 4

To specify additional Transport Canada requirements covering transportation of dangerous goods in Canada

Usage notes

For detailed usage see Hazardous Materials/Dangerous Goods Looping Structure guidelines in Rail Front Matter section 5.5

Example
If either Net Explosive Quantity (LH4-08) or Unit or Basis for Measurement Code (LH4-12) is present, then the other is required
If either Hazardous Material Shipment Information Qualifier (LH4-13), Quantity (LH4-14) or Unit or Basis for Measurement Code (LH4-15) are present, then the others are required
LH4-01
238
Emergency Response Plan Number
Optional
String (AN)
Min 1Max 12

The identity number of a specific hazardous emergency response plan that is assigned by the Director General of Canada

LH4-02
364
Communication Number
Optional
String (AN)
Min 1Max 2048

Complete communications number including country or area code when applicable

  • LH402 is used for the emergency response plan telephone number.
LH4-03
254
Packing Group Code
Optional
Identifier (ID)
Min 1Max 3

Code indicating degree of danger in terms of Roman number I, II or III

LH4-04
230
Subsidiary Classification Code
Optional
Identifier (ID)
Min 1Max 3

Code indicating the classification of dangerous goods, other than the primary classification, that is associated with a number or a set of numbers

  • LH404 is for the first subsidiary classification.
LH4-05
230
Subsidiary Classification Code
Optional
Identifier (ID)
Min 1Max 3

Code indicating the classification of dangerous goods, other than the primary classification, that is associated with a number or a set of numbers

  • LH405 is for the second subsidiary classification.
LH4-06
230
Subsidiary Classification Code
Optional
Identifier (ID)
Min 1Max 3

Code indicating the classification of dangerous goods, other than the primary classification, that is associated with a number or a set of numbers

  • LH406 is for the third subsidiary classification.
LH4-07
271
Subsidiary Risk Indicator Code
Optional
Identifier (ID)
Min 1Max 2

Code identifying the type of subsidiary risk

LH4-08
267
Net Explosive Quantity
Optional
Numeric (N0)
Min 1Max 10

Net weight of the explosive quantity of the hazardous commodity

LH4-09
805
Canadian Hazardous Notation
Optional
String (AN)
Min 1Max 25

Notation required by Canadian regulatory agencies

LH4-10
986
Special Commodity Indicator Code
Optional
Identifier (ID)
Min 1Max 1

Code indicating 'Special Commodity' notation on operational waybill as identified by the Transportation of Dangerous Goods Act and Regulation (TDG)

LH4-11
364
Communication Number
Optional
String (AN)
Min 1Max 2048

Complete communications number including country or area code when applicable

  • LH411 is an additional telephone number.
LH4-12
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2

Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken

LH4-13
808
Hazardous Material Shipment Information Qualifier
Optional
Identifier (ID)
Min 3Max 3

Code indicating the type of information being passed so that a receiver may format a description of hazardous commodity movements that meets regulatory requirements

  • Valid UOM Codes for LH413 code LQI are KG (Kilogram) or LT (Liter)
LH4-14
380
Quantity
Optional
Decimal number (R)
Min 1Max 15

Numeric value of quantity

LH4-15
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2

Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken

LHT
2700
Heading > N7 Loop > L0 Loop > LH1 Loop > LHT

Transborder Hazardous Requirements

OptionalMax use 3

To specify the placard information required by the second government agency when shipment is to cross into another country

Usage notes

For detailed usage see Hazardous Materials/Dangerous Goods Looping Structure guidelines in Rail Front Matter section 5.5

Example
LHT-01
215
Hazardous Classification Code
Optional
Identifier (ID)
Min 1Max 30

Code specifying the hazardous classification corresponding to the shipping name of the hazardous commodity

LHT-02
218
Hazardous Placard Notation Code
Optional
Identifier (ID)
Min 14Max 40

Code identifying the placard notation corresponding to the hazard class of the hazardous commodity

LHT-03
222
Hazardous Endorsement Code
Optional
Identifier (ID)
Min 4Max 25

Code specifying the placard endorsement that is to be shown on the shipping papers for the hazardous commodity

LHR
2800
Heading > N7 Loop > L0 Loop > LH1 Loop > LHR

Hazardous Material Identifying Reference Numbers

OptionalMax use 10

To transmit specific hazardous material reference numbers

Usage notes

For detailed usage see Hazardous Materials/Dangerous Goods Looping Structure guidelines in Rail Front Matter section 5.5

Example
LHR-01
128
Reference Identification Qualifier
Required
Identifier (ID)
Min 2Max 3

Code identifying the Reference Identification

LHR-02
127
Reference Identification
Required
String (AN)
Min 1Max 80

Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier

Optional
Date (DT)
CCYYMMDD format

Date expressed as CCYYMMDD where CC represents the first two digits of the calendar year

PER
2900
Heading > N7 Loop > L0 Loop > LH1 Loop > PER

Administrative Communications Contact

OptionalMax use 5

To identify a person or office to whom administrative communications should be directed

Usage notes

For detailed usage see Hazardous Materials/Dangerous Goods Looping Structure guidelines in Rail Front Matter section 5.5

Example
If either Communication Number Qualifier (PER-03) or Communication Number (PER-04) is present, then the other is required
If either Communication Number Qualifier (PER-05) or Communication Number (PER-06) is present, then the other is required
If either Communication Number Qualifier (PER-07) or Communication Number (PER-08) is present, then the other is required
PER-01
366
Contact Function Code
Required
Identifier (ID)
Min 2Max 2

Code identifying the major duty or responsibility of the person or group named

Optional
String (AN)
Min 1Max 60

Free-form name

PER-03
365
Communication Number Qualifier
Optional
Identifier (ID)
Min 2Max 2

Code identifying the type of communication number

PER-04
364
Communication Number
Optional
String (AN)
Min 1Max 2048

Complete communications number including country or area code when applicable

PER-05
365
Communication Number Qualifier
Optional
Identifier (ID)
Min 2Max 2

Code identifying the type of communication number

PER-06
364
Communication Number
Optional
String (AN)
Min 1Max 2048

Complete communications number including country or area code when applicable

PER-07
365
Communication Number Qualifier
Optional
Identifier (ID)
Min 2Max 2

Code identifying the type of communication number

PER-08
364
Communication Number
Optional
String (AN)
Min 1Max 2048

Complete communications number including country or area code when applicable

PER-09
443
Contact Inquiry Reference
Optional
String (AN)
Min 1Max 20

Additional reference number or description to clarify a contact number

LH1 Loop end
L0 Loop end
L3
3000
Heading > N7 Loop > L3

Total Weight and Charges

OptionalMax use 2

To specify the total shipment in terms of weight, volume, rates, charges, advances, and prepaid amounts applicable to one or more line items

Usage notes

Used to communicate accrual or payment of Terminal Charges

Example
L3-05
58
Amount Charged
Optional
Numeric (N2)
Min 1Max 15

For a line item: freight or special charge; for the total invoice: the total charges -- expressed in the standard monetary denomination for the currency specified

  • L305 is the total charges.
L3-07
117
Prepaid Amount
Optional
Numeric (N2)
Min 1Max 15

Money paid at point of origin (usually by shipper) expressed in the standard monetary denomination for the currency specified

L3-08
150
Special Charge or Allowance Code
Optional
Identifier (ID)
Min 3Max 3

Code identifying type of special charge or allowance

Usage notes

See Rail Data Element Dictionary for valid code values

N7 Loop end
SE
3100
Heading > SE

Transaction Set Trailer

RequiredMax use 1

To indicate the end of the transaction set and provide the count of the transmitted segments (including the beginning (ST) and ending (SE) segments)

Example
SE-01
96
Number of Included Segments
Required
Numeric (N0)
Min 1Max 10

Total number of segments included in a transaction set including ST and SE segments

SE-02
329
Transaction Set Control Number
Required
Numeric (N)
Min 4Max 9

Identifying control number that must be unique within the transaction set functional group assigned by the originator for a transaction set

Heading end

Functional Group Trailer

RequiredMax use 1

To indicate the end of a functional group and to provide control information

Example
GE-01
97
Number of Transaction Sets Included
Required
Numeric (N0)
Min 1Max 6

Total number of transaction sets included in the functional group or interchange (transmission) group terminated by the trailer containing this data element

GE-02
28
Group Control Number
Required
Numeric (N0)
Min 1Max 9

Assigned number originated and maintained by the sender

Interchange Control Trailer

RequiredMax use 1

To define the end of an interchange of zero or more functional groups and interchange-related control segments

Example
IEA-01
I16
Number of Included Functional Groups
Required
Numeric (N0)
Min 1Max 5

A count of the number of functional groups included in an interchange

IEA-02
I12
Interchange Control Number
Required
Numeric (N0)
Min 9Max 9

A control number assigned by the interchange sender

Stedi is a registered trademark of Stedi, Inc. All names, logos, and brands of third parties listed on this page are trademarks of their respective owners (including “X12”, which is a trademark of X12 Incorporated). Stedi, Inc. and its products and services are not endorsed by, sponsored by, or affiliated with these third parties. Use of these names, logos, and brands is for identification purposes only, and does not imply any such endorsement, sponsorship, or affiliation.