DATA Step, Macro, Functions and more

too many windows in sas batch mode

Accepted Solution Solved
Reply
Contributor
Posts: 25
Accepted Solution

too many windows in sas batch mode

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


Accepted Solutions
Solution
‎03-16-2018 11:09 AM
Contributor
Posts: 25

Re: too many windows in sas batch mode

[ Edited ]
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


All Replies
Trusted Advisor
Posts: 1,837

Re: too many windows in sas batch mode

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

Contributor
Posts: 25

Re: too many windows in sas batch mode

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

Trusted Advisor
Posts: 1,837

Re: too many windows in sas batch mode

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.

Contributor
Posts: 25

Re: too many windows in sas batch mode

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""; 

 

Super User
Posts: 13,563

Re: too many windows in sas batch mode

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.

 

 

Contributor
Posts: 25

Re: too many windows in sas batch mode

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

Solution
‎03-16-2018 11:09 AM
Contributor
Posts: 25

Re: too many windows in sas batch mode

[ Edited ]
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

☑ This topic is solved.

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

Discussion stats
  • 7 replies
  • 167 views
  • 0 likes
  • 3 in conversation