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

Hello.
I have the problem with too many windows in sas batch mode.

I use the following command:

 

systask command "START /high ""Batch"" ""C:\Program Files\SAS\SASFoundation\9.2(32-bit)\sas.exe"" 
	 			-batch -nosplash  -sysin ""&CodePatch.______TrRt__0_1_Forse_.sas"" &log ";

so I have too many windows making my job very difficult.

 

Is a way that will eliminate the sas window in all, or everything will work in the background and will not hinder my work

 

I heve sas 9.2. TS Level 2M0 W32_VSPRO Windows 6.2.9200 windows 8.1 pro

 

 

Thank you very much for all your help

1 ACCEPTED SOLUTION

Accepted Solutions
makset7
Obsidian | Level 7
systask command "START /high ""Batch"" 
  ""C:\Program Files\SAS\SASFoundation\9.2(32-bit)\sas.exe"" 
      -sysin ""&CodePatch.__TrRt_&NrFile._&TF._0_0_DL.sas"" 
     &log -nodms -noterminal -nostatuswin -nosplash -noicon"; 

I close the topic, I found a solution

View solution in original post

7 REPLIES 7
Shmuel
Garnet | Level 18

Try add -NODMS sas system option to your execution command.

makset7
Obsidian | Level 7
systask command "START /high ""Batch"" ""C:\Program Files\SAS\SASFoundation\9.2(32-bit)\sas.exe"" 
	 			-nodms -batch -nosplash  -sysin ""&CodePatch.______TrRt__0_1_Forse_.sas"" &log ";

not work

Shmuel
Garnet | Level 18

Running batch mode does not open windows.

1) What do you mean by "too many windows" ?

2) What do you mean by "not work" - what are the symptoms?

    Do you get any log file ? you can define a log filename using -ALTLOG system option.

makset7
Obsidian | Level 7

What do you mean by "too many windows" ?

 

 

sas programs run every 5 minutes and at the same time I do something else eg in excel and sas windows come to the foreground (first plan) and they do my work hard

 

What do you mean by "not work" - what are the symptoms?

 

does not change the way sas windows display

 

Do you get any log file ? you can define a log filename using -ALTLOG system option.

%let log = -log ""&CodePatch._log""; 

 

ballardw
Super User

You haven't really described (or screen captured) the content of any of the SAS "Windows". Other options you may be looking for could be -NOSTATUSWIN if the window is shows the name of the SAS job. Or possibly -NOTERMINAL and/or -NOICON options.

 

 

makset7
Obsidian | Level 7

I've included yours tips in the following way

systask command "START /high ""Batch"" ""C:\Program Files\SAS\SASFoundation\9.2(32-bit)\sas.exe"" 
	 			-NOSTATUSWIN -NOTERMINAL -NOICON -batch -nosplash -sysin ""&CodePatch.__TrRt_&NrFile._&TF._0_0_DL.sas"" &log "; 

maybe I'm making a mistake here?

 

In the attachment I show my problem

makset7
Obsidian | Level 7
systask command "START /high ""Batch"" 
  ""C:\Program Files\SAS\SASFoundation\9.2(32-bit)\sas.exe"" 
      -sysin ""&CodePatch.__TrRt_&NrFile._&TF._0_0_DL.sas"" 
     &log -nodms -noterminal -nostatuswin -nosplash -noicon"; 

I close the topic, I found a solution

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 7 replies
  • 2128 views
  • 0 likes
  • 3 in conversation