Uploaded image for project: 'Rules Repository'
  1. Rules Repository
  2. RSPEC-3745

"EXEC SQL INCLUDE" statements should be closed with periods

    XMLWordPrintable

    Details

    • Type: Code Smell Detection
    • Status: Active
    • Resolution: Unresolved
    • Labels:
    • Message:
      Add a period ('.') after this "END-EXEC".
    • Highlighting:
      Hide

      END-EXEC

      Show
      END-EXEC
    • Default Severity:
      Minor
    • Impact:
      Low
    • Likelihood:
      Low
    • Targeted languages:
      Cobol
    • Remediation Function:
      Constant/Issue
    • Constant Cost:
      5min
    • Analysis Scope:
      Main Sources, Test Sources

      Description

      COBOL programs that include EXEC SQL INCLUDE statements must be pre-processed with an IBM DB2 precompiler or coprocessor before compilation. The precompiler does not require a period after the closing END-EXEC, but the coprocessor does. For portability, a period should always be used.

      Noncompliant Code Example

      EXEC SQL INCLUDE ... END-EXEC  *> Noncompliant; '.' missing
      

      Compliant Solution

      EXEC SQL INCLUDE ... END-EXEC.
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              nicolas.bontoux Nicolas Bontoux (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: