If you want to format data using a SAS format that is not supported
by htmSQL, you can use the PUT() function in your SQL statement to
specify that format. For example, if you want to use the SAS
mmddyy8. format to format a date, write an SQL
statement like the following SELECT statement:
select put(datevar,mmddyy8.) as datevar ...
The value that is returned
in the datevar variable is a character value in the
mmddyy8. format. You can then provide more formatting
for the variable by using the format option. For example, the following
applies
a format that htmSQL supports (left) onto the date variable:
{&datevar format=left}
Note that if you use
the following select statement, htmSQL does not format the datevar
variable using the
mmddyy8.
format:
select datevar format=mmddyy8...
Instead a numeric value is returned and formatted using the
default date format.