Hello
Why this proc format has a problem?
I want that 350000 has a separate group.
I want that between 300000 (not included) and 350000 (not included) has a separate group too.
The error is:
162 300000<350000='(8) 300-350'
______
22
76
proc format;
value FFF
0="(1) 0"
0<-50000='(2) 0-50'
50000<-100000='(3) 50-100'
100000<-150000='(4) 100-150'
150000<-200000='(5) 150-200'
200000<-250000='(6) 200-250'
250000<-300000='(7) 250-300'
300000<350000='(8) 300-350'
350000='(9) 350000'
;
Run;
You always need a hyphen in the range. The angled bracket is used to exclude the edge value. To exclude both edges, use
300000<-<350000='(8) 300-350'
You always need a hyphen in the range. The angled bracket is used to exclude the edge value. To exclude both edges, use
300000<-<350000='(8) 300-350'
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.