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.
| Parameter | Description |
|---|---|
| id | Specifies the 64-bit integer identifier of the saved result to flush. |
| tag | Specifies the string tag associated with the saved result to flush. |
Start a CAS session to perform actions.
| 1 | cas casauto; |
Removes a result from the session cache that was identified by a specific tag string.
| 1 | |
| 2 | PROC CAS; |
| 3 | |
| 4 | SESSION.flushresult / tag="myPreviousResult"; |
| 5 | RUN; |
| 6 |
Removes a specific result from the session history using its unique numeric identifier.
| 1 | PROC CAS; |
| 2 | /* Flushes the result with the specific ID 12345 */ |
| 3 | SESSION.flushresult / id=12345; |
| 4 | RUN; |