LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (October 2007, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 26 Oct 2007 12:15:36 -0400
Reply-To:   Lorne Klassen <lk1@ROGERS.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Lorne Klassen <lk1@ROGERS.COM>
Subject:   Re: Automatic type conversion

Ken, the purpose of this is a little different than the usual data step.

Our data step is being used to check if a user supplied expression is valid in an IF statement. If an error is detected in the data step then this indicates an error in the expression. The problem is that type mismatches are not flagged as errors by SAS but we want them to be considered invalid. The conversion is done automatically by SAS and there is only a note in the log.

Testing the expression in a WHERE statement would work better because WHERE statements (unlike IF statements) do not allow type mismatches. The problem with testing with WHERE is that it allows a number of special expressions that the IF statement does not allow.


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