Basically the number of functions present in the SAS program amount to three. They are Character Functions, Numeric Functions and Date and Time Functions. In this post we are going to take a brief look at Character functions of a basic nature.
Data Len_func ; input name $ ; cards; Sandeep Baljeet
Neeta
.
;
run;
data Len_func; set Len_func ; Len=length(name);
Len_N=lengthn(name); Len_C=lengthc(name); run;
proc print; run;
Here,
Data case ; input name $ ;cards; sandeep baljeet neeta ; New_U=upcase(name); New_P=propcase(name); run; proc print; run;
Data AMOUNTS; input NAME $20.; cards; RAD-HIKA SHARMA RAJARAM PAND-IT SURESH AA-RT-I ; RUN; Data AMOUNTS; Set AMOUNTS; NAME1=COMPRESS(NAME,'-'); NAME2=COMPBL(NAME); RUN; PROC PRINT; RUN;
For expert guidance, you will be well advised to enroll yourself in a SAS course from a reputed SAS Training institute. You may consider DexLab Analytics if you are in the vicinity of Delhi or noida.
Interested in a career in Data Analyst?
To learn more about Machine Learning Using Python and Spark – click here.
To learn more about Data Analyst with Advanced excel course – click here.
To learn more about Data Analyst with SAS Course – click here.
To learn more about Data Analyst with R Course – click here.
To learn more about Big Data Course – click here.
online certification, online courses, SAS, sas certification, Sas course, SAS Courses and R, SAS training courses, Sas training institute
Comments are closed here.