From 02e886d7ddf93fa2f7f8865ac4cbdec4564af507 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 19 Mar 2024 14:15:18 +0100 Subject: [PATCH] Modify rule S1172: add language JCL (#3732) * Add jcl to rule S1172 * Add rule description --------- Co-authored-by: sallaigy Co-authored-by: Gyula Sallai --- rules/S1172/jcl/metadata.json | 2 ++ rules/S1172/jcl/rule.adoc | 46 +++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 rules/S1172/jcl/metadata.json create mode 100644 rules/S1172/jcl/rule.adoc diff --git a/rules/S1172/jcl/metadata.json b/rules/S1172/jcl/metadata.json new file mode 100644 index 0000000000..7a73a41bfd --- /dev/null +++ b/rules/S1172/jcl/metadata.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/rules/S1172/jcl/rule.adoc b/rules/S1172/jcl/rule.adoc new file mode 100644 index 0000000000..562753a04f --- /dev/null +++ b/rules/S1172/jcl/rule.adoc @@ -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[] +