LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 2006, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 5 Oct 2006 07:48:07 -0400
Reply-To:   Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Subject:   Re: Formatting the output

Maybe something like that:

proc format; picture test 0-<10 = "9.0000" 10-<100 = "09.000" 100-<1000 = "009.00" 1000-<10000 = "0009.0" 10000-high = "00009"; run; data test; x=145.12345; put x test.; x=1.23456789; put x test.; run;

if you have also smaller values, you might to use something like

proc format; picture test 0.0-<1.0 = "9.9999" 1.0-<10 = "0.0000" 10-<100 = "00.000" 100-<1000= "000.00" 1000-<10000 = "0000.0" 10000-high = "00000"; run; data test; x=145.12345; put x test.; x=0.03456789; put x test.; run;

On Thu, 5 Oct 2006 04:18:03 -0700, RAMS <ramsathish@GMAIL.COM> wrote:

>Hi all, > > We are summarizing the output with the length of 5 >significance. The following are the examples of 5 significance, > > 9.1423 > 24.123 > 145.26 >Like that > >In the Proc means syntax the maxdec is useful only for common decimal >places. How can I get the output like this? Anyone please help me.


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