After 20+ years using SAS on the Windows platform, I moved over a year ago to SAS Viya on the Mac OS with SAS Studio. SAS provided some excellent help to get it all up and running.
I just moved to a new docker image with the latest long-term-stable version.
The install went fine and everything is working.
But I realize I lost all the Snippets that I had saved in SAS Studio. I had saved a ton of code that I use a lot. I found the snippets very helpful. I don't see anywhere on my hard drive that the snippets have been saved.
I've seen references to locations of snippets in the University Edition and other iterations of SAS Studio. But they didn't turn up on my machine with the docker implementation.
Is there any hope of retrieving them?
Thanks.
Dan Keating
Hi Dan,
I don't have the exact answer for a Mac, but maybe this will help. I'm assuming that you are using SAS Analytics Pro for SAS Viya, which is run via a Docker image and provides SAS Studio 5.2.
On my Windows instance, these are stored in the account-specific folder within the Viya deployment folder. In my case, I have an account called sasdemo and the snippets would be here:
C:\SAS\deploy-apro\sasdemo\.sasstudio5\mySnippets
The .sasstudio5 folder might be marked as hidden in your Mac file system, as that is a convention in Unix-based file systems. You might need to toggle the visibility in MacOS Finder, or use ls -a when navigating in Terminal.
Hi Dan,
I don't have the exact answer for a Mac, but maybe this will help. I'm assuming that you are using SAS Analytics Pro for SAS Viya, which is run via a Docker image and provides SAS Studio 5.2.
On my Windows instance, these are stored in the account-specific folder within the Viya deployment folder. In my case, I have an account called sasdemo and the snippets would be here:
C:\SAS\deploy-apro\sasdemo\.sasstudio5\mySnippets
The .sasstudio5 folder might be marked as hidden in your Mac file system, as that is a convention in Unix-based file systems. You might need to toggle the visibility in MacOS Finder, or use ls -a when navigating in Terminal.
Thanks very much. You are correct. They are there, and were easy to copy over to the updated installation folder.
Thanks.
Dan
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.