Example: A printer file using DDS

This printer file example contains DDS for printing a customer master list.

The following keywords are important in the example:

EDTCDE(Y)
EDTCDE(Z)
PAGNBR
SKIPB
SPACEA

UNDERLINE
BARCODE
CHRSIZ
COLOR

This printer file uses space and skip keywords instead of line numbers.

Figure 1. Printer file
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A*
00020A* SAMPLE PRINTER FILE
00030A*
00040A                                 (1)  REF(MLGREFP)
00050A          R HEADER                    TEXT('TWO-LINE HEADING, UNDERLINED')
00060A                                 (2)  SKIPB(2)
00070A                            (2)     29'CUSTOMER MASTER FILE'
00080A                            (2)     75DATE EDTCDE(Y)
00090A                            (2)     +1TIME
00100A                            (2)    122'Page'
00110A                            (2)     +1PAGNBR  EDTCDE(Z)  SPACEA(2)
00120A                            (2)      2'ACCOUNT  CUSTOMER'
00130A                            (2)       SPACEA(1)
00140A                            (2)      2'NUMBER   NAME        +
00150A                                      ADDRESS              +
00160A                                      CITY                 +
00170A                                      STATE   ZIP  '
00180A                                 (3)  UNDERLINE
00190A                                      SPACEA(2)
     A
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00200A          R DETAIL                    TEXT('ONE-LINE RECORD')
00210A                                 (4)  SPACEA(5)
00220A            ACTNUM    R          (4) 2CHRSIZ(2 2)
00230A            NAME      R          (5)+4COLOR(BLU)
00240A            ADDR      R             +3
00250A            CITY      R             +3
00260A            STATE     R          (6)+3BARCODE(CODE30F9 4 *NOHRI *AST)
00270A            ZIP       R             +5
     A
Legend:
(1)
This printer file refers to the field reference file MLGREFP.
(2)
When SKIPB(2) is specified at the record level, the printer skips to line 2 before printing the record format (HEADER). Also, line numbers in positions 39 through 41 are not allowed.
(3)
UNDERLINE is a field-level keyword that causes the constant field preceding it to be underlined on the printout.
(4)
The CHRSIZ keyword specified here causes the ACTNBR field to print with its height and width expanded by 2.
(5)
The COLOR keyword causes the NAME field to print in blue if you use a printer that supports color (the 4224 Printer).
(6)
The BARCODE keyword specified for the STATE field causes the CODE30F9 bar code to print for the STATE field if you use an IPDS™ printer.