LAYOUT Command (Record Format)

LAYOUT {DEFAULT | [C | X | A | E | U8 | U16]} 'record ID'
[BODY 
    [NOGROUP | 
     GROUP] [XSPACE 0 | n {IN | MM | CM | POINTS | PELS }] | 
     PAGEHEADER | 
     PAGETRAILER |
     GRPHEADER [XSPACE 0 | n {IN | MM | CM | POINTS | PELS}]]
[NEWPAGE]
[DELIMITER {C | X} 'bytes']
[PRINTDATA {YES | NO}] 
[POSITION 
    [{SAME | =} | 
     LEFTMARGIN |
     horiz [IN | MM | CM | POINTS | PELS]] 
    [RELATIVE [NEXT | 
                     {SAME | = } | 
                     [(–)] vert [IN | MM | CM | POINTS | PELS]] |
     [ABSOLUTE] TOPMARGIN |
     ABSOLUTE [(–)] vert [IN | MM | CM | POINTS | PELS]]] 
[DIRECTION {ACROSS | DOWN | BACK | UP}]
[ENDSPACE n [IN | MM | CM | POINTS | PELS]] 
[COLOR colorname |
 RGB rvalue gvalue bvalue} |
 HIGHLIGHT hvalue [COVERAGE cvalue] [BLACK bvalue] |
 CMYK cvalue mvalue yvalue kvalue |
 CIELAB lvalue [(–)] c1value [(–)] c2value] 
[FONT name1 [, name2]]
[OBJECT {lname [0 0 | relX relY] |
                VARIABLE VARIABLE Parameters [0 0 |relX relY]         
                    OBTYPE {PSEG | IOCA | BCOCA | GOCA | PTOCA |
                            OTHER OBID {comp-id | typename}}}  
 Other OBJECT Parameters]
[OVERLAY {name | VARIABLE VARIABLE Parameters} 
   [0 0 | rel. x-pos rel. y-pos] OVROTATE {0 | 90 | 180 | 270}]]
[SEGMENT {name | VARIABLE VARIABLE Parameters} 
   [0 0 | rel. x-pos rel. y-pos]}];

Variable Parameters

{[START n] LENGTH n |
 FLDNUM n [START n] [LENGTH n] |
 RECID [START n] [LENGTH n]}

Other OBJECT Parameters

[OBSIZE [USEOBJ | wd  [unit] | hg [unit]]]
[OBMAP {LEFT | TRIM | FIT | CENTER | REPEAT | FILL}] 
[OBCHPOS [USEOBJ | x-pos]] 
[OBCVPOS [USEOBJ | y-pos]] 
[OBROTATE [0 | 90 | 180 | 270]]
[OBCOLOR colorname] 
[OBPAGE n]
[OBRESOLUTION x y {IN | CM}][OBCPSS PSS]

The LAYOUT command is used to format a data record. The LAYOUT command is associated with the line of data record using a record ID that appears both on the LAYOUT command and in the first n bytes of the data record. (Normally n is 10 bytes, but can be specified to be 1 to 250 bytes bytes by using the RECIDLEN subcommand on either the PAGEDEF or PAGEFORMAT commands). The record ID is entered in quotes and must match the record ID within the data exactly, byte for byte. The ID is padded with blanks if the field is entered with less than n bytes.

The entire record ID should be specified on one single line in the LAYOUT command. It cannot be split into multiple lines. The number of characters on the input line, including the record ID, cannot exceed the logical record length of the input file limit.

The LAYOUT command is used in record format page definitions. It is analogous to the PRINTLINE and XLAYOUT commands in traditional page definitions and XML page definitions. You cannot mix the LAYOUT command with PRINTLINE or XLAYOUT commands.