Write a SAS macro to calculate number of numbers in an
email address
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / naresh
Use compress function and remove characters and special characters then you will get digits.. Now find the length of the string...
| Is This Answer Correct ? | 0 Yes | 0 No |
name the scheduler for scheduling job and explain the scheduler? : Sas-di
Which command is used to perform sorting in sas program?
explain about various caches available in data integrator? : Sas-di
1 new york 7,262,700 2 los angeles 3,259,340 3 philadelphia 1,642,900 how to read the above data using input statement consider the above data is in txt format externally u have to use infile and input statement.
in ods is there any lib's
Hi, If anyone has base SAS certification dumps, please share.
wat has been most common programming mistake?
what does the run statement do? : Sas programming
what is the difference between unique key and primary key? : Sas-di
What is the difference between match merge and one to one merge?
Does anybody has SAS Platform Administration certification dumps. pls send to hariithepalli@gmail.com
what are the component of range? : Sas-bi