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 (December 1998, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 30 Dec 1998 12:04:54 -0800
Reply-To:   "E. S." <sasq98@YAHOO.COM>
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   "E. S." <sasq98@YAHOO.COM>
Subject:   Re: Why doesn't NOBS work?
Content-Type:   text/plain; charset=us-ascii

It is interesting to notice that this modified code won't work either unless the "set" statement is left for the end, just before the "run" statement. I'm still not sure of why this is, but it obviously have to do with Victor's comment about SAS PC not accepting an empty dataset in the "set" statement. As far as I know, you can do it in the mainframe. Ed

---cscott@table.jps.net wrote: > > In comp.soft-sys.sas, you wrote: > >This piece of code will work in the mainframe, but for some reason it > >won't in the PC. Any ideas as of why?? > > > >543 data _null_; > >544 set search; > > set search nobs=nobs; > > >545 file print; > >546 if nobs=0 and _n_ le 1 then put > >547 'EMPTY DATA SET!!!'; > >548 run; > > > >NOTE: Variable NOBS is uninitialized. > > This should be your clue. > > >NOTE: 0 lines were written to file PRINT. > >NOTE: The DATA statement used 0.0 seconds. > > > > > -- > Christopher Scott | cscott@table.jps.net >

_________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com


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