Greater than or Equal to (GE) on a character variable

Accepted Solution Solved
Reply
Contributor
Posts: 50
Accepted Solution

Greater than or Equal to (GE) on a character variable

al toHi all

I would like to understand how SAS processes when we give GE or LE on a alphanumeric field. It doesn't give an error, but I would like to know how it handles it.

Eg: IF TEST GE "5000" where test is a character field. What values come true for this condition?


Accepted Solutions
Solution
‎10-11-2013 02:38 PM
Super Contributor
Posts: 394

Re: Greater than or Equal to (GE) on a character variable


All Replies
Solution
‎10-11-2013 02:38 PM
Super Contributor
Posts: 394

Re: Greater than or Equal to (GE) on a character variable

Super Contributor
Posts: 644

Re: Greater than or Equal to (GE) on a character variable

What may not be immediately obvious is that, at least with ASCII character sets,

'ABC' GE '5000'

is true

Richard

🔒 This topic is solved and locked.

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

Discussion stats
  • 2 replies
  • 402 views
  • 0 likes
  • 3 in conversation