1---2name: mainframe-to-cloud3enabled: true4description: |5 Use when performing mainframe to cloud — provides a structured methodology for6 migrating mainframe workloads (COBOL, JCL, CICS, IMS) to cloud-native7 platforms. Covers code analysis, automated conversion, data migration from8 hierarchical and VSAM stores, batch job modernization, and phased cutover with9 parallel validation.10required_connections:11 - prefix: mainframe12 label: "Mainframe System"13 - prefix: cloud-provider14 label: "Target Cloud Provider"15config_fields:16 - key: mainframe_platform17 label: "Mainframe Platform"18 required: true19 placeholder: "e.g., IBM z/OS, AS/400, Unisys"20 - key: primary_languages21 label: "Primary Languages"22 required: true23 placeholder: "e.g., COBOL, PL/I, Natural/ADABAS"24 - key: target_language25 label: "Target Language/Platform"26 required: false27 placeholder: "e.g., Java, .NET, cloud-native containers"28features:29 - CLOUD_MIGRATION30 - MAINFRAME31 - MODERNIZATION32metadata:33 source: https://skillmd.com/skills/cloudthinker-ai/mainframe-to-cloud34---3536# Mainframe to Cloud Migration Plan3738## Phase 1: Mainframe Discovery391. Inventory all mainframe assets40 - [ ] Programs (COBOL, PL/I, Assembler, Natural)41 - [ ] JCL jobs and batch schedules42 - [ ] CICS/IMS online transactions43 - [ ] Databases (DB2, IMS DB, VSAM, ADABAS)44 - [ ] Copybooks and data structures45 - [ ] Inter-system interfaces (MQ, FTP, CICS MRO)462. Analyze code complexity and dead code473. Map business processes to technical components484. Document batch job dependencies and scheduling4950### Workload Classification5152| Component | Type | Lines of Code | Complexity | Business Criticality | Migration Approach |53|-----------|------|---------------|------------|---------------------|-------------------|54| | Batch/Online/DB | | Low/Med/High | Critical/Important/Low | Rehost/Refactor/Replace |5556## Phase 2: Migration Strategy Selection5758### Decision Matrix5960| Approach | Risk | Cost | Timeline | Modernization Level | Best For |61|----------|------|------|----------|--------------------| ---------|62| Rehost (emulation) | Low | Medium | Short | Minimal | Quick lift |63| Automated refactor | Medium | Medium | Medium | Moderate | COBOL to Java |64| Manual rewrite | High | High | Long | Maximum | Complex logic |65| Replace with COTS/SaaS | Medium | Variable | Medium | High | Standard functions |66671. Select approach per workload based on business value and risk682. Identify workloads suitable for automated conversion tools693. Plan for workloads requiring manual rewriting704. Determine which functions to replace with SaaS solutions7172## Phase 3: Foundation & Tooling731. Set up cloud landing zone for mainframe workloads742. Configure mainframe-to-cloud conversion tools753. Establish connectivity between mainframe and cloud764. Set up parallel testing environment775. Create automated regression test suites from production data7879## Phase 4: Code Migration801. Convert or rewrite programs in priority order812. Migrate copybooks to modern data structures823. Transform JCL batch jobs to cloud-native orchestration834. Modernize online transactions to APIs or web services845. Validate each converted component against original behavior8586## Phase 5: Data Migration871. Design target data models (relational, NoSQL)882. Build ETL pipelines for data transformation893. Migrate DB2/IMS/VSAM data to cloud databases904. Handle EBCDIC to ASCII/Unicode conversion915. Validate data integrity with row counts and checksums9293## Phase 6: Parallel Run & Cutover941. Run mainframe and cloud systems in parallel952. Compare outputs of batch jobs between environments963. Validate online transaction responses match974. Execute cutover during planned maintenance window985. Keep mainframe available for rollback period99100## Counter-Rationalizations101102| Shortcut | Counter | Why |103|----------|---------|-----|104| "We can skip some steps for this case" | Adapt the workflow steps, don't skip them | Skipped steps are where incidents and oversights originate |105| "The user seems to already know what to do" | Complete all workflow phases with the user | The workflow catches blind spots that experience alone misses |106| "This is a minor case, full process is overkill" | Scale the process down, don't turn it off | Minor cases become major when unstructured; the process scales, not disappears |107| "I'll fill in the details later" | Complete each section before moving on | Deferred details are forgotten; real-time capture is more accurate |108| "The template output isn't necessary" | Always produce the structured output format | Structured output enables comparison, audit trails, and handoff to other teams |109110## Output Format111- **Asset Inventory**: Complete mainframe program and data catalog112- **Migration Strategy Document**: Approach per workload with justification113- **Conversion Report**: Automated and manual conversion results114- **Parallel Run Results**: Comparison reports between mainframe and cloud115- **Cutover Runbook**: Step-by-step production migration procedures116117## Action Items118- [ ] Complete mainframe asset discovery and classification119- [ ] Select migration approach per workload120- [ ] Execute proof of concept with representative workloads121- [ ] Build and validate automated test suites122- [ ] Migrate workloads in priority waves123- [ ] Run parallel validation for each wave124- [ ] Decommission mainframe after full stabilization