InterviewSolution
Saved Bookmarks
| 1. |
and @? |
|
Answer» In SAS, we can convert text into any case like LOWCASE, UPCASE and PROCASE. LOWCASE – It converts the string into small letters or in lower case. data lower; x='SAS'; y=lowcase(x); x=lowcase('CHAMP'); run; PROC print data=lower; run;output – Obs x y 1 champ sasUPCASE – It converts the string into CAPITAL letters or in UPPER case. data uper; x='sAs'; y=upcase(x); x=upcase('ChaMP'); run; proc print data=uper; run;output – Obs x y 1 CHAMP SASPROCASE – It converts the string into proper letters or in other words we can say the FIRST letter upper/upcase and rest in lowercase. Example- data procase; x='sAs'; y=procase(x); x=procase('ChaMP'); run; proc print data=procase; run;output – Obs x y 1 Champ Sas |
|