| Valid in: | DATA step, PROC SQL, and SCL |
| Requirements: | If specified, the locale must be loaded into memory as
part of the locale list.
Schemes using SAS format are required in the |
.sch.bfd.
/* Create the input data set. */P
data suppliers;
length company $ 50;
input company $char50.;
datalines;
Ford Motor Company
Walmart Inc.
Federal Reserve Bank
Walmart
Ernest & Young
TRW INC - Space Defense
Wal-Mart Corp.
The Jackson Data Corp.
Ernest & Young
Federal Reserve Bank 12th District
Ernest and Young
Jackson Data Corp.
Farmers Insurance Group
Kaiser Permantente
Ernest and Young LLP
TRW Space & Defense
Ford Motor
Jackson Data Corp
Federal Reserve Bank
Target
;
run;
/* Assign a fileref to the scheme file. */
filename myscheme 'c:\temp\company.sch.bfd';
/* Create the scheme. */
proc dqscheme data=suppliers bfd;
create matchdef='Organization (Scheme Build)'
var=company scheme=myscheme
locale='ENUSA';
run;
/* Apply the scheme and display the results. */
data suppliers;
set suppliers;
length outCompany $ 50;
outCompany=dqSchemeApply(company,'myscheme','bfd','phrase','EXACT');
put 'Before applying the scheme: ' company /
'After applying the scheme: ' outCompany;
run;