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 (November 2011, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 23 Nov 2011 20:04:55 -0500
Reply-To:   Arthur Tabachneck <art297@ROGERS.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Arthur Tabachneck <art297@ROGERS.COM>
Subject:   Re: How SAS compresses this obervation
Comments:   To: Bbser 2009 <bbser2009@GMAIL.COM>

Max,

I must ask! Why don't you just create the file, download a free hex viewer (like hexmad) and simply look at the file?

I don't know if it makes a difference how one compresses the file. I used:

libname test "c:\art"; data test.have (compress=char); informat lastname firstname $10.; length lastname firstname $10; input lastname firstname; datalines; Tom Smith ;

I'll provide an answer this time but, really, why ask when a simple test can provide the answer directly?

On my computer it ended up doubling the size of the file and Tom Smith got translated, in hex, to: 82 54 6F 6D E5 84 53 6D 69 74 68 E3 FE FB FF FF ------ On Wed, 23 Nov 2011 01:20:10 -0500, bbser 2009 <bbser2009@GMAIL.COM> wrote:

>Greetings! > >Assuming the lengths of both Lastname and Firstname are 10 bytes. >If Lastname='Smith' and Firstname='Tom', then do you think, in the >compressed file generated by using compressed=CHAR, the observation looks >something like this? > >5 S m i t h 5 3 T o m 7 > >Thank you. > >Regards, Max >(Maaxx)


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