You are on page 1of 1

/*

PROC IMPORT OUT= WORK.Products


DATATABLE= "Products"
DBMS=ACCESS2000 REPLACE;
DATABASE="C:\DataWarehousing04s\SASDataQuality.mdb";
RUN;
*/

Proc Contents Data= Products;

run;

Proc Freq Data= Products;


tables Supplier/nopercent nocum;
Run;

Data Products2;
Set Products;
Supplier= Tranwrd(supplier, "Incorporated", "Inc.");
Department= Substr(pcode,1,2);
If Supplier= "Trinkets and Things" then supplier= "Trinkets n' Things";

Proc Freq Data= Products2;


Tables supplier department;

Run;

You might also like