Desktop productivity for business analysts and programmers

Traffic Lighitng with using HAS VALUE

Accepted Solution Solved
Reply
Contributor
Posts: 42
Accepted Solution

Traffic Lighitng with using HAS VALUE

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?


Accepted Solutions
Solution
‎09-14-2017 03:57 PM
Super User
Posts: 11,558

Re: Traffic Lighitng with using HAS VALUE

Posted in reply to mmagnuson

Start with this:

 

={background=orange{");

 

mismatch should be }

View solution in original post


All Replies
Solution
‎09-14-2017 03:57 PM
Super User
Posts: 11,558

Re: Traffic Lighitng with using HAS VALUE

Posted in reply to mmagnuson

Start with this:

 

={background=orange{");

 

mismatch should be }

Contributor
Posts: 42

Re: Traffic Lighitng with using HAS VALUE

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

☑ This topic is solved.

Need further help from the community? Please ask a new question.

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