You can try the missing function.
From: William Shakespeare
Sender: SAS(r) Discussion
ReplyTo: William Shakespeare
Subject: missing values
Sent: Jan 12, 2010 10:29 AM
I have a data set with millions of records. I want to pick out the first
1000 records with VAR1 ne missing. My file is sorted on VAR1 but I don't
know how many missing values there are (so I can't use >=_n_=x and <=
_n_=1000+x). How else could I get to this?
Sent from my BlackBerry Wireless Handheld
Certified Advanced Programmer for SAS V9
Certified Basic Programmer for SAS V9