12. Report-Writer Statements : Column and Block Statements : .Tformat Statement—Change Format of Column Output Temporarily
 
Share this page                  
.Tformat Statement—Change Format of Column Output Temporarily
The .tformat statement changes the format temporarily for the output of a column.
This statement has the following format:
.tformat | .tfmt columnname{, columnname} (format)
    {, columnname{, columnname} (format)}
The parameters for the .tformat statement are as follows:
columnname
The name of a column in the report. You can specify the column name as a delimited identifier by enclosing it in double quotes ("), if you have previously specified the .delimid statement.
format
A valid printing format, as described in Format Specifications. The format must be the correct type for the column(s).
The columnname and format can be expressed as variables. The comma (,) and the parentheses () must be stated explicitly and cannot be part of the columnname or format variables.
$columnvariable
Variable whose value is a name of a column in the report. Precede the variable with a dollar sign ($).
$formatvariable
Variable whose value is a name of a printing format described in Format Specifications. The format must evaluate to the correct type for the column(s). Precede the variable with a dollar sign ($).