RIGHT MARGIN Clause

This sets the right margin for each line of a default report (one that specifies EVERY ROW in the FORMAT section) or of a PRINT WORDWRAP statement.

4GLREF00000008.gif

size is a literal integer that specifies the maximum number of characters on each line, including the left margin.

This clause sets the right margin by specifying a line width, in characters. The size is not dependent on the LEFT MARGIN, but starts its count from the left edge of the page, so that the width of the LEFT MARGIN is included in the size of RIGHT MARGIN.

The 132-character default size is effective only when the:

RIGHT MARGIN clause is omitted from the OUTPUT section, and the FORMAT section contains the EVERY ROW specification for a default report format, or else a PRINT statement with WORDWRAP is executing.

A default EVERY ROW report lists the variable names across the top of the page, and presents the data in columns beneath these headings. If there is not sufficient room between left- and right-margins to do this, INFORMIX-4GL produces a two-column output format that lists the variable name and the data value of each output record on each line of output.

The PRINT statement in the FORMAT section can also include a WORDWRAP RIGHT MARGIN clause. This sets a temporary right margin that cannot be larger than the explicit or default right margin of the OUTPUT section.

While its PRINT statement is executing, this temporary line width overrides

the explicit or default right margin from the OUTPUT section. After the PRINT statement completes execution, the explicit or default RIGHT MARGIN size from the OUTPUT section is restored as the maximum line width.

References

BOTTOM MARGIN Clause

LEFT MARGIN Clause

PAGE LENGTH Clause

REPORT TO Clause

TOP MARGIN Clause

TOP OF PAGE Clause