Evening all.
I have a data file called "hartland". There are 135 records, but I noticed that 33 of them have a "." in my PERMNO column. How do I remove these items and get my file down to 102 records?
data filtered;
set temp.hartland;
if not index(PERMNO ,'.');
run;
if not index(PERMNO ,'.');
data filtered;
set temp.hartland;
if not index(PERMNO ,'.');
run;
Post your sample data plz
The last column has the "." in it. This is what I want to remove.
I put in this code:
data filtered;
set temp.hartland;
if not index(PERMNO ,'.');
run;
1 | Transcept Pharmaceuticals Inc. | TSPT | Novacea Inc. | Marketwire | 01SEP2008 | H | 2589 | 2008 | 2.6232908319 | . |
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.