sasenterprise-guide

Not all %include in a SAS program are executed and I don't get any error message


I want to schedule a project monthly, but my SAS server is installed on Linux, so I thought of creating a program as a master, which would execute each of these programs using the %include function.

This idea works, at least executing some statements. The problem is that when it goes to run program number 08, the rest of the %include statements are not run. It treat them like comments. It doesn't return any type of error in the log and I don't know the possible reason of this.

If it helps, the first 7 programs take approximately 1h 30min, and generate 90 data sets in the WORK library.

Master.sas

%include "/sas/data/my_program_01.sas";
%include "/sas/data/my_program_01.sas";
...
%include "/sas/data/my_program_27.sas";

The only thing I can think of would be to split the master into multiple master programs, just to reduce the number of %include per program.


Solution

  • Hard to say as long as we don't know what the content of your programs is (especially program_07 and program_08), and how the log exactly looks like. A reasonable explanation would be that your program_07 has some sort of error or typo in the end, for example a single ". Then all the rest of your programs would be treated as comments.