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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 859 views
  • 0 likes
  • 4 in conversation