BookmarkSubscribeRSS Feed

To get the top two observation related to column.

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

                         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:

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

SAS AI and Machine Learning Courses

The rapid growth of AI technologies is driving an AI skills gap and demand for AI talent. Ready to grow your AI literacy? SAS offers free ways to get started for beginners, business leaders, and analytics professionals of all skill levels. Your future self will thank you.

Get started

Article Labels
Article Tags