Write a SAS macro to calculate number of numbers in an
email address
Answer Posted / dey
%macro logic(email=);
data _null_;
length EMAIL $50;
Email=&email;
retain count 0;
do i = 1 to length(EMAIL);
if missing(substr(EMAIL,i,1)*1)=0 then
COUNT= COUNT +1;
end;
call symput('count',count);
RUN;
%put &count;
%mend logic;
%logic(email='dey_anurup123444@yahoo.12co.in')
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
what is change analysis in sas di ? : Sas-di
what is hierarchy flattening? : Sas-di
Define run-group processing?
If you were told to create many records from one record, show how you would do this using array and with proc transpose?
which features do you use to check the data validations and errors? : Sas-administrator
What is the basic structure of the SAS base program?
what is the Population you used in your project, is it ITT or PP?
how sas deals with business intelligence? : Sas-bi
how would you create multiple observations from a single observation? : Sas programming
name the scheduler for scheduling job and explain the scheduler? : Sas-di
what is intially documentation in sas?
what is transformation in sas data integration? : Sas-di
Differentiate between format and informat? : sas-grid-administration
What is substr function?
why a stop statement is needed for the point= option on a set statement?