%macro tdspecs(
/*--This macro will be used as the basic building block for applications
that generate tabular output from the data step. We pass the macro parm
values that result in the generation of html text. This text can be returned
directly as the result of the macro or it can be output to a SAS data set for
subsequent use in generating the html document (see tdmode global variable).
The macro assumes the existence of a series of global macro variables that can
be used to control its output.
-- */
var, /* first positional parm. Either the name of a variable or a character literal
as determined by checking to see if first character of the value is a single or
double quote. This is the value to be displayed as a table cell within a
... | construct. If var=_default then nothing will be generated but values
specified for any parameter will become the default values for any subsequent
invocations. */
fmt, /* the sas format to be used in formatting the value of var. if not specified
the default value will be best12. Leading $ should be included for character
formats. If the value contains no periods then one will be generated at the
end, i.e. if value is 'comma9' then it will be converted to 'comma9.' */
/* Note that var and fmt are the only 2 positional parms. All the others are named */
face=, /* font face value */
bold=, /* specify value of 1 or y to specify value is to be bolded. A value of 0 or n
will override a default value of 1 */
itallic=, /* similar to bold for italics spec */
uline=, /* similar to bold for underline spec */
align=, /* value of align option. If value is not specified then it will be assigned
a value of left or right depending on whether the variable is character or
numeric */
valign=,
size=,
color=,
bgcolor=,
href=, /* a URL can be specified in which case the value will be a link */
split=, /* specify a single character that will be used to cause the value of a character
variable or literal to be vertically split (by the insertion of
s at the
split points.) */
width=, /* a numeric value followed by a unit code to indicate the width of the cell. The
single character following the numeric value should be x for pixels, p for pct of
screen and c for characters. The c value is only valid for character values and
will cause the value to be vertically split after each &width characters similar to
when using the split option. If no character is specified then pixels (x) is default. */
colspan=,rowspan=,