Hi, I'm a beginner SAS user. I have a dataset with N number of rows/observations. Then I have a separate, dataset with a column called Rank, this second dataset is bigger than the first one. What I want to do, is I want to cut out all rows from my second dataset with a rank higher than N. I have this now DATA Want1 Want2; SET Have; IF (Rank > N) THEN OUTPUT Want1; IF (Rank <= N) THEN OUTPUT Want2; RUN; But I don't know how to make N. How do get the Number of Rows (or number of URNs, if it's easier with a defined column name) to use here? Thanks, Lotte ps I'm using SAS Enterprise Guide 7.13
... View more