-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create rule S6937: Missing mandatory statement name (#3722)
- Loading branch information
1 parent
c3b0ab2
commit aff3433
Showing
3 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
} |