12-06-2017 04:33 PM
am new to SAS and stuck. trying to get a subset of my data using this code:
if DEPRES = 1;
You forgot a semicolon after the SET statement.
Please include your log and a detailed explanation of what your problem is....you never actually say what happens or what's not working so I'm guessing at the issue right now.
12-06-2017 04:47 PM
Of course, if you don't actually need the subset file, the following would run faster:
proc freq data=sasuser.op (where=(DEPRES = 1)); tables DEPRES; run;
Art, CEO, AnalystFinder.com