Desktop productivity for business analysts and programmers

How to get the path name of a sas program resides in a server using EG?

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 117
Accepted Solution

How to get the path name of a sas program resides in a server using EG?

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


Accepted Solutions
Solution
‎01-21-2013 02:04 PM
Community Manager
Posts: 2,692

Re: How to get the path name of a sas program resides in a server using EG?


All Replies
Solution
‎01-21-2013 02:04 PM
Community Manager
Posts: 2,692

Re: How to get the path name of a sas program resides in a server using EG?

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

See:

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

Chris

Frequent Contributor
Posts: 117

Re: How to get the path name of a sas program resides in a server using EG?

Thanks Chris.

Occasional Contributor
Posts: 12

Re: How to get the path name of a sas program resides in a server using EG?

Not solved.  this doesnt work.

Community Manager
Posts: 2,692

Re: How to get the path name of a sas program resides in a server using EG?

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.

Occasional Contributor
Posts: 12

Re: How to get the path name of a sas program resides in a server using EG?

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.  

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 5 replies
  • 1253 views
  • 0 likes
  • 3 in conversation