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.
FPDS Compare
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.