Hello
I am not sure this is the right subforum. I am trying for a couple of hours to create a batch that will be manage by Windows Task manager.
My .bat file is stored in the same folder than the program I am calling and contains the following:
"C:\Program Files\SASHome\SASFoundation\9.3\SAS.exe" Batch.sas -NOLOGO -ICON
The program "Batch.sas" contains the following:
%include "D:\myotherprogram.sas";
When I double-click on the .bat file, SAS is launched but a popup shows and displays "This window is unavailable in line-mode". The only information I found is from SAS support site at 44705 - The message "This window is unavailable in line-mode" is displayed after submitting a progra... but the explanation are not clear (to me at least) as I cannot put in comments the single program line I have!
I guess it has to do with the %include instruction not allowed in a batch file but I really need to call a program (yes I could directly submit "myotherprogram.sas" into the batch but that does not work either as it contains %include clauses too).
Thanks a lot
I would say that the SAS program you %include is executing one of the offending statements mentioned in the Tech Support document.
Have you looked myotherprogram.sas or any of the files that it %INCLUDES?
I would say that the SAS program you %include is executing one of the offending statements mentioned in the Tech Support document.
Have you looked myotherprogram.sas or any of the files that it %INCLUDES?
In addition to what data _null_; has said, I have no problem submitting batch jobs that contain %include statements, so %include is not the problem. The problem is clearly the contents of your %include file.
Thank you both. I feel stupid now! The offending statements were in myotherprogram and SAS support tip was correct. It is just that I kept focusing on the first program.
Thanks again
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.