BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
mmagnuson
Quartz | Level 8

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?

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Start with this:

 

={background=orange{");

 

mismatch should be }

View solution in original post

2 REPLIES 2
ballardw
Super User

Start with this:

 

={background=orange{");

 

mismatch should be }

mmagnuson
Quartz | Level 8

Thanks for your help! I actually ended up figuring it out somehow on my own just before seeing this.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 840 views
  • 0 likes
  • 2 in conversation