Date: Fri, 5 Jan 2007 14:49:58 -0600
Reply-To: SAS_learner <proccontents@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: SAS_learner <proccontents@GMAIL.COM>
Subject: How to check if dataset has any obs or not
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
I am working on program where I need to make one dataset (set them ) out of
10 datasets. I need to pick datasets with observartions. How can I check if
a dataset has any observations if it has then I need to set it to another
dataset.
sample code is
data all ;
set a b c d e f g h i j ;
run;
if b c do not have data I do not want to set them. For this
1) I need to find if the dataset is empty or not then with out opening them
then
2) set them to all dataset .
How can I do this .
thanks for the help
|