rspec/rules/S1595/rule.adoc

26 lines
653 B
Plaintext
Raw Normal View History

== Why is this an issue?
2021-01-27 13:42:22 +01:00
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.
2020-06-30 12:47:33 +02:00
=== Noncompliant code example
2020-06-30 12:47:33 +02:00
2022-02-04 17:28:24 +01:00
[source,text]
2020-06-30 12:47:33 +02:00
----
EXEC CICS DELETEQ TS *> Noncompliant
QNAME(WS-TS5FTARF-NAME)
END-EXEC.
----
=== Compliant solution
2020-06-30 12:47:33 +02:00
2022-02-04 17:28:24 +01:00
[source,text]
2020-06-30 12:47:33 +02:00
----
EXEC CICS DELETEQ TS
QNAME(WS-TS5FTARF-NAME)
RESP(WS-STATUS)
END-EXEC.
----