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 |
what is intially documentation in sas?
How to create an external dataset with sas code?
what is the difference between informat$8. $char8.
Diff between proc sql merge and join?
in the flow of data step processing, what is the first action in a typical data step? : Sas programming
what is p-value
3 Answers Accenture, Quintiles, Sristek,
Name validation tools used in SAS
Does anybody has SAS Platform Administration certification dumps. pls send to hariithepalli@gmail.com
WHAT IS DEBUGGING? HOW TO TEST THE DEBUGGING IN SAS?
Given an unsorted data set, how to read the last observation to a new data set?
what is the difference between proc report and proc format?
what is the difference between %put and symbolgen?