🖥 JCL
JCL INCLUDE Statement
Intermediate 🕑 8 min read
👁 0 views
8
Code Example
## JCL INCLUDE Statement
The INCLUDE statement inserts JCL from a library member into the job stream at compile time.
### Syntax
\`\`\`jcl
// INCLUDE MEMBER=membername
\`\`\`
### Key Points
- Member must be in JCLLIB or PROCLIB
- Processed during JCL conversion
- Can contain any valid JCL except JOB
- Can be nested (INCLUDE within INCLUDE)
### Common Uses
1. Standard DD statements
2. Common step sequences
3. Site standards
4. Shared symbolic definitions
### Differences from PROC
| Feature | INCLUDE | PROC |
|---------|---------|------|
| Symbolic parms | Limited | Full support |
| Overrides | Not supported | Supported |
| PEND required | No | Yes |
| Timing | JCL conversion | Execution |
### Restrictions
- Cannot include JOB statement
- Cannot dynamically select member
- Member name is fixed
### Best Practices
- Use for common boilerplate
- Keep includes simple
- Document include contents
- Test after changes