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

I have a simple question about opening a SAS program. I am using SAS EG 7.1 and connected with a SAS server. 

 

When I open a SAS program in a pop up window (File -> Open -> Program), if the program is located on a Windows shared drive, I can simply put in the file path to the program. For example, entering “\\Uszzaschnas03\shared\xxxxxxx\test.sas” in the File name and clicking open will work.

 

However, I don’t know how to open programs that are saved on the SAS server via a file path. I checked the macro value &_SASPROGRAMFILE, which is something like "/data/sas_cdlib/xxxxxxx". But when I enter the file path into the "File name", it gives me an error saying the file does not exist.

 

Do you know how to open a program on the SAS server via a file path? I am working on some automation projects and trying to avoid clicking through the folders to open a program.

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

A file path like "/data/sas_cdlib/xxxxxxx" won't work in EG because your PC has no knowledge of that. It is possible to set up a file share from your Unix SAS server but that would have to be set up by an IT administrator and it could look something like this:

"//MySASServer/data/sas_cdlib/xxxxxxx".

 

In EG you could run the statement %include "/data/sas_cdlib/xxxxxxx"; which should read in the program and run it.

View solution in original post

2 REPLIES 2
SASKiwi
PROC Star

A file path like "/data/sas_cdlib/xxxxxxx" won't work in EG because your PC has no knowledge of that. It is possible to set up a file share from your Unix SAS server but that would have to be set up by an IT administrator and it could look something like this:

"//MySASServer/data/sas_cdlib/xxxxxxx".

 

In EG you could run the statement %include "/data/sas_cdlib/xxxxxxx"; which should read in the program and run it.

eeendless
Calcite | Level 5
I will go with the second (easier) solution. Thanks!

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 2640 views
  • 0 likes
  • 2 in conversation