DDL Compiler Commands
Data Definition Language (DDL) Reference Manual — 426798-002
9- 61
FILLER Command
•
If the group referred to does not start on a word boundary but is described with a
REDEFINES clause, DDL inserts a filler byte before the group being redefined.
FILLER Command Example
The filler algorithm you select affects the structure of the source code; for example,
consider the following DEFINITION statements:
DEF test1.
02 a PIC XX.
02 b PIC S9(4) COMP.
END
DEF case1.
02 c PIC X.
02 test1 TYPE *.
END
DEF case2.
02 test1 TYPE *.
02 c PIC X.
END
With FILLER 1, the COBOL source code for CASE1 and CASE2 is:
01 CASE1.
02 C PIC X.
02 FILLER PIC X(1).
02 TEST1.
03 A PIC XX.
03 B PIC S9(4) COMP.
01 CASE2.
02 TEST1.
03 A PIC XX.
03 B PIC S9(4) COMP.
02 C PIC X.
With FILLER 0, the COBOL code is:
01 CASE1.
02 C PIC X.
02 TEST1.
03 A PIC XX.
03 FILLER PIC X(1).
03 B PIC S9(4) COMP.
01 CASE2.
02 TEST1.
03 A PIC XX.
03 B PIC S9(4) COMP.
02 C PIC X.