12. Report-Writer Statements : Text Positioning Statements : .Right Statement--Right Justify the Text
Share this page                  
.Right Statement--Right Justify the Text
The .right statement right justifies the next text to be printed.
This statement has the following format:
.right | .rt [[+|-] n | columnname | expression]
The parameters for the .right statement are as follows:
+ | -
If sign is present, the position is moved n positions relative to the last output position. If no sign is present, the position is the absolute position in the output line.
The position to which the next block of text is right justified. The default value is the right margin of the report (set by the .rightmargin statement).
The name of a column in the report. You can specify the column name as a delimited identifier by enclosing it within double quotes ("), if you have previously specified the .delimid statement.
Report-Writer determines the column's position either explicitly through the use of the .position statement, or implicitly as described in Automatic Determination of Default Settings. Report-Writer right justifies the text in the next .print statement to the right edge of that column, as determined from the default position and width of that column. For more information, see the discussion following this table.
A numeric or string expression. If the expression is numeric, it must evaluate to the next print position on the line. If the expression is a string, it must evaluate to the name of a column in the report. Precede all variables that are part of the expression with a dollar sign ($).
The plus sign (+) and minus sign (-) must be explicitly stated and cannot be part of the expression.