| 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 |
|
| 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
|