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.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.