Sample 25357: Basic functionality of the REPLAY statement in PROC DOCUMENT
This sample demonstrates the basic functionality of the REPLAY statement in PROC DOCUMENT.
Please see the sample code on the Full Code tab.
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
This sample is from the SAS Sample Library. For additional information, refer to SAS Help and Online Documentation.
/****************************************************************/
/* S A S S A M P L E L I B R A R Y */
/* */
/* NAME: DOC3 */
/* TITLE: BASIC FUNCTIONALITY OF DOCUMENT REPLAY STATEMENT */
/* PRODUCT: BASE */
/* SYSTEM: ALL */
/* KEYS: ODS LISTING HTML RTF PRINTER */
/* PROCS: DOCUMENT */
/* DATA: */
/* SUPPORT: UPDATE: */
/* REF: */
/* MISC: */
/* */
/****************************************************************/
/* Close Listing Destination. */
ods listing close;
/* Create Document using Sashelp.CLASS dataset. */
ods document name=docsamp;
proc print data=sashelp.class; run;
proc means data=sashelp.class; run;
ods document close;
/* Let's open HTML, Printer and RTF destinations! */
ods html body="docsamp.htm";
ods printer ps file='docsamp.psl';
ods rtf file='docsamp.rtf';
/* Let's replay document to multiple output destinations! */
proc document name=docsamp;
/* Verify contents of docsamp document. */
list /levels=all; run;
/* Hide Means#1 Directory. */
hide means#1; run;
/* Verify that the Means#1 directory is hidden. */
list /levels=all; run;
/* Replay document to HTML and RTF. */
replay /dest=(HTML RTF); run;
/* Unhide Means#1 Directory. */
unhide means#1; run;
/* Verify that the Means#1 directory is unhidden. */
list /levels=all; run;
/* Replay document to PRINTER. */
replay /dest = PRINTER; run;
/* Replay document to all open destinations. */
replay; run;
/* End Proc Document. */
quit;
/* All done, let us take a look. */
ods html close;
ods printer close;
ods rtf close;
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
This example demonstrates the basic functionality of the REPLAY statement in PROC DOCUMENT.
| Type: | Sample |
| Topic: | SAS Reference ==> Procedures ==> DOCUMENT SAS Reference ==> ODS (Output Delivery System)
|
| Date Modified: | 2009-10-13 13:21:29 |
| Date Created: | 2005-05-23 13:48:18 |
Operating System and Release Information
| SAS System | Base SAS | All | 9.1 TS1M3 | n/a |