what is the use of filler in cobol programing?
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / ganesh
in simple, for decoration purpose.... as well as for clarity
output
Is This Answer Correct ? | 21 Yes | 9 No |
level number 77 is used to define a)group data b)elementary data c)redefine d)none
What is the use of LINKAGE SECTION?
What is difference between COBOL and VS COBOL II?.
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.
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.
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
if a file has 1000 recods how copy the records from 1 to 100 records using sort
how to transfer the file from pc to mainframe??
Hai friends why we need to read a file before re-write a record?
for an INITIALIZE and what keyword allows for an override of the default.
What are ISOLATION LEVELS? Where do we need to specify them in compiling JCL (Exactly which statement and what is syntax for it)?
01 a pic s9(5) value '-12345' how it will be stored