BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Yura2301
Quartz | Level 8

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
AlanC
Barite | Level 11

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.

 

https://github.com/savian-net

View solution in original post

1 REPLY 1
AlanC
Barite | Level 11

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.

 

https://github.com/savian-net

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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