Desktop productivity for business analysts and programmers

Must find directory where SEGuide was run from

Reply
Occasional Contributor
Posts: 17

Must find directory where SEGuide was run from

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!
Respected Advisor
Posts: 4,137

Re: Must find directory where SEGuide was run from

Can you give us some insight what the purpose of this is?
Trusted Advisor
Posts: 2,114

Re: Must find directory where SEGuide was run from

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.
SAS Employee
Posts: 1

Re: Must find directory where SEGuide was run from

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.

Ask a Question
Discussion stats
  • 3 replies
  • 135 views
  • 0 likes
  • 4 in conversation