
Canadian National Railway (CN Rail) 322 Terminal Operations and Intermodal Ramp Activity
Canadian National Railway (CN Rail) · X12 004010
The Canadian National Railway (CN Rail) 322 is the terminal operations message reporting container gate and yard activity.
Canadian National Railway (CN Rail)’s published 322 specification, rendered as an interactive guide. Expand any segment to see its elements, data types, lengths and accepted codes — then validate your own document against it below.
Specification
12 of 12 segments
HEADING
ST
Transaction Set Header ST
pos 010
Optional
max —
Q5
Status Details Q5
Example:
Q5*AR*20180525*1009*LT**CALGARY LOG PARK*AB*CA***LQ*51.110711**LK*-113.834840
pos 016
Required
max —
N7 Looprequired
N7
Equipment Details N7
Example: N7*CNRU*123456*32697*N*10500******CN****5300*A*L***114*0
pos 020
Required
max —
DTM
Date Time Reference DTM
Example: DTM*140*20180525*1009*LT
pos 040
Optional
max 2
M7
Seal Numbers M7
Example: M7*4377911
pos 050
Optional
max 5
W2
Equipment Identification W2
pos 070
Optional
max —
NA
Cross Reference Equipment NA
Example: NA*EQ*CNRU1234561*GTW*676024*F*AB1
pos 080
Optional
max 30
V1
Vessel Identification V1
pos 110
Optional
max —
R4 Looprequired
R4
Port Or Terminal R4
Examples:
R4*6*SL*380002*CHICAGO INTER TERM*US***IL
R4*7*CS*082417*CALGARY LOG PARK*CA***AB
pos 120
Required
max —
N1 Loop
N1
Name N1
Examples:
N1*SH*INTERMODAL SHIPPER INC*93*INS
N1*CN*INTERMODAL CONSIGNEE INC*93*INC
N1*MC*TRANSPORT*93*CNRZ
pos 150
Required
max —
N9
Reference Identification N9
Examples:
N9*WY*813216
N9*BM*031258822270103
N9*P8*821795
N9*CN*6222868832-05
N9*CR*00328860016346584
N9*SO*031258822270103
N9*CE*NOEEI 30.36
pos 170
Optional
max 10
SE
Transaction Set Trailer SE
pos 220
Optional
max —
Validate your 322
Paste or upload a document and check it against Canadian National Railway (CN Rail)’s published rules — segment order and repetition, required elements, field lengths, data types and accepted codes. Nothing is stored.
Go live on Canadian National Railway (CN Rail)’s 322 in days, not months
Connect this guide to your accounting system and test with Canadian National Railway (CN Rail) yourself, or leave the mapping and the test cycle to us, at no extra charge.