Desktop productivity for business analysts and programmers

Reconnecting to a lost SAS session

Reply
Frequent Contributor
Posts: 107

Reconnecting to a lost SAS session

Hello All

Please help me with the very annoying problem I am facing with SAS 9.3 EG 5.1 on Windows 7.

How do I keep my SAS session alive even after changing networks?

For Instance: I connect my laptop to LAN at work and obviously have to remove the connection when I go home that results in disconnecting from the server and loosing all my data in the work library. So I would have to run all the code again.

Is there a way to overcome this issue like keeping the session alive even after disconnecting and reconnecting the LAN or disconnecting from LAN and connecting to WIFI or reconnecting to a lost session?

Your help will be very much appreciated.

Grand Advisor
Posts: 10,213

Re: Reconnecting to a lost SAS session

I suggest that you learn how to specify a permanent library and use that for data that needs to persist from SAS session to session. That has been the preferred and basically only method for SAS use for a very long time.

SAS Super FREQ
Posts: 271

Re: Reconnecting to a lost SAS session

As ballardw alluded to...  unfortunately no, there is not currently a way to disconnect EG from a server session and reconnect to the same session later (preserving temporary data, etc.).  Once the connection is severed, that server session cannot be re-established with EG.  We are researching and hoping to add this capability (disconnect/reconnect) in a future release, but for now ballardw's suggestion (using permanent libraries) is recommended if you frequently switch between networks.

Esteemed Advisor
Posts: 6,684

Re: Reconnecting to a lost SAS session

I would say that reconnecting would be impossible when encryption is used, as the temporary keys would be lost when the connection is severed.

Best way is to write your codes in sections that produce persistent results, so that it is easy to continue from a given checkpoint. Which also makes it easier to hand over such projects to scheduled production.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Frequent Contributor
Posts: 107

Re: Reconnecting to a lost SAS session

Thank you guys for all your responses. Keep up your good work. Hope SAS soon makes this possible in the future releases.

Ask a Question
Discussion stats
  • 4 replies
  • 671 views
  • 1 like
  • 4 in conversation