Below is a sample Method for compiling and linking COBOL modules. The script can be broken down into two sections:
Section I: Initialization and Logging
Section II: Constructing the Compiler JCL
More:
Section I: Initialization
Section II: Constructing the JCL