Files
docs.datacontroller.io/docs/cas-tables.md
T
dc-bot db607b2bb3 docs: document v7.13.0 features
- Live formulas (HARDFORMULA/SOFTFORMULA) in dcc-validations with operator-friendly explanations
- MPE_VALIDATIONS table doc: add HARDFORMULA/SOFTFORMULA to RULE_TYPE values
- Roadmap: mark Frontend Formulae and Regex Rules as delivered
- SAS VA Embed: document Live vs Confirm filter modes
- ViewBoxes: document edge/corner drag resizing
- Licensing: combined-key paste, key preview, protocol warning
- CAS Tables: REPLACE load type support and temp table cleanup
- Editor: native date/time pickers, paste-validation overlay, row status indicators
- Stage page: Formatted/Unformatted toggle on the approvals screen
- Viya deploy: configurator improvements, deploy checks, login page UX
- Index page: add live formulas and VA embed to features list
2026-09-03 17:21:58 +00:00

2.3 KiB

layout, title, description, og_image
layout title description og_image
article CAS Tables Dealing with CAS (in-memory) Tables in Data Controller /img/SAS-Viya-and-CAS-300x249.png

!!! warning Work in Progress!

CAS Tables

CAS Tables require special consideration in Data Controller with regards to the following topics:

  • System Account
  • Loading
  • Unloading
  • Special Variables

System Account

Despite having a shared SYSUSERID, the SPRE session will (by default) authenticate using the logged-in user credentials. To get around this, it is necessary to set up the CAS connection in the autoexec - ie, before the user takes over the session. The code snippet will be:

%let _CASHOST_ = <your-host>;

%let _CASPORT_ = 5570;

cas dcsession authdomain="<your-domain>" sessopts=(caslib=casuser);

The credentials need to be first placed in the viya credentials service as described here.

Another approach can be to use the `AUTHINFO="authentication-file" option, as described here.

Note that since the CAS connection is using a shared account, the CASUSER library is never shown in the DC interface.

Loading

It can happen that a CAS table is configured in Data Controller but not loaded into memory. In this case, when a user selects the table, it will be automatically loaded.

REPLACE Load Type

The REPLACE load type (which replaces all rows in the target table with the staged data) is now fully supported on CAS tables. This works the same way as it does for regular SAS datasets - see MPE_TABLES for general REPLACE documentation.

Unloading

After an approval, the in-memory version of the CAS Table will be updated. To apply this to the underlying file on disk, the following code must be executed (eg in a POST APPROVE HOOK):

proc casutil;
   save casdata="mytable" incaslib="mycaslib"
        casout="mytable" outcaslib="mycaslib"
        replace;
quit;

Special Variables

Processing of data in Data Controller is performed in SPRE with SAS datasets - and as such, it is not possible to process character variables longer than 32k or other CAS specific data types.