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...

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


Please Help Members By Posting Answers For Below Questions

How do you test for missing values?

1593


How will you generate test data with no input data?

1139


What are the functions used for character handling?

1212


is data integration and etl programming is same? : Sas-di

1041


what is sas metadata server? : Sas-di

1074


Mention what is SAS data set?

1111


do you need to know if there are any missing values? : Sas programming

1015


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

1083


This entry was posted in General. Bookmark the permalink. Post a comment or leave

4546


Which date function advances a date, time or datetime value by a given interval?

1113


What is the difference between SAS functions and procedures?

1120


how does sas handle missing values in procs? : Sas programming

1194


what is sas and what are the functions? : Sas-administrator

951


How do you use the do loop if you don’t know how many times you should execute the do loop?

1239


What are the five ways to do a table lookup in sas? : sas-grid-administration

1023