Application programming on z/OS
Previous topic | Next topic | Contents | Glossary | Contact z/OS | PDF


Compiling with cataloged procedures

Application programming on z/OS

The simplest way to compile your program under z/OS® is by using a batch job with a cataloged procedure. A cataloged procedure is a set of job control statements placed in a partitioned data set (PDS) called the procedure library (PROCLIB).

z/OS comes with a procedure library called SYS1.PROCLIB. A simple way to look at the use of cataloged procedures is to think of them as copybooks. Instead of source statements, however, cataloged procedures contain JCL statements. You do not need to code a JCL statement to tell the system where to find them because they are located in a system library which automatically gets searched when you execute JCL that references a procedure.

You need to include the following information in the JCL for compilation:
  • Job description
  • Execution statement to invoke the compiler
  • Definitions for the data sets needed but not supplied by the procedure.




Copyright IBM Corporation 1990, 2010