Re: Filler keyword not mandatory?

From: Colin Campbell (cmcampb_at_adelphia.net_remove_this)
Date: 11/07/03


Date: Fri, 07 Nov 2003 10:25:46 -0800

Since the reserved word FILLER is optional in the 1985 ANSI COBOL
Standard, why do you consider it bad form to omit it? (If it were
simply an extension put in by a compiler writer, I think I would feel
differently, because it might make a program less portable to another
compiler / platform.)

What advantage is gained by coding FILLER? Whether FILLER is explicitly
coded or not, the data item has no name, and cannot be referenced
(except by reference modification).

Many programmers intentionally introduce white space into COBOL programs
as a readability aid. If it were your practice to align all the data
names in a record description, the lack of anything on a line would tend
to catch your eye and tell you "here is some FILLER". Or, if you were
coding a literal whose purpose was to help you find your way in a dump,
you could get more of the literal ona single line by omitting the word
FILLER.

Mark A Framness wrote:
> Greetings,
>
> I am looking at some MF cobol code and see the following definition:
>
> 05 ws-report-fld1 pic x(10) value spaces.
> 05 pic x(03) value spaces.
> 05 ws-report-fld2 pic x(05) value spaces.
> 05 pic x(03) value spaces.
> ......
>
> Apparently the filler keyword is optional. Is this a MF cobol thing or
> is it widespread?
>
> Not to start a religious war but IMO it is very poor style to not use
> filler in the above example.
>
> ttyl



Relevant Pages

  • Re: Filler keyword not mandatory?
    ... There's a difference between a declaration and an initialization. ... That would be one-downs-man-ship given that coding FILLER is, ... I believe that coding FILLER is acceptable. ... COBOL standard. ...
    (comp.lang.cobol)
  • Re: Setting A Hex Value in COBOL
    ... 01 FILLER REDEFINES CH-NL-BIN. ... This is some old MVS COBOL II code. ... Symbolic characters: ...
    (comp.lang.cobol)
  • Re: Filler keyword not mandatory?
    ... FILLER is an optional word ... It has nothing to do with coding style in COBOL or any ... For me the "benefit" in coding FILLER is that I can immediately see what ... the real question is: "Is there enough benefit to coding FILLER to make ...
    (comp.lang.cobol)
  • Re: excluding fields in SELECT statement
    ... The closest thing I know is FILLER in Cobol. ...
    (comp.databases.ms-sqlserver)