🖥 JCL
JCL Utilities - IEBGENER
Beginner 🕑 12 min read
👁 0 views
12
Code Example
## JCL Utilities - IEBGENER
IEBGENER copies sequential datasets and can perform simple transformations.
### Standard DD Names
| DD Name | Purpose |
|---------|---------|
| SYSUT1 | Input dataset |
| SYSUT2 | Output dataset |
| SYSIN | Control statements (or DUMMY) |
| SYSPRINT | Messages |
### Basic Copy
No control statements needed for simple copy:
\`\`\`jcl
//SYSIN DD DUMMY
\`\`\`
### Control Statement - GENERATE
\`\`\`jcl
GENERATE MAXFLDS=n,MAXLITS=n,MAXGPS=n
\`\`\`
### Control Statement - RECORD
\`\`\`jcl
RECORD FIELD=(length,input-loc,conv,output-loc)
\`\`\`
### Field Conversion Types
- None: Straight copy
- PZ: Packed to zoned
- ZP: Zoned to packed
### Common Uses
1. Copy sequential files
2. Create backup copies
3. Simple reformatting
4. Print file contents
5. Load data to PDS member
### Return Codes
- 0: Success
- 4: Warning
- 8: Error
- 12: Severe
- 16: Terminating