SAS Functions - LOWCASE, UPCASE and PROPCASE Function ( SAS Characterfunction )

LOWCASE Function: It converts all letters to LOWER CASE of any character constant, Variable or Expression. It is a character function.

We can say that LOWCASE function converts all letters of any arguments to lowercase letters.

Syntax:  LOW_CASE=Lowcase(X);




UPCASE Function: It converts all letters to UPPER CASE of any character Constant, Variable or Expression. It is a character function.

We can say that UPCASE function converts all letters of any arguments to UPPERCASE letters.

Syntax: UP_CASE=Upcase(x);




PROPCASE Function: It converts all letters in PROPER CASE of any character constant, Variable or Expression. It is a character function.

We can say that PROPCASE function converts the words of any arguments into the PROPERCASE Words.

 Syntax:  PROP_CASE=Propcase(X);

 Combined code for all above function :

 Data DSN;

X='UmA ShANkeR saINI';

UP_CASE=Upcase(x);

LOW_CASE=Lowcase(X);

PROP_CASE=Propcase(X);

Run;


And the output would be as follows :

 *  DSN is the name of the Dataset

These function are not designed for SBCS, DBCS and MBCS character encoding

No comments:

Post a Comment