LAYOUT Command
When record formatting, the LAYOUT command is used instead of traditional PRINTLINE commands in the page definition. You cannot mix record format LAYOUT and traditional PRINTLINE commands in the page definition. With LAYOUT (see LAYOUT Command (Record Format)), you can identify four types of Data Records:
- Body Records
- Page Headers
- Page Trailers
- Group Headers
Each of the record types is discussed in the following sections. No matter which type of record you are formatting, you can control the positioning, font, color, and direction for the print record.
The POSITION keyword on the LAYOUT command is used to set the initial print position for subsequent text and graphics placed with the FIELD and DRAWGRAPHIC commands.
- The horizontal position can be specified as LEFTMARGIN, at the same position as the previous layout, or at an absolute or relative location given in inches, millimeters, centimeters, points, or pels (see PAGEDEF Command).
- The vertical position can be specified as TOPMARGIN, at the same position as the previous layout, at the next vertical position (using current LINESP value), or at an absolute or relative location given in inches, millimeters, centimeters, points, or pels (see PAGEDEF Command).