Uploaded image for project: 'SonarCOBOL'
  1. SonarCOBOL
  2. SONARCOBOL-1259

Parse error [Microfocus]: "ADDRESS OF" could be used without "OF"

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8
    • Fix Version/s: 3.0
    • Component/s: Microfocus, Parser
    • Labels:
      None

      Description

      "OF" should not be mandatory when using the special register "ADDRESS OF"
      The Microfocus compiler accepts the following code:

             IDENTIFICATION DIVISION.
             DATA DIVISION.
             WORKING-STORAGE SECTION.
             01 ITEM1.
             PROCEDURE DIVISION.
               DISPLAY ADDRESS ITEM1.
      

      Even if the documentation is not quite clear, no parsing error should be raised on such cases.
      See http://supportline.microfocus.com/documentation/books/sx51/lhclan.htm#u020

        Attachments

          Activity

            People

            • Assignee:
              elena.vilchik Elena Vilchik
              Reporter:
              pierre-yves.nicolas Pierre-Yves Nicolas
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: