Modify rule S1172: add language JCL (#3732)

* Add jcl to rule S1172

* Add rule description

---------

Co-authored-by: sallaigy <sallaigy@users.noreply.github.com>
Co-authored-by: Gyula Sallai <gyula.sallai@sonarsource.com>
This commit is contained in:
github-actions[bot] 2024-03-19 14:15:18 +01:00 committed by GitHub
parent b2d7a104ab
commit 02e886d7dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,2 @@
{
}

46
rules/S1172/jcl/rule.adoc Normal file
View File

@ -0,0 +1,46 @@
== Why is this an issue?
include::../description.adoc[]
== How to fix it
include::../how-to-fix-it.adoc[]
=== Code examples
[source,jcl,diff-id=1,diff-type=noncompliant]
----
//MYPROC PROC NAME1=SYS1,NAME2=SYS2,NAME3=SYS3 <--- Noncompliant
//STEP1 EXEC PGM=DOTHING
//THEFILE DD DSN=&N1..INFILE,DISP=SHR
// DD DSN=&N2..INFILE,DISP=SHR
// PEND
----
==== Compliant solution
[source,jcl,diff-id=1,diff-type=compliant]
----
//MYPROC PROC NAME1=SYS1,NAME2=SYS2
//STEP1 EXEC PGM=DOTHING
//THEFILE DD DSN=&N1..INFILE,DISP=SHR
// DD DSN=&N2..INFILE,DISP=SHR
// PEND
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]