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 a put statement?
how many types of prompts are there? : Sas-bi
explain the concepts and capabilities of business object? : Sas-bi
What is the use of %include statement?
What is the good sas programming practices for processing large data sets?
what are input dataset and output dataset options? : Sas programming
In ARRAY processing, what does the DIM function do?
What is the difference between class statement and by statement in proc means?
How would you determine the number of missing or nonmissing values in computations?
Are you involved in writing the inferential analysis plan? Tables specifications?
what are the scrubbing procedures in sas? : Sas programming
Tell e how how dealt with..
What is the maximum length of the macro variable? : sas-macro
What can you learn from the SAS log when debugging?
In sas admin differentiate between roles and capabilities? : sas-grid-administration