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 (February 1996, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 21 Feb 1996 16:44:25 GMT
Reply-To:   Paul Wehr <wehrp@AA.WL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   Paul Wehr <wehrp@AA.WL.COM>
Organization:   Parke-Davis Research
Subject:   Re: dataset and catalog existence

demillia@gandalf.rutgers.edu (Michael DeMilia) wrote: >I know how to check to see if a dataset exists using the following: > DATA _NULL_; > IF 0 THEN SET &L_DSN; > RUN; > >A error will be generated if &L_DSN (the dataset) doesn't exist. But is there > a way to determine if a data set exists but is empty (a single observation is > generated by the set statement with 0 variables). Also, is there a similar >way to check for catalog existence and whether it contains any items?

PROC CONTENTS will provide this information, use the OUT= option, then compare the resulting dataset with the data or catalogs you are looking for.

-paul


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