Master Mainframe Technologies - COBOL, JCL, DB2, VSAM, CICS & More
ABEND Codes SQLCODEs File Status Interview Prep Contact
🖥 JCL

JCL SMS-Managed Storage

Advanced 🕑 15 min read 👁 0 views

15

Code Example


## JCL SMS-Managed Storage

Storage Management Subsystem (SMS) automates dataset placement and management.

### SMS Classes
| Class | Description |
|-------|-------------|
| STORCLAS | Storage class |
| MGMTCLAS | Management class |
| DATACLAS | Data class |

### DATACLAS
Defines default DCB attributes:
- Record format
- Record length
- Key length/offset

### STORCLAS
Controls data placement:
- Performance goals
- Availability
- Accessibility

### MGMTCLAS
Defines management policies:
- Migration
- Backup
- Retention

### JCL Parameters
\`\`\`jcl
//DD1 DD DSN=dsname,
//       STORCLAS=classname,
//       MGMTCLAS=classname,
//       DATACLAS=classname
\`\`\`

### LIKE Parameter
Copy attributes from model dataset:
\`\`\`jcl
//DD1 DD DSN=NEW.FILE,LIKE=MODEL.FILE
\`\`\`

### REFDD Parameter
Reference DD for attributes:
\`\`\`jcl
//DD2 DD DSN=SECOND.FILE,REFDD=*.DD1
\`\`\`