data ex1 ;
data ex2 ;
where sex='M' ;
I wrote two macro applications If i run the 2 macro applications don't run second application because there is one syntax error in the
first macro application.
Note: If any error in the step don't run the next step
To avoid this see the nosyntaxcheck option.
Since 9.4M5, you can use
%if %then %do; ....... %end;
in open code. Use the automatic variable &syscc to determine the current error (return code) status of your SAS session. Hint: you can reset &syscc yourself:
How are you running your program?
If you are just submitting the program from the command line then try just setting the ERRORABEND option and SAS will stop on the first error.
Note this doesn't work well if you are using some type of interactive process to run your SAs code. Such as Enterprise Guide or SAS/Studio of SAS Display Manager.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.