{
  "name": "SAS SQL operations and research-data validation checks",
  "description": "An original cross-reference of PROC SQL operations, their documented effects and checks for a research extraction. Compiled from SAS documentation on table creation, missing values, grouping and summary functions; checks describe the implications of the documented behavior.",
  "page": "https://casrai.org/guides/sas-sql",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-15T11:59:31Z",
  "temporalCoverage": null,
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Operation",
      "unit": "",
      "description": ""
    },
    {
      "name": "Documented effect",
      "unit": "",
      "description": ""
    },
    {
      "name": "Validation check",
      "unit": "",
      "description": ""
    },
    {
      "name": "Primary source",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Operation": "CREATE TABLE AS SELECT",
      "Documented effect": "Stores a query result as a SAS table; does not automatically display it.",
      "Validation check": "SELECT from the saved table to inspect it.",
      "Primary source": "https://documentation.sas.com/api/collections/pgmsascdc/v_045/docsets/sqlproc/content/sqlproc.pdf?locale=en"
    },
    {
      "Operation": "LEFT JOIN with ON",
      "Documented effect": "Returns matching rows and unmatched rows from the left table.",
      "Validation check": "Reconcile retained roster records and repeated matches.",
      "Primary source": "https://documentation.sas.com/api/collections/pgmsascdc/v_045/docsets/sqlproc/content/sqlproc.pdf?locale=en"
    },
    {
      "Operation": "IS NOT MISSING in WHERE",
      "Documented effect": "Retains rows whose tested expression is not missing.",
      "Validation check": "Distinguish a complete roster from an observed-outcome subset.",
      "Primary source": "https://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002473690.htm"
    },
    {
      "Operation": "COUNT(*) and COUNT(score)",
      "Documented effect": "The first counts rows; the second counts nonmissing score values.",
      "Validation check": "Report both row counts and observed-score denominators.",
      "Primary source": "https://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002473699.htm"
    },
    {
      "Operation": "GROUP BY with AVG(score)",
      "Documented effect": "Calculates the summary for each group; AVG ignores missing scores.",
      "Validation check": "Define the observation unit contributing to each group mean.",
      "Primary source": "https://documentation.sas.com/api/collections/pgmsascdc/v_045/docsets/sqlproc/content/sqlproc.pdf?locale=en"
    },
    {
      "Operation": "NOREMERGE",
      "Documented effect": "Prevents processing of queries requiring remerging.",
      "Validation check": "Investigate an error when detail columns enter a grouped summary.",
      "Primary source": "https://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002473699.htm"
    },
    {
      "Operation": "OUTOBS with CREATE TABLE AS",
      "Documented effect": "Limits the number of rows written to the result table.",
      "Validation check": "Remove exploratory limits before a complete extraction.",
      "Primary source": "https://documentation.sas.com/api/collections/pgmsascdc/v_045/docsets/sqlproc/content/sqlproc.pdf?locale=en"
    }
  ],
  "sources": [
    {
      "title": "SAS SQL Procedure User's Guide, 2020.1-2026.09",
      "url": "https://documentation.sas.com/api/collections/pgmsascdc/v_045/docsets/sqlproc/content/sqlproc.pdf?locale=en",
      "accessed": "2026-11-15"
    },
    {
      "title": "SAS summary-function reference",
      "url": "https://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002473699.htm",
      "accessed": "2026-11-15"
    },
    {
      "title": "SAS IS condition reference",
      "url": "https://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002473690.htm",
      "accessed": "2026-11-15"
    }
  ]
}