874 Commodity Movement Services Response
PDAQR
Functional Group ID=CQ

Heading:

	Pos.	Seg.		Req.		Loop	
	No.	ID	Name	Des.	Max.Use	Repeat		
Must Use	0100	ST	Transaction Set Header	M	1									
Must Use	0200	BGN	Beginning Segment	M	1									
	0300	DTM	Date/Time Reference	O	1									
	0400	III	Information	O	>1									
			LOOP ID - N1			>1								
Must Use	0500	N1	Party Identification	M	1									

Detail:

	Pos.	Seg.		Req.		Loop	
	No.	ID	Name	Des.	Max.Use	Repeat		
			LOOP ID - N9			>1								
	0100	N9	Extended Reference Information	O	1									
	0600	III	Information	O	>1									
			LOOP ID - SLN			>1								
	0700	SLN	Subline Item Detail	O	1									
	0900	III	Information	O	>1									
														
Must Use	1000	SE	Transaction Set Trailer	M	1									

	Segment:	ST Transaction Set Header
	Position:	0100
	Loop:
	Level:	Heading
	Usage:	Mandatory
	Max Use:	1

Data Element Summary
	Ref.	Data	
	Des.	Element	Name	    Attributes    
Must Use	ST01	143	Transaction Set Identifier Code	M	1 	ID 3/3	
 	874		Commodity Movement Services Response	
Must Use	ST02	329	Transaction Set Control Number	M	1 	AN 4/9	

	Segment:	BGN Beginning Segment
	Position:	0200
	Loop:
	Level:	Heading
	Usage:	Mandatory
	Max Use:	1

Data Element Summary
	Ref.	Data	
	Des.	Element	Name	    Attributes    
Must Use	BGN01	353	Transaction Set Purpose Code	M	1 	ID 2/2	
 	27		Verify	
Must Use	BGN02	127	Reference Identification	M	1 	AN 1/22	
	The PDA number assigned by the PDA originator in the BGN02 in the PDA.

The data element maximum length indicated is reduced from that which is specified in the ASC X12 standards.	
Must Use	BGN03	373	Date	M	1 	DT 8/8	
	The PDA issue date	
Must Use	BGN07	640	Transaction Type Code	O	1 	ID 2/2	
 	V4		Pre-determined Allocation Quick Response	
Must Use	BGN08	306	Action Code	O	1 	ID 1/2	
 	EZ		Exception Occurred	
	Error(s) or warning(s) occurred in the transaction. Transaction has been acknowledged. Error(s) and warning(s) follow.	
 	RZ		Reject - Header Level Errors	
	The entire transaction was rejected due to header level errors.	
 	WQ		Accept	
	The entire transaction and all PDA line items were accepted.	

	Segment:	DTM Date/Time Reference
	Position:	0300
	Loop:
	Level:	Heading
	Usage:	Optional
	Max Use:	1
Notes:		For NAESB WGQ, this segment is mandatory.	

Data Element Summary
	Ref.	Data	
	Des.	Element	Name	    Attributes    
Must Use	DTM01	374	Date/Time Qualifier	M	1 	ID 3/3	
 	102		Issue	
Must Use	DTM05	1250	Date Time Period Format Qualifier	X	1 	ID 2/3	
 	DT		Date and Time Expressed in Format CCYYMMDDHHMM	
Must Use	DTM06	1251	Date Time Period	X	1 	AN 1/35	
	Statement Date/Time	

	Segment:	III Information
	Position:	0400
	Loop:
	Level:	Heading
	Usage:	Optional
	Max Use:	>1
Notes:		For NAESB WGQ, this segment is mandatory when BGN08 = 'RZ' or when BGN08 = 'EZ' and warning(s) exist at the header level.	

Data Element Summary
	Ref.	Data	
	Des.	Element	Name	    Attributes    
Must Use	III01	1270	Code List Qualifier Code	X	1 	ID 1/3	
 	VAL		Validation Code	
Must Use	III02	1271	Industry Code	X	1 	AN 1/30	
	Validation Code

Refer to "Errors and Warnings (Heading)" table for usage and values.	
	III04	933	Free-form Message Text	X	1 	AN 1/264	
	Validation Message

For NAESB WGQ, this element is sender's option. However, if sending an error or warning code that has been approved by NAESB WGQ, but not yet published, the Validation Message should be sent for further clarification.

	Segment:	N1 Party Identification
	Position:	0500
	Loop:	N1        Mandatory
	Level:	Heading
	Usage:	Mandatory
	Max Use:	1
Notes:		For NAESB WGQ, this segment should occur once for each value in the N101 element.	

Data Element Summary
	Ref.	Data	
	Des.	Element	Name	    Attributes    
