SAS Programming and Data Visualization Techniques by Philip R. Holland

SAS Programming and Data Visualization Techniques by Philip R. Holland

Author:Philip R. Holland
Language: eng
Format: epub
Publisher: Apress, Berkeley, CA


Code

You can generate reports containing the same or overlapping parts of an overall report using indexed ODS statements:

ODS HTML(1) FILE = "report1.xls";

ODS RTF FILE = "report1.rtf";

PROC REPORT DATA = summary NOWD;

.......

RUN;

ODS HTML(2) FILE = "report2.doc";

ODS HTML(3) FILE = "report3.xls";

ODS PDF FILE = "report4.pdf";

PROC REPORT DATA = details NOWD;

.......

RUN;

ODS PDF CLOSE;

ODS HTML(3) CLOSE;

PROC REPORT DATA = exceptions NOWD;

.......

RUN;

ODS HTML(2) CLOSE;

ODS RTF CLOSE;

ODS HTML(1) CLOSE;

The summary, details, and exceptions reports appear in report1.xls and report1.rtf, the details and exceptions reports appear in report2.doc, and the details report appears in report3.xls and report4.pdf.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.