I haven't cared so far about this issue. I use cas actions and cas programming all over.
But I wonder why I have 6 sessions running.
An what is the use case for having several active sessions?
I suppose that if I do not manage the sessions actively I'll face sooner or later performance issues.
When I'm starting my day I run:
/* Init CAS library; */
cas mySession sessopts=(caslib=casuser timeout=1800 locale="en_US");
caslib _all_ assign;
cas mySession sessopts=(caslib="casuser");
But I do not close sessions. I turn off my laptop and that's it.
I think that's bad practice.
I would like to know what I'm missing out not understanding and dealing properly with the sessions.
80 proc cas;
81 session mySession;
82 session.sessionStatus result=res; /* 2 */
83
84 print "Session status:"; /* 3 */
85 print " State: " res["state"];
86 print " Connections: " res["number of Connections"];
87 print " Timeout: " res["Timeout"] "minutes";
88 print " Action Status: " res["ActionStatus"];
89 print " Authenticated: " res["Authenticated"];
90 print " Locale: " res["locale"];
91 run;
NOTE: Active Session now mySession.
Session status:
State: Connected
Connections: 6
Timeout: 1800 minutes
Action Status: Action is active
Authenticated: Yes
Locale: en_US
92 quit;
NOTE: PROCEDURE CAS used (Total process time):
real time 0.00 seconds
cpu time 0.01 seconds
I'm wondering why your log says the timeout value is in minutes!? If it were in seconds as per docu TIMEOUT= Session Option then you just walking away at the end of the day shouldn't cause such issues.
Timeout: 1800 minutes
May-be worth looking a bit closer into the cause for this being minutes together with your SAS Admin and/or SAS Tech Support.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.