bugGnuCOBOL (formerly OpenCOBOL) - Bugs: bug #46697, level number processing...

 
 

bug #46697: level number processing restriction is non-ANSI

Submitter:  None
Submitted:  Wed 16 Dec 2015 05:42:22 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 13 Jan 2017 06:45:49 PM UTC, comment #1: 

Hi Anon,

You can use the `-frelax-level-hierarchy` to compile your code.

Edward Hart <edwardhart>
Group Member
Wed 16 Dec 2015 05:42:22 PM UTC, original submission:  

I have downloaded a number of programs from my work system. This is a z/OS system, running IBM's COBOL compiler. That's just for background. For some reason, there are a few COPY books with unusual numbering, similar to the following:

01 SOME-STRUCTURE.
   05 SUB-STRUCTURE.
      10 VARIABLE1 PIC ... .
      10 VARIABLE2 PIC ... .
    03 SUPER-SUB-STRUCTURE-1.
    05 SUB-STRUCTURE-2.
       10 VARIABLE3 PIC ... .
       10 VARIABLE4 PIC ... .
    05 VARIABLE5 PIC ... .

GNUCobol complains about the 03 level whereas the IBM compiler does not. Closer compatibility would be nice.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by edwardhart (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-01-13 edwardhart StatusNone Invalid
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code