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 2005, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 28 Oct 2005 10:56:34 -0400
Reply-To:   Ed Heaton <EdHeaton@WESTAT.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Ed Heaton <EdHeaton@WESTAT.COM>
Subject:   Re: Resetting numeric variable length
Content-Type:   text/plain; charset="US-ASCII"

Ali,

Instead of shortening the numeric length, try the COMPRESS=BINARY option. It works as either a system option or a dataset option. You will find that it saves MORE space than you would save by shortening the storage length of your numeric variables.

Ed

Edward Heaton, SAS Senior Systems Analyst, Westat (An Employee-Owned Research Corporation), 1600 Research Boulevard, RW-4541, Rockville, MD 20850-3195 Voice: (301) 610-4818 Fax: (301) 294-3879 mailto:EdHeaton@Westat.com http://www.Westat.com

-----Original Message----- From: owner-sas-l@listserv.uga.edu [mailto:owner-sas-l@listserv.uga.edu] On Behalf Of Ali G Sent: Friday, October 28, 2005 9:22 AM To: sas-l@uga.edu Subject: Re: Resetting numeric variable length

> DON'T DO THIS. Leave it with a length of 8. If you only want to show 5

> digits then use the format "5." when you display it or assign that > format to the variable.

I have to: I'm extracting a monster DB2 table and need to shorten the numeric lengths down to save some valuable space. A pass-thru to DB2 seems to set all numerics to 8 by default and I need to change them.


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