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

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

1 ACCEPTED SOLUTION

Accepted Solutions
data_null__
Jade | Level 19

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?

View solution in original post

3 REPLIES 3
data_null__
Jade | Level 19

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?

PaigeMiller
Diamond | Level 26

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.

--
Paige Miller
ntro
Calcite | Level 5

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: 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
  • 3 replies
  • 1676 views
  • 3 likes
  • 3 in conversation