Skip to content

AWS Transform for mainframe: Understanding Your S3 Output Structure

10 minute read
Content level: Expert
0

AWS Transform for mainframe helps teams assess, decompose, and rewrite mainframe applications as cloud-native services on AWS. Each job execution generates a structured set of artifacts in Amazon S3 that are essential for downstream modernization activities — including forward engineering, data migration, testing, and validation. As teams scale their modernization efforts across multiple applications and job runs, navigating these outputs efficiently becomes critical.

This guide is for architects, developers, and DevOps engineers using AWS Transform for mainframe job outputs in Amazon S3.

Each AWS Transform for mainframe job execution generates a structured set of artifacts in your Amazon S3 bucket. This document is a reference for the S3 bucket structure. All outputs are organized into designated folders within the configured S3 bucket: s3://<bucket-name>/transform-output/<jobId>/. Your jobid can be found on the AWS Transform Dashboard.

Transform produces two categories of output based on your modernization objective: (Assess and Reimagine) that build on each other to produce requirements for forward engineering, and standalone capabilities that can run independently.

Common Use Cases

I want to...Where to look
Assess modernization scope and identify missing artifactsresults/analyze_code_results.zip → missing_<ts>.csv
Understand the full call chain from JCL/CICS transactionresults/analyze_code_results.zip → dependencies_<ts>.json
Find which programs read or write a specific dataset1/data_analysis/data_analysis_result_<ts>.zip → data_lineage_output/program_to_dsn.csv
Look up COBOL field layouts or Db2 table schemas1/data_analysis/data_analysis_result_<ts>.zip → data_dictionary_output/ (cbl, cpy, ddl, dbd, psb, ezt CSVs)
Identify unused or rarely executed programssmf_analysis/batch-stats-<timestamp>.csv
See how my application is organized into business domains and business functionsbusiness-functions/delivery.zip → index.html
Verify how many extracted business rules were captured in the requirementsspec_gen/spec_gen_specs_<ts>.zip → spec/coverage-summary/coverage-report.html
Get the extracted requirements for a specific business function to provide to a coding agentspec_gen/spec_gen_specs_<ts>.zip → spec/<BusinessDomain>/<BusinessFunctionName>/requirements.md
Trace a requirement back to the original source codespec_gen/spec_gen_specs_<ts>.zip → spec/<BusinessDomain>/<BusinessFunctionName>/traceability.yaml
Get technical documentation for a programdocumentation/app/cbl/<PROGRAM>-cbl.pdf or .json

Folder Structure at a Glance

The tree shows the job root and the main outputs. <ts> is a run timestamp and <input-folder> is the top-level folder of your uploaded source archive.

s3://<bucket-name>/transform-output/<jobId>/
├── <input>.zip                    copy of the uploaded source
├── source_code/<input-folder>/    extracted source
├── logs/                          per-analysis logs
├── results/
│   ├── analyze_code_results.zip   code analysis results
│   ├── classification_<ts>.json, codebase_issues_<ts>.json
│   ├── generic-analysis-1_<ts>.json, generic-analysis-2_<ts>.json
│   ├── scheduler_knowledge/<input-folder>/scheduler/
│   └── slicing_outputs.zip        intermediate
├── 1/
│   ├── data_analysis/
│   │   └── data_analysis_result_<ts>.zip    data dictionary and lineage
│   ├── artifact-slicing/          data path discovery (intermediate)
│   └── business-documentation/
│       ├── bre_output_business_process.zip       business rules
│       ├── bre_output_business_process_<ts>.zip  identical copy
│       └── bre_audit.zip, bre_transform_debug_<ts>.zip,
│           bre_obfuscated_log_<ts>.log, hash_mapping.csv,
│           anonymized_codebase_<ts>.zip   troubleshooting
├── business-functions/
│   ├── delivery.zip               business functions viewer and data
│   └── Internal-DO-NOT-TOUCH/     internal state
└── spec_gen/
    └── spec_gen_specs_<ts>.zip    requirements and coverage report

Assess and Reimagine Pathway

