BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
abak
Obsidian | Level 7

At current, our code for my company is run in a linux server environment and that is where the code was written. We recently upgarded and got SAS enterprise guide and I want to use it, connected to the server, to do my work. 

 

However, my code does not run through SAS enterprise because a lot of our code uses $HOME in the file location names, which SAS enterprise apparently does not recognize. Solutions?

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisHemedinger
Community Manager

$HOME is an environment variable on Unix, and you can get it with the %SYSGET function:

 

%let home = %sysget(HOME);
%put &home.;

Then use &home. in your file path references.

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

View solution in original post

1 REPLY 1
ChrisHemedinger
Community Manager

$HOME is an environment variable on Unix, and you can get it with the %SYSGET function:

 

%let home = %sysget(HOME);
%put &home.;

Then use &home. in your file path references.

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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!

Register now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1868 views
  • 0 likes
  • 2 in conversation