Stedi maintains this guide based on public documentation from American Association of Railroads (AAR). Contact American Association of Railroads (AAR) for official EDI specifications. To report any errors in this guide, please contact us.
X12 161 Train Sheet
—
Delimiters
- ~ Segment
- * Element
- > Component
- ^ Repetition
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
BTS
0200
Beginning Segment for Train Sheets
Max use 1
Required
V9
0230
Event Detail Anticipated Pickup
Max use 1
Required
V9
0230
Event Detail Anticipated Set-out
Max use 1
Required
V9
0230
Event Detail Crew Call
Max use 1
Required
V9
0230
Event Detail Estimated Departure Date
Max use 1
Required
V9
0230
Event Detail Mutually Defined
Max use 1
Required
V9
0230
Event Detail Scheduled Departure Date
Max use 100
Required
V9
0230
Event Detail Train Annulment
Max use 1
Required
V9
0230
Event Detail Train Move Departure
Max use 1
Required
V9
0230
Event Detail Train Reported Passing
Max use 1
Required
H3
0270
Special Handling Instructions
Max use 5
Optional
FAC
0300
Facing Direction
Max use 25
Optional
SE
0700
Transaction Set Trailer
Max use 1
Required
GE
-
Functional Group Trailer
Max use 1
Required
IEA
-
Interchange Control Trailer
Max use 1
Required
—
- 00
- No Authorization Information Present (No Meaningful Information in I02)
—
- 00
- No Security Information Present (No Meaningful Information in I04)
—
- 00801
- 00801 Standards Approved for Publication by ASC X12 Procedures Review Board through December 2019
—
- 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"
—
- I
- Information
- P
- Production Data
- T
- Test Data
—
- T
- Transportation Data Coordinating Committee (TDCC)
- X
- Accredited Standards Committee X12
Heading
BTS
0200
Heading > BTS
Beginning Segment for Train Sheets
RequiredMax use 1
—
Example
If either Total Equipment (BTS-02) or Equipment Status Code (BTS-03) is present, then the other is required
If either Total Equipment (BTS-04) or Equipment Status Code (BTS-05) is present, then the other is required
V9
0230
Heading > V9
Event Detail Anticipated Pickup
RequiredMax use 1
—
Usage notes
—
Example
Variants (one may be used)
V9Event Detail Anticipated Set-outV9Event Detail Crew CallV9Event Detail Estimated Departure DateV9Event Detail Mutually DefinedV9Event Detail Scheduled Departure DateV9Event Detail Train AnnulmentV9Event Detail Train Move DepartureV9Event Detail Train Reported PassingIf State or Province Code (V9-06) is present, then City Name (V9-05) is required
V9
0230
Heading > V9
Event Detail Anticipated Set-out
RequiredMax use 1
—
Usage notes
—
Example
Variants (one may be used)
V9Event Detail Anticipated PickupV9Event Detail Crew CallV9Event Detail Estimated Departure DateV9Event Detail Mutually DefinedV9Event Detail Scheduled Departure DateV9Event Detail Train AnnulmentV9Event Detail Train Move DepartureV9Event Detail Train Reported PassingIf State or Province Code (V9-06) is present, then City Name (V9-05) is required
V9
0230
Heading > V9
Event Detail Crew Call
RequiredMax use 1
—
Usage notes
—
Example
Variants (one may be used)
V9Event Detail Anticipated PickupV9Event Detail Anticipated Set-outV9Event Detail Estimated Departure DateV9Event Detail Mutually DefinedV9Event Detail Scheduled Departure DateV9Event Detail Train AnnulmentV9Event Detail Train Move DepartureV9Event Detail Train Reported PassingIf State or Province Code (V9-06) is present, then City Name (V9-05) is required
V9
0230
Heading > V9
Event Detail Estimated Departure Date
RequiredMax use 1
—
Usage notes
—
Example
Variants (one may be used)
V9Event Detail Anticipated PickupV9Event Detail Anticipated Set-outV9Event Detail Crew CallV9Event Detail Mutually DefinedV9Event Detail Scheduled Departure DateV9Event Detail Train AnnulmentV9Event Detail Train Move DepartureV9Event Detail Train Reported PassingIf State or Province Code (V9-06) is present, then City Name (V9-05) is required
V9
0230
Heading > V9
Event Detail Mutually Defined
RequiredMax use 1
—
Usage notes
—
Example
Variants (one may be used)
V9Event Detail Anticipated PickupV9Event Detail Anticipated Set-outV9Event Detail Crew CallV9Event Detail Estimated Departure DateV9Event Detail Scheduled Departure DateV9Event Detail Train AnnulmentV9Event Detail Train Move DepartureV9Event Detail Train Reported PassingIf State or Province Code (V9-06) is present, then City Name (V9-05) is required
V9
0230
Heading > V9
Event Detail Scheduled Departure Date
RequiredMax use 100
—
Usage notes
—
Example
Variants (one may be used)
V9Event Detail Anticipated PickupV9Event Detail Anticipated Set-outV9Event Detail Crew CallV9Event Detail Estimated Departure DateV9Event Detail Mutually DefinedV9Event Detail Train AnnulmentV9Event Detail Train Move DepartureV9Event Detail Train Reported PassingIf State or Province Code (V9-06) is present, then City Name (V9-05) is required
V9
0230
Heading > V9
Event Detail Train Annulment
RequiredMax use 1
—
Usage notes
—
Example
Variants (one may be used)
V9Event Detail Anticipated PickupV9Event Detail Anticipated Set-outV9Event Detail Crew CallV9Event Detail Estimated Departure DateV9Event Detail Mutually DefinedV9Event Detail Scheduled Departure DateV9Event Detail Train Move DepartureV9Event Detail Train Reported PassingIf State or Province Code (V9-06) is present, then City Name (V9-05) is required
If Time Code (V9-13) is present, then Time (V9-04) is required
V9
0230
Heading > V9
Event Detail Train Move Departure
RequiredMax use 1
—
Usage notes
—
Example
Variants (one may be used)
V9Event Detail Anticipated PickupV9Event Detail Anticipated Set-outV9Event Detail Crew CallV9Event Detail Estimated Departure DateV9Event Detail Mutually DefinedV9Event Detail Scheduled Departure DateV9Event Detail Train AnnulmentV9Event Detail Train Reported PassingIf State or Province Code (V9-06) is present, then City Name (V9-05) is required
V9
0230
Heading > V9
Event Detail Train Reported Passing
RequiredMax use 1
—
Usage notes
—
Example
Variants (one may be used)
V9Event Detail Anticipated PickupV9Event Detail Anticipated Set-outV9Event Detail Crew CallV9Event Detail Estimated Departure DateV9Event Detail Mutually DefinedV9Event Detail Scheduled Departure DateV9Event Detail Train AnnulmentV9Event Detail Train Move DepartureIf State or Province Code (V9-06) is present, then City Name (V9-05) is required
—
- AK
- Out of Service
- D
- Deadhead Locomotive or Caboose
- O
- Operating Locomotive or Caboose
NM1 Loop
OptionalMax >1
Usage notes
—
—
- 86
- Conductor
- BM
- Brakeman
- C0
- Assistant Conductor
- E0
- Assistant Engineer
- EG
- Engineer
- Q1
- Conductor Pilot
- Q2
- Engineer Pilot
NM1 Loop end
Heading end
EDI Samples
Sample 1 (CCT)
ISA*04*SWEDI 161 *00* *02*BNSF *02*TOIX *200718*0131*U*00602*004113896*0*P*~
GS*TR*BNSF*UP*20200718*0131*004113896*X*008010
ST*EDI 161*138960001
BTS*HGALMAD118******147*8700*BNSF*00*R5*N*20200718* QWJTRJ 18*1*20200718
V9*CCT**20200718*0430*****385930****CT
FAC*BNSF*7527*LO*B*O*Y
FAC*UP*8741*LO*F*O*N
NM1*86*1*ANDREWS*J*R***2*BNSF
DTM*150*20200718*0430*CT
DTM*036*20200718*1630*CT
NM1*EG*1*HANCE*B*J***2*BNSF
DTM*150*20200718*0430*CT
DTM*036*20200718*1630*CT
SE*12*138960001
GE*1*004113896
IEA*1*004113896
GS*TR*BNSF*UP*20200718*0131*004113896*X*008010
ST*EDI 161*138960001
BTS*HGALMAD118******147*8700*BNSF*00*R5*N*20200718* QWJTRJ 18*1*20200718
V9*CCT**20200718*0430*****385930****CT
FAC*BNSF*7527*LO*B*O*Y
FAC*UP*8741*LO*F*O*N
NM1*86*1*ANDREWS*J*R***2*BNSF
DTM*150*20200718*0430*CT
DTM*036*20200718*1630*CT
NM1*EG*1*HANCE*B*J***2*BNSF
DTM*150*20200718*0430*CT
DTM*036*20200718*1630*CT
SE*12*138960001
GE*1*004113896
IEA*1*004113896
Sample 2 (TRP)
ISA*04*SWEDI 161 *00* *02*BNSF *02*TOIX *200718*0131*U*00602*004113896*0*P*~
GS*TR*BNSF*UP*20200718*0021*148757264*X*008010
ST*EDI 161*572640001
BTS* IG4SE 13********UP*00*R5*N*20200713*FIG4SE0113*1*20200713
V9*TRP**20200717*2221*****846179****PT
FAC*UP*8752*LO*F*O*Y
FAC*UP*8455*LO*B*O*Y
FAC*UP*5340*LO*B*O*Y
FAC*UP*5445*LO*B*O*Y
FAC*UPRQ*64363*ET*F*O*N
SE*9*572640001
GE*1*148757264
IEA*1*004113896
GS*TR*BNSF*UP*20200718*0021*148757264*X*008010
ST*EDI 161*572640001
BTS* IG4SE 13********UP*00*R5*N*20200713*FIG4SE0113*1*20200713
V9*TRP**20200717*2221*****846179****PT
FAC*UP*8752*LO*F*O*Y
FAC*UP*8455*LO*B*O*Y
FAC*UP*5340*LO*B*O*Y
FAC*UP*5445*LO*B*O*Y
FAC*UPRQ*64363*ET*F*O*N
SE*9*572640001
GE*1*148757264
IEA*1*004113896
Sample 3 (ANL)
ISA*04*SWEDI 161 *00* *02*BNSF *02*TOIX *200718*0131*U*00602*004113896*0*P*~
GS*TR*BNSF*UP*20200718*0806*148763830*X*008010
ST*EDI 161*638300001
BTS*XOKCBRD917******146*8800*BNSF*00*03*N*20200717*4GPDLSJ 18*4*20200717
V9*ANL**20200718*0806*****585984****CT
FAC*BNSF*4090*LO*F*O*Y
FAC*BNSF*5257*LO*B*O*Y
SE*6*638300001
GE*1*148763830
IEA*1*004113896
GS*TR*BNSF*UP*20200718*0806*148763830*X*008010
ST*EDI 161*638300001
BTS*XOKCBRD917******146*8800*BNSF*00*03*N*20200717*4GPDLSJ 18*4*20200717
V9*ANL**20200718*0806*****585984****CT
FAC*BNSF*4090*LO*F*O*Y
FAC*BNSF*5257*LO*B*O*Y
SE*6*638300001
GE*1*148763830
IEA*1*004113896
Sample 4 (SDD)
ISA*04*SWEDI 161 *00* *02*BNSF *02*TOIX *200718*0131*U*00602*004113896*0*P*~
GS*TR*BNSF*UP*20200718*0003*148756726*X*008010
ST*EDI 161*567260001
BTS*QCHIROB616*65*L***4699*6445*8700*BNSF*00*R3*N*20200716*ALGROT3*1*20200716
V9*SDD**20200719*0917*****686147****CT**689225
FAC*BNSF*5190*LO*F*O*Y
FAC*KCS*4019*LO*B*O*Y
FAC*BNQ*47769*ET*F*O*N
SE*7*567260001
GE*1*148756726
IEA*1*004113896
GS*TR*BNSF*UP*20200718*0003*148756726*X*008010
ST*EDI 161*567260001
BTS*QCHIROB616*65*L***4699*6445*8700*BNSF*00*R3*N*20200716*ALGROT3*1*20200716
V9*SDD**20200719*0917*****686147****CT**689225
FAC*BNSF*5190*LO*F*O*Y
FAC*KCS*4019*LO*B*O*Y
FAC*BNQ*47769*ET*F*O*N
SE*7*567260001
GE*1*148756726
IEA*1*004113896
Sample 5 (EDD)
ISA*04*SWEDI 161 *00* *02*BNSF *02*TOIX *200718*0131*U*00602*004113896*0*P*~
GS*TR*BNSF*UP*20200718*0003*148756724*X*008010
ST*EDI 161*567240001
BTS*CBKMDON025*124*L***17735*6877*17300*BNSF*00*R5*N*20200715*2CSLUNJ 16*2*20200715
V9*EDD**20200718*1124*****741680****MT
FAC*BNSF*9009*LO*F*O*Y
FAC*BNSF*6014*LO*B*O*Y
FAC*BNSF*9011*2R*B*O*Y
FAC*BNSF*9262*2R*B*O*Y
SE*8*567240001
GE*1*148756724
IEA*1*004113896
GS*TR*BNSF*UP*20200718*0003*148756724*X*008010
ST*EDI 161*567240001
BTS*CBKMDON025*124*L***17735*6877*17300*BNSF*00*R5*N*20200715*2CSLUNJ 16*2*20200715
V9*EDD**20200718*1124*****741680****MT
FAC*BNSF*9009*LO*F*O*Y
FAC*BNSF*6014*LO*B*O*Y
FAC*BNSF*9011*2R*B*O*Y
FAC*BNSF*9262*2R*B*O*Y
SE*8*567240001
GE*1*148756724
IEA*1*004113896
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.