Hello All!
I have some lines of output that are exactly the same.
Like example
mem id- 2. spent-$5. store-walmart. toy-barbie.
mem id- 2. spent-$5. store-walmart. toy-barbie.
Does anyone have example code to get rid of this extra line that is exactly the same?
Mary
For example
Data have;
input ID Date Amount;
cards;
111 1 30
111 1 34
111 1 34
111 5 70
111 5 70
111 5 70
112 2 79
112 5 5
;
run;
proc sql ;
create table have_nodup as
select distinct *
from have
;
quit;
This is very easy one
For example
Data have;
input ID Date Amount;
cards;
111 1 30
111 1 34
111 1 34
111 5 70
111 5 70
111 5 70
112 2 79
112 5 5
;
run;
proc sql ;
create table have_nodup as
select distinct *
from have
;
quit;
This is very easy one
Thank you!
If something isn't working, its helpful to post what you've tried so we know where you're trying to go with it. Also, you'll find out where the code is incorrect and needs modifications.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.