| Viewer Processing |
This sample HTML viewer example is a collection of viewer coding sections that are described in How to Create a Viewer.
<!--Section 1: Formatting a Data Set Variable in an HTML List--> <SASINSERT> <h2>Congratulations!</h2> $(entry=1 attribute=description) <p> <ul> <SASTABLE ENTRY=2> <li>$(VARIABLE=fname) </SASTABLE> </ul> <!--Section 2: Formatting a SAS Data Set in a Table--> <h2>Record Sales from these Salespeople</h2> $(entry=1 attribute=description) <table border cellspacing=0 cellpadding=5 rules=groups> <thead> <tr> <th>First Name</th> <th>Last Name</th> <th>Territory</th> </tr> </thead> <tbody> <SASTABLE ENTRY=1> <tr> <td> $(VARIABLE=fname)</td> <td> $(VARIABLE=lname)</td> <td> $(VARIABLE=territory)</td> </tr> </tbody> </SASTABLE> </table> <!--Section 3: Inserting a Text File and a Reference--> <h2>Letter of Congratulations</h2> Below is a copy of the letter that was sent to each recipient of the top sales award. $(entry=2 attribute=stream) <p> See <a href="$(entry=3 attribute=stream)">$(entry=3 attribute=stream)</a> for detailed sales figures. <!--Section 4: Filtering an Entry--> <h2>Message from the President</h2> <SASREPEAT> $(entry="(type=report)" attribute=stream) </SASREPEAT> </SASINSERT>
To see the e-mail output, see the output from the viewer coding sections that are described in How to Create a Viewer. The e-mail output from this sample HTML viewer is a collection of the output from these sections.
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.