Must Use	N101	98	Entity Identifier Code	M	1 	ID 2/3	
 	40		Receiver	
	Statement Recipient ID	
 	41		Submitter	
	Preparer ID	
Must Use	N103	66	Identification Code Qualifier	X	1 	ID 1/2	
	Parties should mutually agree to use the Transportation Service Provider's proprietary entity code when the D-U-N-S® Number is not available.	
 	1		D-U-N-S Number, Dun & Bradstreet	
	For NAESB WGQ, this code value may only be used when sending the Statement Recipient ID or Preparer ID.	
 	SV		Service Provider Number	
	For NAESB WGQ, this code value may only be used when sending the Statement Recipient Proprietary Code or Preparer ID Proprietary Code.	
Must Use	N104	67	Identification Code	X	1 	AN 2/17	
	Preparer ID / Preparer ID Proprietary Code, Statement Recipient ID / Statement Recipient Proprietary Code 

The data element maximum length indicated is reduced from that which is specified in the ASC X12 standards.	

	Segment:	N9 Extended Reference Information
	Position:	0100
	Loop:	N9        Optional
	Level:	Detail
	Usage:	Optional
	Max Use:	1
Notes:		For NAESB WGQ, this segment is mandatory when the BGN08 = 'EZ' and the error(s) or warning(s) exist at the detail or sub-detail level.	

Data Element Summary
	Ref.	Data	
	Des.	Element	Name	    Attributes    
Must Use	N901	128	Reference Identification Qualifier	M	1 	ID 2/3	
 	06		System Number	
Must Use	N902	127	Reference Identification	X	1 	AN 1/11	
	The identifier assigned by the PDA originator in the N902 in the PDA.

The data element maximum length indicated is reduced from that which is specified in the ASC X12 standards.	

	Segment:	III Information
	Position:	0600
	Loop:	N9        Optional
	Level:	Detail
	Usage:	Optional
	Max Use:	>1
Notes:		For NAESB WGQ, this segment is mandatory when the BGN08 = 'EZ' and the error(s) or warning(s) exist at the detail level.	

Data Element Summary
	Ref.	Data	
	Des.	Element	Name	    Attributes    
Must Use	III01	1270	Code List Qualifier Code	X	1 	ID 1/3	
 	VAL		Validation Code	
Must Use	III02	1271	Industry Code	X	1 	AN 1/30	
	Validation Code 

Refer to "Errors and Warnings (Detail)" table for usage and values.	
	III04	933	Free-form Message Text	X	1 	AN 1/264	
	Validation Message

For NAESB WGQ, this element is sender's option. However, if sending an error or warning code that has been approved by NAESB WGQ, but not yet published, the Validation Message should be sent for further clarification.	

	Segment:	SLN Subline Item Detail
	Position:	0700
	Loop:	SLN        Optional
	Level:	Detail
	Usage:	Optional
	Max Use:	1
Notes:		For NAESB WGQ, this segment is mandatory when the BGN08 = 'EZ' and the error(s) or warning(s) exist at the sub-detail level.	

Data Element Summary
	Ref.	Data	
	Des.	Element	Name	    Attributes    
Must Use	SLN01	350	Assigned Identification	M	1 	AN 1/11	
	PDA Submitter's Tracking ID 

The data element maximum length indicated is reduced from that which is specified in the ASC X12 standards.	
Must Use	SLN03	662	Relationship Code	M	1 	ID 1/1	
 	I		Included	

	Segment:	III Information
	Position:	0900
	Loop:	SLN        Optional
	Level:	Detail
	Usage:	Optional
	Max Use:	>1
Notes:		For NAESB WGQ, this segment is mandatory when the BGN08 = 'EZ' and the error(s) or warning(s) exist at the sub-detail level.	

Data Element Summary
	Ref.	Data	
	Des.	Element	Name	    Attributes    
Must Use	III01	1270	Code List Qualifier Code	X	1 	ID 1/3	
 	VAL		Validation Code	
Must Use	III02	1271	Industry Code	X	1 	AN 1/30	
	Validation Code

Refer to "Errors and Warnings (Sub-detail)" table for usage and values.	
	III04	933	Free-form Message Text	X	1 	AN 1/264	
	Validation Message

For NAESB WGQ, this element is sender's option. However, if sending an error or warning code that has been approved by NAESB WGQ, but not yet published, the Validation Message should be sent for further clarification.	

	Segment:	SE Transaction Set Trailer
	Position:	1000
	Loop:
	Level:	Detail
	Usage:	Mandatory
	Max Use:	1

Data Element Summary
	Ref.	Data	
	Des.	Element	Name	    Attributes    
Must Use	SE01	96	Number of Included Segments	M	1 	N0 1/10	
Must Use	SE02	329	Transaction Set Control Number	M	1 	AN 4/9