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 (June 2004, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: "Buchanan, Gordon" <gordon.buchanan@GMACRFC.COM>

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 --


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