DATA Step, Macro, Functions and more

Question about if first...

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 6
Accepted Solution

Question about if first...

Hi, all, I try to select a subground base on if first condition, but the following simple one is not working! nothing error in the log not no any obs output!  Anyone can help to see what's the reason? thanks 

 


data cars_sorted;
set cars;
if first.Make then output;
run;

 

 

 


Accepted Solutions
Solution
‎04-07-2017 10:04 AM
Trusted Advisor
Posts: 1,913

Re: Question about if first...

Posted in reply to emoryustc
data cars_sorted;
set cars;
by make;
if first.Make then output;
run;

View solution in original post


All Replies
Solution
‎04-07-2017 10:04 AM
Trusted Advisor
Posts: 1,913

Re: Question about if first...

Posted in reply to emoryustc
data cars_sorted;
set cars;
by make;
if first.Make then output;
run;
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 134 views
  • 2 likes
  • 2 in conversation