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 (August 2000, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 31 Aug 2000 20:10:41 +0100
Reply-To:     Peter Crawford <Peter@CRAWFORDSOFTWARE.DEMON.CO.UK>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Peter Crawford <Peter@CRAWFORDSOFTWARE.DEMON.CO.UK>
Organization: Crawford Software Consultancy Limited
Subject:      Re: Proc IML and %eval condition for %if branching
Content-Type: text/plain;charset=iso-8859-1

Vincent Girard <v__girard@hotmail.com> writes >Dear helper, >in the data step of a proc IML, I need to execute a %let conditionaly to a >integer value larger then 2 (the integer value is a number of column in a >matrix). However the condition %eval(ncol_>2) is true even when ncol is not >satisfying the condition (see below a part of the log file).... >........ >MPRINT(COUNT): B=NCOL_>2; >MPRINT(COUNT): FILE LOG; >MPRINT(COUNT): PUT 'NCOL_=' NCOL_ ' b=' B; >ncol_= 1 b= 0 >MLOGIC(COUNT): %IF condition %eval(ncol_>2) is TRUE >........ >any suggestion? >thanks.. >-- >Vincent Girard, Ph D >Vincent.Girard@IRDA.qc.ca >Écologie nutritionnelle >IRDA >www.IRDA.qc.ca

Why make it a macro time statement - IML should be OK with

IF ncol_>2 then

-- Peter Crawford


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