I have a linux server and am trying to get proc traj working for users. The instructions say "Place the traj executable in its own directory, and add that directory to your config file in the -PATH option list."
Is there some way to have multiple path options in the sasv9.cfg file? My current path looks like this "-PATH !SASROOT/sasexe"
I tried adding a new line so it looks like this
-PATH !SASROOT/sasexe
-PATH /opt/trajv9-unix/c/
but no difference.
the only thing that seems to "work" is placing the traj file in this locations: /usr/local/SASHome/SASFoundation/9.4/sasexe/
Users say they no longer get an error, but also no results are output. I tried running the test code that comes with proc traj (trajtest.sas) and it completes, but I don't see anything in the results window in SAS Studio. I have also tried running it command line - which also outputs a .log file, but that's it (log just has the full code in it and some loging info about time taken, page faults, etc).
Is this expected behavior? Shouldn't there be results outputted somehow?
I should note that I am not a SAS programmer - I am a systems admin.
Just wanted to update this in case anyone else comes across this issue
removing the quotes around the paths fixed that issue with the PATH.
In order to get PROC TRAJ working in SAS studio, the macros that come with the download (traj*.sas) have to be copied to: !SASROOT/SASFoundation/9.4/sasautos/
yeah I tried using something like:
-PATH (
'!SASROOT/sasexe'
'/opt/traj/'
)
however this results in an error when trying to log in: "The launch of the server process failed due to an invalid or inaccessible LOG file."
I get the same error even when using:
-PATH (
'!SASROOT/sasexe'
)
Just wanted to update this in case anyone else comes across this issue
removing the quotes around the paths fixed that issue with the PATH.
In order to get PROC TRAJ working in SAS studio, the macros that come with the download (traj*.sas) have to be copied to: !SASROOT/SASFoundation/9.4/sasautos/
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.