SonarSource Rules
  • Products

    In-IDE

    Code Quality and Security in your IDE with SonarQube Ide

    IDE extension that lets you fix coding issues before they exist!

    Discover SonarQube for IDE

    SaaS

    Code Quality and Security in the cloud with SonarQube Cloud

    Setup is effortless and analysis is automatic for most languages

    Discover SonarQube Cloud

    Self-Hosted

    Code Quality and Security Self-Hosted with SonarQube Server

    Fast, accurate analysis; enterprise scalability

    Discover SonarQube Server
  • SecretsSecrets
  • ABAPABAP
  • AnsibleAnsible
  • ApexApex
  • AzureResourceManagerAzureResourceManager
  • CC
  • C#C#
  • C++C++
  • CloudFormationCloudFormation
  • COBOLCOBOL
  • CSSCSS
  • DartDart
  • DockerDocker
  • FlexFlex
  • GitHub ActionsGitHub Actions
  • GoGo
  • HTMLHTML
  • JavaJava
  • JavaScriptJavaScript
  • JSONJSON
  • JCLJCL
  • KotlinKotlin
  • KubernetesKubernetes
  • Objective CObjective C
  • PHPPHP
  • PL/IPL/I
  • PL/SQLPL/SQL
  • PythonPython
  • RPGRPG
  • RubyRuby
  • RustRust
  • ScalaScala
  • ShellShell
  • SwiftSwift
  • TerraformTerraform
  • TextText
  • TypeScriptTypeScript
  • T-SQLT-SQL
  • VB.NETVB.NET
  • VB6VB6
  • XMLXML
  • YAMLYAML
JCL

JCL static code analysis

Unique rules to write Clean JCL Code

  • All rules 20
  • Bug7
  • Code Smell13
 
Tags
    Impact
      Clean code attribute
        1. RLSE should be used in SPACE directive

           Bug
        2. Incompatible parameters should not be used

           Bug
        3. Names should not be too long

           Bug
        4. Positional parameters must precede keyword parameters

           Bug
        5. The number of steps in a job should be below 255

           Bug
        6. Missing mandatory statement name

           Bug
        7. All branches in a conditional structure should not have exactly the same implementation

           Bug

        All branches in a conditional structure should not have exactly the same implementation

        intentionality - clear
        reliability
        Bug

          Why is this an issue?

          Having all branches of a IF/THEN/ELSE/ENDIF statement with the same implementation indicates a problem.

          In the following code:

          //IFSTMT1 IF STEP01.RC = 0 THEN
          //STEP1   EXEC PROC=DOTHING
          //        ELSE
          //STEP1   EXEC PROC=DOTHING
          //        ENDIF
          

          Either there is a copy-paste error that needs fixing or an unnecessary IF chain that needs removing.

            Available In:
          • SonarQube IdeCatch issues on the fly,
            in your IDE
          • SonarQube CloudDetect issues in your GitHub, Azure DevOps Services, Bitbucket Cloud, GitLab repositories
          • SonarQube ServerAnalyze code in your
            on-premise CI
            Enterprise
            Edition
            Available Since
            10.6

          © 2008-2025 SonarSource SA. All rights reserved.

          Privacy Policy | Cookie Policy | Terms of Use