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

Either "RESP" or "NOHANDLE" should be used with CICS commands

    XMLWordPrintable

    Details

    • Type: Code Smell Detection
    • Status: Active
    • Resolution: Unresolved
    • Labels:
    • Default Severity:
      Critical
    • Impact:
      High
    • Likelihood:
      Low
    • Legacy Key:
      CICS.StatementWithoutRespOptionCheck
    • Targeted languages:
      C, C++
    • Covered Languages:
      Cobol
    • Remediation Function:
      Constant/Issue
    • Constant Cost:
      30min

      Description

      When calling a CICS command other than RETURN, ADDRESS, or ABEND, either RESP should be used to specify where the response code should be written, or NOHANDLE should be used to specify that abnormal conditions should be ignored.

      Noncompliant Code Example

                 EXEC CICS DELETEQ TS        *> Noncompliant
                   QNAME(WS-TS5FTARF-NAME)
                 END-EXEC.
      

      Compliant Solution

                 EXEC CICS DELETEQ TS        
                   QNAME(WS-TS5FTARF-NAME)
                   RESP(WS-STATUS)        
                 END-EXEC.  
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              freddy.mallet Freddy Mallet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: