Hi,
I want to make the following character observation in the character data UPCASE;
| Q1_d1 | Frequency |
| INcome | 1 |
| soc hx | 1 |
| Smoking Status | 1 |
| INCOME | 1 |
| SMOKING STATUS | 1 |
Use the upcase function in a data step.
data want; set have; q1_d1 = upcase(q1_d1); run;
If you just want to change the way the variable is displayed, give it the $UPCASE. format. This can be done in the dataset where it resides or in any proc that refers to that dataset.
proc print data=myDataset;
format Qi_d1 $UPCASE.;
run;
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!
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.