Field Processing When PRINTLINEs Are Repeated

The following examples show the effect of the [LINE | FIELD] parameter on REPEATn.

The first PRINTLINE example uses FIELD type repetition. The second PRINTLINE example shows LINE type repetition.

Note: When LINE type repetition is used, SETUNITS LINESP may need to be set to a higher value to avoid over printing.

REPEAT n type FIELD Example

PAGEDEF  rept01  WIDTH      8.0 IN
                 HEIGHT    10.5 IN
                 LINEONE    0.2 IN 0.2 IN
                 DIRECTION ACROSS
                 REPLACE   YES;
 
   FONT  normal  CR10  SBCS  ROTATION 0;
   FONT  italic  CI10  SBCS  ROTATION 0;
   FONT  bold    CB10  SBCS  ROTATION 0;
   .
   .
   .
   SETUNITS LINESP 6 LPI;
 
   PRINTLINE  POSITION 1.0 IN 1.0 IN
              DIRECTION ACROSS
              FONT bold
              REPEAT 3 FIELD;
      FIELD   POSITION 0.0 IN 0.0 IN
              DIRECTION ACROSS
              FONT normal
              START * LENGTH 20;
      FIELD   POSITION 2.5 IN 0.0 IN
              DIRECTION DOWN
              FONT normal
              START * LENGTH 20;
      FIELD   POSITION 2.5 IN 2.5 IN
              DIRECTION BACK
              FONT normal
              START * LENGTH 20;
      FIELD   POSITION 0.0 IN 2.5 IN
              DIRECTION UP
              FONT normal
              START * LENGTH 20;

REPEAT n type LINE Example

⋮
SETUNITS LINESP 3.0 IN;
 
PRINTLINE  POSITION 5.0 IN 1.0 IN
           DIRECTION ACROSS
           FONT bold
           REPEAT 3 LINE;
   FIELD   POSITION 0.0 IN 0.0 IN
           DIRECTION ACROSS
           FONT normal
           START * LENGTH 20;
   FIELD   POSITION 2.0 IN 0.0 IN
           DIRECTION DOWN
           FONT normal
           START * LENGTH 20;
   FIELD   POSITION 2.0 IN 2.0 IN
           DIRECTION BACK
           FONT normal
           START * LENGTH 20;
   FIELD   POSITION 0.0 IN 2.0 IN
           DIRECTION UP
           FONT normal
           START * LENGTH 20;

The next example shows Input Line Data.

(Input) Line Data

Field Type Repeat   Field Type Repeat  Field Type Repeat  Field Type Repeat
Field Type Repeat   Field Type Repeat  Field Type Repeat  Field Type Repeat
Field Type Repeat   Field Type Repeat  Field Type Repeat  Field Type Repeat
Line Type Repeat    Line Type Repeat   Line Type Repeat   Line Type Repeat
Line Type Repeat    Line Type Repeat   Line Type Repeat   Line Type Repeat
Line Type Repeat    Line Type Repeat   Line Type Repeat   Line Type Repeat
Field Type Repeat   Notice that the  fields are repeated based on the prior
instance of the same field, and not the  printline. This  has advantages if
special effects are desired.
Line Type Repeat    is based on the     printline.  Good  for sales tickets.
Generally, this type of repeat needs a   SETUNITS LINESP     command...
 ...so that lines    won't overlap!      This is             SETUNITS    LINESP 3 IN