Contents Viewer Processing Previous Next

Sample Viewer Template

A SAS program creates a package and applies a viewer template that is named realview.html. During package publishing, viewer tag processing renders a view of the package for delivery via e-mail.

<html>
<HEAD>
<META HTTP-EQUIV="Content-Type CONTENT="text/html; charset=ISO-8859-1">
<TITLE>Daily Purchase Summary</TITLE>
</HEAD>
<BODY>
<p>

<SASINSERT>
<h1>Table Example using SASTABLE</h1>
<table border cellspacing=0 cellpadding=5 rules=groups>
<thead>
<tr><th>First Name</th>
<th>Last Name</th>
<th>State </th>
<th>HomePage</th></tr>
</thead>
<tbody>
<SASTABLE ENTRY=2>
<tr><td> $(VARIABLE=fname)</td>
<td> $(VARIABLE=lname)</td>
<td> $(VARIABLE=state)</td>
<td> <a href="$(VARIABLE=homepage)"> $(VARIABLE=homepage)</a> </td>
<tr>
</tbody>
</SASTABLE>
</table>

<p>
<h1>List Example using SASTABLE</h1>
<ul>
<SASTABLE ENTRY=3>
<li>$(VARIABLE=org)
</SASTABLE>
</ul>

<P>
<h2>Example using Stream</h2>
<SASINSERT>
<a href="$(ENTRY=1 ATTRIBUTE=STREAM)">$(ENTRY=1 ATTRIBUTE=STREAM)</a>
</SASINSERT>
<p>
</BODY>
</html>

Simulated Rendered View of the Package in E-mail

The following rendered view simulates the information that is displayed by the preceding viewer template.


Daily Purchase Summary

Table Example using SASTABLE

First Name Last Name State HomePage
John Smith NY http://alpineairways.com/~jsmith
Gary DeStephano NY http://alpineairways.com/~gdest
Arthur Allen CA http://alpineairways.com/~aallen
Jean Forest CA http://alpineairways.com/~jforest
Tony Votta NC http://pizza.com/~tova
Dakota Smith NC http://alpineairways.com/~dakota

List Example using SASTABLE

Example using Stream

http://alpineairways.com


Contents Viewer Processing Previous Next