{
  "name": "PROC REPORT DEFINE statement usages compared",
  "description": "The six usages of the PROC REPORT DEFINE statement (ACROSS, ANALYSIS, COMPUTED, DISPLAY, GROUP, ORDER) with what each does to a variable, compiled from the SAS reference text for the DEFINE statement and the REPORT procedure documentation.",
  "page": "https://casrai.org/guides/proc-report-sas",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-20T09:45:00Z",
  "temporalCoverage": null,
  "spatialCoverage": null,
  "columns": [
    {
      "name": "DEFINE usage",
      "unit": "",
      "description": ""
    },
    {
      "name": "What it does to the variable",
      "unit": "",
      "description": ""
    },
    {
      "name": "Documented note",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "DEFINE usage": "ACROSS",
      "What it does to the variable": "Makes a data set variable an across variable",
      "Documented note": "Used for a column for each value of a variable"
    },
    {
      "DEFINE usage": "ANALYSIS",
      "What it does to the variable": "Makes a data set variable an analysis variable",
      "Documented note": "Default statistic is SUM; naming a statistic implies this usage"
    },
    {
      "DEFINE usage": "COMPUTED",
      "What it does to the variable": "Defines a variable not in the input data set",
      "Documented note": "Value is set in a compute block"
    },
    {
      "DEFINE usage": "DISPLAY",
      "What it does to the variable": "Makes a data set variable a display variable",
      "Documented note": "Shows the value of each selected observation"
    },
    {
      "DEFINE usage": "GROUP",
      "What it does to the variable": "Makes a data set variable a group variable",
      "Documented note": "Rows consolidate so each row represents multiple observations"
    },
    {
      "DEFINE usage": "ORDER",
      "What it does to the variable": "Makes a data set variable an order variable",
      "Documented note": "Sets row order; default ORDER= value is FORMATTED"
    }
  ],
  "sources": [
    {
      "title": "SAS reference text: DEFINE statement (SFU copy)",
      "url": "https://www.sfu.ca/sasdoc/sashtml/proc/zdefstmt.htm",
      "accessed": "2026-11-17"
    },
    {
      "title": "SAS: The REPORT Procedure",
      "url": "https://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/p1q3wfvkgh3br6n1b5jcho2njs3n.htm",
      "accessed": "2026-11-17"
    }
  ]
}