Position Subcommand
This is for use in positioning text, objects and graphics. If RELATIVE is specified or POSITION is not specified, the baseline of the Position is relative to the previous LAYOUT position.
- For PAGEHEADER LAYOUT the baseline position can be anywhere on a logical page.
- For PAGETRAILER, GROUPHEADER, and BODY LAYOUT the baseline position can be anywhere on a logical page and can be specified as RELATIVE.
Following POSITION subcommands come the horizontal (x) then the vertical (y) offsets from the reference point.
- x
- Specifies the horizontal offset from the left side of the logical page.
- y
- Specifies the vertical offset from the top side of the logical page.
They are parallel in structure to the OFFSET subcommand of the form definition.
For example, the final POSITION subcommand on the previous example places the final field 1 + 4 inches to the right of the left edge of the logical page, combining the x value of 1 in the LAYOUT command, and the x value of 4 in the nested FIELD command. The 0 in the FIELD command specifies no change to the y value in the LAYOUT command. Thus, the position of the final field is 5 IN (x), 2 IN (y).
Alternate controls for the x and y values of a POSITION subcommand are available. See the description of the POSITION subcommand in FIELD command (Record Format).