Search Results

442 résultats trouvés Page 5 / 45
Exemple
Voir

Checking Authorization Before and After Assuming ACTION Role

proc cas; /* 1. Check if the user is authorized for a specific action before assuming a role */ accessControl.isAuthorizedActions / actions={{name='serverstatus', actionSet='builtins'}}; /* 2. Assume the ACTION role */ accessControl.assumeRole / adminRole='ACTION'; /* 3. Check au...

Exemple
Voir

Switching a Running Action to Batch Mode

/* In Session 1 (long_running_action) */ proc cas; session casauto name='long_running_action'; action simple.summary / table='my_table', async='summary_job'; print session.sessionId(); run; /* In Session 2, after getting the UUID from Session 1 */ proc cas; session.batchresults / uuid='u...

Exemple
Voir

Complete Workflow: Asynchronous Action, Batching, and Result Retrieval

/* Step 1: Start the asynchronous action in Session A */ cas session_a; proc cas; session session_a name='session_a'; action simple.summary result=summary_job / table='my_table', async='my_summary_job'; print 'Session A UUID: ' || session.sessionId(); run; /* Step 2: In a separate SAS sess...

Exemple
Voir

Full Workflow: Checkout, Verify, and Check-In All

proc cas; /* Step 1: Ensure a table is loaded and checked out */ table.loadTable / caslib="casuser" path="cars.sashdat" casout={name="cars", replace=true}; accessControl.checkOutObject / uri="cas/caslibs/casuser/tables/cars"; /* Step 2: Verify the checkout exists */ accessControl.whatC...

Exemple
Voir

Simple Session Termination

proc cas; session.endSession; run;

Exemple
Voir

Identify and End Session

proc cas; session.sessionId result=r; print "Ending Session ID: " || r.uuid; session.endSession; run;

Exemple
Voir

Fetching Result by ID

proc cas; session.fetchresult / id=1; run;

Exemple
Voir

Fetching Result by Tag

proc cas; session.fetchresult / tag="batch_summary_01"; run;

Exemple
Voir

Flushing a Result by Tag

proc cas; session.flushresult / tag="myPreviousResult"; run;

Exemple
Voir

Flushing a Result by ID

proc cas; /* Flushes the result with the specific ID 12345 */ session.flushresult / id=12345; run;