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 (September 1996, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 27 Sep 1996 11:04:53 -0700
Reply-To:   Chris B Long <Chris_B_Long@SANDWICH.PFIZER.COM>
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   Chris B Long <Chris_B_Long@SANDWICH.PFIZER.COM>
Organization:   Pfizer Central Research, Sandwich, Kent, UK
Subject:   Re: SCL - dealing with blank fields?

Roggie Boone wrote:

> if (income < 0) then do; > CURSOR income; > _msg_ = 'Please enter income for this year'; > end; > > However, if when running the application, I just press ENTER on the > income field without entering anything, the above code does not > run.

I think this problem is not directly related to the fact the field is blank. Are you using 'control always'? If not, FSEDIT won't run your MAIN: section unless you have edited a field. ie, when you press Enter on the field without having edited it, FSEDIT doesn't bother to run MAIN at all.

To force MAIN to run whenever you press Enter (or any other function key) regardless of whether any fields have been changed, add the statement 'control always;' to your INIT section.

Chris.


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