Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mv_castabsave.sas File Reference

Saves an in-memory CAS table back to persistent storage. More...

Go to the source code of this file.

Detailed Description

Runs in SPRE against an active CAS session. Accepts a SAS libref, derives the CAS caslib and session UUID from sashelp.vlibnam, locates the owning CAS server via the casManagement REST API, then queries the table endpoint to discover the original source file and saves back to that path. CASUTIL infers the file type from the output file extension.

A CAS session must already be established by the caller, eg:

cas mysess;
libname mylib cas caslib=Public;
%mv_castabsave(lib=mylib, table=BASEBALL)
Parameters
[in]lib=SAS libref for the CAS caslib
[in]table=Name of the in-memory CAS table to save
[in]mdebug=(0) Set to 1 to enable verbose logging:
  • echoes resolved parameters
  • prints HTTP response body
  • enables mprint/notes during PROC calls

SAS Macros

Definition in file mv_castabsave.sas.