By using %abort or %return.
%macro narf(Condition); %put Random debug print; %if &Condition = stop_value %then %return; %put After return; %mend; %narf(no_stop); %put ------------------------------------; %narf(stop_value);
thank you for the response can u please elobrate am new in using macros
can write in detail about the program. thanks
Why would you want to? You have provided nothing in terms of what you are trying to do, how things are running, what environment you are using etc. I have yet to find a valid scenario where using one of the abort statements is necessary, and if my logchecker came across that is pulled out as an error. Provide information about what you want to do and why, and we will see if there are better solutions.
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.