🖥 JCL
JCL JCLLIB Statement
Intermediate 🕑 8 min read
👁 0 views
8
Code Example
## JCL JCLLIB Statement
The JCLLIB statement specifies libraries to search for procedures and include members.
### Syntax
\`\`\`jcl
//name JCLLIB ORDER=(library1,library2,...)
\`\`\`
### Placement Rules
- Must appear after JOB statement
- Must appear before first EXEC statement
- Only one JCLLIB per job
### Search Order
1. Libraries in JCLLIB ORDER
2. System PROCLIB (installation defined)
### Maximum Libraries
Up to 15 libraries can be specified.
### Use Cases
1. Custom procedure libraries
2. Project-specific JCL includes
3. Test vs production procedures
4. Site-specific overrides
### INCLUDE Statement
JCLLIB also affects INCLUDE searches:
\`\`\`jcl
//JCLLIB ORDER=(MY.JCL.LIB)
// INCLUDE MEMBER=COMMONDD
\`\`\`
### Best Practices
- Use consistent library naming
- Test libraries before production
- Document library purposes
- Keep libraries organized