Hello,
I have a SAS programme which is made up of a series of %include statements (run in batch mode over Windows), like this:
%incude "path/programm1.sas";
%incude "path/programm2.sas";
%incude "path/programm3.sas";
If I have a macro in "programme2.sas" that executes the %ABORT with the ABEND option, will control pass back to the main programme and continue on to "programm3.sas", or will the batch session terminate?
Thanks
Jim
If you use %ABORT ABEND, the batch program will terminate immediately and report an error to the calling environment.
If you want the program to continue with the next %INCLUDE file instead, use %ABORT CANCEL FILE, which does exactly that.
If you use %ABORT ABEND, the batch program will terminate immediately and report an error to the calling environment.
If you want the program to continue with the next %INCLUDE file instead, use %ABORT CANCEL FILE, which does exactly that.
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.