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 (March 2007, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 15 Mar 2007 14:11:59 -0400
Reply-To:     mesecca L katram <mesecca@YAHOO.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         mesecca L katram <mesecca@YAHOO.COM>
Subject:      macro resolves to a different value

my macro always resolves to issu, please help

options mprint mlogic; %let data5=0; %macro gettype(data5); data _null_; y = trim(left(put(symget('data5'),8.))); call symput('typ',y); run; %put &typ; data _null_; if %eval(&typ)=0 then do;%let type=DRAW;end; if %eval(&typ)=1 then do;%let type=SALE;end; if %eval(&typ)=2 then do;%let type=ISSU;end; run; %mend; %gettype(&data5); run; %put &type;


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