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.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: