Linking to Output through a Table of Pages


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 .

click to expand
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:

  • The HTML destination is closed.

  • Another page file is opened.

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.




SAS.GRAPH 9.1 Reference, Volumes I and II
SAS.GRAPH 9.1 Reference, Volumes I and II
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 342

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net