diff --git a/rules/S6937/jcl/metadata.json b/rules/S6937/jcl/metadata.json new file mode 100644 index 00000000000..84dd004352f --- /dev/null +++ b/rules/S6937/jcl/metadata.json @@ -0,0 +1,23 @@ +{ + "title": "Missing mandatory statement name", + "type": "BUG", + "status": "ready", + "remediation": { + "func": "Constant\/Issue", + "constantCost": "2min" + }, + "tags": [ + ], + "defaultSeverity": "Major", + "ruleSpecification": "RSPEC-6937", + "sqKey": "S6937", + "scope": "All", + "defaultQualityProfiles": ["Sonar way"], + "quickfix": "unknown", + "code": { + "impacts": { + "RELIABILITY": "HIGH" + }, + "attribute": "CONVENTIONAL" + } +} diff --git a/rules/S6937/jcl/rule.adoc b/rules/S6937/jcl/rule.adoc new file mode 100644 index 00000000000..cca376f72e6 --- /dev/null +++ b/rules/S6937/jcl/rule.adoc @@ -0,0 +1,35 @@ +In-stream procedures should always have a name. + +== Why is this an issue? + +In JCL, it is expected for a PROC statement inside of a job stream to have a name. + +== How to fix it + +=== Code examples + +==== Noncompliant code example + +[source,jcl,diff-id=1,diff-type=noncompliant] +---- +//MYJOB JOB DXXX +// PROC +//STEP1 EXEC PGM=MYPGM +// PEND +---- + +==== Compliant solution + +[source,jcl,diff-id=1,diff-type=compliant] +---- +//MYJOB JOB DXXX +//TRPOC PROC +//STEP1 EXEC PGM=MYPGM +// PEND +---- + +== Resources + +=== Documentation + +* https://www.ibm.com/docs/en/zos/3.1.0?topic=d-name-field-8[IBM reference - PROC statement - Name field] diff --git a/rules/S6937/metadata.json b/rules/S6937/metadata.json new file mode 100644 index 00000000000..2c63c085104 --- /dev/null +++ b/rules/S6937/metadata.json @@ -0,0 +1,2 @@ +{ +}