Date: Wed, 3 Apr 1996 08:30:45 -0800
Reply-To: Neil Shatz <triball@CLUON.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Neil Shatz <triball@CLUON.COM>
Organization: A well-installed InterNetNews site
Subject: Re: Conditional Formats
How about:
%macro chngfrmt;
data _null_;
retain x 5 y 3;
%if y=3 %then
%let frmt = 10.2;
%else
%let frmt = 8.3;
format x &frmt;
put x=;
stop;
run;
%mend;
.
%chngfrmt; . .
-- Neil
|