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 2008, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 8 Aug 2008 15:38:19 -0700
Reply-To:   Adriano Rodrigues <adriano@GPP.COM.BR>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Adriano Rodrigues <adriano@GPP.COM.BR>
Subject:   numeric fields, where is the diference
Content-Type:   text/plain; charset="us-ascii"

Hi all,

I have 2 databases, one master with all Ids and one variable to show me some information, and one new data, who is from another source. I want check if variable find=base for same id.

All this is ok with this code:

data a;*master data;

input id base;

datalines;

1 2

2 2

3 4

4 5

5 1932

6 21

;

run;

data b;*received data;

input id find;

datalines;

1 2

3 4

4 5

5 2932

6 21

;

run;

proc sort data=a;

by id;

run;

proc sort data=b;

by id;

run;

data combine;

merge a b (IN=INB);

by id;

IF INB;

RUN;

data enderror;

set combine;

error=base-find;

proc print;

var id base find error;

where error^=0;

run;

output:

Obs id base find error

4 5 1932 2932 -1000

Desired output would be bold error, or other font for the where is error, the 2 could be italic? (from 2932) I need this because my real data have numbers with 8-9 digits to 13-14 digits. Here I see fast the error is 2 to 1 to change, but when many numbers this come more hard to find.

Well, if anyone has one suggestion to improve this, I am here to learn, many thanks.

Observation: this data come from other sources where I cant actually automatic make any correction, who send have to correct manually and send back to me and I will send report where are the errors

Adriano


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