Compiling with JCL

Include the following information in the JCL for compilation: job description, statement to invoke the compiler, and definitions of the needed data sets (including the directory paths of z/OS® UNIX files, if any).

About this task

The simplest way to compile your program under z/OS is to code JCL that uses a cataloged procedure. A cataloged procedure is a set of job control statements in a partitioned data set called the procedure library (SYS1.PROCLIB).

The following JCL shows the general format for using a cataloged procedure.


//jobname  JOB  parameters
//stepname EXEC [PROC=]procname[,{PARM=|PARM.stepname=}'options']
//SYSIN    DD   data-set parameters
. . .           (source program to be compiled)
/*
//

Additional considerations apply when you use cataloged procedures to compile object-oriented programs.

Example: sample JCL for a procedural DLL application