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

What will calendar procedure do?

590


What are the difference between sas functions and procedures?

631


what is factor analysis? : Sas-administrator

601


What can be the size of largest dataset in SAS?

704


What are the default statistics that proc means produce?

597






How can sas program be validated?

569


explain about data integrator metadata reports? : Sas-di

555


Differentiate between format and informat? : sas-grid-administration

571


Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro

687


Explain data_null_?

600


Given an unsorted data set, how to read the last observation to a new data set?

827


What are the 3 components in sas programming?

716


What is the role of unrestrictive users? : sas-grid-administration

567


Explain substr function?

569


What are the features of base sas system?

600