12. Report-Writer Statements : Page Layout and Control Statements : .Rightmargin Statement--Set the Right Margin : Description
 
Share this page                  
Description
The .rightmargin statement sets the right margin of the report to a specific position or a position that is the value of a numeric expression. To set the right margin for the entire report, place the statement in the .header report section. The .rightmargin value is used by the .right and .center statements to determine the default position for those statements. If text would ordinarily go beyond the right margin, it is wrapped around to the start of the next line.
Report-Writer evaluates any expressions used as parameters to the .rightmargin statement during runtime.
If you do not specify a value, Report-Writer determines the default value for the right margin by the printing statements in the report, as discussed in Automatic Determination of Default Settings. The value specified for the .rightmargin statement must be greater than the specification for the left margin and less than the page width (as set by the ‑l flag on the report command).