Example 3: Sample HTML Viewer

This sample HTML viewer example is a collection of viewer coding sections. 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.
<!--Section 1: Formatting a Data Set
   Variable in an HTML List-->
$(entry=1 attribute=description)

<!--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
<th>First Name</th>
<th>Last Name</th>
<td> $(VARIABLE=fname)</td>
<td> $(VARIABLE=lname)</td>
<td> $(VARIABLE=territory)</td>

<!--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)
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>
$(entry="(type=report)" attribute=stream)