The Assess and Reimagine pathway runs assessment through reimagine within a single job. It analyzes the codebase, traces data paths deterministically, groups programs into business functions, extracts business rules, and generates requirements with full traceability back to source code.

Code Analysis (results/)

Contains code analysis outputs that assess modernization scope and identify high-complexity components.

Key Outputs: results/analyze_code_results.zipDescription
classification_<ts>.jsonFile type classifications — identifies each source file as COBOL program, copybook, JCL, BMS map, etc.
assets_<ts>.csvFull inventory of programs, copybooks, and JCL with metadata
dependencies_<ts>.jsonCall chains and program relationships — who calls whom, COPY statements, file I/O
missing_<ts>.csvReferenced files not found in the input — programs, copybooks, or datasets that are called but not uploaded
code_issues_<ts>.csvIssues found during analysis (for example missing control cards), with severity, impact, recommended action and the affected file
duplicatedIds_<ts>.jsonDuplicate identifiers found across the source files; an empty list means none were found
scheduler/<input-folder>/Scheduler/<file>.jsonParsed scheduler definitions (for example CA-7 or Control-M): scheduled tasks, folders and conditions

Data Analysis (1/data_analysis/)

Maps data flows and structures across the application. Outputs include a data dictionary (field definitions and schemas) and data lineage (program-to-dataset and JCL-to-dataset relationships). Data lineage files are provided in both CSV (for spreadsheet analysis) and JSON (for programmatic consumption). Both are delivered in 1/data_analysis/data_analysis_result_<ts>.zip.

Key Outputs: 1/data_analysis/data_analysis_result_<ts>.zip → data_dictionary_output/Description
data_dictionary_cbl.csvCOBOL program field definitions with business descriptions
data_dictionary_cpy.csvCopybook field definitions
data_dictionary_ddl.csvDb2 table schemas with primary/foreign keys
data_dictionary_dbd.csvIMS database (DBD) segments: parent segment, access method, segment length and sequence field
data_dictionary_psb.csvIMS PSB definitions: which programs access which databases and segments, and the access type
data_dictionary_ims_entry_points.csvIMS entry points with their program, PSB and database
Key Outputs: 1/data_analysis/data_analysis_result_<ts>.zip → data_lineage_output/Description
program_to_dsn.csv / .jsonProgram-to-dataset mappings (CRUD operations)
jcl_to_dsn.csv / .jsonJCL-to-dataset dependencies
dsn_to_file.csv / .jsonDataset-to-file mappings — which physical files back each dataset

Discover business functions (business-functions/)

Organizes the application into business functions, using the data paths traced in the previous step. A data path is one traced flow through the code: it starts at an entry point (a CICS transaction, batch job or program call), runs through the programs that entry point executes, and ends at the data it reads or writes. Data paths that implement the same business capability are combined into one business function, and an LLM names and describes each function. Related business functions are then grouped into business domains, for example transaction processing or account data migration. You can change the domain list by editing business_domains.json and uploading it in chat. The results are delivered in delivery.zip. It contains an interactive viewer, a CSV with one row per data path, and one JSON file per business function. Requirements Generation (spec_gen/) uses the same domains and functions to organize its output folders.

Key Outputs: business-functions/delivery.zipDescription
index.htmlInteractive HTML viewer showing all business domains and business functions discovered, their descriptions, programs, and data paths between functions. Open it in a browser, or run python app/serve.py from the extracted folder if the browser blocks local scripts
business_function.csvOne row per data path, with the business function and business domain it belongs to. Columns: bf_name, bf_id, bf_description, bd_id, bd_name, bd_description, path_name, path_id, dp_description, category, entry_point, terminal_target, program_count, loc, missing_file_count
business_domains.jsonBusiness domains: the name and description of each domain. Can be edited and re-uploaded in chat to replace the domain list
reports/business_domains/<domain>/<function>.jsonOne file per business function, grouped by domain: data paths (trigger, terminal data store, programs, data read) and readiness (missing programs, entry points and files)

