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 change analysis in sas di ? : Sas-di

1116


what is hierarchy flattening? : Sas-di

1145


Define run-group processing?

1097


If you were told to create many records from one record, show how you would do this using array and with proc transpose?

1546


which features do you use to check the data validations and errors? : Sas-administrator

1098


What is the basic structure of the SAS base program?

1408


what is the Population you used in your project, is it ITT or PP?

2808


how sas deals with business intelligence? : Sas-bi

1107


how would you create multiple observations from a single observation? : Sas programming

1057


name the scheduler for scheduling job and explain the scheduler? : Sas-di

1102


what is intially documentation in sas?

5130


what is transformation in sas data integration? : Sas-di

1091


Differentiate between format and informat? : sas-grid-administration

1124


What is substr function?

1246


why a stop statement is needed for the point= option on a set statement?

1139