Proc Format: character variables & range

Reply
Frequent Contributor
Posts: 75

Proc Format: character variables & range

proc format;

value $YrPur

low -<1989'='before 1989'

'1989'-'1998'='1989-1998'

'1999'-'2003' ='1999-2003'

'2004'-'2008' ='2004-2008'

'2009'-'2013'='2009-2013';

run;

The variable the format to be applied on is character but with numeric values.

Where should I add the quote marks for this range: low -<1989?

Thanks

Respected Advisor
Posts: 4,919

Re: Proc Format: character variables & range

low -<'1989'

LOW is a keyword, it doesn't require quotes.

PG

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