To create custom property lists interactively, you must be running Release 6.12 of SAS software and have have SAS/AF installed. The FRAME interface used to customize your property lists is provided only in the HTML Formatter packages provided for Release 6.12. Be sure that you have installed the correct package.
The following topics are provided to assist you with creating property lists interactively:
You can create as many property lists as you need. For example, you might want to create a property list for each department within your division so that all results generated by a department have a distinctive yet consistent look for easy recognition.
You cannot modify the default property list provided with the HTML Tabulate Formatter. If you want to change the default property settings, you must create a new file by entering the changes and selecting the Save As button.
To invoke the properties interface, submit the following line in the Program Editor:
%tabprop(runmode=i);
Note: To modify an existing properties list, include the four-level filename with the macro. Using this method, you submit a command like the following:
%tabprop(runmode=i, proploc=SASUSER.HTMLGEN.MYTAB.SLIST);
The HTML Tabulate Formatter Properties window appears showing the property settings contained in the property list. If you did not specify a list, the Tabulate Formatter uses the property list SASUSER.HTMLGEN.TABPROP.SLIST, if it exists. Otherwise, the Tabulate Formatter uses the property list that is supplied by SAS, SASHELP.HTMLGEN.TABPROP.SLIST.
The HTML Tabulate Formatter Properties window has three panels. Continue with one of the following:
Use the Global panel to specify the following:
PROPLOC
at invocation).
Use the Global panel according to the following instructions:
Current Property List: To choose an existing property list, select the button next to the Current Property List display field. The Select window appears. Select the appropriate libref, catalog, and entry name for the list you want to modify. (Select a valid list, as this window displays all SLIST entries, not just property lists.) Select OK to exit the window. The name of the list you selected appears in the Current Property List display field, and the settings change to reflect the settings in the list you selected.
Background: Select a background by doing one of the following:
To omit a background from your Web page, do nothing, as the default setting for Background Type is None. This setting uses the background color defined by your browser.
To specify a background color for your Web page, select the Color setting under Background Type. The Background Color entry field is now active. Type the color name or appropriate RGB value. You can specify any color that is supported by your browser. Note that some browsers do not support the use of background colors.
To specify a background image for your Web page, select the Image setting under Background Type. The Background Image Location entry field is now active. Type the fully-qualified path and filename for the image you want to use. Note that some browsers do not support the use of background images.
Separator: Do one of the following:
To turn off the use of a separator between the tables, select the None setting under Separator Type.
To use an image as a separator type, select the Image setting under Separator Type. The Separator Image Location entry field is now active. Type the fully-qualified path and filename for the image you want to use.
To use a rule separator, do nothing, as the default setting for Separator Type is Rule. This setting adds the <HR> tag after the table is generated.
Text Color: To specify a color for your Web page text, select the Other setting under Text Color. The Text Color entry field is now active. Type the color name or appropriate RGB value. You can specify any color that is supported by your browser.
You can override the text color for specific output elements on the Element panel.
The default setting for Text Color is Default. This setting uses the text color setting defined by your browser.
Justification: To center all the text on your HTML page, select the Center option under Justification. This causes the Tabulate Formatter to add a <CENTER> tag to the beginning of your HTML file and a </CENTER> tag to the end.
By default, the Center setting is not selected.
To finish using the panel, continue with instructions in Panel Options.
Use the Table panel to do the following:
Change settings on the Table panel according to the following instructions:
Select the Table tab to display the Table panel.
Background: Select a background by doing one of the following:
To specify a background color for your HTML table, select the Color setting under Background Type. The Background Color entry field is now active. Type the color name or appropriate RGB value. You can specify any color that is supported by your browser. Note that some browsers do not support the use of background colors.
To omit a table background, do nothing, as the default setting for Background Type is None. This setting uses the table background color defined by your browser. Some browsers use the Global background color, if specified.
Table Alignment: Select whether the table is
aligned to the left, right, or center of the page. The
default value is CENTER
. Some browsers
produce unexpected results with multiple tables and
anything other than CENTER
.
Table Width: Specify the width of the table by
entering a value. The default value is 0
,
which lets the browser determine the optimum width. Also,
choose the table width units of Percent
or
Pixels
. The default is PERCENT
.
Border Width: Specify the thickness of the table
border. The higher the value, the thicker the border. The
default value is 1
. To omit a border, click
on the check box so that it is deselected.
Cell Properties: Enter a value in the Padding field
to indicate the space, in pixels, between the borders of
the table cell and the contents within the cell. (The
value specified for this argument is represented in the
HTML coding as CELLPADDING
.)
Also, enter a value in the Spacing field to indicate the
space, in pixels, between the cells in the table. (The
value specified for this argument is represented in the
HTML coding as CELLSPACING
.)
To finish working with this panel, continue with instructions in Panel Options.
Use the Element panel to do the following:
To change options on the Element panel, complete the following:
Select the Element tab to display the Element panel.
Alignment: To set the alignment for an individual table element, select the element from the Element list box. Select the desired horizontal alignment and/or vertical alignment for that element.
Background: Select a background by doing one of the following:
To specify a background color for the element in the table, select the Color option under Background Type. The Background Color entry field is now active. Type the color name or appropriate RGB value. You can specify any color that is supported by your browser. If specified, table background or global background will be used.
To omit an element background, do nothing, as the default setting for Background Type is None. This setting uses the element background color defined by your browser.
Font: Each element uses the default font type. The default font type is determined by your browser settings and the HTML tag associated with the element. When you customize the font for an element, you can specify a typeface, color, and size for the element. The HTML Tabulate Formatter inserts the appropriate <FONT> tag into the HTML file.
Note: Some browsers do not support the <FONT> tag.
To customize the font for an element, select the item from the Element list box.
Select Custom from Font Type.
The Face, Color, and Size entry fields are now active.
To specify a custom typeface, type the font name in the Face entry field. Remember that the typeface you choose must be available to the user's browser.
To specify a color for an element, type a color name or the RGB value in the Color entry field.
To change the size of an element, type
+N
, N
, or -N
(where N
is an integer) in the Size
entry field. The size of the text is increased or
decreased based on the value you supply.
Associating HTML Tags: From the Element panel on the HTML Tabulate Formatter Properties window, select the HTML Tags... button. The window that appears contains two listboxes. The list on the left contains the names of all of the elements. The list on the right contains the descriptions of all of the HTML tags defined to the Tabulate Formatter.
You can use this window to:
All of the possible elements are listed in the Element list box. Select the element name from the Element list box. When you select an element, the HTML Tag Description list box highlights the appropriate tag information.
Select the element from the Element list box.
Scroll through the list of tags in the HTML Tag Description list box to locate the new tag you want to use. Select the new tag name. The new starting and ending tags appear.
Note: If you do change the HTML formatting, you should run your PROC TABULATE and make sure that the results of your formatting changes are acceptable before making the output available on the Web.
Creating or modifying available HTML tags: The available HTML tags are stored in the SASHELP.HTMLGEN.TAGS.SLIST file provided with the Tabulate Formatter. You can change the HTML tags associated with a tag name, delete tags from the file, and add tags to the file. If you make changes to TAGS.SLIST, remember to test your changes before making pages available.
Note: When you modify the tags list, the Tabulate Formatter saves your changes to SASUSER.HTMLGEN.TAGS.SLIST. When you run the Tabulate Formatter, it looks for the tags list in SASUSER first. If the file exists, it uses this file. If the file does not exist, it uses the file provided with the Tabulate Formatter (SASHELP.HTMLGEN.TAGS.SLIST).
To add, delete, or modify tags, do the following:
From the Element panel of the HTML Tabulate Formatter Properties window, select the HTML Tags... button.
From the next window, select the Edit... button. The Edit HTML Tags window appears.
To delete a tag from the list, select the tag name from the list box, then select the Delete button. Select Yes to verify that you want to delete the selected tag.
To change the tag name associated with an HTML tag pair, select the tag name that currently represents the tag pair. The tag name and the starting and ending tags appear in the entry fields at the bottom of the Edit HTML Tags window. Type the new tag name in the Tag Name entry field. Select the Apply button. The new tag name is added to the beginning of the list box.
Make sure that the starting and ending tags match.
Note: Be sure to select Apply; otherwise, your changes will not be saved.
To change the HTML tag pair associated with a tag name, select the tag name from the list box. The tag name and the starting and ending tags appear in the entry fields at the bottom of the window. Type the new HTML tags in the Starting Tag(s) field. Type the appropriate end tags, in the appropriate order, in the Ending Tag(s) entry field. Select the Apply button.
Make sure that the starting and ending tags match.
Note: Be sure to select Apply.
To add a new tag name and associated tag pair, type the new tag name in the Tag Name entry field. Type the new HTML tags in the Starting Tag(s) field. Type the appropriate end tags, in the appropriate order, in the Ending Tag(s) entry field. Select the Apply button. The new tag name is added to the beginning of the list box.
Make sure that the starting and ending tags match.
When you are finished modifying the tags list, select the OK button to return to the previous window. Select OK again to return to the HTML Tabulate Formatter Properties window.
To finish using any panel, do one of the following:
To change the Global settings, select the Global tab, and continue with Specifying Global Settings.
To change the Table options, select the Table tab, and continue with Specifying Table Settings.
To change the Element options, select the Element tab, and continue with Specifying Element Settings.
To save the custom property list, select Save or Save As. For information about saving a new property list, see Saving a Properties List.
To return all settings on both panels to the default property list settings, select Defaults.
To return the settings on both panels to the last saved settings, select Revert.
To save your changes and exit from this window, select OK.
To exit from this window without saving your changes, select Cancel.
After specifying the options on the Global, Table, and Element panels, complete the following:
Select the Save As button.
Note: Use the OK or Save button rather than the Save As button if the following conditions apply:
The Save Property List window displays.
Type the name of the new property list in the SLIST Entry field or use the selector to save to an existing entry, then select OK.
The new file is created using the name you specified. This list filename now appears in the Current Property List field on the HTML Tabulate Formatter Properties window.
You can now use this property list to format your Web-enabled
output by using the PROPLOC=
attribute (if using
Tabulate Formatter in batch mode) or by specifying the filename
on the HTML Tabulate Formatter window (if using Tabulate
Formatter interactively).