I have a question regarding the table scope in SAS Viya. In the documentation it can be seen that the In-Memory duration for a global table is long and available for all sessions and that the In-Memory duration for a Session table is medium and only for the current session.
It can be read that: "By default, when you load a table into memory, the table has session scope."
When I, for example, import a .xlsx file to a table in a CAS In Memory library, the table remains in memory even when my session ends or when I logout from SAS Viya. I would have expected that the table was dropped from memory when my session ended.
1) Can anyone explain why the table remains in memory after my session ends?
2) Is it possible to manipulate more specifically how long a table stays in memory? For example, if the data is not used for 3 weeks it should be dropped from memory.
I'm relatively new to SAS Viya so I still have a lot to learn.
Thanks,
Berry H.
Hi Berry,
To do this:
2) Is it possible to manipulate more specifically how long a table stays in memory? For example, if the data is not used for 3 weeks it should be dropped from memory.
you can use the lifetime subparameter in the CasOut parameter, as in :
I got this from @briankinnebrew 's post "Tired of deleting temporary CAS tables? Let CAS do it for you", found here.
Regards,
Bart
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Early bird rate extended! Save $200 when you sign up by March 31.