Architecting, installing and maintaining your SAS environment

sas-grid batch submission output

Accepted Solution Solved
Reply
Super Contributor
Super Contributor
Posts: 328
Accepted Solution

sas-grid batch submission output

Hello All,

 

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?

 

$sas  test.sas

 

(code is data test; a=123; runSmiley Wink

 

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.

 

please advise.

 

Thanks!


Accepted Solutions
Solution
Tuesday
Super User
Posts: 3,105

Re: sas-grid batch submission output

SAS WORK libraries and datasets are automatically deleted at the end of your batch job. If you wish to keep the TEST dataset write it to a permanent SAS library.

View solution in original post


All Replies
Solution
Tuesday
Super User
Posts: 3,105

Re: sas-grid batch submission output

SAS WORK libraries and datasets are automatically deleted at the end of your batch job. If you wish to keep the TEST dataset write it to a permanent SAS library.

Super User
Posts: 6,936

Re: sas-grid batch submission output

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.

 

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Super Contributor
Super Contributor
Posts: 328

Re: sas-grid batch submission output

thanks all. its dragging me to basics Smiley Happy

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 155 views
  • 3 likes
  • 3 in conversation