Details

    • Type: Language-Specification
    • Status: Active
    • Resolution: Unresolved
    • Labels:
      None
    • List of parameters:
      • Key: exceptionsFormat
        • Description: Regular expression used to check goto targets against
        • Default Value:
    • Impact:
      Unknown 'null' severity
    • Likelihood:
      Unknown 'null' severity

      Description

      Noncompliant Code Example

      foo: proc options(main);
        declare i fixed decimal init (0);
      
      loopLabel:
        put list (i);
        i = i + 1;
        if i < 10 then go to loopLabel;  /* Noncompliant - usage of the GO TO statement */
      end;
      

      Compliant Solution

      foo: proc options(main);
        declare i fixed decimal init (0);
      
      
        do i = 0 to 9;   /* Compliant */
          put list (i);
        end;
      end;
      

      Exceptions

      Exclusions format parameter can be used to allow specific GO TO targets which match the given regular expression.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              linda.martin Linda Martin (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: