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.

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

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