Architecting, installing and maintaining your SAS environment

memsize option while running sas via batch mode

Accepted Solution Solved
Reply
Contributor
Posts: 29
Accepted Solution

memsize option while running sas via batch mode

Hi All,

I'm stuck with a doubt, can we pass memsize while running our SAS job on the grid as a batch script ie nohup abc.sas -memsize 20G & 

 

I found one link which states how could I set memsize on EG for the different set of user (http://support.sas.com/documentation/cdl/en/gridref/67371/HTML/default/viewer.htm#n1inymfs0b7go2n147...), but not sure how to apply it while running as a batch script.

 

Thanks for the help in advance.


Accepted Solutions
Solution
‎01-23-2018 07:50 AM
Trusted Advisor
Posts: 1,758

Re: memsize option while running sas via batch mode

[ Edited ]
Posted in reply to LearnByMistk

Hello @LearnByMistk,

 

indeed, command line has preference as @KurtBremser mentioned.

 

However, and towards make administration and maintenance easier, also to developers, my main recommendation would be to just create additional SAS Batch Servers on your SASApp. You can have as many as you want to, since it is not an IOM server. And on each Batch Server, you can select the memory settings. The configuration and autoexec can be either the same or you can make changes, as those memory settings.

 

On that way, the users will just need to select the right batch server when they deploy/schedule the jobs and it will automatically take the settings.

View solution in original post


All Replies
Super User
Posts: 9,925

Re: memsize option while running sas via batch mode

Posted in reply to LearnByMistk

You can do it like that on the commandline. The commandline option takes preference over all other settings from the config file(s).

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Solution
‎01-23-2018 07:50 AM
Trusted Advisor
Posts: 1,758

Re: memsize option while running sas via batch mode

[ Edited ]
Posted in reply to LearnByMistk

Hello @LearnByMistk,

 

indeed, command line has preference as @KurtBremser mentioned.

 

However, and towards make administration and maintenance easier, also to developers, my main recommendation would be to just create additional SAS Batch Servers on your SASApp. You can have as many as you want to, since it is not an IOM server. And on each Batch Server, you can select the memory settings. The configuration and autoexec can be either the same or you can make changes, as those memory settings.

 

On that way, the users will just need to select the right batch server when they deploy/schedule the jobs and it will automatically take the settings.

SAS Employee
Posts: 296

Re: memsize option while running sas via batch mode

Posted in reply to LearnByMistk

For a SAS Grid environment, you can also use Grid Options Sets. See this link...

 

http://support.sas.com/documentation/cdl/en/gridref/67371/HTML/default/viewer.htm#n1inymfs0b7go2n147...

 

 

☑ This topic is solved.

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

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