a week ago
we are using sas 9.4 on linux as grid environment.
my question is if we run a batch job via command line with below command where output goes?
(code is data test; a=123; run
Logs says work.test created -> i am trying to find this table
this created directory under my home dir with "SASGSUB-date-time...." where i can see logs+job details+sas program itself. I checked under "grid-share" dir but i don't see output there. I also checked temporary sas work space directory but i don't see anything under my id either.
If you want to run code in batch, you need to take control over the results.
When working with Enterprise Guide or SAS Studio, those frontends will automatically add code that sends output back to them, catch the log, and display datasets. WORK datasets can be viewed because the workspace server process stays active all the time.
So, as @SASKiwi already suggested, do not use the WORK library for datasets you want to use after the batch job has run.
Similarly, direct any output to a place where you can find it, either by using ODS with correct paths for output destinations, or by using the -print option on the commandline.
Finally, redirect the log to a place where you can find it with the -log commandline option.
Need further help from the community? Please ask a new question.