session

flushresult

Description

The flushresult action removes (flushes) a saved result from the current CAS session history. This action is primarily used to manage session memory by clearing specific results that were previously cached or saved using result IDs or tags.

Settings
ParameterDescription
idSpecifies the 64-bit integer identifier of the saved result to flush.
tagSpecifies the string tag associated with the saved result to flush.
Data Preparation View data prep sheet
Session Initialization

Start a CAS session to perform actions.

Copied!
1cas casauto;

Examples

Removes a result from the session cache that was identified by a specific tag string.

SAS® / CAS Code Code awaiting community validation
Copied!
1 
2PROC CAS;
3 
4SESSION.flushresult / tag="myPreviousResult";
5RUN;
6 
Result :
The result tagged 'myPreviousResult' is removed from the session memory.

Removes a specific result from the session history using its unique numeric identifier.

SAS® / CAS Code Code awaiting community validation
Copied!
1PROC CAS;
2 /* Flushes the result with the specific ID 12345 */
3 SESSION.flushresult / id=12345;
4RUN;
Result :
The result object corresponding to ID 12345 is discarded from the session.

FAQ

What is the purpose of the flushresult action?
Which parameters are available for the flushresult action?
What data type is required for the 'id' parameter?
What data type is required for the 'tag' parameter?