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
what are decleratives in cobol?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
how do you reference the rrds file formats from cobol programs
What is the Purpose of Pointer in the string?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
How do define dynamic array in cobol.
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What is the difference between Call and a Link?
Explain what you understand by passing by value.
How to remove 2 duplicate records and copy only one using job control language?
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
what is the use of outrecord?
What is the difference between Global and External Variables?
Can we redefine the field of x(200) to less than 200?