Major Program Code
Coded value identifying the major program associated with the contract in the FPDS award record. It is an identifier, not a narrative description, and typically appears as an abbreviated program code such as "RC2."
FPDS Compare
Use Cases
- Dictionary lookup and field explanation
- SQL filtering and grouping
- Analytical reporting and reusable query building
Common Usage
- Program-level spend and award counts
- Filtering contract records by major program
- Joining to reference data for code translation
Common Mistakes
- Assuming the code is a descriptive program name
- Aggregating without checking for missing, null, or agency-specific values
Query Guidance
Use this field as a grouping or join key, typically after standardizing values and validating against known code lists. In SQL, filter on exact code matches, count distinct values to assess coverage, and join to a lookup table when you need human-readable labels.
SQL Examples
Preview values
SELECT
content__award__contractData__majorProgramCode AS major_program_code
FROM fpds.data
WHERE content__award__contractData__majorProgramCode IS NOT NULL
LIMIT 25
Top values
SELECT
content__award__contractData__majorProgramCode AS value,
count() AS record_count
FROM fpds.data
WHERE content__award__contractData__majorProgramCode 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.