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 (April 1999, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 6 Apr 1999 17:52:45 -0400
Reply-To:   "LINCK, JIM" <LINCK@SSB.ROCHESTER.EDU>
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   "LINCK, JIM" <LINCK@SSB.ROCHESTER.EDU>
Subject:   Ending Loop when dataset has 0 observations
Comments:   To: "SAS, User Group (E-mail)" <sas-l@uga.uga.edu>
Content-Type:   text/plain; charset="iso-8859-1"

I have a program that runs just fine as long as the dataset created contains some records - i.e., if the criterion within the data step just preceding most of the processing does not exclude all observations, everything appears peachy. However, when the data set happens to be empty (which happens in some occasions on certain times through the loop), it blows up. What I'd like to do is, directly after the key data set is rejected, grab how many observations is in it, and then exit my macro loop (%goto exit), if the number is 0 (or some other small number). Anybody know how? I use UNIX-based on PC-Based (Windows) SAS. The user manual has some stuff on error processing, but I can't gather enough information from that to implement something based on that either. Thanks! Jim


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