BookmarkSubscribeRSS Feed

To get the top two observation related to column.

Started ‎06-30-2014 by
Modified ‎10-05-2015 by
Views 705

                         DATA final;

          SET read;

          cnt1 + 1;

          by unique_id;

          if first.unique_id then cnt1 = 1;

          if cnt1 <=2;

           run;

 

Version history
Last update:
‎10-05-2015 03:46 PM
Updated by:

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

Free course: Data Literacy Essentials

Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning  and boost your career prospects.

Get Started

Article Labels
Article Tags