EDI
API DocsTerminal

GR2 Train Data

To provide train assignment as to its identification and departure

Sequence
Element
Name
Type
Requirement
Min
Max
Repeat
01
140
Standard Carrier Alpha Code
Identifier (ID)
Mandatory
2
4
1
Code identifying the Standard Carrier Alpha Code
02
Location Qualifier
Identifier (ID)
Conditional
1
2
1
Code identifying type of location
P0203: If either GR2-02 or GR2-03 is present, then the other is required
Codes (184)
03
Location Identifier
String (AN)
Conditional
1
30
1
Code which identifies a specific location
R0304: At least one of GR2-03 or GR2-04 is required
04
City Name
String (AN)
Conditional
2
30
1
Free-form text for city name
P0405: If either GR2-04 or GR2-05 is present, then the other is required
05
State or Province Code
Identifier (ID)
Conditional
2
2
1
Code specifying the Standard State/Province as defined by appropriate government agency
06
Country Code
Identifier (ID)
Optional
2
3
1
Code identifying the country
07
Interchange Train Identification
String (AN)
Optional
1
10
1
Train identification (free-form)
08
Date
Date (DT)
Optional
8
8
1
Date expressed as CCYYMMDD where CC represents the first two digits of the calendar year
09
Time
Time (TM)
Optional
4
8
1
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)
10
Standard Carrier Alpha Code
Identifier (ID)
Optional
2
4
1
Code identifying the Standard Carrier Alpha Code
GR210 is the switch road.
11
Standard Carrier Alpha Code
Identifier (ID)
Optional
2
4
1
Code identifying the Standard Carrier Alpha Code
GR211 is the stack train operation.
12
Interchange Train Identification
String (AN)
Optional
1
10
1
Train identification (free-form)

Stedi is a registered trademark of Stedi, Inc. Stedi's EDI Reference and Mapping Guides are provided for marketing purposes and are free of charge. All names, logos, and brands of third parties listed on our site 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. Our use of these names, logos, and brands is for identification purposes only, and does not imply any such endorsement, sponsorship, or affiliation.

Stedi is a registered trademark of Stedi, Inc. Stedi's EDI Reference and Mapping Guides are provided for marketing purposes and are free of charge. All names, logos, and brands of third parties listed on our site 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. Our use of these names, logos, and brands is for identification purposes only, and does not imply any such endorsement, sponsorship, or affiliation.