SAS Enterprise Guide

Desktop productivity for business analysts and programmers
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
__Renee__
Fluorite | Level 6

Hello,

My enterprise edition is 4.3. and I'm preparing data for geocoding addresses in ArcGIS. I am trying to remove the rows where column, Street_line1, has a blank entry. I am new to SAS Enterprise so I'm not sure if the drop function is appropriate here and using delete function makes me nervous about screwing up the database. I'd also like a count of the removed records so I can make note of them in the map.

Thanks for any help and suggestions!

1 ACCEPTED SOLUTION

Accepted Solutions
TomKari
Onyx | Level 15

If you use the Query Builder on your source dataset, default behaviour is to create a new SAS dataset, with your transformed data. Adding a filter for "Street_line1 is not null" should do it. To get a count, one way is to create a SAS program like the following:

proc sql noprint;

select count(*) into :RecCount from have where Street_line1 is null;

quit;

which will put the count into macro variable &RecCount.

Tom

View solution in original post

1 REPLY 1
TomKari
Onyx | Level 15

If you use the Query Builder on your source dataset, default behaviour is to create a new SAS dataset, with your transformed data. Adding a filter for "Street_line1 is not null" should do it. To get a count, one way is to create a SAS program like the following:

proc sql noprint;

select count(*) into :RecCount from have where Street_line1 is null;

quit;

which will put the count into macro variable &RecCount.

Tom

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 5002 views
  • 1 like
  • 2 in conversation