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 (July 2001, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 20 Jul 2001 15:05:26 -0500
Reply-To:     Stuart Luppescu <s-luppescu@UCHICAGO.EDU>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Stuart Luppescu <s-luppescu@UCHICAGO.EDU>
Organization: University of Chicago
Subject:      Macro doesn't work any more in sas 8
Content-Type: text/plain; charset=ISO-8859-1

I have a macro that I was using happily in sas 6.12, that doesn't work any more now that I've move to 8.1 (under Sun OS 5.7). Here's the problem code:

call symput('cut2',put(cut2, 6.2)); if cut3=. then do; %let cut3=missing; end;

else call symput('cut3',put(cut3, 6.2)); run;

%if &cut3=missing %then %let cats=3; %else %let cats=4;

Now when I run this I get errors to the effect, ``Character operand found in %IF condition where numeric was expected. Condition: cut3=missing.''

Does anyone know what the problem is and how to fix it?

Thanks.

______________________________________________________________________ Stuart Luppescu -=-=- University of Chicago B:MJ8$HCRF`H~$NIc -=-=- s-luppescu@uchicago.edu http://www.consortium-chicago.org/people/sl.html http://musuko.uchicago.edu/pubkey.asc for PGP Public Key ICQ #21172047 AIM: psycho7070


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