IBM COBOL400 Question:

Download Job Interview Questions and Answers PDF

What are Fillers?
What is the actual use of Fillers? With mall/simple Example?

IBM COBOL400 Interview Question
IBM COBOL400 Interview Question

Answer:

When a programmer is not intended to use any fields in a record structure, it can be defined as Filler.
This can’t be initialized or used in any operation of the procedure division.


Eg: if a record contains the following fields
05 EMP-REC.
10 EMP-KEY PIC XXX.
10 EMP-NAME PIC X(32).
10 EMP-SEX PIC X.
10 EMP-DEPT PIC X(10)
10 EMP-DESIG PIC X(5).
10 EMP-SAL PIC 9(7).


If the programmer is not intended to use , name ,dept and sal in the program the u can define the structure as follows
05 EMP-REC.
10 EMP-KEY PIC XXX.
10 FILLER PIC X(32).
10 EMP-SEX PIC X.
10 FILLER PIC X(10)
10 EMP-DESIG PIC X(5).
10 FILLER PIC 9(7).

Download IBM COBOL400 Interview Questions And Answers PDF

Previous QuestionNext Question
Can we open close file in COBOL any number of times?What is the cobol compiler?