We’re smarter together. Learn from this collection of community knowledge and add your expertise.

To get the top two observation related to column.

by Regular Learner Anind_Sharma on ‎06-30-2014 05:04 AM - edited on ‎10-05-2015 03:46 PM by Community Manager (169 Views)

                         DATA final;

          SET read;

          cnt1 + 1;

          by unique_id;

          if first.unique_id then cnt1 = 1;

          if cnt1 <=2;



Your turn
Sign In!

Want to write an article? Sign in with your profile.

Looking for the Ask the Expert series? Find it in its new home: communities.sas.com/askexpert.