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 (May 2003, 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 May 2003 11:08:52 -0400
Reply-To:     Charles Patridge <Charles_S_Patridge@PRODIGY.NET>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Charles Patridge <Charles_S_Patridge@PRODIGY.NET>
Subject:      Re: Statement placement
Comments: To: "David M. Kellerman" <kellermandavid@YAHOO.COM>

Dear David,

It works for me! Not sure what you tested or how but you can/should be able to have the SET statement before the IF .

see my log -

38 data a3; delete; run;

NOTE: The data set WORK.A3 has 0 observations and 0 variables. NOTE: DATA statement used: real time 0.01 seconds cpu time 0.01 seconds

39 40 DATA _NULL_; 41 SET A3 NOBS=HOWMANY; 42 IF HOWMANY = 0 THEN DO; 43 %put 'no records to process'; 'no records to process' 44 END; 45 RUN;

NOTE: There were 0 observations read from the data set WORK.A3. NOTE: DATA statement used: real time 0.03 seconds cpu time 0.01 seconds

Regards, Charles Patridge


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