Contents Viewer Processing Previous Next

Sample HTML Viewer

This sample HTML viewer example is a collection of viewer coding sections that are described in Creating 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>

Rendered View in E-mail

The rendered view appears in e-mail as follows:

Congratulations!

AlpineAirways Sales Force Briefing

Record Sales from these Salespeople

AlpineAirways Sales Force Briefing

First Name Last Name Territory
John Smith NE
Gary DeStephano SE
Arthur Allen MW
Jean Forest NW
Tony Votta SW
Dakota Smith HA

Letter of Congratulations

Below is a copy of the letter that was sent to each recipient of the top sales award.

                        December 30, 2000

                        International Sales
                        AlpineAirways Headquarters

Dear AlpineAirways Salesperson,

Congratulations on your much deserved recognition as outstanding
salesperson for AlpineAirways for 2000.

To express our gratitude for your excellent contribution, we wish to
present you with 25 stock options in AlpineAirways.

Wishing you continued success in your career with AlpineAirways.

                        Sincerely,

                        Alvin O. Taft, Jr.
                        Director-in-Chief

See http://www.AlpineAirways.com/headquarters/sales for detailed sales figures.

Message from the President

AlpineAirways delivers service. AlpineAirways is the recognized
industry leader according to its safety record, volume of passengers served, and
routes serviced.

How are we able to live up to such high expectations consistently?
First and foremost, we do it through the abilities of our top salespeople.
We owe a huge debt to these hard-working individuals who actively pursue
revenue for this company.

Contents Viewer Processing Previous Next