Viewer Processing |
<SASTABLE nested=z entry=x attribute=value> /* insert HTML tags or static text as needed here */ $(variable=variableName) /* insert HTML tags or static text as needed here */ </SASTABLE>
The attributes of the <SASTABLE> tag are defined as follows:
x
value are defined in
Specifying Values for the NESTED and ENTRY Attributes.
Note: The LAST attribute and the N attribute are mutually exclusive. If both are specified, the last one is used.
Note: The N attribute and the LAST attribute are mutually exclusive. If both are specified, the last one is used.
$(VARIABLE=variableName)
The variable substitution syntax specifies that the value of the VARIABLE attribute in the data set is to be substituted into the tables and lists in either HTML or plain text format. This attribute is valid only within the <SASTABLE> tag. The entry that is named in the <SASTABLE> tag must be a valid SAS data set. Any number of variable substitutions can be specified within the <SASTABLE> tag as long as each one references a valid variable in the SAS data set.
<p> <SASINSERT> <ul> <SASTABLE ENTRY=2> <li>$(VARIABLE=fileName) </SASTABLE> </ul> </SASINSERT>
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.
<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> <tbody> <SASTABLE ENTRY=1> <tr> <td> $(VARIABLE=fname) <td> $(VARIABLE=lname) <td> $(VARIABLE=state) <td> <a href=$(VARIABLE=homepage)> $(VARIABLE=homepage)</a> </SASTABLE> </table> </SASINSERT>
Viewer Processing |