Currently I have this code
compute Eligible;
if Eligible = "YES" then call define(_row_,"style","style={background=yellow}");
else if LEE in ("A" "B" "C" "D") call define(_row_,"style","style={background=orange{");
else call define{background=lightgreen}");
endcomp;
run;
however, when LEE = A, B, C, or D it does not pick it up for some strange reason. Instead I want to try to get around this problem by making it say "has value" instead of looking for a specific value but when I put "if LEE has value then" it errors.
Is there a way to do this?
Start with this:
={background=orange{");
mismatch should be }
Thanks for your help! I actually ended up figuring it out somehow on my own just before seeing this.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.