I need to find the numeric field which contains blank in
between..Ex:123 456...there is blank in between the 123
456..I need to know if there is any SAS function to find a
field..
Please suggest...
Answer Posted / akhil
If I am having a data set c
data test;
input c $ 20.;
cards;
123 456
217 236
456235
225 5665
55
77 85
46556
4588 56
;
run;
proc print;
run;
Now I am going to fetch observation having space in between,
data e(drop=e t);
set test;
e=length(c);
t=find(c,'');
if e>t;
run;
proc print data=e;
run;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you test for missing values?
How will you generate test data with no input data?
What are the functions used for character handling?
is data integration and etl programming is same? : Sas-di
what is sas metadata server? : Sas-di
Mention what is SAS data set?
do you need to know if there are any missing values? : Sas programming
Can you execute a macro within a macro? Describe. : sas-macro
This entry was posted in General. Bookmark the permalink. Post a comment or leave
Which date function advances a date, time or datetime value by a given interval?
What is the difference between SAS functions and procedures?
how does sas handle missing values in procs? : Sas programming
what is sas and what are the functions? : Sas-administrator
How do you use the do loop if you don’t know how many times you should execute the do loop?
What are the five ways to do a table lookup in sas? : sas-grid-administration