DATA Step, Macro, Functions and more

Create SAS batch session without Icon.

Accepted Solution Solved
Reply
Regular Contributor
Posts: 161
Accepted Solution

Create SAS batch session without Icon.

Hi all,

So I created small SAS macro that creates new SAS session on fly, in two words it just creates cmd file like:
"D:\Program Files\SASHome\SASFoundation\9.4\sas.exe" -CONFIG "D:\Program Files\SASHome\SASFoundation\9.4\sasv9.cfg" -sysin ...\SASCode_3.sas -log ...\lofFile.log

and this CMD file executes from call system or x command, from the SAS base.

Generally session creates and executes normally, log file creates where it should be etc.

But when I start that new sas session it also start base sas, so Icon like in attached image(image_1.png)

So what I would like to do - is create like "Batch" SAS session, that will be exected on background, without creating any icons, output listing etc.

In other words I would like the session I create from x command (by forcing sas.exe etc.)will be like batch session and executes on background.

I hoped -ICON -NOICON and other options that hides listing will help, but for now I still see that icon when create new session  etc.

So will be appreciate for any suggestions/clarifications.

 

Thanks in adwanced for any help.

 


Accepted Solutions
Solution
‎09-21-2017 06:55 AM
Frequent Contributor
Posts: 119

Re: Create SAS batch session without Icon.

Try: -nologo -noterminal

 

Also, I would suggest instead of using an X command, you use PowerShell, Java, C# or something else to launch SAS using Int Tech. That is much cleaner: see if it will work in your case.

 

Look at any of Chris Hemedinger's articles on how to do it.

 

View solution in original post


All Replies
Solution
‎09-21-2017 06:55 AM
Frequent Contributor
Posts: 119

Re: Create SAS batch session without Icon.

Try: -nologo -noterminal

 

Also, I would suggest instead of using an X command, you use PowerShell, Java, C# or something else to launch SAS using Int Tech. That is much cleaner: see if it will work in your case.

 

Look at any of Chris Hemedinger's articles on how to do it.

 

☑ This topic is solved.

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

Discussion stats
  • 1 reply
  • 75 views
  • 0 likes
  • 2 in conversation