BookmarkSubscribeRSS Feed
RFLinnenbank
Calcite | Level 5
Before a project is loaded, is there a way to determine de directory where the application was started?

(e.g: C:\SeGuide.exe, but loading D:\RandomProject.EGP should result in C:\)

Thank all in advance!
3 REPLIES 3
Patrick
Opal | Level 21
Can you give us some insight what the purpose of this is?
Doc_Duke
Rhodochrosite | Level 12
You could always use regedit to export the registry and then read that file to get the information. It's a kluge, but it works.
ClausØrskov
SAS Employee

If you create a program node in Enterprise Guide and submit:

%put _ALL_;

You will find a lot of information in macro variables from the log, like;

  • _CLIENTPROJECTPATH - where your .egp-file is located
  • SASWORKLOCATION - the location of your temporary work library
  • _CLIENTMACHINE - the name of the maschine submitting from
  • _SASHOSTNAME - the host that executes your code

The macro variables can be used in SAS code like @_CLIENTPROJECTPATH.

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