what is FILLER in copybooks ?
---
Posted anonymously from tutorial: /tutorials/cobol/picture-clause
what is FILLER in copybooks ?
---
Posted anonymously from tutorial: /tutorials/cobol/picture-clause
It's a way to reserve space on a record for data that might be needed later.
Customer Record has a record length of 28 bytes defined:
01 CUSTOMER-RECORD.
05 CUSTOMER-ID PIC X(5).
05 CUSTOMER-NAME PIC X(20).
05 FILLER PIC X(3).
For example I could leave a FILLER of 3 bytes at the end of the Customer Record for a future developer to use ie they need to expand the Customer Record to contain a 2 byte customer status field:
01 CUSTOMER-RECORD.
05 CUSTOMER-ID PIC X(5).
05 CUSTOMER-NAME PIC X(20).
05 CUSTOMER-STATUS PIC X(2).
05 FILLER PIC X(1).
Sometimes its easier to include a FILLER for future use, otherwise if its not included but you need to add a new field then that will involve increasing the overall record length which may impact downstream processes which would also need to be updated to handle the new record length.
You must be signed in to reply to this thread