SAS.GRAPH 9.1 Reference, Volumes I and II

With ODS, you can create a page file to link to the graphics and non-graphics output generated during a SAS session. A page file is simply a file that uses a Table of Pages (page references) to link to output. You can use multiple page files during the SAS session, although only one at a time can be open .

Display 16.4: Displaying a Page File in a Browser

To create a page file, specify a name for the file in the ODS statement option PAGE=.

The following code creates a page file named salePage.html, which is created in the output location specified in the FILENAME statement.

filename odsout ' path-to-Web-server '; goptions device=gif; ods html body='sales.html' path=odsout page='salePage.html';

The page file remains open and links are written to it for all graphics and non-graphics output that is generated by the SAS program until one of the following occurs:

To open a new page file, specify another ODS statement and use the PAGE= option to specify the new file name.

To use the Table of Pages, view the page file in the browser. When you select a link from the Table of Pages, the browser goes to the target output referenced by that link. To use the Table of Pages again, you must use the browser s Back button or some other mechanism to return to the page file. If your browser supports HTML frames , you can keep the Table of Pages visible and its links accessible at all times by displaying the page file in a frame.

Категории