COMPILING UNDER MVS - IBM Mainframe

The JCL for compilation includes:

  • A job description
  • A statement to execute the compiler
  • Definitions for the data sets needed

The simplest way to compile your program under MVS is to code JCL that uses the cataloged procedure shown below:

MVS is to code JCL that uses the cataloged procedure

COB2UC is the name of a cataloged procedure that contains statements for compiling a program, including statements for defining the required data sets. The cataloged procedures may not give you the MVS programming flexibility you need for more complex programs. You may need to specify your own, job control statements. The following listing shows the general format of JCL used to compile a program.

general format of JCL used to compile a program.

general format of JCL used to compile a program.

The various JCL keywords are explained below:

  • JOB1 - The name of the job. The JOB statement indicates the beginning of a job.
  • STEP1 - The name of the single job step in the job. The EXEC statement specifies that the VS COBOL II compiler (IGYCRCTL) is to be invoked. The statement also specifies that the generated object code be placed on disk or tape to be used later as input for the linkage editor.
  • STEPLIB - Definition of the data set where the VS COBOL II compiler resides.
  • SYSUT1, SYSUT2, SYSUT3, SYSUT4, SYSUT5, SYSUT6, SYSUT7 - Definitions of utility data sets used by the compiler to process the source program. All SYSUT files must be on direct-access storage devices.
  • SYSPRINT - Definition of the data set that receives output from, for example, the LIST and MAP options. SYSOUT=A is the standard designation for data sets whose destination is the system output device.
  • SYSLIN - Definition of the data set that receives output from the OBJECT option (the object module).
  • SYSIN - Definition of the data set to be used as input to the job step (source code). The asterisk indicates that the input data set follows in the input stream.
  • /* - The delimiter statement separates data from subsequent control statements in the input stream.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

IBM Mainframe Topics