$Variable & Non-blank

Reply
Frequent Contributor
Posts: 75

$Variable & Non-blank

I want to create a proc format for a character variable - X, where

X is blank then Missing

X is non-blank then Present

proc format;

value $X

'*'='Present'

' '='Missing'

;

run;

what should I use to denote a non-blank value for X?

Thank you

Super User
Super User
Posts: 6,500

Re: $Variable & Non-blank

Use the OTHER keyword.

value $X

  ' '='Missing'

  other ='Present'

;

Ask a Question
Discussion stats
  • 1 reply
  • 150 views
  • 0 likes
  • 2 in conversation