Main Account Code

This field stores the main account code portion of the Treasury Account Symbol (TAS) associated with an IDV’s listed Treasury account. It is a coded identifier for the specific Treasury account or fund segment, not a narrative description.

Family: IDV
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__IDV__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__mainAccountCode
Title
Main Account Code
FPDS Path
IDV/contractData/listOfTreasuryAccounts/treasuryAccount/treasuryAccountSymbol/mainAccountCode
Description
This field stores the main account code portion of the Treasury Account Symbol (TAS) associated with an IDV’s listed Treasury account. It is a coded identifier for the specific Treasury account or fund segment, not a narrative description.
Business Meaning
It helps analysts trace which appropriated fund or Treasury account supports an IDV, enabling budget, funding, and fiscal oversight analysis. It is useful for linking procurement activity to specific accounts, fund structures, and obligations across reporting periods.
Example Value
0511
Observed Non-Null Count
747,899

FPDS Compare

FPDS Query Variable
content__IDV__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__mainAccountCode
FPDS XML Path
IDV/contractData/listOfTreasuryAccounts/treasuryAccount/treasuryAccountSymbol/mainAccountCode
Mapping Type
flattened_fpds_xml_field
Comparison Summary
FPDS Query flattens the original nested FPDS XML path 'IDV/contractData/listOfTreasuryAccounts/treasuryAccount/treasuryAccountSymbol/mainAccountCode' into the SQL-ready variable 'content__IDV__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 contracts or IDVs to Treasury funding accounts
  • Filtering awards by fund or appropriation code
  • Grouping obligations by account structure for fiscal analysis

Common Mistakes

  • Assuming the code is a human-readable fund name
  • Dropping leading zeros or comparing it as a numeric field

Query Guidance

Use exact-match or grouped comparisons on the code value, and preserve it as text in SQL to avoid truncation or loss of leading zeros. When joining or validating funding data, pair it with other TAS components rather than treating it as a standalone budget identifier.

SQL Examples

Preview values

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

Top values

SELECT
    content__IDV__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__mainAccountCode AS value,
    count() AS record_count
FROM fpds.data
WHERE content__IDV__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.