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 (October 2008, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 23 Oct 2008 05:46:34 -0500
Reply-To:     "./ ADD NAME=Data _null_," <iebupdte@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "./ ADD NAME=Data _null_," <iebupdte@GMAIL.COM>
Subject:      Re: reading all decimal points by SAS
Comments: To: Kwame Asom <asom77@hotmail.com>
In-Reply-To:  <200810230937.m9N7ckRb024614@malibu.cc.uga.edu>
Content-Type: text/plain; charset=ISO-8859-1

Use the W.D format, and a FORMAT statement.

9.6 should be sufficient.

On 10/23/08, Kwame Asom <asom77@hotmail.com> wrote: > Res.dat > > 0.707107 -1.224745 1.581139 > 0.707107 -1.221710 1.569398 > 0.707107 -1.218674 1.557686 > 0.707107 -1.215639 1.546003 > 0.707107 -1.212604 1.534349 > 0.707107 -1.209568 1.522725 > 0.707107 -1.206533 1.511129 > 0.707107 -1.203498 1.499563 > 0.707107 -1.200462 1.488026 > 0.707107 -1.197427 1.476518 > > data cv; > infile 't:\clin\Res.dat'; > input gad 1-17 gad2 19-42 gad3 44-68 ; > run; > > I am reading dataset1 above from ASCII and I want SAS to read all the > decimal points and print them out as they are without rounding up the > decimals. Actually after reading the dataset above (res.dat), SAS prints > them out as follows (eg. 1st and 2nd observations): > > Sas output: (I DON'T LIKE THIS!!!) > > 0.70711 -1.22470 1.58110 > 0.70711 -1.22170 1.56940 > > > I don't want how SAS has printed them out as above. I want SAS to print > them out as original like the following > > > > 0.707107 -1.224745 1.581139 > 0.707107 -1.221710 1.569398 > > *Could someone help me with the SAS code to read and print all the values > (no rounding up) of res.dat above, please? >


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