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 HFS files, if any).
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 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
related tasks
Using a cataloged procedure
Writing JCL to compile programs
Specifying compiler options under z/OS
Specifying compiler options in a batch compilation
Compiling programs to create DLLs
related references
Data sets used by the compiler under z/OS