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

2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2100


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.

2001


What is redefines clause in COBOL?

844


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1520


For rewrite, why is it mandatory that file needs to be opened?

619






Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

706


what is difference between cobol and cobol/400

21554


Mention the guidelines to write a structured cobol program?

611


What is the difference between next sentence and continue in cobol programing language?

702


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

702


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1774


example for sub strings ? and refernce modifications whit output pls

1843


Give some examples of command terminators?

751


What are all the divisions of a COBOL program?

660


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2093