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 (July 2002, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 31 Jul 2002 19:43:24 +0100
Reply-To:     "roland.rashleigh-berry" <roland.rashleigh-berry@NTLWORLD.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "roland.rashleigh-berry" <roland.rashleigh-berry@NTLWORLD.COM>
Organization: ntlworld News Service
Subject:      Re: dynamic formats

<dkb@cix.compulink.co.uk> wrote in message news:ai6k9b$g79$1@thorium.cix.co.uk... > Roland Rashleigh-Berry posts... > << > Suppose you have a dataset like this and you want to get a formatted > output string with "n" formatted by what's in the "fmt" variable: > var fmt > 1.234 5.3 > 12345 5. > <proposed solution snipped> > >> > > Roland, > > Isn't > str = putn(var,fmt); /* contents of 'fmt' vble read at execution time */ > just as effective, or have I misunderstood your post?

Thanks for that. This was a blind spot in my SAS knowledge that I have sometimes coded around for years when there was no need to. Maybe I should read the manual(s) from cover to cover sometime.


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