{
  "name": "SAS array declaration choices for repeat-measurement preparation",
  "description": "An original decision table compiled from SAS statement, array training and array-function documentation. It connects declaration choices with output visibility and index handling for repeat-measurement data preparation; it is not measured performance data.",
  "page": "https://casrai.org/guides/sas-array",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-15T12:14:58Z",
  "temporalCoverage": null,
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Declaration choice",
      "unit": "",
      "description": ""
    },
    {
      "name": "What it references",
      "unit": "",
      "description": ""
    },
    {
      "name": "Output behavior",
      "unit": "",
      "description": ""
    },
    {
      "name": "Loop or retention consideration",
      "unit": "",
      "description": ""
    },
    {
      "name": "Source",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Declaration choice": "Explicit named numeric elements",
      "What it references": "A chosen list of numeric variables",
      "Output behavior": "Member variables are available in output unless excluded",
      "Loop or retention consideration": "Use matching element order when pairing arrays",
      "Source": "SAS ARRAY Statement; Processing Variables with Arrays"
    },
    {
      "Declaration choice": "Character elements",
      "What it references": "Character variables; $ declares character elements",
      "Output behavior": "Named elements are variables, rather than the array name",
      "Loop or retention consideration": "Set the required length when defining new character elements",
      "Source": "SAS ARRAY Statement"
    },
    {
      "Declaration choice": "Inferred dimension with {*}",
      "What it references": "The supplied one-dimensional element list",
      "Output behavior": "Output depends on the member variables",
      "Loop or retention consideration": "DIM supplies the count; * is restricted for temporary and multidimensional arrays",
      "Source": "SAS ARRAY Statement; DIM Function"
    },
    {
      "Declaration choice": "Temporary elements",
      "What it references": "Unnamed calculation elements",
      "Output behavior": "Temporary elements are omitted from the output data set",
      "Loop or retention consideration": "Values are retained across DATA step iterations",
      "Source": "SAS ARRAY Statement"
    },
    {
      "Declaration choice": "Explicit nondefault bounds",
      "What it references": "Elements indexed using the specified lower and upper limits",
      "Output behavior": "Named member variables remain distinct from their subscript values",
      "Loop or retention consideration": "Use LBOUND through HBOUND; DIM is the count, not the upper endpoint",
      "Source": "SAS ARRAY Statement; DIM Function; LBOUND Function"
    }
  ],
  "sources": [
    {
      "title": "ARRAY Statement",
      "url": "https://support.sas.com/documentation/cdl/en/lestmtsref/63323/HTML/default/p08do6szetrxe2n136ush727sbuo.htm",
      "accessed": "2026-11-15"
    },
    {
      "title": "Processing Variables with Arrays: Lesson Summary",
      "url": "https://www2.sas.com/onlinetutor/wbt106/m35sum.htm",
      "accessed": "2026-11-15"
    },
    {
      "title": "DIM Function",
      "url": "https://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/p18toxpk18mlr1n1x7yihyj8o8jb.htm",
      "accessed": "2026-11-15"
    },
    {
      "title": "LBOUND Function",
      "url": "https://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/n0ffxj18l0al4qn1m307xfxfbadi.htm",
      "accessed": "2026-11-15"
    }
  ]
}