Control File Statements › DEFINE Statement › Examples
Examples
- To use the DEFINE statement to define a two-byte, packed data work field with the default column heading:
DEFINE WORKFLD SPACE LENGTH 2 DISPLAY '909' TYPE P/D.
- To use the DEFINE statement to change OLDFIELD's field display characteristics and its column heading:
DEFINE OLDFIELD DISPLAY '99,909.99' 'NEW FIELD' 'HEADER'.
- To use the DEFINE statement to define a five-character, zoned data field using data from the input file starting with the tenth byte:
DEFINE NEWFIELD START 10 LENGTH 5 DISPLAY '99,909'
TYPE Z/D 'NEW INPUT' 'FIELD'.