Architecting, installing and maintaining your SAS environment

starting sas batch job after installation

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

starting sas batch job after installation

hello, I have one linux (rhel7) test server where I have installed sas 9.4 and have done post configuration for lev1.

 

I can go to sasfoundaiton dir and run sas as ->./sas -nodms fine

 

now, I want to run sas job in batch mode with command line like (sas sas-program-name.sas), can someone please help to know how that configure can be done? Thank you.


Accepted Solutions
Solution
‎10-18-2017 05:35 PM
Super User
Posts: 8,062

Re: starting sas batch job after installation

Keep in mind that you have to use the absolute path if the directory of an app is not in your PATH variable.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers

View solution in original post


All Replies
Super User
Posts: 8,062

Re: starting sas batch job after installation

In the SASApp tree under Lev1, look for sasbatch.sh and use that.

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

Re: starting sas batch job after installation

Posted in reply to KurtBremser
THANKS but not quite sure, when I run,
sas test.sas
it says command not found.
Trusted Advisor
Posts: 1,427

Re: starting sas batch job after installation

As @KurtBremser recommended, please use the sasbatch.sh youc an find under Lev1/SASApp/BatchServer.

Then use the command with sasbatch.sh -sysin "yourpath/yourprogram.sas"

Solution
‎10-18-2017 05:35 PM
Super User
Posts: 8,062

Re: starting sas batch job after installation

Keep in mind that you have to use the absolute path if the directory of an app is not in your PATH variable.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
☑ This topic is solved.

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

Discussion stats
  • 4 replies
  • 213 views
  • 4 likes
  • 3 in conversation