what is the use of filler in cobol programing?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the various section in data division and briefly explain them.

908


Write a program to enter and display the names of students in a class using the occurs clause.

915


What is the local-storage section?

886


Can we redefine the field of x(200) to less than 200?

1091


how do you reference the rrds file formats from cobol programs

1139


How many bytes S(8) comp field occupy and its maximum value?

1849


What is the difference between perform … with test after and perform … with test before?

1147


Name the divisions, which are available in a cobol program?

919


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1407


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

6085


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

906


What are different data types in cobol?

906


how do you reference the variable unblock file formats from cobol programs

1000


how to refer the data field?

1985


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1071