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!

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 1799 views
  • 0 likes
  • 2 in conversation