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

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

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

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!
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.

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!
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.  

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