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 (August 1999, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 23 Aug 1999 14:55:19 -0500
Reply-To:     rchilds@BOSTONBIO.COM
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Randy Childs <rchilds@BOSTONBIO.COM>
Comments: To: sas-l@uga.cc.uga.edu
Content-Type: text/plain; charset=ISO-8859-1

Myra,

All you need to do is add a format to your PUT statements. See the example below. You did not specify in your example how you would like to display the percents. For example, if the percent is a whole percent (like 26), do you want to display this as 26 or as 26.00. If you do not want to see all percents to 2 decimal places then you will need to do some additional work.

data a; input x y; cards; 2 3.12 2.1 3 2.12 3.1 26 36.3 26.1 36.34 26.12 36 2 32.12 2.1 32 2.12 32.1 ; run;

data _null_; set a; put @5 x 6.2 + 1 '%' @20 y 6.2 +1 '%'; run;

Randy Childs Statistical Programmer Boston Biostatistics, Inc.

The document(s) in this electronic transmission may contain confidential information belonging to the sender. This electronic transmission and the information contained in it are intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents is strictly prohibited. If you have received this electronic transmission in error, please immediately notify the sender by telephone to arrange for the return of the original document(s) or for the destruction of the transmission.


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