session

fetchresult

Description

Fetch the specified saved result for a session.

Settings
ParameterDescription
idSpecifies the results ID. The default value is 0.
tagSpecifies the results TAG.
Data Preparation View data prep sheet
Data Loading

Load the Cars dataset into the active CAS session for analysis.

Copied!
1 
2PROC CAS;
3TABLE.loadTable / path="cars.sas7bdat" caslib="CASUSER" casout="cars";
4 
5RUN;
6 

Examples

Retrieves a result object from the session history using its numeric identifier.

SAS® / CAS Code Code awaiting community validation
Copied!
1PROC CAS; SESSION.fetchresult / id=1; RUN;
Result :
The dictionary or result object corresponding to the specified ID is returned.

Retrieves a specific result object that was previously tagged, facilitating easier retrieval in batch processing or complex workflows.

SAS® / CAS Code Code awaiting community validation
Copied!
1 
2PROC CAS;
3 
4SESSION.fetchresult / tag="batch_summary_01";
5 
6RUN;
7 
Result :
The result object associated with the tag 'batch_summary_01' is returned.

FAQ

What is the purpose of the fetchresult action?
Which parameter is used to specify the results ID in the fetchresult action?
How can you specify a tag for the results in the fetchresult action?
To which action set does the fetchresult action belong?