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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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