Field Processing When PRINTLINEs Are Repeated
Figure 1 and Figure 2 are examples that show the effect of the [LINE | FIELD] parameter on REPEAT n.
Figure 1 is a PRINTLINE example
that uses FIELD type repetition.
Figure 1. 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;
Figure 2 is a PRINTLINE example
that shows LINE type repetition.
Note: When
LINE type repetition is used, SETUNITS LINESP might need
to be set to a higher value to avoid over printing.
Figure 2. 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;
Figure 3 shows an example of Input
Line Data.
Figure 3. (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
When Figure 3 is processed by the print server, the output in Figure 4 and Figure 5 is printed.
Figure 4. Input Line Data Sample
Output 1
Figure 5. Input Line Data Sample
Output 2