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