# aws-samples/aws-mainframe-modernization-carddemo architecture

> Architecture diagram of the GitHub repository aws-samples/aws-mainframe-modernization-carddemo, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/aws-samples/aws-mainframe-modernization-carddemo
- Repository: https://github.com/aws-samples/aws-mainframe-modernization-carddemo

## Overview

CardDemo is a mainframe credit-card management application. Its principal documented flow is user-facing CICS processing over shared application data, complemented by batch jobs that initialize and maintain that data. Optional branches add authorization processing across MQ, IMS, and Db2; Db2-backed transaction-type maintenance; and MQ account inquiries/extractions. The README establishes these capabilities but no source excerpts were available, so the graph uses directory-level paths and documents relationships only where the README states them; unverified runtime links are dashed.

Main entry points: [`app/app-authorization-ims-db2-mq/cbl`](https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/app-authorization-ims-db2-mq/cbl) (Authorization processing), [`app/jcl`](https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/jcl) (Batch jobs), [`app/cbl`](https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/cbl) (CICS transactions), [`app/app-vsam-mq/cbl`](https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/app-vsam-mq/cbl) (Account MQ services)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_online["Online application"]
  node_cics["CICS transactions"]
  node_screens["CICS screens"]
  node_account["Account services"]
  node_card["Card services"]
  node_transaction["Transaction services"]
end

subgraph group_data["Application data"]
  node_vsam[("VSAM files")]
  node_security[("User security")]
end

subgraph group_batch["Batch processing"]
  node_batchjobs["Batch jobs"]
  node_batchprograms["Batch programs"]
end

subgraph group_extensions["Optional extensions"]
  node_auth["Authorization processing"]
  node_mqauth["Authorization MQ"]
  node_ims[("IMS customer data")]
  node_authdb2[("Authorization Db2")]
  node_typeadmin["Transaction type management"]
  node_typedb2[("Transaction type Db2")]
  node_typebatch["Type maintenance batch"]
  node_accountmq["Account MQ services"]
  node_mq["MQ channels"]
end

node_user(("CardDemo user"))

node_user -->|"uses"| node_cics
node_cics -.->|"presents"| node_screens
node_cics -.->|"accesses"| node_vsam
node_batchjobs -->|"loads"| node_vsam
node_batchjobs -.->|"runs"| node_batchprograms
node_batchjobs -->|"sets up"| node_security
node_mqauth -->|"delivers requests"| node_auth
node_auth -->|"retrieves customer data"| node_ims
node_auth -->|"logs transactions"| node_authdb2
node_auth -.->|"summarizes pending"| node_mqauth
node_typeadmin -->|"maintains types"| node_typedb2
node_typebatch -->|"manages types"| node_typedb2
node_accountmq -->|"extracts accounts"| node_mq
node_accountmq -.->|"reads accounts"| node_vsam
node_mq -->|"supports inquiries"| node_accountmq

click node_cics "https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/cbl"
click node_screens "https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/bms"
click node_account "https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/cbl"
click node_card "https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/cbl"
click node_transaction "https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/cbl"
click node_vsam "https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/data"
click node_security "https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/data/EBCDIC"
click node_batchjobs "https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/jcl"
click node_batchprograms "https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/cbl"
click node_auth "https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/app-authorization-ims-db2-mq/cbl"
click node_mqauth "https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/app-authorization-ims-db2-mq"
click node_ims "https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/app-authorization-ims-db2-mq/ims"
click node_authdb2 "https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/app-authorization-ims-db2-mq/ddl"
click node_typeadmin "https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/app-transaction-type-db2/cbl"
click node_typedb2 "https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/app-transaction-type-db2/ddl"
click node_typebatch "https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/app-transaction-type-db2/jcl"
click node_accountmq "https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/app-vsam-mq/cbl"
click node_mq "https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/app-vsam-mq"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cics,node_screens,node_account,node_card,node_transaction,node_user toneBlue
class node_vsam,node_security toneAmber
class node_batchjobs,node_batchprograms toneMint
class node_auth,node_mqauth,node_ims,node_authdb2,node_typeadmin,node_typedb2,node_typebatch,node_accountmq,node_mq toneRose
```

## Components

### Online application

- [CICS transactions](https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/cbl): `app/cbl`
- [CICS screens](https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/bms): `app/bms`
- [Account services](https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/cbl): `app/cbl`
- [Card services](https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/cbl): `app/cbl`
- [Transaction services](https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/cbl): `app/cbl`

### Application data

- [VSAM files](https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/data): `app/data`
- [User security](https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/data/EBCDIC): `app/data/EBCDIC`

### Batch processing

- [Batch jobs](https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/jcl): `app/jcl`
- [Batch programs](https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/cbl): `app/cbl`

### Optional extensions

- [Authorization processing](https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/app-authorization-ims-db2-mq/cbl): `app/app-authorization-ims-db2-mq/cbl`
- [Authorization MQ](https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/app-authorization-ims-db2-mq): `app/app-authorization-ims-db2-mq`
- [IMS customer data](https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/app-authorization-ims-db2-mq/ims): `app/app-authorization-ims-db2-mq/ims`
- [Authorization Db2](https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/app-authorization-ims-db2-mq/ddl): `app/app-authorization-ims-db2-mq/ddl`
- [Transaction type management](https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/app-transaction-type-db2/cbl): `app/app-transaction-type-db2/cbl`
- [Transaction type Db2](https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/app-transaction-type-db2/ddl): `app/app-transaction-type-db2/ddl`
- [Type maintenance batch](https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/app-transaction-type-db2/jcl): `app/app-transaction-type-db2/jcl`
- [Account MQ services](https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/app-vsam-mq/cbl): `app/app-vsam-mq/cbl`
- [MQ channels](https://github.com/aws-samples/aws-mainframe-modernization-carddemo/tree/main/app/app-vsam-mq): `app/app-vsam-mq`

### Other components

- **CardDemo user**

## Connections

- CardDemo user → CICS transactions: uses (evidence: `README.md`)
- CICS transactions → CICS screens: presents
- CICS transactions → VSAM files: accesses
- Batch jobs → VSAM files: loads (evidence: `README.md`)
- Batch jobs → Batch programs: runs
- Batch jobs → User security: sets up (evidence: `README.md`)
- Authorization MQ → Authorization processing: delivers requests (evidence: `README.md`)
- Authorization processing → IMS customer data: retrieves customer data (evidence: `README.md`)
- Authorization processing → Authorization Db2: logs transactions (evidence: `README.md`)
- Authorization processing → Authorization MQ: summarizes pending
- Transaction type management → Transaction type Db2: maintains types (evidence: `README.md`)
- Type maintenance batch → Transaction type Db2: manages types (evidence: `README.md`)
- Account MQ services → MQ channels: extracts accounts (evidence: `README.md`)
- Account MQ services → VSAM files: reads accounts
- MQ channels → Account MQ services: supports inquiries (evidence: `README.md`)
