03-02-2015 09:23 PM
I have a program and need to use relative paths. In this program's lifecycle it moves from a /dev folder to a /prod folder, so I can't use an absolute path. This is very straightforward, so I can't understand why it's not working.
This is using SAS GRID, running SAS 9.4, executing through GSUB.
ODS RTF FILE="output.rtf";
PROC PRINT DATA=sashelp.class;
ODS RTF CLOSE;
When I run this with GSUB I get an insufficient authorization error because it tries to write somewhere in /GRIDWORK.
Things I have tried
The last thing I can imagine is to somehow get the path where the program is saved, get that into some macro variable and add it to the FILE statement. This path doesn't seem to exist within SAS, though -GRIDGETRESULTS seems to know where to put the .log and .lst, so SAS must know it somewhere. I guess the question is, can it pass the value to me somewhere? Perhaps through SYSPARM?
Any help appreciated.
03-03-2015 05:35 PM
This really is more of a question for Tech Support. I don't have a grid image to test on, but Tech Support can find one or can direct your question to someone who can test on a grid image. Unless someone who is using GRID just happens to know the answer off the top of their head, it seems to me that Tech Support will be your best resource.