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
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
Try add -NODMS sas system option to your execution command.
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
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.
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"";
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.
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
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
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.