Implement ETL Process in SAS
The program below will run the whole process in a sequence which may be considered as a representation of ETL Process in SAS. The ETL process could also be set up in SAS ETL Studio or SAS Warehouse Administrator which would be far more sophisticated solution.
Lesson assumptions and objectives:
Please refer to the comments (in green) included in the SAS program attached below.
* run all programs in an ETL sequence ;
%include 'D:\business_scenario\1-read_dimensions.sas';
%include 'D:\business_scenario\2-gen_facts_date_ids.sas';
%include 'D:\business_scenario\3-gen_facts_measures.sas';
%include 'D:\business_scenario\4-create-fact-table.sas';
%include 'D:\business_scenario\5-gen-costs.sas';
* Use PROC MEANS to analyze populated figures ;
* We will check sum, average, min & max values of all measures ;
* the MAXDEC parameter indicates that we want to limit numbers to 2 decimal places ;
PROC MEANS data=CognosBI.Sales_Facts mean min max sum
MAXDEC=2;
class prod_type prod_age;
var price revenue quantity ;
RUN;
Summary and statistics for newly generated measures: