what is the use of filler in cobol programing?

Answers were Sorted based on User's Feedback



what is the use of filler in cobol programing?..

Answer / anubhav

FILLER can be used to align numeric variables to word
boundaries for performance improvement.

When you intialize a group variable, filler fields are
unaffected. This can be used to our advantage. for example
in date fields-
Code:
01 date-fl.
05 mm pic xx.
05 filler pic x value '/'.
05 dd pic xx.
05 filler pic x value '/'.
05 yy pic xx.

By declaring this variable we need not move '/' as a
separator even if we use and initialize date-fl in program
many times.

Is This Answer Correct ?    50 Yes 8 No

what is the use of filler in cobol programing?..

Answer / vinod

filler is used when we declaring the files supose if u give
record length 80 while declaring in file rec given the size
only 60 for filling the gap of the record in to the spaces
we use the filler.
ex:
01 file1-rec.
02 file-name pic x(60).
02 filler pix x(20).

Is This Answer Correct ?    45 Yes 4 No

what is the use of filler in cobol programing?..

Answer / guest

to fill the unused spaces in a record size

Is This Answer Correct ?    32 Yes 3 No

what is the use of filler in cobol programing?..

Answer / ganesh

in simple, for decoration purpose.... as well as for clarity
output

Is This Answer Correct ?    21 Yes 9 No

Post New Answer

More COBOL Interview Questions

level number 77 is used to define a)group data b)elementary data c)redefine d)none

8 Answers   TCS,


What is the use of LINKAGE SECTION?

1 Answers  


What is difference between COBOL and VS COBOL II?.

1 Answers   Winsol Solutions,


I have two questions here. 1. How to read a flat file in reverse order? 2. How to read a VSAM KSDS file in reverse order? In both the cases we donot know the total number of records.

1 Answers   L&T,


Scenario: I have 3 Input Files.Read the first i/p file and depending on certain business logic, I want to read wither i/p file-2 or i/p file-3.Now, depending on certain business logic applied to the record read from either file-2 or file-3, I decide to write them to either output file-2 or output file-2. Question: How many job steps are necessary to implement a solution for the above.

2 Answers   TCS,






88 level entry is used for (a) data items in WORKING-STORAGE SECTION (b) items with RENAMES clause (c) condition-names (d) None of the above

5 Answers   TCS,


if a file has 1000 recods how copy the records from 1 to 100 records using sort

4 Answers   IBM,


how to transfer the file from pc to mainframe??

4 Answers  


Hai friends why we need to read a file before re-write a record?

7 Answers   L&T,


for an INITIALIZE and what keyword allows for an override of the default.

2 Answers  


What are ISOLATION LEVELS? Where do we need to specify them in compiling JCL (Exactly which statement and what is syntax for it)?

2 Answers   T systems,


01 a pic s9(5) value '-12345' how it will be stored

7 Answers   ACS,


Categories