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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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