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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—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.