SAS ODS Processing with tagset.ExcelXP

SAS ODS Processing with
tagset.ExcelXP
Randy Betancourt
Company Confidential - For Internal Use Only
Copyright © 2010, SAS Institute Inc. All rights reserved.
Logical Process Flows
ODS HTML
Access to PC Files
Tagsets.ExcelXP
(XML)
XML
ODS RTF
DDE
ODS Graphics
Data Step
2
Company Confidential - For Internal Use Only
Copyright © 2010, SAS Institute Inc. All rights reserved.
Overview of ODS Processing
Data
Components
Table
Definitions
Output
Object
Document
Listing
Output
HTML
Document
Output
Listing
Output
SAS
Data sets
Markup
HTML 3.2
Output
SAS
Tagsets
SAS Formatted Destinations
Printer
RTF
MS PS PCL PDF
Printer
RTF
Output
User-Defined
Tagsets
Third-Party Formatted Destinations
3
Company Confidential - For Internal Use Only
Copyright © 2010, SAS Institute Inc. All rights reserved.
For Each SAS Data Set, Define a
Worksheet…
SAS Data Set Header Information:
%DO %While (%bquote(&sheet ne ));
PROC SQL to read DICTIONARY.tables
PROC SQL to read DICTIONARY.columns
%DO i = %to &num_vars;
Table1+Table2+Table3+Tablen… to load &sheet
Variable List:
%IF &var_type = NUM
%Then %DO;
PROC SQL to read DICTIONARY.tables
PROC SQL to read DICTIONARY.columns
Reporting Logic
Load &num_vars and &var_type to build
variable list and determine variable type
%END;
Numeric Variable Report:
%IF &var_type = CHAR
%Then %DO;
Reporting Logic
%END;
Character Variable Report:
%END;
%END;
4
Company Confidential - For Internal Use Only
Copyright © 2010, SAS Institute Inc. All rights reserved.
5
Company Confidential - For Internal Use Only
Copyright © 2010, SAS Institute Inc. All rights reserved.
Company Confidential - For Internal Use Only
Copyright © 2010, SAS Institute Inc. All rights reserved.