Requirements Generation (spec_gen/)

Generates natural-language functional requirements for each business function selected in the job, plus a traceability mapping that links every requirement back to the business rules and source lines it came from. This follows the same structure as Discover Business Functions: one folder per business domain, each containing one folder per business function. Start your review with the coverage-report.html. This interactive report opens in a browser and shows how completely the requirements cover the source code. It counts both business rules and lines of code and gives each one a single disposition.

Key Outputs: spec_gen/spec_gen_specs_<ts>.zip → spec/Description
coverage-summary/coverage-report.htmlHTML coverage report: aggregate and per-function detail on how extracted business rules were dispositioned in the requirements
<BusinessDomain>/One folder per business domain (plus No domain/), each holding one folder per business function
data-model.mdApplication-wide data model listing all data stores (VSAM KSDS, QSAM, GDG, datasets), their types, and which business functions access them

Each business function discovered gets its own subfolder inside its business domain folder.

Key Outputs: spec_gen/spec_gen_specs_<ts>.zip → spec/<BusinessDomain>/<BusinessFunctionName>/Description
requirements.mdFull functional requirements: actors, preconditions, user workflows, numbered REQ-* identifiers for every rule, validation constraints, error handling, and open questions
traceability.yamlMaps extracted business rules to requirements. Each rule has a rule_id, a disposition (captured, not_applicable, unreachable, delegated, not_accounted_for), and links to req_ids. Includes summary statistics and reconciliation counts

Standalone Capabilities — Detailed Reference

Telemetry Analysis (smf_analysis/)

Combined runtime analysis in JSON format. Includes a transformationScope cross-reference per JCL job that links SMF runtime data to the uploaded codebase inventory: identifies jobs that are active but not in scope (missing code), and jobs in scope but not active (potential dead code).

Key Outputs: smf_analysis/Description
batch-stats-<timestamp>.csvBatch job execution statistics — job names, step counts, CPU time, elapsed time
dataset-stats-<timestamp>.csvDataset access statistics — read/write counts per dataset
dataset-write-stats-<timestamp>.csvDataset write activity detail
vsam-stats-<timestamp>.csvVSAM file access statistics
db2_102_plan_stats-<timestamp>.csvDb2 plan execution statistics
smf-analysis.jsonCombined analysis results in JSON format

Business Logic Extraction (1/business-documentation/ — standalone)

When run as a standalone capability (outside the Reimagine pathway), Business Rules Extraction (BRE) produces an interactive HTML report documenting the business logic embedded in each program. The report captures decision logic, process flows, data transformations, and integration points at both the individual program and application level.

Key Outputs: 1/business-documentation/Description
index.htmlNavigable report entry point — links to all program-level and application-level reports
app/cbl/<PROGRAM>-cbl.html / .jsonPer-COBOL-program business rules — HTML for human review, JSON for programmatic consumption
ApplicationLevelAnalysis/application.html / .jsonApplication-wide summary — domains, relationships, data flows (HTML and JSON)
ApplicationLevelAnalysis/<Domain>/Per-domain analysis with entry-point subfolders containing domain-specific HTML/JSON reports
bre_generated_domains/enhanced_decomposition_input.jsonSuggested domain groupings based on program relationships and data flows

Documentation (documentation/)

Transform generates a structured technical document for each COBOL program, JCL job, and assembler file in the application, covering purpose, logic flow, called programs, file I/O, and data structures. Two detail levels are available: Summary (one-line overview per file) and Detailed Functional Specification (logic, flow, dependencies, I/O processing, transaction details).

Key Outputs: documentation/Description
CoverPage.pdfSummary cover page for the documentation set
app/cbl/<PROGRAM>-cbl.pdf / .jsonPer-COBOL-program technical documentation — PDF for reading, JSON for automated processing
glossary.csvCustom terminology definitions (included when user-provided custom terminology is supplied)

Note: Additional intermediate folders may be generated during processing that may be required during troubleshooting.

Additional Resources

For technical support, contact your AWS account team or open a support case through the AWS Management Console.