LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (January 2007, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


Back to: Top of message | Previous page | Main SAS-L page