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 makes sas stand out to be the best over other data analytics tools?

1001


i have a dataset with 100 obs i want to generate title from 20th obs onwards with total observations. that should contain 100 obs.dont use firstobs and dnt split the data. use dataset block or proc report? how can we genarate;

2434


If you have a dataset that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variables?

1105


To what type of programms have you used scratch macros?

2522


What is the difference between the proc sql and data step?

1103


Explain the purpose of substr functions in sas programming.

1003


How to test the debugging in sas?

1107


describe about physical data integration? : Sas-di

991


State the difference between INFORMAT and FORMAT ?

1036


Can you execute a macro within a macro? Describe. : sas-macro

1064


Which command is used to perform sorting in sas program?

984


Which are the statements whose placement in the data step is critical?

1185


How do you specify the number of iterations and specific condition within a single do loop?

1045


How you can read the variables that you need?

1066


what can you learn from the sas log when debugging? : Sas programming

1021