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
Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.
Mention what is SAS data set?
what is the use of sas management console? : Sas-di
I have 3 years of work experience at a startup and recently got certified in Data Science with SAS. I need to know how to get into the analytics industry
Give some ways by which you can define the variables to produce the summary report (using proc report)?
What is the difference between %put and symbolgen? : sas-macro
What is the difference between INPUT and INFILE ?
Can you execute a macro within a macro? Describe. : sas-macro
explain about data integrator metadata reports? : Sas-di
How would you invoke a macro? : sas-macro
What are common programming errors committed in sas
What is by-group processing?
What is the length assigned to the target variable by the scan function?
what is the effect of the options statement errors=1? : Sas programming
What are the 3 components in sas programming?