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
|