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 (August 2001, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 22 Aug 2001 15:13:19 -0700
Reply-To:   Nick Paszty <paszty@XOMA.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Nick Paszty <paszty@XOMA.COM>
Organization:   http://groups.google.com/
Subject:   Proc compare and floating point differences
Content-Type:   text/plain; charset=ISO-8859-1

hello.

i extracted a 6.12 unix data set from an xpt file onto our vms system using 6.12. when i run proc compare between our source data and the extracted data, i get very small differences like 8.184e-16. i would like to use an alternative method to exact and it seems that 3 exist, absolute, relative and percent. these methods will yield no unequal values in my proc compare output. for floating point discrepancies, is one of these methods better than the others?

i am also outputing the differences to an out= data set. i have read up on the kinds of values that dump out to the data set. E= equal value numeric .=equal value character

i'm also seeing *BAD* coming up for some of my variables but there is no reference to this value in the output data set. the variables are numeric so that string is not their value or their formatted value. does anyone know where the significance of *BAD* as a dif value is documented?

here is an example.

1 * Day 0 * 1 <10% 2 10-30% 2 10-30% 2 10-30% 3 12 2 * Day 0 * 1 <10% 2 10-30% 2 10-30% 2 10-30% 3 12 3 *BAD* *BAD* *BAD* *BAD* *BAD* E E

when i remove the format from the variable and re-run the comparison procedure then i get an E instead of a *BAD*. so does this mean that proc compare compares formats and not values if a format is applied to a variable? i ran a test and it doesn't appear so in my test but it does in my run above.

any insights?

thanks,

nick


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