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
The &_SASPROGRAMFILE macro variable, set by EG, might help.
See:
Special automatic macro variables available in SAS Enterprise Guide - The SAS Dummy
Chris
The &_SASPROGRAMFILE macro variable, set by EG, might help.
See:
Special automatic macro variables available in SAS Enterprise Guide - The SAS Dummy
Chris
Thanks Chris.
Not solved. this doesnt work.
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.
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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.