STEPLIB DD statement

Purpose: Use the STEPLIB DD statement to:
  • Create a private library.
  • Identify a private library that the system is to search for the program named in the EXEC statement PGM parameter. If the system does not find the program in the private library, only then does the system search the system libraries.

The private library is a partitioned data set (PDS) or partitioned data set extended (PDSE) on a direct access device. Each member is an executable, user-written program.

Subsequent job steps in the same job may refer to or receive a private library defined on a STEPLIB DD statement. Also, you can place a STEPLIB DD statement in an in-stream or cataloged procedure.