Comprehensive analysis of the AWS CardDemo mainframe credit card management system — 44 COBOL programs, 30K+ lines of code, spanning CICS online transactions and JCL batch processing.
A full credit card lifecycle simulator — account management, card operations, transaction processing, bill payments, reporting, and user administration.
Multi-tier mainframe system with CICS online processing, JCL batch subsystem, and VSAM data store with optional DB2/IMS/MQ integrations.
Size distribution across 44 COBOL programs — from the 41-line COBSWAIT utility to the 4,236-line COACTUPC account update behemoth.
| Program | LOC | Category | Function | Size |
|---|---|---|---|---|
| COACTUPC | 4,236 | Online | Account Update | |
ModuleBase ApplicationDescriptionLargest program — extensive field validation for account updates using CSUTLDWY/CSUTLDPY date utilities. Validates account status, credit limits, dates, ZIP codes. Uses 18+ COPY CSSETATY REPLACING instances.DependenciesReads/updates ACCTDAT, reads CUSTDAT and CCXREF. Uses CSLKPCDY lookup tables (1,318 lines). | ||||
| COTRTLIC | 2,098 | Online (DB2) | Tran Type List | |
ModuleTransaction Type DB2 (Optional)DescriptionDB2 cursor-based paginated listing of TRNTYPE table. Combines list display, pagination, and delete operations in a single program.DependenciesDB2 TRNTYPE table. Uses DCLTRTYP DCLGEN copybook. | ||||
| COTRTUPC | 1,702 | Online (DB2) | Tran Type Edit | |
ModuleTransaction Type DB2 (Optional)DescriptionINSERT new or UPDATE existing transaction types in DB2. Complex add/edit form with extensive validation and multiple COPY REPLACING instances.DependenciesDB2 TRNTYPE and TRNTYCAT tables. | ||||
| COCRDUPC | 1,560 | Online | Card Update | |
ModuleBase ApplicationDescriptionValidates card number, embossed name, expiration date, active status. 148 IF statements with 21 GO TOs create deeply nested validation logic.DependenciesUpdates CARDDAT. Date validation via CSUTLDWY/CSUTLDPY copybooks. | ||||
| COCRDLIC | 1,459 | Online | Card List | |
ModuleBase ApplicationDescriptionPaginated browse of CARDDAT via STARTBR/READNEXT. Supports forward/backward paging (PF7/PF8). Selection transfers to detail view (COCRDSLC) or update (COCRDUPC) via XCTL.DependenciesReads CARDDAT. XCTLs to COCRDSLC and COCRDUPC. | ||||
| COPAUS0C | 1,032 | Online (Auth) | Auth Summary | |
ModuleAuthorization IMS-DB2-MQ (Optional)DescriptionDisplays summary of pending authorization requests. Paginated browse with selection to detail view (COPAUS1C).DependenciesIMS DB for authorization data. XCTLs to COPAUS1C. | ||||
| COPAUA0C | 1,026 | Online (Auth) | Auth Processor | |
ModuleAuthorization IMS-DB2-MQ (Optional)DescriptionMQ-triggered program: receives authorization request from queue, validates card via CCXREF, checks IMS pending auth database, logs fraud check to DB2 AUTHFRDS, sends approval/denial via MQ reply queue.DependenciesMQ queues, IMS DB, DB2 AUTHFRDS, VSAM CCXREF/ACCTDAT/CARDDAT/CUSTDAT. | ||||
| COACTVWC | 941 | Online | Account View | |
ModuleBase ApplicationDescriptionRead-only account display. Reads ACCTDAT by account ID, CARDDAT via AIX path for associated cards, CUSTDAT via CCXREF cross-reference.DependenciesReads ACCTDAT, CARDDAT (AIX), CUSTDAT, CCXREF. No update operations. | ||||
| CBSTM03A | 924 | Batch | Statement Gen | |
ModuleBase ApplicationDescriptionStatement generation orchestrator. Reads XREFDAT, CUSTDAT, ACCTDAT. Calls CBSTM03B sub-program for page formatting and output. Generates customer-facing statements with transaction details.DependenciesTightly coupled with CBSTM03B — must migrate together. | ||||
| COTRN02C | 783 | Online | Transaction Add | |
ModuleBase ApplicationDescriptionValidates card number against CCXREF cross-reference, verifies account exists in ACCTDAT and is active, generates transaction ID with timestamp, writes new record to TRANSACT.DependenciesReads CCXREF, ACCTDAT. Writes TRANSACT. | ||||
| CBTRN02C | 731 | Batch | Transaction Post | |
ModuleBase ApplicationDescriptionCore daily transaction posting engine. Reads DALYTRAN sequential file, validates card via XREFDAT, looks up account in ACCTDAT, updates balance, updates TCATBALF category balance, writes to TRANSACT master. Rejected transactions logged separately.DependenciesReads DALYTRAN, XREFDAT, ACCTDAT. Updates ACCTDAT, TCATBALF. Writes TRANSACT. | ||||
| CBACT04C | 652 | Batch | Interest Calc | |
ModuleBase ApplicationDescriptionInterest calculation for all accounts. Accepts date parameter via LINKAGE SECTION. Reads TCATBALF balances, looks up DISCGRP rates, calculates balance × rate / 100 / 365 × days, creates interest transaction in TRANSACT, updates ACCTDAT and TCATBALF.DependenciesReads XREFDAT, TCATBALF, DISCGRP. Updates ACCTDAT, TCATBALF. Writes TRANSACT. | ||||
Critical security findings including plaintext passwords, unencrypted PCI/PII data, and disabled RACF security controls.
| ID | Finding | Severity | Location |
|---|---|---|---|
| SEC-001 | Plaintext password storage — direct comparison without hashing | Critical | CSUSR01Y, COSGN00C |
DescriptionUser passwords stored as plaintext in USRSEC VSAM file. Comparison done directly: IF SEC-USR-PWD = WS-USER-PWD (line 223). No hashing, encryption, or salting applied.ImpactAny user with read access to the VSAM file can see all passwords in clear text.RecommendationImplement password hashing before storage; use one-way hash comparison. Migrate existing passwords via forced reset. | |||
| SEC-002 | Default credentials (ADMIN001/PASSWORD) in public repository | Critical | README.md |
DescriptionAdmin (ADMIN001/PASSWORD) and user (USER0001/PASSWORD) credentials documented in public GitHub repository. Same trivial password for both roles.ImpactAnyone with repository access knows valid credentials for both admin and regular user accounts.RecommendationRemove credentials from documentation. Implement first-login password change requirement. | |||
| SEC-003 | RACF security disabled — RESSEC(NO) CMDSEC(NO) on all transactions | Critical | CARDDEMO.CSD |
DescriptionAll TRANSACTION definitions in CARDDEMO.CSD contain RESSEC(NO) CMDSEC(NO), explicitly disabling transaction-level resource security and command security.ImpactNo external security manager (RACF) enforcement at the transaction level. Any authenticated user can execute any transaction.RecommendationUpdate CSD definitions: set RESSEC(YES) and CMDSEC(YES) on all transactions. Define RACF profiles for each transaction and resource. | |||
| SEC-004 | Unencrypted PCI data — card numbers, CVV codes, SSN stored in clear | Critical | CVACT02Y, CVCUS01Y |
DescriptionCredit card numbers (CARD-NUM), CVV codes (CARD-CVV-CD), and Social Security numbers (CUST-SSN) stored without any encryption in VSAM files.ImpactNon-compliant with PCI DSS requirements. Direct PII exposure risk if files are accessed or exfiltrated.RecommendationImplement field-level encryption for sensitive data using z/OS ICSF services or application-level encryption routines. Mask card numbers in display (show only last 4 digits). | |||
| SEC-005 | No journaling or recovery — JOURNAL(NO) RECOVERY(NONE) on all files | Critical | CARDDEMO.CSD |
DescriptionAll FILE definitions in CARDDEMO.CSD contain JOURNAL(NO) and RECOVERY(NONE). No CICS journaling or forward recovery configured for any data file.ImpactNo audit trail for data changes. No recovery capability from data corruption or system failure.RecommendationEnable CICS journaling: set JOURNAL(YES) and RECOVERY(BACKOUTONLY) on critical files (ACCTDAT, CARDDAT, TRANSACT, USRSEC). Requires journal log stream setup. | |||
| SEC-006 | No account lockout after failed login attempts | Medium | COSGN00C |
DescriptionThe PROCESS-ENTER-KEY paragraph in COSGN00C has no mechanism to track or limit failed login attempts. Users can retry indefinitely.ImpactSusceptible to brute-force password attacks. No detection of repeated unauthorized access attempts.RecommendationImplement a failed attempt counter in the USRSEC record. Lock the account after N consecutive failures. Add a timestamp-based unlock or admin reset. | |||
| SEC-007 | No session timeout beyond CICS region defaults | Medium | All online programs |
DescriptionAll online programs use EXEC CICS RETURN with COMMAREA but implement no explicit session timeout. Sessions persist as long as the CICS region allows.ImpactUnattended terminals remain authenticated indefinitely, creating a physical security risk.RecommendationImplement a timestamp in COMMAREA. Validate session age on each RETURN and force re-authentication after a configurable idle period. | |||
| SEC-008 | No audit trail — no logging of user actions or data changes | Medium | All programs |
DescriptionNo program in the application logs user actions such as login attempts, data modifications, admin operations, or report generation.ImpactCannot track who performed what operations and when. No forensic capability for security incidents or compliance audits.RecommendationImplement CICS journaling or write audit records to a dedicated VSAM or DB2 audit table for all sensitive operations. | |||
| SEC-009 | COMMAREA-based authorization — user role flag theoretically manipulable | Medium | COCOM01Y |
DescriptionUser role (admin vs regular) is stored in CARDDEMO-COMMAREA and passed between programs. The flag is set once at sign-on and trusted by all downstream programs.ImpactIf COMMAREA contents are exposed or manipulated, a regular user could potentially gain admin access.RecommendationRe-validate user type from the USRSEC file on sensitive operations (user management, report submission) rather than trusting the COMMAREA flag alone. | |||
| Data Element | Copybook | Protection | Risk |
|---|---|---|---|
| SEC-USR-PWD (password) | CSUSR01Y | ❌ Plaintext | Critical |
Field SEC-USR-PWD PIC X(08) in USRSEC VSAM file.IssuePasswords stored and compared as plaintext. No hashing or encryption.RemediationImplement one-way hash (e.g., SHA-256) before storage. Force password reset for all existing users. | |||
| CARD-NUM (card number) | CVACT02Y | ❌ No masking | Critical |
Field CARD-NUM PIC X(16) — full 16-digit card number stored in clear.IssuePCI DSS requires encryption of stored cardholder data. Card numbers displayed in full on screens.RemediationEncrypt at rest using z/OS ICSF. Mask display to show only last 4 digits. | |||
| CARD-CVV-CD (CVV) | CVACT02Y | ❌ No encryption | Critical |
Field CARD-CVV-CD PIC X(04) — CVV security code stored in clear.IssuePCI DSS prohibits storage of CVV after authorization. This is a direct compliance violation.RemediationRemove CVV from persistent storage entirely. Only use in-memory during authorization flow. | |||
| CUST-SSN (SSN) | CVCUS01Y | ❌ No encryption | Critical |
Field CUST-SSN PIC X(09) — Social Security Number stored unencrypted.IssuePII exposure risk. Regulatory non-compliance (GLBA, state privacy laws).RemediationApply field-level encryption. Mask display to show only last 4 digits (XXX-XX-1234). | |||
| CUST-GOVT-ISSUED-ID | CVCUS01Y | ❌ No encryption | High |
FieldGovernment-issued identification number stored in clear in CUSTDAT VSAM file.IssuePII exposure. Could be driver's license, passport, or other government ID.RemediationApply field-level encryption. Restrict display access to authorized roles only. | |||
Conditional branch counts, GO TO usage, and structural complexity across the codebase. 26% of base programs use GO TO statements.
| Program | LOC | IF | EVALUATE | PERFORM | GO TO | Complexity |
|---|---|---|---|---|---|---|
| COACTUPC | 4,236 | 168 | 20 | 64 | 51 | Very High |
FunctionAccount Update — largest program in the entire application.Key Concerns51 GO TO statements severely impact readability. 18+ COPY CSSETATY REPLACING instances (lines 3208–3310) inflate effective code size. Deeply nested validation logic for account fields.RecommendationDecompose into validation sub-program, display logic, and update logic — target <1,000 lines each. | ||||||
| COCRDUPC | 1,560 | 148 | 16 | 26 | 21 | Very High |
FunctionCredit Card Update — complex card update with deeply nested validation logic.Key Concerns148 IF statements with 21 GO TOs make control flow difficult to follow. Date editing via CSUTLDWY/CSUTLDPY copybooks adds hidden complexity.RecommendationExtract validation into shared paragraphs. Replace GO TO with structured PERFORM THRU patterns. | ||||||
| COCRDLIC | 1,459 | 122 | 18 | 34 | 16 | High |
FunctionCredit Card List — paginated browse of CARDDAT via STARTBR/READNEXT.Key Concerns122 IF statements with 16 GO TOs complicate the browse/pagination logic. Supports forward/backward paging (PF7/PF8) with selection transfer via XCTL.RecommendationSeparate browse logic from selection/transfer logic. Refactor GO TOs to PERFORM THRU. | ||||||
| CBTRN02C | 731 | 93 | 0 | 62 | 0 | High |
FunctionCore Batch Transaction Posting — the daily posting engine.Key Concerns93 IF statements with 62 PERFORMs. For each transaction: validates card via XREFDAT, looks up account in ACCTDAT, updates balance, updates TCATBALF, writes to TRANSACT. Rejected transactions logged separately.RecommendationWell-structured (no GO TOs) but high branch count. Consider extracting validation and posting into separate paragraphs. | ||||||
| CBACT04C | 652 | 86 | 0 | 57 | 0 | High |
FunctionInterest Calculation — computes interest for all accounts.Key Concerns86 IF statements. Calculates: balance × rate / 100 / 365 × days. Reads TCATBALF, looks up DISCGRP rates, creates interest transactions, updates ACCTDAT and TCATBALF.RecommendationWell-structured (no GO TOs). Consider extracting rate lookup and interest computation into separate paragraphs for testability. | ||||||
| CBTRN03C | 649 | 75 | 4 | 73 | 0 | High |
FunctionTransaction Report Generation — reads TRANSACT, joins with XREFDAT, TRANTYPE, TRANCATG.Key Concerns75 IF statements with 73 PERFORMs. High branch count from multi-file joins and formatting logic.RecommendationWell-structured. Consider separating data retrieval from report formatting. | ||||||
| COCRDSLC | 887 | 68 | 8 | 19 | 9 | Med-High |
FunctionCredit Card Detail View — reads CARDDAT by card number, joins with CUSTDAT.Key Concerns9 GO TO statements add moderate complexity. Display-only with option to edit (PF5 → COCRDUPC via XCTL).RecommendationRefactor GO TOs to PERFORM THRU. Relatively manageable size. | ||||||
| COACTVWC | 941 | 57 | 10 | 21 | 9 | Med-High |
FunctionAccount View — reads ACCTDAT, CARDDAT via AIX, CUSTDAT via CCXREF. Display-only.Key Concerns9 GO TO statements. Multi-file reads add branching for error handling on each file access.RecommendationRefactor GO TOs. Consider extracting cross-reference lookup into a shared utility. | ||||||
| CBSTM03A | 924 | 15 | 9 | 33 | 15 | Medium |
FunctionStatement Generation — orchestrates reading XREFDAT, CUSTDAT, ACCTDAT. Calls CBSTM03B for page formatting.Key Concerns15 GO TO statements make batch flow harder to trace. Tightly coupled with CBSTM03B sub-program.RecommendationMust migrate together with CBSTM03B. Refactor GO TOs to structured flow. | ||||||
| COTRN02C | 783 | 14 | 26 | 61 | 0 | Medium |
FunctionOnline Transaction Add — validates card via CCXREF, checks account is active, generates transaction ID with timestamp.Key Concerns26 EVALUATE blocks handle multiple input scenarios. Well-structured with no GO TOs.RecommendationGood structure. Low priority for refactoring. | ||||||
8 of 31 base programs (26%) use GO TO — a legacy control flow pattern that severely impacts readability and testability.
The COPY CSSETATY REPLACING pattern inflates effective code size well beyond visible source lines.
23 identified debt items across 4 severity levels. No AWS-managed transformations apply — this COBOL/CICS system requires AWS Mainframe Modernization (M2) evaluation.
| ID | Remediation Item | Priority | Addresses |
|---|---|---|---|
| REM-001 | Implement Password Hashing | Critical | SEC-001 |
ActionModify COSGN00C and USRSEC file handling to store hashed passwords instead of plaintext.ApproachUse CICS LINK to a hashing utility program; migrate existing passwords via batch conversion job.DependenciesRequires hashing utility (z/OS ICSF or custom routine). | |||
| REM-002 | Remove Default Credentials | Critical | SEC-002 |
ActionRemove hardcoded credentials from README.md. Implement first-login password change enforcement.RiskPublic repository exposes admin/user credentials — immediate exploitation risk. | |||
| REM-003 | Enable RACF Security | Critical | SEC-003 |
ActionUpdate CSD definitions: set RESSEC(YES) and CMDSEC(YES) on all 24 transactions.DependenciesRequires RACF profile definitions for all transactions and resources. Coordinate with security team. | |||
| REM-004 | Encrypt Sensitive Data | Critical | SEC-004 |
ActionImplement field-level encryption for CARD-NUM (16 bytes), CARD-CVV-CD (4 bytes), CUST-SSN (9 bytes) in CARDDAT and CUSTDAT.ApproachUse z/OS ICSF services or application-level encryption routines. Requires key management infrastructure. | |||
| REM-005 | Enable Journaling & Recovery | Critical | SEC-005 |
ActionUpdate CSD: set JOURNAL(YES) and RECOVERY(BACKOUTONLY) on critical VSAM files (ACCTDAT, CARDDAT, TRANSACT, USRSEC).DependenciesRequires journal log stream setup and sufficient DASD allocation. | |||
| REM-006 | Decompose COACTUPC | High | Complexity |
ActionSplit 4,236-line program into: validation sub-program, display logic, update logic, date validation module.TargetEach resulting program under 1,000 lines. Currently has 51 GO TOs, 148 IF statements, 18+ COPY REPLACING instances. | |||
| REM-007 | Refactor GO TO Statements | High | Complexity |
ActionReplace GO TO with structured PERFORM THRU patterns across 8 programs (26% of base programs).Priority OrderCOACTUPC (51 GO TOs) → COCRDUPC (21) → COCRDLIC (16) → remaining 5 programs. | |||
| REM-008 | Simplify COPY REPLACING | High | Complexity |
ActionCreate a single validation paragraph that iterates through field list instead of repetitive CSSETATY COPY REPLACING.AffectedCOACTUPC (18+ instances), COTRTUPC. Reduces effective code size significantly. | |||
| REM-009 | Remove Unused Copybook | Medium | Quality |
ActionVerify UNUSED1Y.cpy is not referenced by any program, then remove from repository.RiskLow — static analysis confirms no COPY UNUSED1Y statements exist. | |||
| REM-010 | Consolidate Customer Records | Medium | Quality |
ActionStandardize on CVCUS01Y.cpy as the single customer record definition. Update CBSTM03A (batch statement generator) to use CVCUS01Y instead of CUSTREC.cpy.RiskMedium — requires regression testing of batch statement generation. | |||
| REM-011 | Standardize File Extensions | Low | Quality |
ActionRename all files to lowercase extensions (.cbl, .cpy, .jcl, .bms). Currently mixed: .cbl/.CBL, .cpy/.CPY, .jcl/.JCL.RiskLow — update build scripts and JCL references accordingly. | |||
| REM-012 | Implement Audit Logging | Medium | SEC-008 |
ActionAdd CICS journal writes or dedicated audit VSAM file for key operations: sign-on, account updates, card changes, user management.AddressesNo audit trail currently exists — cannot track who changed what or when. | |||
Dependency-based migration sequencing across 6 waves — from independent utilities to optional modules with external technology dependencies.
All 24 CICS transactions with their programs, BMS maps, and functional descriptions.
| Tran ID | Program | BMS Map | Function |
|---|---|---|---|
| CC00 | COSGN00C | COSGN00 | Sign-on Screen |
DescriptionUser authentication entry point. Validates credentials against USRSEC VSAM file. Routes admin users to CA00/COADM01C and regular users to CM00/COMEN01C via XCTL.Key FieldsUser ID (8 chars), Password (8 chars), User Type (admin/regular). | |||
| CM00 | COMEN01C | COMEN01 | Main Menu |
DescriptionMain menu dispatcher for regular users. Routes to 8 functional areas via XCTL based on menu option selection (1–7, 11).Options1: Account View, 2: Account Update, 3: Card List, 4: Bill Payment, 5: Transaction List, 6: Transaction Add, 7: Reports, 11: Pending Auth (optional). | |||
| CAVW | COACTVWC | COACTVW | Account View |
DescriptionRead-only account display. Reads ACCTDAT by account ID, joins CARDDAT via AIX path and CUSTDAT via CCXREF cross-reference.Data AccessReads ACCTDAT, CARDDAT (AIX), CUSTDAT, CCXREF. No update operations. | |||
| CAUP | COACTUPC | COACTUP | Account Update |
DescriptionLargest program (4,236 LOC). Extensive field validation for account status, credit limits, dates, ZIP codes. Uses CSLKPCDY lookup tables and 18+ COPY REPLACING instances.Data AccessReads/updates ACCTDAT, reads CUSTDAT and CCXREF. | |||
| CCLI | COCRDLIC | COCRDLI | Credit Card List |
DescriptionPaginated browse of CARDDAT via STARTBR/READNEXT. Supports PF7/PF8 paging. Selection transfers to COCRDSLC (view) or COCRDUPC (update) via XCTL.Data AccessReads CARDDAT with browse operations. | |||
| CCDL | COCRDSLC | COCRDSL | Credit Card Detail |
DescriptionRead-only card detail display. Reads CARDDAT by card number, joins with CUSTDAT for customer info. PF5 transfers to COCRDUPC for editing.Data AccessReads CARDDAT, CUSTDAT. | |||
| CCUP | COCRDUPC | COCRDUP | Credit Card Update |
DescriptionValidates card number, embossed name, expiration date, active status. Date validation via CSUTLDWY/CSUTLDPY copybooks. 148 IF statements, 21 GO TOs.Data AccessUpdates CARDDAT. | |||
| CT00 | COTRN00C | COTRN00 | Transaction List |
DescriptionPaginated browse of TRANSACT file. Supports forward/backward paging. Selection transfers to COTRN01C for detail view.Data AccessReads TRANSACT with browse operations. | |||
| CT01 | COTRN01C | COTRN01 | Transaction View |
DescriptionRead-only transaction detail display. Shows full transaction record including card number, amount, date, and type.Data AccessReads TRANSACT by transaction ID. | |||
| CT02 | COTRN02C | COTRN02 | Transaction Add |
DescriptionValidates card via CCXREF, checks account is active in ACCTDAT, generates transaction ID with timestamp, writes new record to TRANSACT.Data AccessReads CCXREF, ACCTDAT. Writes TRANSACT. | |||
| CR00 | CORPT00C | CORPT00 | Transaction Report |
DescriptionUser selects report type and parameters. Submits batch job via CICS TD queue (WRITEQ TD to JOBS queue). TD queue routes to internal reader for JCL submission.Data AccessWrites to TD Queue JOBS. | |||
| CB00 | COBIL00C | COBIL00 | Bill Payment |
DescriptionValidates account via CCXREF and ACCTDAT. Uses ASKTIME/FORMATTIME for timestamp. Creates payment transaction in TRANSACT and updates account balance.Data AccessReads CCXREF, ACCTDAT. Writes TRANSACT. Updates ACCTDAT balance. | |||
| CA00 | COADM01C | COADM01 | Admin Menu |
DescriptionAdmin menu dispatcher. Routes to user management (CU00–CU03) and optional transaction type management (CTLI, CTTU) via XCTL.Options1: List Users, 2: Add User, 5: Tran Type List (optional), 6: Tran Type Edit (optional). | |||
| CU00 | COUSR00C | COUSR00 | List Users |
DescriptionPaginated browse of USRSEC file. Supports forward/backward paging. Selection transfers to COUSR02C (update) or COUSR03C (delete).Data AccessReads USRSEC with browse operations. | |||
| CU01 | COUSR01C | COUSR01 | Add User |
DescriptionValidates user ID uniqueness via EXEC CICS READ with RESP check. Writes new record to USRSEC.Data AccessReads (uniqueness check) and writes USRSEC. | |||
| CU02 | COUSR02C | COUSR02 | Update User |
DescriptionReads existing user record with UPDATE option. Validates changes and rewrites record to USRSEC.Data AccessReads (with UPDATE) and rewrites USRSEC. | |||
| CU03 | COUSR03C | COUSR03 | Delete User |
DescriptionConfirms deletion, reads record with UPDATE option, then deletes record from USRSEC.Data AccessReads (with UPDATE) and deletes from USRSEC. | |||
| CPVS | COPAUS0C | COPAU00 | Pending Auth Summary ⚡ |
DescriptionDisplays summary of pending authorization requests from IMS database. Paginated browse with selection to detail view.ModuleAuthorization IMS-DB2-MQ (Optional). Requires IMS DB, DB2, MQ. | |||
| CPVD | COPAUS1C | COPAU01 | Pending Auth Details ⚡ |
DescriptionDisplays detailed pending authorization record. Links to COPAUS2C helper for processing.ModuleAuthorization IMS-DB2-MQ (Optional). Requires IMS DB. | |||
| CP00 | COPAUA0C | — | Process Auth Requests ⚡ |
DescriptionMQ-triggered processor. Receives auth request from queue, validates card via CCXREF, checks IMS pending auth DB, logs fraud check to DB2 AUTHFRDS, sends approval/denial via MQ reply queue.ModuleAuthorization IMS-DB2-MQ (Optional). No BMS map — background process. | |||
| CTTU | COTRTUPC | COTRTUP | Tran Type Edit ⚡ |
DescriptionINSERT new or UPDATE existing transaction types in DB2 TRNTYPE table. Complex add/edit form with extensive validation.ModuleTransaction Type DB2 (Optional). Requires DB2. | |||
| CTLI | COTRTLIC | COTRTLI | Tran Type List ⚡ |
DescriptionDB2 cursor-based paginated listing of TRNTYPE table. Supports delete operation with confirmation.ModuleTransaction Type DB2 (Optional). Requires DB2. | |||
| CDRD | CODATE01 | — | Date Inquiry via MQ ⚡ |
DescriptionSends system date inquiry request via MQ and receives response. No BMS map — uses MQ request/reply pattern.ModuleVSAM-MQ (Optional). Requires MQ. | |||
| CDRA | COACCT01 | — | Account via MQ ⚡ |
DescriptionAsynchronous account detail inquiry through MQ messaging. Sends request and receives account data via MQ reply queue.ModuleVSAM-MQ (Optional). Requires MQ, VSAM ACCTDAT. | |||
⚡ = Optional module transaction
11+ VSAM KSDS files with alternate indexes, cross-references, and manually maintained referential integrity.
| File | Type | Copybook | Key | Description |
|---|---|---|---|---|
| USRSEC | KSDS | CSUSR01Y | SEC-USR-ID (8) | User Security Records |
Dataset AWS.M2.CARDDEMO.USRSEC.VSAM.KSDSRecord LayoutUser ID (8), Password (8), First Name (20), Last Name (20), User Type (1 — 'A' for admin). Key: SEC-USR-ID.Used ByCOSGN00C (authentication), COUSR00C–03C (user CRUD). | ||||
| ACCTDAT | KSDS | CVACT01Y | ACCT-ID (11) | Account Master Data |
Dataset AWS.M2.CARDDEMO.ACCTDATA.VSAM.KSDSRecord LayoutAccount ID (11), Status, Credit Limit, Current Balance, Open Date, Expiration Date, Reissue Date, Group ID. Key: ACCT-ID.Used ByCOACTVWC, COACTUPC, CBTRN02C, CBACT04C, COBIL00C, CBSTM03A. Central to most operations. | ||||
| CARDDAT | KSDS | CVACT02Y | CARD-NUM (16) | Card Master Data |
Dataset AWS.M2.CARDDEMO.CARDDATA.VSAM.KSDSRecord LayoutCard Number (16), Account ID (11), CVV Code (4), Embossed Name, Expiration Date, Active Status. Key: CARD-NUM. AIX path: CARDAIX.Used ByCOCRDLIC, COCRDSLC, COCRDUPC, COACTVWC. ⚠️ Contains unencrypted PCI data (SEC-004). | ||||
| CUSTDAT | KSDS | CVCUS01Y | CUST-ID (9) | Customer Master Data |
Dataset AWS.M2.CARDDEMO.CUSTDATA.VSAM.KSDSRecord LayoutCustomer ID (9), First/Last Name, Address, SSN (9), Government ID, DOB, FICO Score, Phone, Email. Key: CUST-ID.Used ByCOACTVWC, COCRDSLC, CBSTM03A, COPAUA0C. ⚠️ Contains unencrypted PII (SEC-004). | ||||
| XREFDAT | KSDS | CVACT03Y | XREF-CARD-NUM (16) | Account-Card-Customer Xref |
Dataset AWS.M2.CARDDEMO.CARDXREF.VSAM.KSDSRecord LayoutCard Number (16), Account ID (11), Customer ID (9). Key: XREF-CARD-NUM. AIX path: CXACAIX (by account).Used ByCOTRN02C, CBTRN02C, CBACT04C, COBIL00C, CBSTM03A, COPAUA0C. Central cross-reference — manually maintained. | ||||
| TRANSACT | KSDS+AIX | CVTRA05Y | TRAN-ID (16) | Online Transaction Data |
Dataset AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDSRecord LayoutTransaction ID (16), Card Number, Amount, Date/Time, Type Code, Category Code, Description. Key: TRAN-ID.Used ByCOTRN00C–02C (online), CBTRN02C (batch posting), CBTRN03C (reporting), CBACT04C (interest). Primary transaction store. | ||||
| DALYTRAN | PS→KSDS | CVTRA06Y | — | Daily Transactions (batch) |
DescriptionSequential file containing daily transactions for batch posting. Input to POSTTRAN (CBTRN02C) job.FlowLoaded as sequential input → processed by CBTRN02C → records posted to TRANSACT master and balances updated in ACCTDAT/TCATBALF. | ||||
| DISCGRP | KSDS | CVTRA02Y | ACCT-GROUP-ID+TYPE+CAT | Disclosure Group Reference |
DescriptionReference data for interest rate disclosure groups. Compound key: Account Group ID + Transaction Type Code + Transaction Category Code.Used ByCBACT04C (interest calculation) — looks up rates by account group and transaction category. | ||||
| TCATBALF | KSDS | CVTRA01Y | ACCT-ID+TYPE+CAT | Transaction Category Balance |
DescriptionTracks balances by account, transaction type, and category. Compound key: Account ID + Type Code + Category Code.Used ByCBTRN02C (updated during posting), CBACT04C (read for interest calculation, updated with new balance). | ||||
| TRANCATG | KSDS | CVTRA04Y | TYPE-CD+CAT-CD | Transaction Category Types |
DescriptionReference data defining transaction category types. Compound key: Transaction Type Code + Category Code.Used ByCBTRN03C (transaction reporting — joins for category descriptions). | ||||
| TRANTYPE | KSDS | CVTRA03Y | TRAN-TYPE (2) | Transaction Types |
DescriptionReference data defining transaction types. Key: 2-byte transaction type code.Used ByCBTRN03C (reporting). Also managed via DB2 TRNTYPE table in optional Transaction Type DB2 module. | ||||
All 35 markdown documentation files available for download. Filter by category or download individually.