Menu ▾ ▴

#687 UNBOUNDED clause is missing

Programmer's Guide
closed
None
5 - default
2020-12-01
2020-11-29
No

I believe that the UNBOUDED clause is missing in chapter 6.9.31 OCCURS .
The UBOUNDED clause, on the other hand, is well described in the grammar at 7.10.47.

Discussion

  • Eugenio Di Lorenzo

    I suggest the following new definition

      OCCURS [ integer-1 TO ] { integer-2  TIMES [DEPENDING ON identifier-1]}
      ~~~~~~             ~~                       ~~~~~~~~~
                              { UNBOUNDED  TIMES  DEPENDING ON identifier-1 } 
                                ~~~~~~~~~         ~~~~~~~~~
    
    ... etc 
    
     

    Last edit: Eugenio Di Lorenzo 2020-11-29
  • Vincent (Bryan) Coen

    P/O and @Simon;

    The grammar is for v4.0 so I do not know if v3.1 has this option and in what form it takes as grammar only shows that subclause word UNBOUND is added to the OCCURS clause.

    Not that I know what the heck it does.

     
  • Simon Sobisch

    Simon Sobisch - 2020-11-30

    It is a 3.x feature and has the rules that come from the original place (IBM) --> only in LINKAGE, storage handling must be done manually.

     
  • Vincent (Bryan) Coen

    I have search with online Cobol manuals for OS390 and zOS Enterprise v6.3 and UNBOUND is NOT present.

    Pleasse point me to the relevent IBM manual (if poss as .pdf),

    Thanks.

     
    • Simon Sobisch

      Simon Sobisch - 2020-11-30

      Please see related [patches:#30].

       

      Related

      Patches: #30

  • Vincent (Bryan) Coen

    [r4008]+[r4009]

    • status: open --> closed
     

    Related

    Commit: [r4008]
    Commit: [r4009]


    Last edit: Simon Sobisch 2020-12-01

Log in to post a comment.