Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is a put statement?

1192


how many types of prompts are there? : Sas-bi

1071


explain the concepts and capabilities of business object? : Sas-bi

953


What is the use of %include statement?

1051


What is the good sas programming practices for processing large data sets?

1104


what are input dataset and output dataset options? : Sas programming

1093


In ARRAY processing, what does the DIM function do?

1163


What is the difference between class statement and by statement in proc means?

1281


How would you determine the number of missing or nonmissing values in computations?

1062


Are you involved in writing the inferential analysis plan? Tables specifications?

3945


what are the scrubbing procedures in sas? : Sas programming

1276


Tell e how how dealt with..

2242


What is the maximum length of the macro variable? : sas-macro

1086


What can you learn from the SAS log when debugging?

1370


In sas admin differentiate between roles and capabilities? : sas-grid-administration

993