{
  "name": "CAS caslib types and table scopes compared",
  "description": "Compares the caslib types and table scopes of SAS Cloud Analytic Services as described in the SAS CAS fundamentals documentation (2021.1.6 - 2026.06): where each lives, how long it lasts, who can add it and what to remember when using it. Compiled from the vendor's primary documentation.",
  "page": "https://casrai.org/guides/sas-viya-platform",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-17T03:34:12Z",
  "temporalCoverage": "2021.1.6 - 2026.06",
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Item",
      "unit": "",
      "description": ""
    },
    {
      "name": "Kind",
      "unit": "",
      "description": ""
    },
    {
      "name": "Lifetime or availability",
      "unit": "",
      "description": ""
    },
    {
      "name": "Key rule from the documentation",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Item": "Session-scope table",
      "Kind": "Table scope",
      "Lifetime or availability": "Dropped when the session ends",
      "Key rule from the documentation": "Default scope; suited to general programming"
    },
    {
      "Item": "Global-scope table",
      "Kind": "Table scope",
      "Lifetime or availability": "Long-lived; available to all sessions subject to access controls",
      "Key rule from the documentation": "Cannot be replaced; drop and reload; promote with PROC CASUTIL or the DATA step"
    },
    {
      "Item": "Transient table",
      "Kind": "Table scope",
      "Lifetime or availability": "Only for the duration of an action",
      "Key rule from the documentation": "Action programming only; not available through the CAS LIBNAME engine"
    },
    {
      "Item": "Personal caslib CASUSER(user-ID)",
      "Kind": "Caslib",
      "Lifetime or availability": "Always available; active at session start",
      "Key rule from the documentation": "Default path /cas/data/casuserlibraries/user-ID"
    },
    {
      "Item": "Predefined caslib",
      "Kind": "Caslib",
      "Lifetime or availability": "Created at deployment",
      "Key rule from the documentation": "Created by an administrator"
    },
    {
      "Item": "Session-scope caslib",
      "Kind": "Caslib",
      "Lifetime or availability": "Added with the CASLIB statement; session scope by default",
      "Key rule from the documentation": "Hides a global caslib with the same name"
    },
    {
      "Item": "Global caslib",
      "Kind": "Caslib",
      "Lifetime or availability": "Available beyond one session",
      "Key rule from the documentation": "In a new deployment only administrators add or delete them"
    }
  ],
  "sources": [
    {
      "title": "SAS Cloud Analytic Services: Fundamentals",
      "url": "https://documentation.sas.com/doc/en/pgmsascdc/v_069/casfun/titlepage.htm",
      "accessed": "2026-11-16"
    }
  ]
}