Master SAS in 30 days!

A jargon-free, easy-to-learn SAS base course that is tailor-made for students with no prior knowledge of SAS.

Lesson 6.3: Upcase, Lowcase & Propcase

  • UPCASE: returns the uppercase of the text
  • LOWCASE: returns the lowercase of the text
  • PROPCASE: returns the word having uppercase in the first letter and lowercase in the rest of the letter. 
Example

In this dataset, the students names were entered with a random case in each letter.

DATA Student2;

Set Student;

Upcased = Upcase(Name);
Lowcased = Lowcase(Name);
Propcased = Propcase(Name);

RUN;

DONE! You have learned the UPCASE, LOWCASE and PROPCASE functions in SAS! 

Master SAS in 30 Days

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
iconmail

Get latest articles from SASCrunch

SAS Base Certification Exam Prep Course

Two Certificate Prep Courses and 300+ Practice Exercises