Main Account Code

Code for the Treasury main account tied to the award's reported Treasury account. It is a coded identifier, not a narrative description, and is used to classify the account within Treasury reporting structures.

Family: Award
Category: Contract Data
Data Type: identifier_or_code
Semantic Type: identifier
Mapping: flattened_fpds_xml_field
AI Confidence: high

Variable Overview

FPDS Query Variable
content__award__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__mainAccountCode
Title
Main Account Code
FPDS Path
award/contractData/listOfTreasuryAccounts/treasuryAccount/treasuryAccountSymbol/mainAccountCode
Description
Code for the Treasury main account tied to the award's reported Treasury account. It is a coded identifier, not a narrative description, and is used to classify the account within Treasury reporting structures.
Business Meaning
This field helps analysts connect procurement actions to the specific Treasury account structure used for budgetary and financial reporting. It supports fund tracking, cross-walks to appropriations or account hierarchies, and identification of which federal account is being charged or referenced.
Example Value
1804
Observed Non-Null Count
34,553,505

FPDS Compare

FPDS Query Variable
content__award__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__mainAccountCode
FPDS XML Path
award/contractData/listOfTreasuryAccounts/treasuryAccount/treasuryAccountSymbol/mainAccountCode
Mapping Type
flattened_fpds_xml_field
Comparison Summary
FPDS Query flattens the original nested FPDS XML path 'award/contractData/listOfTreasuryAccounts/treasuryAccount/treasuryAccountSymbol/mainAccountCode' into the SQL-ready variable 'content__award__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__mainAccountCode'.

Use Cases

  • Dictionary lookup and field explanation
  • SQL filtering and grouping
  • Analytical reporting and reusable query building

Common Usage

  • Linking awards to Treasury account structures
  • Grouping obligations by funding account
  • Filtering awards by specific account codes

Common Mistakes

  • Reading the code as a descriptive label instead of an identifier
  • Joining on this field without accounting for paired Treasury account elements or formatting differences

Query Guidance

Use this field as a join key or filter criterion only when matching to a Treasury account reference table or another dataset with the same code standard. In SQL, compare values as strings when possible to preserve leading zeros, and combine it with related account fields for reliable aggregation or validation.

SQL Examples

Preview values

SELECT
    content__award__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__mainAccountCode AS main_account_code
FROM fpds.data
WHERE content__award__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__mainAccountCode IS NOT NULL
LIMIT 25

Top values

SELECT
    content__award__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__mainAccountCode AS value,
    count() AS record_count
FROM fpds.data
WHERE content__award__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__mainAccountCode IS NOT NULL
GROUP BY value
ORDER BY record_count DESC
LIMIT 25

Each dictionary item includes SQL-ready examples generated alongside the variable metadata, allowing immediate use in FPDS Query for filtering, aggregation, and analysis.