Example 2: Sample: Using the <SASINSERT> and <SASTABLE> Tags to Build a Table

The following example uses the <SASINSERT> and <SASTABLE> tags to build a table. The SAS data set entry is the first entry in the main package. The value of the variables fname, lname, state, and homepage are used to create the table. The newly created table will contain one row for each row in the main package. To see formatted output from <SASINSERT> and <SASTABLE> examples, see Sample Viewer Template.
<h1>Table Example Using SASTABLE</h1>
<table border cellspacing=0 cellpadding=5
<tr><th>First Name</th>
<th>Last Name</th>
<th>State </th>
<tr> <td> $(Variable=fname)</td>
<td> $(Variable=lname)</td>
<td> $(Variable=state)</td>
<td> <a href=$(Variable=homepage)>
<tr><td colspan=4 align=center>
Note: Simple table example.</td></tr>