The DOCUMENT Procedure

Example 2: Replaying a Document Using the Document Window

Details

You can also use the Documents window to replay your new document. Replaying your document saves you from having to rerun your procedures steps.
To replay an entire document, right-click on the document and select Open As from the drop down menu.
Open the Work.Newprd Document
Open the Work.Newprd Document
When the Open As window appears, select a destination, such as PDF (highlighted), and then click OK. You can select multiple destinations by pressing the Ctrl key and selecting the destinations that you want.
Selecting Destinations
Selecting Destinations
The PDF output is shown in the following figure. When you use the Open As window, SAS creates a default name, in this instance, saspdf.pdf. Using PROC DOCUMENT and the REPLAY statement enables you to specify a name for your ODS output when you replay the document.
Replayed PDF Output
Replayed PDF Output
The following PDF is the output from the original Work.Prddoc document.
Original PDF Output
Original PDF Output