Date: Fri, 25 Jun 2004 09:45:40 -0400
Reply-To: Talbot Michael Katz <topkatz@MSN.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Talbot Michael Katz <topkatz@MSN.COM>
Subject: Re: %SYSFUNC and PUT function
Hi, Gordon.
I tried your trick,
>%let v=%sysfunc(abs(&i), z4.);
and it works fine. Elegant. Thank you.
Using PUTN as others suggested also appears to work:
%let v = %sysfunc(putn(&i.,Z4.));
The syntax is exactly the same as what I wanted to do with PUT, but it took
me awhile to figure that out from the PUTN documentation -- I kept wanting
to put the format string in quotes.
-- TMK --
|