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

Hi All,

I am new to SAS EG.I am trying to figure out how I can get the path name of a sas programs which are residing in the server ,using SAS EG.

In PC SAS ,I can give the name of the program by going to windows explorer and go into the respective drive and folder and copy the path name and use that in the SAS program.

I don't know if SAS EG has anything similar to that when it comes to SAS program files.I noticed that if there is a SAS dataset ,I can right click it and get the path name of the SAS dataset in EG,but that option is not

available for SAS programs.

Please let me know.

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisHemedinger
Community Manager

The &_SASPROGRAMFILE macro variable, set by EG, might help.

See:

Special automatic macro variables available in SAS Enterprise Guide - The SAS Dummy

Chris

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.

View solution in original post

5 REPLIES 5
ChrisHemedinger
Community Manager

The &_SASPROGRAMFILE macro variable, set by EG, might help.

See:

Special automatic macro variables available in SAS Enterprise Guide - The SAS Dummy

Chris

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
lrozzelle
Calcite | Level 5

Not solved.  this doesnt work.

ChrisHemedinger
Community Manager

If you're having trouble with this, can you post as a new question? This is a solved topic and your situation might be different. Share some details from your SAS log and how your SAS program is included in the EG project.

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
lrozzelle
Calcite | Level 5

Apologies, the situation was a bit different.  The automatic macro variables that contain path info are different between Base SAS, SAS EG and SAS running on UNIX.  I had to write code that worked on every platform, not just EG.  

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 5 replies
  • 7580 views
  • 0 likes
  • 3 in conversation