Hello Jaap, Thank you for your reply.However, I don't fully agree with your comment that "SAS his own technical approaches for a lot of things". I would say that SAS has one way of doing things, Enterprise Guide has another. I think I should first have explained the background. We're using SAS to analyse clinical trial data. Reproducability of the results is key and it's also important to be able to re-run sets of progams and save the logs. EG projects are not useful to us, we use SAS files and use EG as an IDE for developing programs, much as we would do in the Display Manager in regular SAS. Production files are run in batch mode using VBS scripts based on versions Chris Hemedinger placed online. At present, we use a macro variable to specify a study folder location as a UNC path, e.g. "%let StudyDir=\\server\share\dir;". That has the disadvantage that this variable has to be modified if the file is moved, or a directory is renamed. In regular SAS, this wouldn't be a problem. You can get the full path and file name of a SAS syntax file using “%sysfunc(GetOption(SYSIN))” (batch mode) or “%sysget(SAS_EXECFILEPATH)” (interactive). This method does not work in Enterprise Guide. It could be you're thinking of &_CLIENTPROJECTPATH when you say it's only avaiable once you save the EG project. I've looked into this as a solution but it didn't make me happy, being quite stubborn and living in my own world, not really cooperative with how EG works. In EG 4.3 at least, I would hav e to change the "File References" in "Project Properties" to make EG uses relative paths rather than an absolute path. Otherwise, the process still wouldn't work if the project location were to be changed. The process added extra overhead, the EG project had to be maintained, new programs added, old programs deleted. It's less work to just modify StudyDir. I'd hoped that using a network share as the "Files" location on the workplace server would solve my woes, make it possible to just launch a SAS program from that file share using Windows Explorer and that &_SASProgramfile would contain the file location, like SYSIN or EXECFILEPATH in regular SAS. But as said, it doesn't work that way. It's annoying that EG knows the file's location, even if it uses a drive letter the server won't understand. Why can't it just place that in a macro variable, I can easily change that into a UNC path in my program.
... View more