diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml new file mode 100644 index 00000000..1b96fd1e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -0,0 +1,48 @@ +name: Bug report +description: Something Reframe did that it should not, or did not do +labels: [bug] +body: + - type: markdown + attributes: + value: | + Thank you. Please remove account IDs, ARNs, bucket names, e-mail addresses, local paths and any client code or data before you paste anything. Report a security problem privately, as SECURITY.md says, not here. + - type: input + id: version + attributes: + label: reframe --version + placeholder: reframe 1.0.0 + validations: + required: true + - type: dropdown + id: tools + attributes: + label: Which tools did the run use? + options: [Claude only, AWS Transform and Claude, Not a run] + validations: + required: true + - type: input + id: system + attributes: + label: Operating system and Python + placeholder: macOS 15, Python 3.12 + - type: textarea + id: ran + attributes: + label: What you ran + description: The command, and the source if it is public (for example CardDemo). + render: bash + validations: + required: true + - type: textarea + id: expected + attributes: + label: What you expected + validations: + required: true + - type: textarea + id: happened + attributes: + label: What happened + description: The message, and what reframe status says. Lines from worker.log help, with identifiers removed. + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 00000000..893ee2cc --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,5 @@ +blank_issues_enabled: true +contact_links: + - name: How to run Reframe + url: https://github.com/CodeStrata/reframe/blob/main/docs/how-to-run.md + about: One page from install to handover; most questions are answered there or in docs/guide.md. diff --git a/.github/ISSUE_TEMPLATE/feature.yml b/.github/ISSUE_TEMPLATE/feature.yml new file mode 100644 index 00000000..c721e00a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature.yml @@ -0,0 +1,22 @@ +name: Idea or request +description: Something Reframe should do +labels: [enhancement] +body: + - type: textarea + id: problem + attributes: + label: What you are trying to do + description: The modernization task, and where Reframe falls short today. + validations: + required: true + - type: textarea + id: idea + attributes: + label: What would help + validations: + required: true + - type: textarea + id: context + attributes: + label: Anything else + description: The kind of codebase (size, CICS or batch, copybooks), or the tools you build with. No client code or data, please. diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index d77a45b7..a28cda46 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -10,6 +10,7 @@ List the checks actually performed, their results, and the checks not performed. - [ ] All changed files and new history reviewed for secrets and confidential content - [ ] Original/licensed content only; synthetic examples labeled +- [ ] No report, package or source excerpt from a codebase other than CardDemo - [ ] Personal GitHub authentication and author/committer attribution verified - [ ] AI assistance disclosed - [ ] Limitations and unimplemented capabilities stated accurately diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8dc3c4f5..558e15d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,11 +15,14 @@ concurrency: jobs: test: - name: Offline tests - runs-on: ubuntu-latest + # the Linux jobs keep the names branch protection requires: Offline tests (3.10), Offline tests (3.12) + name: ${{ matrix.os == 'ubuntu-latest' && format('Offline tests ({0})', matrix.python) || format('Offline tests (macOS, {0})', matrix.python) }} + runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: - python: ["3.10", "3.12"] + os: [ubuntu-latest, macos-latest] + python: ["3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 @@ -31,3 +34,41 @@ jobs: run: python -m unittest discover -s tests -t . - name: CLI run: reframe --help + + checks: + name: Lint, types and coverage + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 + with: + python-version: "3.12" + - name: Install, with the pinned checkers + run: python -m pip install -e ".[dev]" + - name: Lint (ruff) + run: ruff check src tests + - name: Types (mypy) + run: mypy + - name: Coverage, with its floor + run: | + coverage run -m unittest discover -s tests -t . + coverage report + + package: + name: The built package installs and runs + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 + with: + python-version: "3.12" + - name: Build + run: python -m pip install build && python -m build + - name: Install the wheel in a clean environment + run: python -m venv /tmp/clean && /tmp/clean/bin/pip install dist/*.whl + - name: Run it, with its templates + run: | + cd /tmp + /tmp/clean/bin/reframe --version + /tmp/clean/bin/reframe --help + /tmp/clean/bin/python -c "from reframe.report import build, compare; from reframe.design import prototype; from pathlib import Path; assert build.TEMPLATE and compare.TEMPLATE and Path(prototype.__file__).with_name('prototype.html').is_file()" diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 00000000..aa693be3 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,35 @@ +# The demo (docs/release-1.md, section 3, S-17): reports/ served on this repository's GitHub Pages site, deployed on every +# push to main that changes it. It runs only in CodeStrata/reframe, so a fork publishes nothing unless its owner changes +# this line and turns Pages on (Settings, Pages, Source: GitHub Actions). +name: Demo site + +on: + push: + branches: [main] + paths: ["reports/**", ".github/workflows/pages.yml"] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: pages + cancel-in-progress: false + +jobs: + deploy: + if: github.repository == 'CodeStrata/reframe' + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - uses: actions/checkout@v4 + - uses: actions/configure-pages@v5 + - uses: actions/upload-pages-artifact@v3 + with: + path: reports + - id: deployment + uses: actions/deploy-pages@v4 diff --git a/.gitignore b/.gitignore index 4c0b19a3..42df6a8e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ # Keep all real evidence outside the checkout; these patterns are a backstop. +# Run folders (reframe run from this folder): account identifiers and working records; share reframe publish's copy instead. +.reframe/ .DS_Store .env .env.* @@ -42,3 +44,6 @@ dist/ # Transcripts written by the acceptance tests /acceptance-*-transcript.txt /guided-session-transcript.txt + +# coverage data (CONTRIBUTING, Run the checks) +.coverage diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..79eb2f82 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,75 @@ +# Changelog + +What changed in each release. Releases are tagged on `main`; the stories behind each are in [docs/plan.md](docs/plan.md). + +## 1.0.0 (27 November 2026) + +The first release for anyone to try: with Claude only, or with Claude and AWS Transform. Tested end to end on mainframe code; open source under the MIT License, at github.com/CodeStrata/reframe. + +**Published examples** +- Only CardDemo's example reports are published, with CardDemo's licence and notice beside them; other codebases Reframe is tested on are run locally, and nothing from them is committed. + +**Code quality** +- Reframe is classed as Beta. +- CI lints with ruff, type-checks with mypy and fails below 80% line coverage, with the checkers pinned in the `dev` extra. +- The drivers of both assessments and the command handlers are tested stage by stage. + +**Signing in** +- `--auth api-key` signs Claude in with an Anthropic API key (`ANTHROPIC_API_KEY`, and `ANTHROPIC_BASE_URL` for a gateway), on every command that runs Claude and in the guided run. The key is passed to Claude Code and never written. +- Amazon Bedrock on a Claude-only run: `--auth bedrock --profile ` uses the profile for Bedrock only, with no AWS resources; a Bedrock API key needs no profile. +- The reconciliation and the design check a Bedrock sign-in against the run's profile; before, `--auth bedrock` always failed their preflight. +- Estimates say who is billed, and `reframe publish` replaces an API key it finds. + +**Exports** +- `reframe export --to jira` and `--to azure-devops` write the design's backlog as each tool's CSV import file: epics, features (Azure DevOps) and a story per capability, with its requirements, rules, open questions and acceptance criteria, all with the AI-DLC package's IDs. + +**Evidence** +- `python -m reframe.reconcile.expert` gives the accuracy audit's sample to a mainframe expert, blind, as one page and a CSV to fill in, and reads their verdicts back: their accuracy figures, their agreement with each judge and with the audit, and the rules they call wrong. +- The larger-codebase spike (SC-01) compares the public candidates, their sizes and licences, with cost estimates for the owner's choice. + +**The design (pipeline 4)** +- Golden datasets (P4-11): per capability, the cases the new system must answer as the legacy one does, from the worked examples and the decision-table rows, in `golden/` in every form of the package. `golden/compare.py` compares a new system's answers and reports formatting apart from business differences. Until legacy outputs are captured, the expected outputs come from the rules. + + +**The design (pipeline 4), `reframe design`** +- The screen inventory and how screens connect: every BMS map drawn as a 3270 copy, each link citing its source lines. +- User journeys, and modern screens with every legacy screen, field and key mapped to what replaces it. +- A clickable prototype beside the legacy screens, with marks reviewers can download. +- A final specification for every capability, with acceptance criteria, data contracts from the copybooks, decision tables and open questions. It is final where the function is signed off and draft otherwise. +- The AI-DLC package in Kiro, Claude Code and Spec Kit forms, with traced IDs, `[FILL IN: ...]` placeholders and `START-HERE.md`. `--package` copies it and `--check` lists what is left. +- Rounds with more context (personas, decisions, a design system, a style reference, prototype reviews, sign-offs). A round redoes only what the context touches, and says why in `changes-.md`. `--plan` says it beforehand. + +**Claude only** +- `reframe run --tools claude` and `reframe setup --tools claude`: a run with no AWS account, no AWS resources and nothing to tear down. +- The reconciliation checks every Claude rule against the source code, in Claude's own domains and functions. The design and publishing work unchanged. + +**Sharing** +- Every run lives in `/.reframe///`, with `inputs/` for added context and `outputs/` for what Reframe makes. +- `reframe publish --to aws` uploads the run's `source/`, `results/` and cleaned `reports/` to the standing private bucket. Publishing is optional. +- `reframe publish --to pages` publishes the cleaned copy to a GitHub Pages site, after a typed yes to a warning that the site is public. +- The CardDemo example reports are on this repository's Pages site. + +**The repository** +- A shorter README, the full guide in `docs/guide.md`, CONTRIBUTING, this changelog and issue templates. +- CI on Linux and macOS with Python 3.10 to 3.13, plus a check that the built package installs and runs. + +## 0.4.0 (24 November 2026) + +**The reconciliation (pipeline 3), `reframe reconcile`** +- Rules both tools describe the same way are agreed. Claude decides every other rule against the source code, and Reframe checks the evidence. +- One SME list, recommended requirements in AWS Transform's frame, and the reconciliation page. +- Part 2 added Reframe's own confidence, rule kinds, worked examples, possible defects, decision tables, risk per capability, *Review first*, and the review loop with several reviewers and sign-offs. +- `reframe review`, and `reframe export --to xlsx`. + +**The Claude assessment (pipeline 2), `reframe claude`** +- Claude's code-modernization plugin runs on the same snapshot, alongside AWS Transform, with requirements generated by Reframe and the graph loaded into Neptune. +- A comparison page for the two tools. + +**Sharing** +- `reframe publish`: a copy cleaned of the account's identifiers. +- A private reports bucket in the AWS account, opened by project with `reframe reports`. + +## 0.3.0 (17 November 2026) + +- The AWS Transform assessment (pipeline 1) end to end from one command: the snapshot, Terraform for the AWS resources, the job, the reimagine connector, retrieval and the business review report. +- `reframe teardown` deletes only what the run's own records say it created, after consent. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..4d671867 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,87 @@ +# Contributing to Reframe + +Thank you for helping. Bug reports, ideas and pull requests are all welcome. + +## Set up + +You need macOS or Linux, Python 3.10 or later, and [uv](https://docs.astral.sh/uv/). + +```bash +git clone https://github.com/CodeStrata/reframe.git +``` + +```bash +cd reframe && uv sync +``` + +```bash +uv tool install --reinstall --editable . +``` + +The editable install puts `reframe` on your PATH, running the code in your clone. + +## Run the tests + +The tests are offline. They need no AWS account, no Claude sign-in and no network, and they run on every pull request on Linux and macOS with Python 3.10 to 3.13. + +```bash +uv run python -m unittest discover -s tests -t . +``` + +Every change comes with tests. Anything that calls AWS, Claude Code, `git` or `gh` is tested against a fake that records the calls. The existing `tests/` folders show how. + +## Run the checks + +CI also lints, type-checks and holds a coverage floor. The checkers are pinned in the `dev` extra: + +```bash +uv pip install -e ".[dev]" +``` + +```bash +ruff check src tests +``` + +```bash +mypy +``` + +```bash +coverage run -m unittest discover -s tests -t . && coverage report +``` + +- **ruff** checks for real faults, not style: pyflakes, syntax errors and bugbear (`[tool.ruff.lint]` in `pyproject.toml`). +- **mypy** checks every module except those listed under `[[tool.mypy.overrides]]`, which still have type errors to fix. The list only shrinks: when you fix a module, take it off. +- **coverage** fails below the floor in `[tool.coverage.report]`. Raise the floor when your tests raise coverage; never lower it. + +## How a change is made + +Reframe changes in this order. Each step is written down before the next starts: + +1. **Specification.** What the change does, and why, in the pipeline's document under `docs/`: for example `pipeline-3.md`, `pipeline-4.md`, `sharing.md` or `release-1.md`. +2. **Plan.** One row per story in [docs/plan.md](docs/plan.md), each with what *done* means. +3. **Stories.** An issue per story. +4. **Build.** A branch from `develop`, one commit per story, and a pull request into `develop`. `main` is the released branch. + +For a small fix, an issue and a pull request are enough. + +## Conventions + +- **Plain words.** Commands, messages and pages say what happens in words a business reader understands. Say it once, and don't invent jargon. +- **Nothing outward without a record.** Every change Reframe makes outside the run folder has an intent, a receipt and a way to settle it after a crash. Anything that deletes, or makes something public, asks for a typed `yes` first. +- **Model output is labelled.** Pages say what a model wrote and what Reframe checked. +- **No secrets, no client data.** Read [SECURITY.md](SECURITY.md) before you attach logs, screenshots or examples. Use a public sample such as CardDemo, or clearly labelled synthetic data, and attach only what Reframe wrote, not the sample's own source. + +## Pull requests + +- Say what changed and why, and what you checked, using the template. +- Keep each pull request to one purpose. +- Say when AI helped write it. + +## Licensing your contribution + +Reframe is under the [MIT License](LICENSE). By opening a pull request you agree that your contribution is your own work, or that you have the right to submit it, and that it is licensed under the MIT License like the rest of Reframe. + +## Reporting a problem + +Open an issue with the bug template: what you ran, what you expected, and what happened. Include `reframe --version` and the run's `reframe status`, with account IDs and paths removed. Report a security problem privately, as [SECURITY.md](SECURITY.md) says, not in an issue. diff --git a/README.md b/README.md index d9b874b2..9ff021e1 100644 --- a/README.md +++ b/README.md @@ -1,375 +1,241 @@ -# Reframe - -Reframe runs an AWS Transform assessment of a mainframe codebase from one command and brings the results back as a report you can read: business domains and functions, requirements, business rules, open questions and the data model. - -You give it the source as a local folder, a local ZIP file or a GitHub URL. Reframe creates the AWS resources with Terraform, uploads a snapshot of the source, drives the AWS Transform job to the end, downloads what AWS produced and builds an HTML report. The AWS resources stay until you remove them with `reframe teardown`, which lists every resource first and asks for your consent. - -The Claude assessment then assesses the same snapshot with Claude's [code-modernization plugin](https://github.com/anthropics/claude-plugins-official/tree/main/plugins/code-modernization), shows its results in the same business review, adds its graph to the same Neptune cluster, and builds a page comparing the two assessments (see [The Claude assessment and the comparison](#the-claude-assessment-and-the-comparison)). - -The design is in [docs/specification.md](docs/specification.md) (the AWS Transform assessment), [docs/pipeline-2.md](docs/pipeline-2.md) (the Claude assessment) and [docs/pipeline-3.md](docs/pipeline-3.md) (the reconciliation), the stories are in [docs/plan.md](docs/plan.md), and the live test results are in [docs/acceptance.md](docs/acceptance.md). +

+ + + Reframe logo + +

+ +

Reframe

+ +

+ From legacy source to reviewed requirements, business rules and a design to build from. +
+ Tested end to end on mainframe COBOL and CICS. On other languages, Claude's assessment and the reconciliation should work, untested. +

+ +

+ CI + Version + Python 3.10 to 3.13 + MIT License + Audited accuracy: 91% of sampled rules correct + Example output: CardDemo +

+ +

+ Example output +  ·  + Quick start +  ·  + How it works +  ·  + The guide +  ·  + Changelog +  ·  + Contributing +

+ + + + The reconciled review of AWS's CardDemo: rules to check first, each with its confidence, worked examples, the evidence behind it, and Agree, Needs change and Question marks for reviewers + + +Reframe reads a legacy codebase and tells you, in plain words a business can review, what it does. It assesses the code with Claude's [code-modernization plugin](https://github.com/anthropics/claude-plugins-official/tree/main/plugins/code-modernization), and with AWS Transform as well if you have it, then checks every business rule against the source code itself. From that it designs the modern application, down to a package an AI coding tool can build from. + +| Codebase | What runs | Tested | +|---|---|---| +| **Mainframe:** COBOL, JCL, CICS, BMS | Everything: Claude's assessment and AWS Transform's, the reconciliation against the code, the design and the package | **Yes**, end to end on AWS's CardDemo | +| **Other languages:** Java, .NET, PHP, Python, C and more | With Claude only, since AWS Transform writes requirements only for the mainframe. The assessment and the reconciliation should work: Claude's plugin reads any language. The design reads screens, flows and data definitions from mainframe sources only, so it stops on other codebases for now | **No.** Full support is planned ([the 1.1 specification](docs/any-legacy.md)) | + +It is for modernization teams, architects and the business people who have to say "yes, that is what the system does" before anything is rebuilt. + +## Why Reframe + +- **Two assessments, one answer.** AWS Transform and Claude assess the same snapshot. Where they agree, the rule stands; where they don't, Claude decides against the source code, and Reframe checks that every line it cites exists. +- **Evidence, not opinion.** Every recommended rule cites the source lines behind it, with a confidence Reframe sets from what it checked, its kind, worked examples and any possible defect. +- **Measured.** On CardDemo, 51 of 56 sampled rules were judged correct (91%) by two independent model judges, with the disputes settled by a person. A [pack for a mainframe expert](docs/pipeline-3.md#813-a-mainframe-experts-own-check-sc-06) lets someone independent check the same sample. +- **Built to hand over.** Final specifications with acceptance criteria, data contracts and golden datasets, an AI-DLC package for Kiro, Claude Code or Spec Kit, and a backlog for Jira or Azure DevOps, every ID traced back to the legacy source. +- **People decide.** Reviewers mark *Agree*, *Needs change* or *Question*, answer the SME list and sign off by function; the next round redoes only what they touched. + +## From green screen to a design + + + + + + + + + + +
The legacy screen, drawn from its BMS sourceThe modern screen Reframe designs from it
+ + + CardDemo's 3270 sign-on screen, drawn by Reframe from the BMS map with no model + + + + + The modern Sign in screen in Reframe's clickable prototype, with each field's rule and keyboard behaviour + +
+ +Every legacy field, key and message is mapped to what replaces it, and the prototype shows each modern screen beside the one it replaces. The design page sums it up: + + + + The design page for CardDemo: 21 legacy screens, 20 modern screens, 17 journeys, 683 legacy items mapped, 154 capabilities, 1,136 requirements and 1,503 acceptance criteria + + +**See what it makes before you run it:** the [example output for CardDemo](https://codestrata.github.io/reframe/carddemo/) (AWS's sample, 44 COBOL programs), from one run end to end: every review, the prototype, the design and the package, to click through. It is a showcase of the results, not a hosted service: Reframe runs on your own machine, on your own code. It is also in this repository: clone it and open `reports/carddemo/index.html`. + +## What it makes + +- **Business reviews:** domains, business functions, capabilities, requirements, business rules and open questions, from overview down to each rule. Reviewers mark *Agree*, *Needs change* or *Question* and send their marks back. +- **Rules checked against the code:** each recommended rule cites the source lines that back it. Each has a confidence Reframe sets from what it checked, a kind and worked examples. Possible defects are noted. +- **One SME list:** every question the code cannot settle, with the rules it holds up, to answer and feed back into the next round. +- **The design:** legacy screens and how they connect, user journeys, modern screens with every legacy field mapped, and a clickable prototype beside the legacy screens. A final specification for every capability, with acceptance criteria and data contracts. +- **An AI-DLC package:** the specifications in Kiro, Claude Code and Spec Kit form, with every ID traced back to the legacy source, a golden dataset per capability for equivalence tests, and a `START-HERE.md` for the team that builds it. +- **Exports:** the reconciled results as one Excel workbook, and the design as a backlog for Jira or Azure DevOps. + +
+AWS Transform and Claude, side by side +
+ + + + The comparison page: AWS Transform's and Claude's domains, functions, capabilities, requirements, rules and open questions for the same CardDemo snapshot + + +Both tools assess the same snapshot. The comparison shows where they agree and where each found something the other did not; the reconciliation settles every difference against the code. + +
## How it works -![How a Reframe run works: start and snapshot, the AWS resources, then the AWS Transform assessment and the Claude assessment side by side on the same snapshot, the reports with the comparison, the reconciliation of the two against the source code (agree, decide against the code, one SME list, requirements and the page), sharing, and teardown only on request; you sign in, answer questions or set Claude's agent limit, review and compare, give the reconciliation your context and answers, and consent to teardown](docs/images/reframe.svg) - -| Step | What happens | -|---|---| -| 1. Start | `reframe run` checks the prerequisites and your AWS sign-in, takes the source (a folder, a ZIP file or a GitHub URL) and makes one snapshot of it, with its SHA-256. | -| 2. AWS resources | Terraform creates the buckets, the IAM roles and a Neptune graph, or uses an existing Neptune cluster. Both assessments start from here. | -| AWS Transform assessment | The snapshot is uploaded, and Reframe drives the AWS Transform job to the end, answering its questions in autonomous mode, then downloads the requirements, business rules and assessment. | -| Claude assessment | Alongside AWS Transform, Claude's code-modernization plugin assesses the same snapshot. Reframe puts its results in AWS Transform's shape, with generated requirements, and loads Claude's graph into the same Neptune cluster. Optional, and offered by default. | -| 3. Reports | AWS Transform's business review, Claude's business review in the same layout, and a page comparing the two. | -| 4. Reconciliation | `reframe reconcile` turns the two assessments into one recommended set. Rules both tools describe the same way are agreed; Claude decides every other rule against the source code, with evidence Reframe checks; both tools' open questions become one SME list, with the possible defects found in the code; recommended requirements and the reconciliation page are written from the result. You can give it a context folder (documents, review marks, the answered SME list), and running it again redoes only what your answers bear on. It needs no AWS resources. | -| 5. Share | `reframe publish` makes a copy of the reports, cleaned of your account's identifiers, that anyone can open; it includes the reconciliation. | -| 6. Teardown | Only when you run `reframe teardown`, after you consent to the full list. | - -Every change and step is written down before it starts and confirmed after, so a run that stops (an expired sign-in, Claude's usage limit) continues with `reframe resume` without repeating anything. The AWS Transform assessment takes about an hour; the Claude assessment about two, alongside it; the reconciliation about half an hour to an hour and a half of decisions on CardDemo. The stage-by-stage detail is in [docs/specification.md](docs/specification.md), [docs/pipeline-2.md](docs/pipeline-2.md) and [docs/pipeline-3.md](docs/pipeline-3.md). - -## What you need - -- macOS or Linux, with Python 3.10 or later. -- [uv](https://docs.astral.sh/uv/) to install Reframe. The guided run checks the rest and offers to install what is missing: Git, the [AWS CLI v2](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html), [Terraform](https://developer.hashicorp.com/terraform/install) 1.10 or later and the AWS Transform MCP server. -- An AWS account where AWS Transform is available (Reframe uses `us-east-1` by default), and an AWS CLI profile that signs in with IAM Identity Center (`aws sso login`). -- That profile needs permission to create and delete S3 buckets, IAM roles, a VPC with subnets and security groups, a Neptune Serverless cluster, and an AWS Transform workspace, connector and job. - -## Install - -You need macOS or Linux (on Windows, use WSL2), Python 3.10 or later, and [uv](https://docs.astral.sh/uv/). Install Reframe from a clone of this repository on the `develop` branch: - -```bash -uv tool install --reinstall --editable ~/path/to/reframe -``` - -Or, without a clone, straight from GitHub: +![How a Reframe run works: the snapshot, the two assessments side by side, the reports, the reconciliation against the source code, the design, sharing and teardown](docs/images/reframe.svg) -```bash -uv tool install --reinstall "git+https://github.com/sknampally/reframe@develop" -``` +| Step | Command | What happens | +|---|---|---| +| Assess | `reframe run` | One snapshot of the source is assessed by Claude's plugin, and by AWS Transform alongside it if you choose. Each gets a business review. | +| Reconcile | `reframe reconcile` | Claude checks every rule the tools don't describe the same way against the source code. Reframe checks that each cited line exists. Out come recommended rules, requirements and one SME list. | +| Design | `reframe design` | Journeys, modern screens, the prototype, final specifications, golden datasets and the AI-DLC package. A later round redoes only what new context touches. | +| Share (optional) | `reframe publish`, `reframe export` | A copy cleaned of your account's identifiers, to a folder, your AWS account or GitHub Pages; a workbook; a backlog. | -Check it with `reframe --version`. With the editable install, `git pull` in the clone updates Reframe; reinstall only when `pyproject.toml` changes. +Every step is recorded before it starts and confirmed after it ends, so a run that stops (an expired sign-in, Claude's usage limit) continues with `reframe resume` without repeating work. -Everything else a run needs is checked, and installed on request, by the guided run below. +## Quick start -## The home screen +You need macOS or Linux (on Windows, WSL2), Python 3.10 or later and [uv](https://docs.astral.sh/uv/). ```bash -reframe +uv tool install "git+https://github.com/CodeStrata/reframe@v1.0.0" ``` -`reframe` on its own shows your runs (status, stage, Claude's status, the reconciliation's status, when each started, and whether its AWS resources are still in place), the suggested next step, and a numbered menu: - -![The reframe home screen: the runs table, the suggested next step and the numbered menu](docs/images/cli-home.svg) - -An action on a run asks which run, with the latest as the default. After each action the home screen comes back; 0 or Ctrl+D leaves it, and Ctrl+C cancels an action. `reframe --help`, and `--help` after any command, shows the commands or options as a table with examples. +### With Claude only -### All the commands - -| Command | What it does | -|---|---| -| `reframe` | The home screen above | -| `reframe run` | Start an assessment: guided with no options, or straight away with `--source` | -| `reframe setup` | Check and set up the prerequisites and the AWS sign-in, without starting a run | -| `reframe status` | The run's stage, the job's plan steps, any waiting question and the next step | -| `reframe events [--follow]` | The run's event log | -| `reframe answer` | Show AWS's waiting question, or answer it | -| `reframe resume` | Continue a run that stopped, whichever part stopped; nothing with a receipt is repeated | -| `reframe report [--open]` | Build AWS Transform's business review again | -| `reframe claude` | The Claude assessment: the same snapshot, assessed with Claude | -| `reframe compare [--open]` | Build the comparison page again | -| `reframe publish --to ` | A copy of the reports, cleaned of your account's identifiers | -| `reframe reports [open \| download \| teardown]` | The reports published to your AWS account: list, open or save one by project, or remove the bucket | -| `reframe teardown` | List the run's AWS resources, ask for your consent, then remove them | - -Every option and example, with the full `reframe --help` screen, is in [docs/cli.md](docs/cli.md). - -## Run an assessment: the guided way +You need [Claude Code](https://docs.anthropic.com/en/docs/claude-code), signed in with your Claude subscription (or `--auth api-key` with an Anthropic API key, or `--auth bedrock`). You don't need an AWS account. ```bash -reframe run +reframe setup --tools claude ``` -Reframe guides you through five steps and checks each answer before going on: - -1. **Prerequisites.** A table of what a run needs and what this computer has: Git, the AWS CLI v2, uv, Terraform 1.10 or later and the AWS Transform MCP server (Claude Code is listed as optional, for the Claude assessment). For anything missing it shows the install command for your operating system and offers to run it; nothing is installed without your yes. Reframe installs Terraform itself: the pinned HashiCorp release, checked against HashiCorp's SHA-256 sums, kept in `~/.reframe/tools` and used from there, so your PATH, your shell files and any older Terraform stay as they are. -2. **AWS sign-in.** Choose one of your AWS CLI profiles and the region. If the profile is not signed in, Reframe offers to run `aws sso login` for you; you sign in in your browser, and Reframe never sees your credentials. With no profiles, it offers `aws configure sso`. -3. **Source.** A GitHub or Git URL (checked with Git, and optionally a branch, tag or commit), a local folder, or a local ZIP file. -4. **Choices.** Autonomous or interactive (see below), the project name (a short label such as `carddemo`: it names the run's folder, `~/.reframe/projects//runs//`, and starts the name of every AWS resource the run creates, `reframe--`), a new Neptune graph or an existing cluster, and whether to assess the same snapshot with Claude as well (the Claude assessment; see below), with how Claude signs in and the agent limit for rule extraction. -5. **Summary.** What will be created, then one yes to start. The run continues in the background. - -Your profile, region and tool paths are saved in `~/.reframe/config.json` as the next run's defaults. To check the prerequisites and sign in without starting a run: - ```bash -reframe setup +reframe run --tools claude --source https://github.com/aws-samples/aws-mainframe-modernization-carddemo ``` -### Follow the run - ```bash -reframe status +reframe reconcile ``` ```bash -reframe events --follow +reframe design --open ``` -`reframe status` shows the stage, the AWS Transform job's plan steps, any question waiting for you and what to do next. Every command acts on your latest run; add `--run ` for another one. The run ID is printed when the run starts. +
+With AWS Transform as well +
-Open the report when the run is done: +You also need an AWS account where AWS Transform is available, with an AWS CLI profile that signs in through IAM Identity Center. `reframe setup` checks the rest and offers to install it: the AWS CLI, Terraform and the AWS Transform MCP server. ```bash -reframe report --open -``` - -### Run without questions - -When the prerequisites are set up (for example after `reframe setup`, or on a build machine), give the source and Reframe asks nothing. The profile and region default to the ones you saved: - -```bash -reframe run --source https://github.com/aws-samples/aws-mainframe-modernization-carddemo -``` - -```bash -reframe run --source ~/code/my-mainframe-app --profile my-profile --mode interactive +reframe setup ``` ```bash -reframe run --source ~/Downloads/my-mainframe-app.zip --project my-app +reframe run ``` -Add `--ref ` for a Git source, `--region` for another region, `--graph new|existing|` for the Neptune choice, and `--terraform /path/to/terraform` (or `REFRAME_TERRAFORM`) for a Terraform of your own. - -### Autonomous or interactive - -Autonomous is the default: Reframe answers AWS on your behalf and writes each answer and its reason to the run's `decisions.json`. It chooses "Assess and reimagine", gives the uploaded source's location, and selects every business domain plus the unassigned programs, so the whole source is assessed. - -To make the choices yourself, add `--mode interactive`: +The guided run asks for the profile, the source (a folder, a ZIP file or a GitHub URL) and a project name, then runs both assessments in the background. `reframe status` says where a run is and what to do next. When both are done: ```bash -reframe run --source ~/code/my-mainframe-app --profile my-profile --mode interactive +reframe compare --open ``` -When AWS asks something, `reframe status` says so. See the question and its numbered options: - ```bash -reframe answer +reframe reconcile ``` -Answer with the option numbers (several for the catalog, such as `reframe answer 2 3`), or in your own words: - ```bash -reframe answer 1 +reframe design --open ``` -```bash -reframe answer --text "Reimagine business domain \"Payments\"" -``` - -The worker sends your answer within a minute. In autonomous mode, a question Reframe does not recognise also waits for `reframe answer`. - -### Neptune: a new graph or an existing cluster - -By default each run creates its own Neptune Serverless graph in a private network with no internet access. It bills until you run `reframe teardown`. - -To use a Neptune cluster you already have, pass `--graph existing` to choose from a list, or `--graph `. With no `--graph`, interactive mode lists the clusters in the region and asks. Reframe uses an existing cluster as it is and never changes or deletes it. It offers one only if it meets every need: available with an instance, Serverless, engine 1.4.5.1 or later, IAM authentication, encryption, subnets in two availability zones with an S3 gateway endpoint, a security group pair, and a bulk-loader role that can read the run's source bucket. For each cluster it rejects, it says why. - -## If a run stops - -`reframe status` names what happened and the next step. The usual cases: - -| Status | What to do | -|---|---| -| `WAITING_SIGNIN` | Your AWS sign-in expired. Run `aws sso login --profile my-profile`, then `reframe resume`. | -| `WAITING_HUMAN` | AWS is waiting for an answer: run `reframe answer`, then answer it. | -| `UNCERTAIN` | A change was sent but its result is unknown. `reframe resume` checks AWS's state before doing anything again. | -| `FAILED` or `REFUSED` | Read the message and `worker.log` in the run folder, fix what it says, then `reframe resume`. | - -`reframe resume` continues from where the run stopped. Nothing with a receipt is done again. - -## Results - -Everything for a run is in `~/.reframe/projects//runs//`: - -| Path | What it holds | -|---|---| -| `outputs/report/index.html` | The business review report. Rebuild it with `reframe report`. | -| `outputs/requirements/` | AWS's requirements per business function, with `traceability.yaml` linking rules to requirements. | -| `outputs/aws/` | AWS's assessment results. | -| `outputs/catalog/` | The business function catalog (`delivery.zip`, unpacked). | -| `decisions.json` | Every answer Reframe gave on your behalf, and why. | -| `events.jsonl` | The run's event log. | -| `changes/` | The record of every change Reframe made in AWS: what it meant to do, and AWS's receipt. | -| `worker.log` | The background worker's output. | - -## Reviewing the results with the business - -`reframe report --open` opens the business review report. It is one HTML file with everything inside it, so you can send it to business users and functional subject-matter experts as it is; they need only a browser. - -- **It starts at the top:** what was assessed and the business domains. From a domain they go to its business functions, from a function to its capabilities (AWS's user stories), and from a capability to each requirement in plain words, with the business rules behind it and AWS's open questions for the business. A breadcrumb leads back up, and the search box finds any requirement, rule or question. -- **They mark what they read:** Agree, Needs change or Question on each requirement, business rule and open question, with a comment. Progress shows on every domain, function and capability. Marks stay in their browser. -- **They send their review back:** under **Your review** they enter their name and download their marks as a CSV file (for a spreadsheet) or a JSON file. Each row names the domain, function, capability, item, mark and comment, and the file names the run and the source's SHA-256, so a review always matches the code that was assessed. -- **Technical detail** (all requirements and rules in tables, the data model, the assessment, AWS's own pages and Reframe's answers) is in its own section, for engineers. - -## Removing the AWS resources - ```bash reframe teardown ``` -Teardown runs in your terminal and asks before it deletes anything: - -1. It lists every AWS resource the run created, taken only from the run's own records: the AWS Transform job, workspace and connector from their creation receipts, and everything in the run's Terraform state. Nothing is found by name. -2. You type `yes` to delete them all. Anything else keeps them. Your consent, with the list and its hash, is saved in `teardown/consents.json`. -3. It deletes in order: the job, the workspace, the connector, any network interface AWS Transform left in the run's own network, the project resources, then the state bucket. With a new Neptune graph this takes about 15 minutes. -4. It checks every resource tagged with the run and reports anything still in AWS. - -Two things you may see at the end: - -- The AWS Transform connector may be left over. Some roles are not allowed to call DeleteConnector, and AWS often removes the connector itself a little later. Its IAM role is deleted, so it can reach nothing. -- AWS's tag index can list deleted resources for a while. Reframe checks each one in its own service and reports only what still exists. - -If the list changes between your `yes` and the deletion, Reframe stops and asks again. An existing Neptune cluster you chose is never in the list. +
-## The Claude assessment and the comparison +`reframe` on its own shows your runs, the suggested next step and a menu. Run every command from one folder, your workspace: each run lives in `.reframe///` there, with `inputs/` for the context you add and `outputs/` for what Reframe makes. -The guided `reframe run` offers the Claude assessment, with yes as the default. It runs alongside the AWS Transform assessment in a worker of its own: it starts as soon as the run's AWS resources exist (about ten minutes in), while AWS Transform is still working, and its comparison waits for AWS Transform's results. To add it to a run you already have, or to start it later (for example once your Claude usage limit resets): +## Proof on CardDemo -```bash -reframe claude -``` - -| Stage | What happens | +| | On AWS's CardDemo (44 COBOL programs, 21 screens) | |---|---| -| C0. Preflight | Checks Claude Code and its sign-in, Python 3, and the code-modernization plugin. Reframe fetches the plugin itself, at one pinned commit of Anthropic's plugin repository, and loads it only for its own runs. Nothing is installed into your Claude Code settings. | -| C1. Workspace | The run's snapshot is unpacked read-only in the run folder, after its SHA-256 is checked against the one AWS Transform assessed. Nothing of AWS Transform's results is in it. | -| C2-C4. The plugin's steps | `preflight`, `assess`, `map` and `extract-rules`, each run headless with `claude -p`. Before rule extraction Reframe shows the plugin's estimate (on CardDemo, 38 to 41 shards: up to about 615 agents and 9 million tokens, about an hour; a run uses about 430 to 480 agents) and goes ahead only within your agent limit. | -| C5. Retrieval | The plugin's files are kept as written and read into the report: the assessment, the map, the rule cards and the open questions. The snapshot is checked again, to prove nothing changed. | -| C6. Requirements | Claude's plugin writes rule cards, not requirements. Reframe asks Claude, one domain at a time, to write requirements in AWS Transform's shape from those rule cards. Each one must cite a rule card or a source line that exists, and each is labelled **generated by Reframe from Claude's results**. | -| C7. Graph | Claude's map and rules go into the run's Neptune cluster as their own named graph, beside AWS Transform's, through a small loader function in the run's private network. | -| C8. Reports | Claude's business review, in the same layout as AWS Transform's, and the comparison page. | - -Options: - -- `--auth subscription` (the default) signs Claude in with your Claude subscription. `--auth bedrock` uses Amazon Bedrock with the run's AWS profile, or a Bedrock API key in `AWS_BEARER_TOKEN_BEDROCK`. -- `--max-agents` sets the agent limit for rule extraction (default 600). It is a ceiling, not a target: Reframe stops and asks only if the estimate is higher. For CardDemo use 650 or more, so the run does not stop to ask. -- `--graph-load yes` loads Claude's graph into an existing Neptune cluster. A graph the run created is loaded by default. -- If Claude's usage limit is reached, the run stops and says so. When the limit resets, `reframe resume` continues where it stopped, and runs extraction again for any modules the plugin did not finish. - -```bash -reframe compare --open -``` - -This opens the comparison page. It starts with the numbers side by side, then goes down: - -- **Domains:** each AWS domain with the Claude domains that hold the same programs. -- **Programs:** each program, and which tool covered it. -- **Rules by program:** the two tools' rules about the same program, side by side. -- **AI-paired rules:** pairs proposed by Claude, labelled as AI output, each with a reason and a confidence. You mark each pair Right or Wrong. -- **Only one tool:** what only one tool found. +| Recommended business rules | 1,185, each citing its source lines; 51 of 56 sampled judged correct ([the audit](docs/pipeline-3.md#81-the-accuracy-audit-p3-11)) | +| Requirements | 1,136, in 154 capabilities (52 signed off as final) | +| Acceptance criteria | 1,503 in Given/When/Then, from the rules' worked examples | +| Golden datasets | 1,595 cases the new system must answer as the old one does ([how](docs/pipeline-4.md#d10-golden-datasets-and-equivalence-tests-p4-11)) | +| The design | 20 modern screens for 21 legacy ones, 683 legacy items mapped, 17 journeys, 40 data contracts | +| The package | Kiro, Claude Code and Spec Kit forms, with every ID traced to the legacy source; every check passed | -Both results are model output, and the page says so. +Everything Reframe writes is model output for people to review, and the pages say so. -`reframe teardown` also removes the Claude assessment's graph loader function. It waits until AWS has released the function's network interfaces, about 20 minutes, before it deletes the network. +## What it takes -## The reconciliation - -When both assessments are done, `reframe reconcile` turns the two assessments into one recommended set, deciding against the source code whatever the two tools do not describe the same way ([docs/pipeline-3.md](docs/pipeline-3.md)). It needs no AWS resources, so it works after `reframe teardown`, and it runs on your Claude sign-in, as the Claude assessment does. - -```bash -reframe reconcile --context ~/carddemo-context # gathers everything, shows the estimate, and stops above the batch limit -reframe reconcile --max-batches 113 # go ahead with the estimate it showed -reframe status # progress, the decisions, the SME list and the requirements -reframe reconcile --open # the reconciliation page -``` +| Step | Time | At API prices, on CardDemo | +|---|---|---| +| Claude assessment | about 2 hours | the plugin's agents, on your Claude subscription, within an agent limit you set | +| AWS Transform assessment | about 1 hour, alongside Claude | AWS charges for the job and the run's resources, until `reframe teardown` | +| Reconciliation | 30 to 90 minutes | about $30 to $70 for a full round; a later round only what changed. With Claude only, every rule is checked: estimated $15 to $40 | +| Design | about 30 to 60 minutes | about $35 for a first round; a round that redoes every screen about $60 | +| Publish, package, export | seconds | none | -**Your context folder** is optional and holds three kinds of file, read by kind: +The figures are from live runs and are recorded in [docs/acceptance.md](docs/acceptance.md), [docs/pipeline-3.md](docs/pipeline-3.md) and [docs/pipeline-4.md](docs/pipeline-4.md). -- **Documents:** Markdown, text, PDF or Word, for example a glossary or a process description. They are given to every decision. -- **Review exports:** the JSON files you download from the business reviews (*Your review*, *Download as JSON*). A *Needs change* or *Question* mark sends its rule to an agent with your comment; an export of another snapshot is ignored and reported. -- **Answered questions:** the SME list with its `answer` column filled in, as CSV or JSON. +## Documentation -**What it does:** - -1. Rules both tools describe the same way are agreed without an agent. -2. Every other rule is decided by a headless Claude step that reads the source code: overlapping and conflicting rules merged into the rules the code supports, rules only one tool found kept or rejected, and what the code cannot settle turned into a question. Reframe checks every answer: each cited line exists in the snapshot, and every input rule is covered. A failed answer is asked once more, then becomes a question. -3. Both tools' open questions and its own are merged into **one SME list**, `reconcile/questions.csv` in the run folder, with the possible defects found in the code. -4. **Recommended requirements** are written from the recommended rules, in AWS Transform's domains and business functions. -5. The **reconciliation page** shows each recommended rule with how it was decided, both tools' originals side by side and the cited source lines; the requirements; and the SME list. The other three pages link to it, and `reframe publish` includes it as `reconciled/`. - -**Running it again.** Fill in the SME list's `answer` column, put the file in your context folder, and run `reframe reconcile` again. Only the rules an answer or a review mark bears on are decided again; the rest keep their decisions, and the page shows which round decided each rule. - -**On CardDemo** (run fa1f61, 24 November 2026), the estimate was 113 batches, 29 to 87 minutes and $56 to $130 at API prices. The run used about $67 at API prices. It decided 431 units with evidence that all exists in the snapshot and covered all 1,111 input rules. It wrote 1,204 recommended rules, 1,153 requirements and an SME list of 313 questions (from 349) with 187 possible defects. Run again with one more answered question, it decided 5 units again in 2 batches and kept 426. On the Claude subscription a full run can reach the five-hour usage limit; it stops with the reason, and `reframe resume` continues where it stopped. - -## Sharing the reports - -```bash -reframe publish --to reports/my-system -``` - -This copies a run's reports into a folder that anyone can open in a browser, without Reframe or access to your AWS account: - -- AWS Transform's review, Claude's review and the comparison, with their links working inside the copy; -- the plugin's own report and interactive map; -- an index page naming the source, its commit and SHA-256, and when each assessment ran. - -Before anything is written, Reframe removes the AWS account ID, ARNs, S3 locations, the run's resource names, AWS IDs, your profile name, e-mail addresses and local paths. It then checks the whole copy and refuses to write if any are left. - -**On a Mac, publish outside Desktop, Documents and Downloads.** macOS keeps those folders private: a browser that has not been given access to one opens `index.html` but not the pages it links to. Reframe warns when you publish there. Use a folder such as `~/reframe-reports/`, or give the browser access in System Settings > Privacy & Security > Files and Folders. - -**In your AWS account, for people who can sign in to it:** - -```bash -reframe publish --to aws -``` - -This uploads the cleaned copy to a private bucket in your account: encrypted, versioned, with no public access, refusing any request not over TLS. Reframe creates the bucket the first time, with its own Terraform state in `~/.reframe/reports-store`. Only someone whose AWS sign-in may read the bucket can open the reports; there is no public address. - -```bash -reframe reports -``` - -```bash -reframe reports open carddemo -``` - -```bash -reframe reports download carddemo --to ~/reframe-reports/carddemo -``` - -`reframe reports` lists what is published. `reframe reports open ` downloads the project's latest report with your AWS sign-in and opens it in your browser; `--run ` picks an older one. `reframe reports download` saves it in a folder instead, to keep or send on. These work on any computer whose AWS sign-in can read the bucket: Reframe finds the bucket by its tags, so the person who published only needs to tell you the project's name. - -**Without Reframe:** every published report also has one file, `//report.zip`. Sign in to the AWS console, open the `reframe-reports-…` bucket in S3, download that file, unzip it and open `index.html`. - -`reframe reports teardown` removes the bucket and everything in it, after you consent to the list. Only the computer that published can do this. - -**Try it without running anything:** [the CardDemo reports](reports/carddemo/index.html) in this repository are a published copy of a full run of both assessments on AWS's CardDemo sample. Clone the repository and open `reports/carddemo/index.html` in a browser. - -## Code layout - -| Folder | What it does | +| Read | For | |---|---| -| `src/reframe/core/` | The CLI, the run folder and its change records, preflight, the stage pipeline and teardown | -| `src/reframe/source/` | Taking the source snapshot and uploading it to S3 | -| `src/reframe/infrastructure/` | The Terraform roots and modules, the Neptune cluster checks and the network clean-up | -| `src/reframe/transform/` | AWS Transform: the MCP client, the workspace and connector, the job driver, answering questions, retrieval | -| `src/reframe/claude/` | The Claude assessment: the pinned plugin, running Claude Code headless, the workspace, the plugin's steps, retrieval, the generated requirements and the graph load | -| `src/reframe/reconcile/` | The reconciliation: the inputs and context folder, the agreed rules, units and batches, the decisions against the source, the SME list and the recommended requirements | -| `src/reframe/report/` | The business review reports, the comparison page, the reconciliation page and `reframe publish` | -| `tests/` | Offline tests for each folder above; they run on every pull request | +| [How to run Reframe](docs/how-to-run.md) | One page from install to handover | +| [The guide](docs/guide.md) | Every step in detail: the guided run, Claude only, results, reviews, the reconciliation, the design, sharing and teardown | +| [Commands](docs/cli.md) | Every command, option and example | +| Specifications | [The AWS Transform assessment](docs/specification.md), [the Claude assessment](docs/pipeline-2.md), [the reconciliation](docs/pipeline-3.md), [the design](docs/pipeline-4.md), [sharing](docs/sharing.md), [release 1.0](docs/release-1.md) | +| [The plan](docs/plan.md) | Every story, with what done means and the results | -Run the tests from a checkout: +## Roadmap -```bash -python -m unittest discover -s tests -t . -``` +- **Beyond the mainframe (1.1):** any legacy codebase Claude's plugin reads (Java, .NET, PHP and more), with Claude only, and screens, flows and data contracts read for each stack ([the specification](docs/any-legacy.md)). +- **Proof at scale:** a codebase several times CardDemo's size, and a mainframe expert's own check of the audit. +- **Later:** a replacement order from the specifications, real legacy outputs under GnuCOBOL, and Claude on Amazon Bedrock, live ([docs/plan.md](docs/plan.md)). -## Next +## Contributing -Next, in [docs/plan.md](docs/plan.md): - -- **Final requirements** (planned as pipeline 4) produces the final requirements, business rules and wireframes from the reconciliation and the reviews. - -Earlier work stays in the repository's history: the build before this rebuild ends at commit `000b816`, and releases are tagged on `main`: `v0.3.0`, the first, and `v0.4.0`, the three pipelines (AWS Transform assessment, Claude assessment and reconciliation). +Issues and pull requests are welcome. [CONTRIBUTING.md](CONTRIBUTING.md) says how to set up, run the offline tests and checks, and propose a change, and [SECURITY.md](SECURITY.md) how to report a problem privately. What has changed in each release is in [CHANGELOG.md](CHANGELOG.md). ## License MIT. See [LICENSE](LICENSE). + +The example reports describe AWS's [CardDemo](https://github.com/aws-samples/aws-mainframe-modernization-carddemo), under the Apache License 2.0; the extracts they quote stay AWS's ([notice](reports/carddemo/NOTICE.md)). Reframe is not made or endorsed by AWS or Anthropic. diff --git a/SECURITY.md b/SECURITY.md index 7aa09437..e0720337 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -16,4 +16,10 @@ Do not open a public issue containing an exploit, secret, or private data. Use t Stop further publication, notify the owner privately, and revoke or rotate exposed credentials immediately. Assess scope and access; coordinate any history cleanup with the owner. Deleting a file in a later commit does not remove it from Git history, forks, caches, or downloads. Do not republish the sensitive value in the cleanup report. -For future integrations, use least privilege, explicit tool scopes, bounded budgets, auditable human decisions, and external secret storage. These are design requirements, not implemented controls in this release. +## What Reframe does to protect you + +- **Recorded changes.** Every change Reframe makes in AWS or GitHub has an intent and a receipt in the run folder. +- **Consent first.** Teardown deletes only what those records say Reframe created, after you type `yes`. Publishing to GitHub Pages, which is public, also waits for a typed `yes`. +- **Cleaned copies.** `reframe publish` removes account IDs, ARNs, S3 locations, resource names, profile names, e-mail addresses and local paths, and refuses to write if any are left. +- **No keys kept.** Reframe stores no credentials. It signs in with your AWS CLI profile, Claude Code's own sign-in and your `gh` sign-in. +- **A private bucket.** `reframe publish --to aws` uploads the run's own `source/` and `results/` uncleaned, so give read access to the bucket only to people who may see the code. diff --git a/docs/any-legacy.md b/docs/any-legacy.md new file mode 100644 index 00000000..56499496 --- /dev/null +++ b/docs/any-legacy.md @@ -0,0 +1,161 @@ +# Reframe specification: any legacy codebase (release 1.1) + +The owner's direction (27 November 2026): Reframe should not be only for mainframes. It should take any legacy codebase that the tools it drives support, and give the same result: reviewed requirements and business rules, checked against the source, and a package to build from. + +Status: **draft for the owner's agreement.** When it is agreed, its stories go into [the plan](plan.md) with an issue each, and are built on a phase branch, as [CONTRIBUTING.md](../CONTRIBUTING.md) says. It builds on release 1.0 ([release-1.md](release-1.md)) and changes nothing in it. + +## 1. Goal + +Someone with a legacy application in any language can, with Claude only: + +1. **assess it:** what it does, as business rules, each citing its source lines; +2. **reconcile it:** every rule checked against the source code, with the evidence checked by Reframe; +3. **design from it:** final specifications with acceptance criteria and data contracts, golden datasets, an AI-DLC package and a backlog; +4. **see the screens and flows** where the application has them, in a form that suits its stack. + +Mainframe stays the strongest case: the only one with two independent assessments (AWS Transform and Claude) reconciled against each other, and with exact readers for screens, flows and copybooks. + +## 2. What each tool supports + +| | AWS Transform | Claude's code-modernization plugin | +|---|---|---| +| **Mainframe** (COBOL, PL/I, JCL, CICS, BMS) | An assessment with business functions, requirements and business rules: what pipeline 1 reads | Assessment, map and business rules | +| **Other stacks** | It transforms code (.NET Framework to modern .NET, Java upgrades, VMware, and custom transformations) but writes no requirements or business rules to reconcile | Assessment, map and business rules for any language. Tried by its authors on Java (Jetty, JSP, Spring), PHP, Perl, Python 2, AngularJS, Rails, .NET Framework and C | + +So outside the mainframe, a run is **Claude only**, the release 1.0 mode in which every Claude rule is checked against the code. If AWS Transform later writes requirements for other stacks, a second assessment can be added the way pipeline 1 was. + +## 3. What is tied to the mainframe today + +| Area | Tied to the mainframe | What changes | +|---|---|---| +| Snapshot, run folder, resume, publish, teardown | No | Nothing | +| Pipeline 1 (AWS Transform) | Yes, by AWS's design | Offered only for a mainframe codebase (section 5.1) | +| Pipeline 2 (Claude's plugin) | Barely: a program's name is its file's stem in capitals, as COBOL members are named | Names from the stack profile (section 5.2) | +| Pipeline 3 (the reconciliation) | In its words: the prompts speak of readers who "do not read COBOL" and of following "a PERFORM, CALL or copybook"; the source files read are a list of mainframe suffixes | Words and suffixes from the stack profile (section 5.3) | +| Pipeline 4 (the design) | **Yes:** D1 reads BMS maps, D2 follows CICS transfers, the legacy screens are drawn as 3270, D6's data contracts come from COBOL copybooks, and "runs as" looks for CICS and JCL | Readers chosen by the stack profile, with a general reader for any stack (section 5.4) | +| Specifications, package, golden datasets, backlog | No | Their words only | + +## 4. The stack profile (L1-01) + +After the snapshot, Reframe works out what the codebase is, with no model, and records it in `stack-profile.json` in the run folder: + +- **Languages,** counted by file: by extension, and by content where an extension is shared (`.inc`, `.h`, `.prc`). +- **Its family,** from the languages that carry most of the code: + + | Family | Recognised by | Readers in 1.1 | + |---|---|---| + | `mainframe` | COBOL, PL/I, JCL, BMS, HLASM, CICS CSD | The exact ones that exist (BMS, CICS flow, copybooks) | + | `java` | Java, JSP, JSF, Groovy, Kotlin, Struts or Spring configuration | General | + | `dotnet` | C#, VB.NET, ASP.NET (`.aspx`, `.cshtml`), `web.config` | General | + | `web-script` | PHP, Perl, Ruby, Python, classic ASP | General | + | `front-end` | JavaScript and TypeScript applications (AngularJS and the like) | General | + | `native` | C, C++ | General | + | `4gl` | RPG, Natural, Progress 4GL, PowerBuilder, VB6, Delphi, Oracle Forms | General, unproven | + | `mixed` | No family carries most of the code | General | + +- **What it has,** each with the files that show it: + - **user interface:** screen definitions, views, templates or forms; + - **routes:** HTTP endpoints, controllers, menu or transaction definitions; + - **jobs:** JCL, cron entries, Quartz or Spring Batch jobs, Windows tasks, batch scripts; + - **data:** SQL DDL, ORM mappings, entity or record definitions. +- **What it is told:** `reframe run --legacy ` overrides the family. The guided run shows the profile and asks only when no family carries most of the code; in autonomous mode Reframe takes `mixed`. + +The profile is shown by `reframe status`, carried into the reports' About section, and read by every later stage. It records the language words each prompt uses: `COBOL`, or `Java and JSP`. + +## 5. Changes by pipeline + +### 5.1 Pipeline 1, AWS Transform (L1-02) + +- `--tools both` and `--tools aws` are offered only when the profile's family is `mainframe`. For any other family, `reframe run` stops before anything is created, with the fix: run Claude only. The guided run does not offer AWS Transform. +- Nothing else in pipeline 1 changes. + +### 5.2 Pipeline 2, Claude's plugin (L1-02) + +- **A program's name** comes from the profile. For the mainframe it stays the member name; for other families it is the file's path within the source (`src/main/java/org/x/OrderService.java`), so two files of the same name in different folders stay apart. +- The plugin's own commands are unchanged: they already take any language. +- The estimate and the agent limit are unchanged. + +### 5.3 Pipeline 3, the reconciliation (L1-03) + +- **The prompts** take their words from the profile: readers "who do not read Java", and "follow a call, an include, an import or an inherited method" in place of "a PERFORM, CALL or copybook". The rules stay in the business form ("WHEN ..., THE ... SHALL ..."). +- **The source files read** are those of the profile's languages, in place of the mainframe suffixes. +- **The evidence check** is unchanged: every cited line must exist in the snapshot. +- **The accuracy audit and the expert's pack** work as they are. The pack's guide names the stack. + +### 5.4 Pipeline 4, the design (L1-04 to L1-07) + +**Readers.** Each design stage that reads the legacy source goes through a reader chosen by the profile: + +| Stage | Mainframe reader (exists) | General reader (new) | +|---|---|---| +| D1 Screens | BMS maps, with no model | The views, pages and forms the profile found. One model step per batch of files lists each screen's fields (label, kind, validation) and actions (buttons, links, submits), each citing its lines | +| D2 Flow | CICS transfers and the CSD, with no model, and a model step for what stays open | Routes and links: controllers and route tables, form targets, redirects, menu definitions. Read with no model where a pattern settles it (an `href`, an `action`, a `@RequestMapping`, a route table), and by a model step for the rest. Every link cites its lines | +| Legacy screens | Drawn as 3270 copies | A field list per screen, with a link to its source file. No rendering of the old page in 1.1 | +| D6 Data contracts | COBOL copybooks, with no model | SQL DDL (`CREATE TABLE`, with types, keys and constraints), with no model. Entity and record classes (JPA, Entity Framework, plain classes) by a model step that cites each field's line | +| "Runs as" | CICS transactions and JCL | **Online** where a capability's rules are reached from a screen or an HTTP route; **scheduled job** from cron, Quartz, Spring Batch, Windows tasks or JCL; **service** from routes with no screen; **library** otherwise | + +**The same checks for every reader.** A general reader's answer is checked as the reconciliation checks its rules: every cited line exists, every screen names a file the profile found, and every link joins two things that exist. An answer that fails is asked again once with the reason; then it is kept as unresolved, never guessed. The design page says which reader made each part. + +**A codebase with no screens** (a batch system, a service, a library) is designed without them. The journeys, modern screens and prototype are left out and the page says why. The final specifications, golden datasets, package and backlog are written as today. + +**Journeys, modern screens and the prototype** work from the screens and flow the reader gives them, whatever made them. The modern screen mapping maps legacy fields, whether a BMS field or a form input. + +### 5.5 What follows the design (L1-08) + +- The package, golden datasets, backlog and reports change only their words: "the legacy source", not "the mainframe". START-HERE names the stack. +- The golden datasets' targets are unchanged: a screen, a job or a service. + +## 6. Words, README and docs (L1-08) + +- **The tagline** becomes: *From legacy source to reviewed requirements, business rules and a design to build from.* Mainframe is named as the deepest case: two assessments reconciled, with exact readers. +- **The README** says what each family gets, in one table: the tools, the readers, and what is proven. +- **The guide** gets a section per family worth one, starting with the mainframe as it is. +- **The words** "mainframe", "COBOL" and "copybook" stay where they mean exactly that. + +## 7. Proving it (L1-09) + +- **Offline:** small synthetic fixtures for each reader and for the profile: a Java web application, a .NET one, a PHP one and a batch-only one. They are written for the tests, with no code taken from anyone. +- **Live, on the owner's yes with an estimate before each run,** and run locally. Nothing from these codebases is committed or published (the owner's decision of 26 November 2026). Two candidates the plugin's authors have already run: + - [dotnet-architecture/eShopModernizing](https://github.com/dotnet-architecture/eShopModernizing): .NET Framework web forms and MVC, MIT, archived; + - [mybatis/jpetstore-6](https://github.com/mybatis/jpetstore-6): Java with Stripes and JSP, Apache-2.0. +- **Done when,** on each, from `reframe run --tools claude` to `reframe design` and `reframe export`, with no stop that needs a code fix: + - the profile is right; + - every rule's evidence exists; + - the screens and flow cover every view the profile found, or say why not; + - the data contracts come from the schema or the entities; + - the package's checks pass. +- **Recorded in this document:** the time, agents and cost of each run, and what was found and fixed. + +## 8. Not in 1.1 + +- **AWS Transform for other stacks.** It transforms code rather than documenting it, so there is nothing to reconcile yet. Revisit if AWS adds requirements for them. +- **Exact readers beyond the mainframe** (ASP.NET, JSP and Struts, Spring MVC). The general reader comes first; an exact one is added where the live runs show it pays. +- **PL/I exact readers and the DSF codebase** ([SC-01](spikes/sc-01-larger-codebase.md)): a story of their own. PL/I is a mainframe language, so it already gets the profile and the general readers. +- **Proving the `4gl` family.** It runs on the general readers, unproven, until a codebase with a licence that allows testing is found. +- **Rendering old web pages** beside the modern screens. + +## 9. Decisions for the owner + +| Decision | Proposed | +|---|---| +| Release | 1.1, after 1.0 is tagged | +| The two live codebases | eShopModernizing (.NET) and JPetStore 6 (Java), run locally only | +| General reader before exact readers | Yes: one reader for every stack first, checked as rules are | +| A codebase whose family is unclear | The guided run asks; autonomous mode takes `mixed` | +| The tagline | As in section 6 | + +## 10. Stories + +| Story | Title | Section | Done when | +|---|---|---|---| +| L1-01 | The stack profile | 4 | `stack-profile.json` names the languages, family, screens, routes, jobs and data with the files that show them, for each test fixture; `--legacy` overrides it; status and the reports show it | +| L1-02 | Pipelines 1 and 2 by profile | 5.1, 5.2 | AWS Transform is offered only for `mainframe`, and refused before anything is made otherwise; program names follow the profile | +| L1-03 | A reconciliation in the stack's words | 5.3 | The prompts and source files come from the profile; the evidence check, the audit and the expert's pack work on a non-mainframe fixture | +| L1-04 | A design without screens | 5.4 | A batch or service fixture gets its specifications, golden datasets, package and backlog, with journeys, screens and the prototype left out and the page saying why | +| L1-05 | Screens and flow from any stack | 5.4 | The general reader lists each view's fields and actions and the routes and links between them, each citing lines and checked; patterns that settle a link need no model; what fails twice is unresolved | +| L1-06 | Data contracts from any stack | 5.4 | SQL DDL is read with no model; entity classes by a checked model step; the target stack's types apply as today | +| L1-07 | "Runs as" for any stack | 5.4 | Online, scheduled job, service or library from screens, routes and job definitions, for each fixture | +| L1-08 | Words, README and docs | 5.5, 6 | The tagline, the README's table by family, the guide and every stage's words follow section 6 | +| L1-09 | Live acceptance on two codebases | 7 | Section 7's *done when* on eShopModernizing and JPetStore 6, run locally, nothing committed, the results recorded here | + +**Estimate:** about two to three weeks of build. L1-05 is the largest part; L1-01 to L1-04 and L1-08 are small. The live runs' cost is estimated before each one. diff --git a/docs/cli.md b/docs/cli.md index b5b14ba8..bdde6f59 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -1,6 +1,6 @@ # Reframe command reference -Every command, its options and examples, as `reframe --help` and `reframe --help` show them. The [README](../README.md) explains what each pipeline does; this page is the list to keep open while you work. +Every command, its options and examples, as `reframe --help` and `reframe --help` show them. [The guide](guide.md) explains what each pipeline does; this page is the list to keep open while you work. ## The home screen @@ -8,7 +8,7 @@ Every command, its options and examples, as `reframe --help` and `reframe # the snapshot and the Claude assessment, in the background +reframe status # where the run is and what to do next +reframe report --open # Claude's business review +reframe reconcile # every rule checked against the source code +reframe design --open # the design, the prototype and the AI-DLC package +reframe publish --to reports/ # optional: a cleaned copy to share +``` + +## A full run with both tools, start to finish + +The short version, with the folder layout, is [How to run Reframe](how-to-run.md). Run every command from your workspace folder: each run lives in its `.reframe///`. ```bash aws sso login --profile my-profile # sign in to AWS; Reframe never sees your credentials @@ -46,8 +61,13 @@ reframe claude # the Claude assessment, if you did no reframe compare --open # AWS Transform and Claude compared reframe reconcile --context # the reconciliation: shows the estimate, and stops above the batch limit reframe reconcile --max-batches # go ahead with the estimate it showed -reframe reconcile --open # the reconciliation page -reframe publish --to aws # a cleaned copy in your account's private reports bucket +reframe reconcile --open # the reconciliation page, opening with Review first +reframe review --context # several reviewers' downloads: coverage, sign-offs, disagreements +reframe export --to xlsx # the reconciled results as one Excel workbook +reframe design --plan # the design: what a round would redo, with no Claude step +reframe design --open # run a design round, then open the design page +reframe design --package # the AI-DLC package, cleaned, for the forward build +reframe publish --to aws # the run's source, results and reports in your account's private bucket reframe reports open # open the project's latest published copy with your AWS sign-in reframe teardown # remove the run's AWS resources, after you type yes ``` @@ -66,7 +86,7 @@ Every command acts on your latest run; add `--run ` for another one. The **The agent limit** is a ceiling, not a target: before rule extraction Reframe compares the plugin's upper estimate with it, and stops to ask if the estimate is higher. On CardDemo the estimate is 38 to 41 shards, up to about 615 agents, and a run uses about 430 to 480; a limit of 650 to 900 lets it go ahead without asking. -**The reconciliation** needs both assessments done and no AWS resources, so it can run after `reframe teardown`. The context folder holds documents (Markdown, text, PDF, Word), review exports downloaded from the business reviews, and the SME list (`reconcile/questions.csv` in the run folder) with its `answer` column filled in. Run `reframe reconcile` again with more answers or marks and only the rules they bear on are decided again. If Claude's usage limit stops it, `reframe resume` continues. On CardDemo the estimate is 113 batches, 29 to 87 minutes, $56 to $130 at API prices; the acceptance run used about $67. +**The reconciliation** needs the run's assessments done (both, or Claude's on a Claude-only run) and no AWS resources, so it can run after `reframe teardown`. The context folder holds documents (Markdown, text, PDF, Word), review downloads (JSON or CSV) from any number of reviewers, with their sign-offs, and the SME list (`reconcile/questions.csv` in the run folder) with its `answer` column filled in. Run `reframe reconcile` again with more answers or marks and only the rules and functions they bear on are done again; a rule marked *Agree* is kept. If Claude's usage limit stops it, `reframe resume` continues. On CardDemo the estimate is 113 batches, 29 to 87 minutes, $56 to $130 at API prices; the acceptance run used about $67. **Starting the Claude assessment later.** If your Claude usage limit is close, answer no to Claude in the guided run and run `reframe claude` once the limit resets. On a run whose AWS resources are still being created, it is recorded and starts as soon as they exist; on a run that is further along, it starts at once, alongside AWS Transform. @@ -74,7 +94,7 @@ Every command acts on your latest run; add `--run ` for another one. The ### `reframe run` -Assess mainframe source with AWS Transform: with no options, a guided run that checks and sets up everything first; the AWS resources stay until reframe teardown. +Assess mainframe source with AWS Transform and Claude, or with Claude only (--tools claude, no AWS): with no options, a guided run that checks and sets up everything first; the AWS resources stay until reframe teardown. | Option | What it does | |---|---| @@ -87,10 +107,16 @@ Assess mainframe source with AWS Transform: with no options, a guided run that c | `--graph ` | new, existing (choose from a list) or the name of an existing Neptune cluster (default: interactive mode asks; autonomous mode creates a new graph) | | `--terraform ` | the Terraform binary to use (default: REFRAME_TERRAFORM, then the one Reframe installed, then terraform on PATH) | | `--foreground` | run in this terminal instead of a background worker | +| `--tools both\|claude\|aws` | both: AWS Transform and Claude, side by side (needs an AWS account); claude: Claude only, with no AWS at all; aws: AWS Transform only (reframe claude adds Claude later) | +| `--max-agents ` | the agent limit for Claude's rule extraction (default 600; use 650 or more for CardDemo) | +| `--auth subscription\|api-key\|bedrock` | how Claude signs in: your Claude subscription (default), an Anthropic API key in ANTHROPIC_API_KEY, or Amazon Bedrock (with --tools claude, --profile and --region are used for Bedrock only) | ```bash reframe run # guided: asks for everything it needs reframe run --source https://github.com// # a GitHub repository, latest commit +reframe run --tools claude --source app.zip # Claude only, with no AWS: the assessment, then reframe reconcile and reframe design +reframe run --tools claude --auth api-key --source app.zip # Claude only, billed to ANTHROPIC_API_KEY +reframe run --tools claude --auth bedrock --profile bedrock-dev --region us-west-2 --source app.zip # Claude on Bedrock; no AWS resources reframe run --source ~/code/app --ref release-1 # a local Git checkout, at a branch, tag or commit reframe run --source app.zip --mode interactive # a ZIP file; you answer AWS's questions with reframe answer ``` @@ -99,6 +125,15 @@ reframe run --source app.zip --mode interactive # a ZIP file; you answer Check and set up the prerequisites and the AWS sign-in, without starting a run. +| Option | What it does | +|---|---| +| `--tools both\|claude` | both: everything, with the AWS sign-in; claude: only Git, Claude Code and the plugin, with no AWS | + +```bash +reframe setup # everything a run with both tools needs, and the AWS sign-in +reframe setup --tools claude # only Git, Claude Code and the plugin, for a Claude-only run +``` + ### `reframe status` The run's stage, the job's plan steps, any waiting question and the next step. @@ -174,7 +209,7 @@ The Claude assessment: assess the same snapshot with Claude's code-modernization | Option | What it does | |---|---| | `--run ` | the run to act on (default: the latest run) | -| `--auth subscription\|bedrock` | how Claude signs in: your Claude subscription (default) or Amazon Bedrock with the run's AWS profile | +| `--auth subscription\|api-key\|bedrock` | how Claude signs in: your Claude subscription (default), an Anthropic API key in ANTHROPIC_API_KEY, or Amazon Bedrock with the run's AWS profile or AWS_BEARER_TOKEN_BEDROCK | | `--max-agents ` | the agent limit for rule extraction (default: 600) | | `--mode autonomous\|interactive` | default: the run's mode | | `--graph-load yes\|no` | load Claude's graph into the cluster (default: yes on a graph the run created, no on an existing cluster) | @@ -187,13 +222,13 @@ reframe claude --max-agents 650 # a higher agent limit, so a larger estimate do ### `reframe reconcile` -The reconciliation: decide every rule the two assessments do not agree on against the source code, with evidence Reframe checks, then write recommended requirements, one SME list and the reconciliation page; needs both assessments done, and no AWS resources. +The reconciliation: decide every rule the two assessments do not agree on (with Claude only, every rule) against the source code, with evidence Reframe checks, then write recommended requirements, one SME list and the reconciliation page; needs the run's assessments done, and no AWS resources. | Option | What it does | |---|---| | `--run ` | the run to act on (default: the latest run) | -| `--context ` | a folder of context: documents (Markdown, text, PDF, Word), review exports and answered questions | -| `--auth subscription\|bedrock` | how Claude signs in (default: as for the Claude assessment) | +| `--context ` | a folder of context: documents (Markdown, text, PDF, Word), review downloads (JSON or CSV, with sign-offs) and answered questions | +| `--auth subscription\|api-key\|bedrock` | how Claude signs in (default: as for the Claude assessment) | | `--max-batches ` | the limit for the decisions; Reframe stops and asks above it (default: 120) | | `--foreground` | run in this terminal instead of a background worker | | `--open` | open the reconciliation page instead of running | @@ -205,6 +240,70 @@ reframe reconcile --max-batches 120 # go ahead with a larger estimat reframe reconcile --open # open the reconciliation page ``` +### `reframe review` + +Read the review downloads in a folder and show each reviewer's coverage, sign-offs and where reviewers disagree; runs nothing, and the next reframe reconcile --context with the same folder combines them. + +| Option | What it does | +|---|---| +| `--run ` | the run to act on (default: the latest run) | +| `--context ` | the folder holding the review downloads (JSON or CSV) | + +```bash +reframe review --context ~/carddemo-context # each reviewer's coverage, sign-offs and disagreements in the folder's review downloads +``` + +On CardDemo (25 November 2026) it read a JSON and a CSV download, showed each reviewer's sign-off and the one item they marked differently; the next round decided only that item's unit again. It writes `reconcile/reviews.json` in the run folder. A download of another snapshot, or a CSV downloaded before part 2 (without a `key` column), is listed as ignored with the reason. + +### `reframe export` + +Write a run's results for other tools: the reconciled results as one Excel workbook (xlsx), or the design's capabilities as a backlog to import into Jira or Azure DevOps, with acceptance criteria; runs nothing. + +| Option | What it does | +|---|---| +| `--run ` | the run to act on (default: the latest run) | +| `--to xlsx\|jira\|azure-devops` | xlsx: an Excel workbook of the reconciled results; jira or azure-devops: that tool's CSV import file of the design's backlog | +| `--out ` | the file or folder to write it to (default: in the run folder's outputs/) | +| `--context ` | xlsx only: a folder of review downloads whose marks to add (default: the reconciliation's context folder) | +| `--open` | open the file when written | + +```bash +reframe export --to xlsx # the latest run's reconciled results as an Excel workbook in its run folder +reframe export --to xlsx --out ~/Desktop --open # write it to a folder and open it +reframe export --to xlsx --context ~/carddemo-context # with the reviewers' marks from the downloads in a folder +reframe export --to jira # the design's backlog: an epic per function, a story per capability, for Jira's CSV import +reframe export --to azure-devops --out ~/backlogs # Epic, Feature and User Story rows for Azure DevOps +``` + +It opens on the Requirements sheet; every sheet has a frozen header row and filters. Requirements, business rules, capabilities and open questions carry **Mark** (every reviewer's marks combined, as the next round combines them), **Reviewers' marks** (each one, with the comment) and **Key**. Only downloads from the reconciled review of the same snapshot are read, from the run's own page or a published copy; the About sheet lists the files read and ignored. Every cell is text, never a formula, and cleaned as `reframe publish` cleans its copy; if anything is left, nothing is written. Reframe does not read the workbook back. See [sharing.md](sharing.md), section 7. + +### `reframe design` + +The design (pipeline 4): legacy and modern screens, journeys, the clickable prototype, final specifications and the AI-DLC package, from the reconciled results; a round redoes only what new context touches. See [pipeline-4.md](pipeline-4.md). + +| Option | What it does | +|---|---| +| `--run ` | the run to act on (default: the latest run) | +| `--context ` | the design context folder (default: the one given before, then the run's `inputs/design/`) | +| `--stack ` | the target stack, `"; ; "`; never chosen for you | +| `--plan` | say what a round would redo, and why, without a Claude step | +| `--package ` | copy the latest package, cleaned, into an empty folder; runs nothing | +| `--form kiro\|claude-code\|spec-kit\|all` | with `--package`: which form (default: all) | +| `--check ` | list the placeholders left in a copy of the package; runs nothing | +| `--open` | open the design page when done | +| `--auth subscription\|api-key\|bedrock` | how Claude signs in: subscription (default), api-key (ANTHROPIC_API_KEY) or bedrock | + +```bash +reframe design # a design round on the latest run: only what new context touches is redone +reframe design --plan # what a round would redo, and why, with no Claude step +reframe design --stack "React; Java 21 with Spring Boot; PostgreSQL" # give the target stack: the data contracts get its types +reframe design --package ~/handover/app # copy the AI-DLC package, cleaned, into an empty folder +reframe design --check ~/handover/app # the placeholders still to fill in a copy of the package +reframe design --open # open the design page, with the prototype +``` + +A round runs in the foreground: the inventory and flow, the journeys, the modern screens, the prototype, the final specifications, the design page and the package. It writes `design/changes-.md` and a new package version only when something changed. If Claude's usage limit stops it, run `reframe design` again: what is done is kept. + ### `reframe compare` Build the page comparing AWS Transform's and Claude's results again. @@ -220,18 +319,20 @@ reframe compare --open # build the comparison page again and open it ### `reframe publish` -Copy a run's reports, cleaned of the AWS account's identifiers, into a folder others can open. +Optional: copy a run's reports, cleaned of the AWS account's identifiers, into a folder others can open, upload the run's source, results and reports to your account's private bucket, or publish the copy to a GitHub Pages site. Nothing is copied, uploaded or published unless you run it. | Option | What it does | |---|---| | `--run ` | the run to act on (default: the latest run) | -| `--to ` | a folder to write the copy into (for example reports/carddemo), or aws to upload it to the private reports bucket in your AWS account | +| `--to ` | a folder to write the copy into (for example reports/carddemo); aws to upload the run (source/, results/ and the cleaned reports/) to the private Reframe bucket in your AWS account; or pages to publish the copy to a GitHub Pages site, which is public, after you type yes | +| `--repo ` | for --to pages: the GitHub repository, /; the copy goes on its gh-pages branch | | `--profile ` | for --to aws: the AWS profile (default: the one saved by reframe setup) | | `--region ` | for --to aws: the AWS region (default: the saved one, then us-east-1) | ```bash -reframe publish --to aws # upload to the private reports bucket in your AWS account +reframe publish --to aws # upload the run's source, results and reports to the private bucket in your AWS account reframe publish --to reports/my-system # write the copy into a folder +reframe publish --to pages --repo my-org/reports # publish the copy to a public GitHub Pages site, after you type yes ``` ### `reframe reports` @@ -272,7 +373,9 @@ reframe teardown # list the latest run's AWS resources, then remove them after | Path | What it holds | |---|---| | `~/.reframe/config.json` | The saved profile, region and tool paths: the next run's defaults | -| `~/.reframe/projects//runs//` | A run: its state, event log, change records, Terraform roots, downloads and reports | +| `/.reframe///` | A run, in the folder you run Reframe from: its state, event log, change records, Terraform roots, downloads, `inputs/` (the context you add) and `outputs/` (the reports, the reconciliation and the design) | +| `…/inputs/reconcile/`, `…/inputs/design/` | The context for the reconciliation and the design, read when `--context` is not given | +| `…/outputs/design/index.html` | The design page, with `prototype/` and `package/v/` beside it | | `…/outputs/report/index.html` | AWS Transform's business review | | `…/outputs/claude/report/index.html` | Claude's business review | | `…/outputs/comparison/index.html` | The comparison page | diff --git a/docs/guide.md b/docs/guide.md new file mode 100644 index 00000000..0cd3b04b --- /dev/null +++ b/docs/guide.md @@ -0,0 +1,439 @@ +# The Reframe guide + +Everything about running Reframe, step by step. Start with [How to run Reframe](how-to-run.md) for one page from install to handover; every command and option is in [cli.md](cli.md). + +- [The home screen](#the-home-screen) +- [Run an assessment: the guided way](#run-an-assessment-the-guided-way) +- [Claude only, with no AWS](#claude-only-with-no-aws) +- [If a run stops](#if-a-run-stops) +- [Results](#results) +- [Reviewing the results with the business](#reviewing-the-results-with-the-business) +- [Removing the AWS resources](#removing-the-aws-resources) +- [The Claude assessment and the comparison](#the-claude-assessment-and-the-comparison) +- [The reconciliation](#the-reconciliation) +- [The design](#the-design) +- [Sharing the reports](#sharing-the-reports) +- [Code layout](#code-layout) + +## The home screen + +```bash +reframe +``` + +`reframe` on its own shows your runs (status, stage, Claude's status, the reconciliation's status, when each started, and whether its AWS resources are still in place), the suggested next step, and a numbered menu: + +![The reframe home screen: the runs table, the suggested next step and the numbered menu](images/cli-home.svg) + +An action on a run asks which run, with the latest as the default. After each action the home screen comes back; 0 or Ctrl+D leaves it, and Ctrl+C cancels an action. `reframe --help`, and `--help` after any command, shows the commands or options as a table with examples. + +### All the commands + +| Command | What it does | +|---|---| +| `reframe` | The home screen above | +| `reframe run` | Start an assessment: guided with no options, or straight away with `--source` | +| `reframe setup` | Check and set up the prerequisites and the AWS sign-in, without starting a run | +| `reframe status` | The run's stage, the job's plan steps, any waiting question and the next step | +| `reframe events [--follow]` | The run's event log | +| `reframe answer` | Show AWS's waiting question, or answer it | +| `reframe resume` | Continue a run that stopped, whichever part stopped; nothing with a receipt is repeated | +| `reframe report [--open]` | Build AWS Transform's business review again | +| `reframe claude` | The Claude assessment: the same snapshot, assessed with Claude | +| `reframe reconcile [--context ] [--open]` | The reconciliation: one recommended set from both assessments, decided against the source code | +| `reframe review --context ` | Each reviewer's coverage, sign-offs and disagreements in a folder of review downloads | +| `reframe export --to xlsx [--out ] [--open]` | The reconciled results as one Excel workbook, with the reviewers' marks | +| `reframe design [--context ] [--stack ""] [--plan] [--open]` | The design: screens, journeys, the prototype, final specifications and the AI-DLC package; a round redoes only what new context touches | +| `reframe design --package \| --check ` | Copy the package, cleaned, into an empty folder; list the placeholders left in a copy | +| `reframe compare [--open]` | Build the comparison page again | +| `reframe publish --to ` | A copy of the reports, cleaned of your account's identifiers | +| `reframe reports [open \| download \| teardown]` | The reports published to your AWS account: list, open or save one by project, or remove the bucket | +| `reframe teardown` | List the run's AWS resources, ask for your consent, then remove them | + +Every option and example, with the full `reframe --help` screen, is in [docs/cli.md](cli.md). + +## Run an assessment: the guided way + +```bash +reframe run +``` + +Reframe guides you through five steps and checks each answer before going on: + +1. **Prerequisites.** A table of what a run needs and what this computer has: Git, the AWS CLI v2, uv, Terraform 1.10 or later and the AWS Transform MCP server (Claude Code is listed as optional, for the Claude assessment). For anything missing it shows the install command for your operating system and offers to run it; nothing is installed without your yes. Reframe installs Terraform itself: the pinned HashiCorp release, checked against HashiCorp's SHA-256 sums, kept in `~/.reframe/tools` and used from there, so your PATH, your shell files and any older Terraform stay as they are. +2. **AWS sign-in.** Choose one of your AWS CLI profiles and the region. If the profile is not signed in, Reframe offers to run `aws sso login` for you; you sign in in your browser, and Reframe never sees your credentials. With no profiles, it offers `aws configure sso`. +3. **Source.** A GitHub or Git URL (checked with Git, and optionally a branch, tag or commit), a local folder, or a local ZIP file. +4. **Choices.** Autonomous or interactive (see below), the project name (a short label such as `carddemo`: it names the run's folder, `.reframe///` in your workspace, and starts the name of every AWS resource the run creates, `reframe--`), a new Neptune graph or an existing cluster, and whether to assess the same snapshot with Claude as well (the Claude assessment; see below), with how Claude signs in and the agent limit for rule extraction. +5. **Summary.** What will be created, then one yes to start. The run continues in the background. + +Your profile, region and tool paths are saved in `~/.reframe/config.json` as the next run's defaults. To check the prerequisites and sign in without starting a run: + +```bash +reframe setup +``` + +### Follow the run + +```bash +reframe status +``` + +```bash +reframe events --follow +``` + +`reframe status` shows the stage, the AWS Transform job's plan steps, any question waiting for you and what to do next. Every command acts on your latest run; add `--run ` for another one. The run ID is printed when the run starts. + +Open the report when the run is done: + +```bash +reframe report --open +``` + +### Run without questions + +When the prerequisites are set up (for example after `reframe setup`, or on a build machine), give the source and Reframe asks nothing. It runs both assessments, as the guided run does by default; add `--tools aws` for AWS Transform alone, or `--tools claude` for Claude alone. The profile and region default to the ones you saved: + +```bash +reframe run --source https://github.com/aws-samples/aws-mainframe-modernization-carddemo +``` + +```bash +reframe run --source ~/code/my-mainframe-app --profile my-profile --mode interactive +``` + +```bash +reframe run --source ~/Downloads/my-mainframe-app.zip --project my-app +``` + +Add `--ref ` for a Git source, `--region` for another region, `--graph new|existing|` for the Neptune choice, and `--terraform /path/to/terraform` (or `REFRAME_TERRAFORM`) for a Terraform of your own. + +### Autonomous or interactive + +Autonomous is the default: Reframe answers AWS on your behalf and writes each answer and its reason to the run's `decisions.json`. It chooses "Assess and reimagine", gives the uploaded source's location, and selects every business domain plus the unassigned programs, so the whole source is assessed. + +To make the choices yourself, add `--mode interactive`: + +```bash +reframe run --source ~/code/my-mainframe-app --profile my-profile --mode interactive +``` + +When AWS asks something, `reframe status` says so. See the question and its numbered options: + +```bash +reframe answer +``` + +Answer with the option numbers (several for the catalog, such as `reframe answer 2 3`), or in your own words: + +```bash +reframe answer 1 +``` + +```bash +reframe answer --text "Reimagine business domain \"Payments\"" +``` + +The worker sends your answer within a minute. In autonomous mode, a question Reframe does not recognise also waits for `reframe answer`. + +### Neptune: a new graph or an existing cluster + +By default each run creates its own Neptune Serverless graph in a private network with no internet access. It bills until you run `reframe teardown`. + +To use a Neptune cluster you already have, pass `--graph existing` to choose from a list, or `--graph `. With no `--graph`, interactive mode lists the clusters in the region and asks. Reframe uses an existing cluster as it is and never changes or deletes it. It offers one only if it meets every need: available with an instance, Serverless, engine 1.4.5.1 or later, IAM authentication, encryption, subnets in two availability zones with an S3 gateway endpoint, a security group pair, and a bulk-loader role that can read the run's source bucket. For each cluster it rejects, it says why. + +## Claude only, with no AWS + +No AWS account, or no AWS Transform? Run Reframe with Claude only ([release 1.0](release-1.md), section 2). It needs Git, [Claude Code](https://docs.anthropic.com/en/docs/claude-code) signed in, and the code-modernization plugin, which Reframe fetches itself. Claude signs in with your Claude subscription (the default), an Anthropic API key (`--auth api-key`, with `ANTHROPIC_API_KEY` set), or Amazon Bedrock (`--auth bedrock --profile --region `, the profile used for Bedrock only, or `AWS_BEARER_TOKEN_BEDROCK`). + +```bash +reframe setup --tools claude +``` + +```bash +reframe run --tools claude --source https://github.com/aws-samples/aws-mainframe-modernization-carddemo +``` + +The guided `reframe run` asks the same thing first: *AWS Transform and Claude, or Claude only?* A Claude-only run: + +- takes the snapshot into the run folder and creates nothing outside your computer, so there is nothing to tear down; +- runs the Claude assessment (the plugin's steps, then Reframe's requirements) and builds Claude's business review; Claude's graph stays a file, `outputs/claude/graph.nq`, since there is no Neptune; +- reconciles by checking **every** Claude rule against the source code (kept, rejected or sent to an SME), in Claude's own domains and functions, because there is no second tool to agree with; on CardDemo that is about 35 batches, $15 to $40 at API prices; +- then designs and publishes exactly as a run with both tools does. + +`reframe compare` says there is nothing to compare, and `reframe teardown` that there is nothing to remove. + +## If a run stops + +`reframe status` names what happened and the next step. The usual cases: + +| Status | What to do | +|---|---| +| `WAITING_SIGNIN` | Your AWS sign-in expired. Run `aws sso login --profile my-profile`, then `reframe resume`. | +| `WAITING_HUMAN` | AWS is waiting for an answer: run `reframe answer`, then answer it. | +| `UNCERTAIN` | A change was sent but its result is unknown. `reframe resume` checks AWS's state before doing anything again. | +| `FAILED` or `REFUSED` | Read the message and `worker.log` in the run folder, fix what it says, then `reframe resume`. | + +`reframe resume` continues from where the run stopped. Nothing with a receipt is done again. + +## Results + +**Run Reframe from your workspace folder.** Everything for a run is there, in `.reframe///`, one folder per project and one per run. Reframe's own tools and settings stay in `~/.reframe`. Keep `.reframe/` out of Git: run folders hold your account's identifiers. Share `reframe publish`'s cleaned copy instead. + +| Path | What it holds | +|---|---| +| `inputs/reconcile/` | What you add for the reconciliation: documents, review downloads, the answered SME list. Read when `--context` is not given. | +| `inputs/design/` | What you add for the design: `personas.md`, `decisions.md`, `target-architecture.md`, `design-system/`, `style-reference/`, the prototype's and the reconciliation page's review downloads. | +| `outputs/` | Everything Reframe makes for people to read: the reports below, `reconcile/`, and `design/` (the design page, the prototype, the package). | +| `outputs/report/index.html` | The business review report. Rebuild it with `reframe report`. | +| `outputs/requirements/` | AWS's requirements per business function, with `traceability.yaml` linking rules to requirements. | +| `outputs/aws/` | AWS's assessment results. | +| `outputs/catalog/` | The business function catalog (`delivery.zip`, unpacked). | +| `decisions.json` | Every answer Reframe gave on your behalf, and why. | +| `events.jsonl` | The run's event log. | +| `changes/` | The record of every change Reframe made in AWS: what it meant to do, and AWS's receipt. | +| `worker.log` | The background worker's output. | + +## Reviewing the results with the business + +`reframe report --open` opens the business review report. It is one HTML file with everything inside it, so you can send it to business users and functional subject-matter experts as it is; they need only a browser. + +- **It starts at the top:** what was assessed and the business domains. From a domain they go to its business functions, from a function to its capabilities (AWS's user stories), and from a capability to each requirement in plain words, with the business rules behind it and AWS's open questions for the business. A breadcrumb leads back up, and the search box finds any requirement, rule or question. +- **They mark what they read:** Agree, Needs change or Question on each requirement, business rule and open question, with a comment. Progress shows on every domain, function and capability. Marks stay in their browser. +- **They send their review back:** under **Your review** they enter their name and download their marks as a CSV file (for a spreadsheet) or a JSON file. Each row names the domain, function, capability, item, mark and comment, and the file names the run and the source's SHA-256, so a review always matches the code that was assessed. +- **Technical detail** (all requirements and rules in tables, the data model, the assessment, AWS's own pages and Reframe's answers) is in its own section, for engineers. + +## Removing the AWS resources + +```bash +reframe teardown +``` + +Teardown runs in your terminal and asks before it deletes anything: + +1. It lists every AWS resource the run created, taken only from the run's own records: the AWS Transform job, workspace and connector from their creation receipts, and everything in the run's Terraform state. Nothing is found by name. +2. You type `yes` to delete them all. Anything else keeps them. Your consent, with the list and its hash, is saved in `teardown/consents.json`. +3. It deletes in order: the job, the workspace, the connector, any network interface AWS Transform left in the run's own network, the project resources, then the state bucket. With a new Neptune graph this takes about 15 minutes. +4. It checks every resource tagged with the run and reports anything still in AWS. + +Two things you may see at the end: + +- The AWS Transform connector may be left over. Some roles are not allowed to call DeleteConnector, and AWS often removes the connector itself a little later. Its IAM role is deleted, so it can reach nothing. +- AWS's tag index can list deleted resources for a while. Reframe checks each one in its own service and reports only what still exists. + +If the list changes between your `yes` and the deletion, Reframe stops and asks again. An existing Neptune cluster you chose is never in the list. + +## The Claude assessment and the comparison + +The guided `reframe run` offers the Claude assessment, with yes as the default. It runs alongside the AWS Transform assessment in a worker of its own: it starts as soon as the run's AWS resources exist (about ten minutes in), while AWS Transform is still working, and its comparison waits for AWS Transform's results. To add it to a run you already have, or to start it later (for example once your Claude usage limit resets): + +```bash +reframe claude +``` + +| Stage | What happens | +|---|---| +| C0. Preflight | Checks Claude Code and its sign-in, Python 3, and the code-modernization plugin. Reframe fetches the plugin itself, at one pinned commit of Anthropic's plugin repository, and loads it only for its own runs. Nothing is installed into your Claude Code settings. | +| C1. Workspace | The run's snapshot is unpacked read-only in the run folder, after its SHA-256 is checked against the one AWS Transform assessed. Nothing of AWS Transform's results is in it. | +| C2-C4. The plugin's steps | `preflight`, `assess`, `map` and `extract-rules`, each run headless with `claude -p`. Before rule extraction Reframe shows the plugin's estimate (on CardDemo, 38 to 41 shards: up to about 615 agents and 9 million tokens, about an hour; a run uses about 430 to 480 agents) and goes ahead only within your agent limit. | +| C5. Retrieval | The plugin's files are kept as written and read into the report: the assessment, the map, the rule cards and the open questions. The snapshot is checked again, to prove nothing changed. | +| C6. Requirements | Claude's plugin writes rule cards, not requirements. Reframe asks Claude, one domain at a time, to write requirements in AWS Transform's shape from those rule cards. Each one must cite a rule card or a source line that exists, and each is labelled **generated by Reframe from Claude's results**. | +| C7. Graph | Claude's map and rules go into the run's Neptune cluster as their own named graph, beside AWS Transform's, through a small loader function in the run's private network. | +| C8. Reports | Claude's business review, in the same layout as AWS Transform's, and the comparison page. | + +Options: + +- `--auth subscription` (the default) signs Claude in with your Claude subscription. `--auth api-key` uses the Anthropic API key in `ANTHROPIC_API_KEY`, billed at API prices; `ANTHROPIC_BASE_URL` is passed on too, for a company's gateway. `--auth bedrock` uses Amazon Bedrock with the run's AWS profile, or a Bedrock API key in `AWS_BEARER_TOKEN_BEDROCK`. Reframe passes a key to Claude Code and never writes it ([docs/pipeline-2.md](pipeline-2.md), section 4.1). +- `--max-agents` sets the agent limit for rule extraction (default 600). It is a ceiling, not a target: Reframe stops and asks only if the estimate is higher. For CardDemo use 650 or more, so the run does not stop to ask. +- `--graph-load yes` loads Claude's graph into an existing Neptune cluster. A graph the run created is loaded by default. +- If Claude's usage limit is reached, the run stops and says so. When the limit resets, `reframe resume` continues where it stopped, and runs extraction again for any modules the plugin did not finish. + +```bash +reframe compare --open +``` + +This opens the comparison page. It starts with the numbers side by side, then goes down: + +- **Domains:** each AWS domain with the Claude domains that hold the same programs. +- **Programs:** each program, and which tool covered it. +- **Rules by program:** the two tools' rules about the same program, side by side. +- **AI-paired rules:** pairs proposed by Claude, labelled as AI output, each with a reason and a confidence. You mark each pair Right or Wrong. +- **Only one tool:** what only one tool found. + +Both results are model output, and the page says so. + +`reframe teardown` also removes the Claude assessment's graph loader function. It waits until AWS has released the function's network interfaces, about 20 minutes, before it deletes the network. + +## The reconciliation + +When both assessments are done, `reframe reconcile` turns the two assessments into one recommended set, deciding against the source code whatever the two tools do not describe the same way ([docs/pipeline-3.md](pipeline-3.md)). It needs no AWS resources, so it works after `reframe teardown`, and it runs on your Claude sign-in, as the Claude assessment does. + +```bash +reframe reconcile --context ~/carddemo-context # gathers everything, shows the estimate, and stops above the batch limit +reframe reconcile --max-batches 113 # go ahead with the estimate it showed +reframe status # progress, the decisions, the SME list and the requirements +reframe reconcile --open # the reconciliation page +``` + +**Your context folder** is optional and holds three kinds of file, read by kind: + +- **Documents:** Markdown, text, PDF or Word, for example a glossary or a process description. They are given to every decision. +- **Review downloads:** the JSON or CSV files you download from any review page (*Your review*), from as many reviewers as you like. A *Needs change* or *Question* mark sends its rule to an agent with your comment, or, on a requirement or capability, has its function's requirements written again. An *Agree* on a recommended rule keeps it as it is in later rounds. Sign-offs of whole functions are read too. A download of another snapshot is ignored and reported. +- **Answered questions:** the SME list with its `answer` column filled in, as CSV or JSON. + +**What it does:** + +1. Rules both tools describe the same way are agreed without an agent deciding them. A step reads their code to say whether it runs, what kind of rule each is, and to give worked examples. +2. Every other rule is decided by a headless Claude step that reads the source code: overlapping and conflicting rules merged into the rules the code supports, rules only one tool found kept or rejected, rules about code that never runs rejected, and what the code cannot settle turned into a question. Reframe checks every answer: each cited line exists in the snapshot, the lines showing how the code is reached exist, and every input rule is covered. A failed answer is asked once more, then becomes a question. +3. Each recommended rule gets a **confidence Reframe sets** from what it checked (high only when an agent decided it with both tools' rules and the code is shown to run), a **kind** (business, validation, compliance, error handling, display, technical, side effect or leftover) and one to three **worked examples** whose quoted values Reframe finds in the cited code. A possible defect is noted once per decision, called unintended or deliberate, with the lines that show it. +4. Both tools' open questions and its own are merged into **one SME list**, `reconcile/questions.csv` in the run folder, with the possible defects found in the code. +5. **Recommended requirements** are written from the recommended rules, in AWS Transform's domains and business functions, with **decision tables** where rules share conditions (gaps listed for an SME) and a **risk level** per capability that Reframe sets from what it touches: money, security or audit make it high, card or personal data or record updates medium. +6. The **reconciliation page** opens with **Review first**: code that never runs, conflicts, rewritten rules, open questions, unintended defects, rules only one tool found and the other medium-confidence rules, high-risk capabilities first. Each recommended rule shows how it was decided, both tools' originals side by side, the cited source lines and how the code is reached. The other three pages link to it, and `reframe publish` includes it as `reconciled/`. + +**Running it again.** Fill in the SME list's `answer` column, put the file in your context folder, and run `reframe reconcile` again. Only the rules an answer or a review mark bears on are decided again; the rest keep their decisions, and the page shows which round decided each rule. + +**Several reviewers.** Each reviewer marks a review page and downloads their marks (JSON or CSV), and can sign off whole functions. Put every download in the context folder and check them first: + +```bash +reframe review --context ~/carddemo-context # each reviewer's coverage and sign-offs, and where reviewers disagree +reframe reconcile --context ~/carddemo-context # the next round combines them: Needs change and Question over Agree +``` + +`reframe status` shows which functions are signed off, by whom and when; pipeline 4 takes signed-off functions as final. + +**In a spreadsheet.** `reframe export --to xlsx` writes the reconciliation as one Excel workbook: a sheet each for domains, business functions, capabilities, requirements (with the business rules, programs and source lines behind each), business rules (with decision, confidence, evidence and worked examples), decision tables with their gaps, open questions and the SME list. With a context folder it adds each reviewer's mark and comment, and the sign-offs. Every cell is text, cleaned as `reframe publish` cleans its copy. Reframe does not read the workbook back: answers still go in the SME list CSV and marks in the review downloads. + +```bash +reframe export --to xlsx --context ~/carddemo-context --open +``` + +On a second test codebase (run 8e5a08, 25 November 2026) it wrote 417 requirements, 446 business rules, 224 decision table rows and 190 SME questions in under two seconds. + +**On CardDemo** (run fa1f61, 24 November 2026), the estimate was 113 batches, 29 to 87 minutes and $56 to $130 at API prices. The run used about $67 at API prices. It decided 431 units with evidence that all exists in the snapshot and covered all 1,111 input rules. It wrote 1,204 recommended rules, 1,153 requirements and an SME list of 313 questions (from 349) with 187 possible defects. Run again with one more answered question, it decided 5 units again in 2 batches and kept 426. On the Claude subscription a full run can reach the five-hour usage limit; it stops with the reason, and `reframe resume` continues where it stopped. + +**Part 2 on CardDemo** (25 November 2026). Round 3 decided all 431 units again in about 52 minutes and $32 at API prices: 1,185 recommended rules with Reframe's confidence (718 high, 463 medium, 4 low), a kind and worked examples, 1,131 requirements with 114 decision tables, and 182 possible defects shown once each. An audit of a new sample found no rule wrong by both judges and 56 of 65 correct, with 6 for the owner to settle, and every rule with an error rated medium. Two reviewers' files, one JSON and one CSV with a disagreement and two sign-offs, went through `reframe review`, and round 4 decided 1 unit again and wrote one function's requirements again. The figures are in [docs/pipeline-3.md](pipeline-3.md), section 8.12. + +## The design + +When the reconciliation is done, `reframe design` designs the modernized application from it ([docs/pipeline-4.md](pipeline-4.md)). It needs no AWS resources and runs on your Claude sign-in. + +```bash +reframe design --plan # what a round would redo, and why, with no Claude step +reframe design --open # run a round, then open the design page +``` + +A round runs every stage in order and keeps what has not changed: + +| Stage | What it makes | Claude | +|---|---|---| +| Screen inventory and flow | Every BMS map read into its fields and keys, drawn as a 3270 copy; how the screens and programs connect, each link citing its lines | No | +| Journeys | The tasks people do, from where they start to where they finish, each with its capabilities and requirements | One step per domain | +| Modern screens | Screens from Reframe's design system (or yours), and a mapping that takes every legacy screen, field and key to what replaces it, with the reason | One step per domain | +| Prototype | One offline page: a route per screen, sample data, the rules' own messages, each screen beside the legacy screens it replaces, and marks reviewers can download | No | +| Final specifications | Per capability: requirements, business rules (classed), acceptance criteria, screens, data contracts from the copybooks, decision tables with gaps, open questions; final where the function is signed off | One step per function, for summaries, criteria and design notes | +| The package | Kiro, Claude Code and Spec Kit forms, every ID traced back to the legacy source, with `[FILL IN: ...]` placeholders for what your team gives and a `START-HERE.md` | No | +| A backlog | `reframe export --to jira` or `--to azure-devops`: each tool's CSV import file, a story per capability with its requirements and acceptance criteria, keeping the package's IDs ([sharing §8](sharing.md)) | No | +| Golden datasets | In each form's `golden/`: per capability, the cases the new system must answer as the legacy one does, and `compare.py`, which sets formatting differences apart from business ones. The expected outputs come from the rules | No | + +**Adding context.** Put it in the run's `inputs/design/`, or pass `--context ` once, and run `reframe design` again: +- `personas.md` reaches the journeys; +- a decision in `decisions.md` reaches only the parts it names; +- a prototype download's *Needs change* reaches the domain that designed the screen; +- a sign-off from the reconciliation page makes its function final, with no Claude step. + +Each round writes `design/changes-.md`: what was redone and why, and what was kept. The package gets a new version, with its `CHANGES.md`. + +**The target stack** is yours to give; Reframe never chooses one. `reframe design --stack "React with TypeScript; Java 21 with Spring Boot; PostgreSQL"` adds the stack's code and column types to the data contracts, with no Claude step. + +**Handing over.** `reframe design --package ~/handover/` copies the package, cleaned, into an empty folder. `START-HERE.md` there says what to fill in and how to prove it by building *Sign in*; `reframe design --check ~/handover/` lists what is left. + +**On CardDemo** (run fa1f61, 25 and 26 November 2026), the design cost about $35 at API prices: +- 21 legacy screens, 20 journeys, and 20 modern screens with all 683 legacy items mapped; +- a 19-screen prototype; +- 154 specifications (52 final) with 1,505 acceptance criteria; +- a package of 1,113 files with 820 tasks. + +## Sharing the reports + +```bash +reframe publish --to reports/my-system +``` + +This copies a run's reports into a folder that anyone can open in a browser, without Reframe or access to your AWS account: + +- AWS Transform's review, Claude's review, the comparison and the reconciliation, with their links working inside the copy; +- the design: the design page, the legacy screens, the flow, the journeys, the modern screens, the clickable prototype and the latest AI-DLC package, under `design/`; +- the plugin's own report and interactive map; +- an index page naming the source, its commit and SHA-256, and when each assessment ran. + +Before anything is written, Reframe removes the AWS account ID, ARNs, S3 locations, the run's resource names, AWS IDs, your profile name, e-mail addresses and local paths. It then checks the whole copy and refuses to write if any are left. + +**On a Mac, publish outside Desktop, Documents and Downloads.** macOS keeps those folders private: a browser that has not been given access to one opens `index.html` but not the pages it links to. Reframe warns when you publish there. Use a folder such as `~/reframe-reports/`, or give the browser access in System Settings > Privacy & Security > Files and Folders. + +**In your AWS account, for people who can sign in to it:** + +```bash +reframe publish --to aws +``` + +This is optional: nothing goes to the bucket unless you run it. It uploads the run to a private bucket in your account: encrypted, versioned, with no public access, refusing any request not over TLS. Reframe creates the bucket the first time, with its own Terraform state in `~/.reframe/reports-store`, and keeps one per account and region for every project. Only someone whose AWS sign-in may read the bucket can open what is in it; there is no public address. + +```text +reframe-reports-xxxxxxxx/ + // + source/ .zip, the snapshot both tools read, and source.json (its checksum, files and origin) + results/ + aws/ what AWS Transform wrote, as Reframe retrieved it + claude/ what Claude's code-modernization plugin wrote + reports/ the cleaned copy: every report, the design and the AI-DLC package, and report.zip +``` + +`source/` and `results/` are the run's own files, not cleaned. Anyone who can read the bucket can read the source code and the raw results, so give read access only to people who may see the code. The bucket is apart from every run, so `reframe teardown` leaves it and what is in it; publish after teardown as well as before. + +```bash +reframe reports +``` + +```bash +reframe reports open carddemo +``` + +```bash +reframe reports download carddemo --to ~/reframe-reports/carddemo +``` + +`reframe reports` lists what is published. `reframe reports open ` downloads the project's latest report with your AWS sign-in and opens it in your browser; `--run ` picks an older one. `reframe reports download` saves it in a folder instead, to keep or send on. These work on any computer whose AWS sign-in can read the bucket: Reframe finds the bucket by its tags, so the person who published only needs to tell you the project's name. + +**Without Reframe:** every published report also has one file, `//reports/report.zip`. Sign in to the AWS console, open the `reframe-reports-…` bucket in S3, download that file, unzip it and open `index.html`. + +`reframe reports teardown` removes the bucket and everything in it, after you consent to the list. Only the computer that published can do this. + +**On GitHub Pages, for anyone with the address:** + +```bash +reframe publish --to pages --repo my-org/reframe-reports +``` + +This is optional too. It puts the cleaned copy on the repository's `gh-pages` branch under `//`, with a front page listing every published run, using your own `git` and `gh` sign-in, and turns Pages on if it is off. **A Pages site is public**, on a public repository and on most private ones, so Reframe first names the repository and the address, says so, and pushes only after you type `yes`. + +**Try it without running anything:** [CardDemo](https://codestrata.github.io/reframe/carddemo/) is a published copy of a full run on AWS's open-source mainframe sample: both assessments, the reconciliation, the design with its prototype, and the AI-DLC package. It is also in this repository under `reports/`: clone it and open `reports/carddemo/index.html` in a browser. + +## Code layout + +| Folder | What it does | +|---|---| +| `src/reframe/core/` | The CLI, the run folder and its change records, preflight, the stage pipeline and teardown | +| `src/reframe/source/` | Taking the source snapshot and uploading it to S3 | +| `src/reframe/infrastructure/` | The Terraform roots and modules, the Neptune cluster checks and the network clean-up | +| `src/reframe/transform/` | AWS Transform: the MCP client, the workspace and connector, the job driver, answering questions, retrieval | +| `src/reframe/claude/` | The Claude assessment: the pinned plugin, running Claude Code headless, the workspace, the plugin's steps, retrieval, the generated requirements and the graph load | +| `src/reframe/reconcile/` | The reconciliation: the inputs and context folder, the agreed rules, units and batches, the decisions against the source, the SME list and the recommended requirements | +| `src/reframe/design/` | The design: the screen inventory and flow, journeys, modern screens, the prototype, the final specifications and data contracts, the package and its hand-over, and design rounds | +| `src/reframe/report/` | The business review reports, the comparison page, the reconciliation page and `reframe publish` | +| `tests/` | Offline tests for each folder above; they run on every pull request | + +Run the tests from a checkout: + +```bash +python -m unittest discover -s tests -t . +``` diff --git a/docs/how-to-run.md b/docs/how-to-run.md new file mode 100644 index 00000000..ee54405f --- /dev/null +++ b/docs/how-to-run.md @@ -0,0 +1,175 @@ +# How to run Reframe + +One page, start to finish. The detail of each step is in [the guide](guide.md); every command and option is in [cli.md](cli.md). + +![How a Reframe run works](images/reframe.svg) + +## 0. Install, once + +```bash +uv tool install "git+https://github.com/CodeStrata/reframe@v1.0.0" +``` + +Then choose what this computer will run: + +```bash +reframe setup --tools claude +``` + +```bash +reframe setup +``` + +- **Claude only** (`--tools claude`) needs Git, [Claude Code](https://docs.anthropic.com/en/docs/claude-code), and the code-modernization plugin, which Reframe fetches. You don't need an AWS account. Claude signs in with your Claude subscription by default; `--auth api-key` uses `ANTHROPIC_API_KEY` instead, and `--auth bedrock --profile ` uses Amazon Bedrock. +- **Both tools** also need an AWS account with AWS Transform. `reframe setup` checks the AWS CLI, Terraform and the AWS Transform MCP server, offers to install what is missing, and signs you in to AWS (`aws sso login`). + +To work on Reframe itself, install a clone instead: `uv tool install --reinstall --editable `. + +## 1. Work from your workspace folder + +Run every `reframe` command from the same folder: your workspace. Reframe keeps everything for a project there, one folder per run: + +```text +/.reframe/ + / for example aws-carddemo + / six letters and digits, one per run + inputs/ + reconcile/ what you add for the reconciliation: documents, review downloads, the answered SME list + design/ what you add for the design: personas.md, decisions.md, target-architecture.md, + design-system/, style-reference/, prototype and review downloads + outputs/ everything Reframe makes for people to read + report/ claude/ comparison/ reconcile/ design/ + ... Reframe's working records (state, event log, receipts, step logs) +``` + +`reframe` on its own shows the runs in this workspace and the next step. Reframe's own tools and settings stay in `~/.reframe`. Keep `.reframe/` out of Git: run folders hold your account's identifiers. Share the cleaned copy that `reframe publish` makes instead (step 7). + +## 2. Assess the code + +```bash +reframe run +``` + +The guided run first asks: *AWS Transform and Claude, or Claude only?* Then it asks for the source (a folder, a ZIP file or a GitHub URL) and a project name, plus your AWS profile when both tools are used. The assessments run on one snapshot, in the background: +- Claude's code-modernization plugin takes about two hours; +- AWS Transform takes about an hour, alongside it. + +Without questions, for Claude only: + +```bash +reframe run --tools claude --source https://github.com/aws-samples/aws-mainframe-modernization-carddemo +``` + +```bash +reframe status +``` + +```bash +reframe resume +``` + +`status` shows where the run is and what to do next. `resume` continues after an expired sign-in or Claude's usage limit, without repeating anything. + +## 3. Read and review + +```bash +reframe report --open +``` + +```bash +reframe compare --open +``` + +These open AWS Transform's business review and the comparison of the two tools. On a Claude-only run, `reframe report --open` opens Claude's business review, and there is no comparison. Reviewers mark items *Agree*, *Needs change* or *Question* and download their marks. Put the downloads in `inputs/reconcile/`. + +## 4. Reconcile against the code + +```bash +reframe reconcile +``` + +Reframe shows the estimate and stops above the batch limit. On a Claude-only run every Claude rule is checked against the code, in Claude's own domains and functions. Go ahead with `reframe reconcile --max-batches `. Then read the result: + +```bash +reframe reconcile --open +``` + +Put the answered SME list (`reconcile/questions.csv`, with the `answer` column filled in), more review downloads and sign-offs in `inputs/reconcile/`, and run `reframe reconcile` again: only what they bear on is decided again. `reframe review` shows each reviewer's coverage and sign-offs; `reframe export --to xlsx` writes everything as one Excel workbook. + +## 5. Design the modern application + +```bash +reframe design --plan +``` + +```bash +reframe design --open +``` + +`--plan` says what a round would redo and why, with no Claude step. `reframe design` then runs a round: +- the legacy screens and how they connect; +- the journeys, and modern screens with every legacy field mapped; +- a clickable prototype beside the legacy screens; +- a final specification for every capability (final where its function is signed off, draft otherwise); +- the AI-DLC package. + +`--open` opens the design page. + +To change the design, put more context in `inputs/design/` and run `reframe design` again. That can be personas, decisions, a design system, a style reference, the prototype's review downloads or sign-offs from the reconciliation page. Only the parts it touches are redone, and `design/changes-.md` says what changed and why. Give the target stack when you know it; Reframe never chooses one: + +```bash +reframe design --stack "React with TypeScript; Java 21 with Spring Boot; PostgreSQL" +``` + +## 6. Hand over to the forward build + +```bash +reframe design --package ~/handover/ +``` + +This copies the package, cleaned, into an empty folder, in three forms: Kiro, Claude Code and Spec Kit. Open `START-HERE.md` there and fill in what only your team can give: the stack's detail, house conventions, skills and roles. Then see what is left: + +```bash +reframe design --check ~/handover/ +``` + +## 7. Share (optional) + +Publishing is optional: Reframe uploads or copies nothing unless you run one of these. + +```bash +reframe publish --to reports/ +``` + +This writes a copy of every report, the design and the package, cleaned of your account's identifiers, that anyone can open in a browser. When the work is done, publish the whole run to your AWS account instead: + +```bash +reframe publish --to aws +``` + +Only if you choose to, this puts the run in one private Reframe bucket in your account, under `//`: `source/` (the snapshot both tools read), `results/` (what AWS Transform and Claude wrote) and `reports/` (the cleaned copy). Anyone whose AWS sign-in can read the bucket opens it with `reframe reports open `. The bucket outlives teardown, so this works before or after step 8. + +Or publish the cleaned copy to a GitHub Pages site, for anyone with the address: + +```bash +reframe publish --to pages --repo my-org/reframe-reports +``` + +A Pages site is public, so Reframe names the repository and the address first and pushes only after you type `yes`. + +## 8. Remove the AWS resources + +```bash +reframe teardown +``` + +This lists everything the run created in AWS and deletes it only after you type `yes`. The reconciliation and the design need no AWS resources, so tear down as soon as both assessments are done. A Claude-only run created nothing in AWS, so it has nothing to remove. + +## What it takes + +| Step | Time | Claude, at API prices (CardDemo) | +|---|---|---| +| 2. Assess | about 1 hour (AWS Transform), about 2 (Claude), side by side | the plugin's agents, within your agent limit | +| 4. Reconcile | 30 to 90 minutes | about $30 to $70 for a full round; a later round only what changed; with Claude only, every rule is checked: estimated $15 to $40 | +| 5. Design | 30 to 60 minutes | about $35 for a first round; a round that redoes every screen about $60; a later round only what changed | +| 6, 7, 8 | seconds to minutes | none | diff --git a/docs/images/cli-help.svg b/docs/images/cli-help.svg index 0f62014e..b82185c2 100644 --- a/docs/images/cli-help.svg +++ b/docs/images/cli-help.svg @@ -1,4 +1,4 @@ - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - reframe --help + reframe --help - + - - ╭──────────────────────────────────────────────────────────────────────────────────────────────────────╮ -││ -│REFRAME│ -│From mainframe source to requirements and business rules your business can review│ -│Prerequisites  →  Sign in  →  Source  →  AWS Transform and Claude  →  Reconcile  →  Review│ -││ -╰────────────────────────────── AWS Transform · Claude · Reconciliation ───────────────────────────────╯ - -Commands -Command          What it does                                                                       -──────────────────────────────────────────────────────────────────────────────────────────────────────── -reframe run      Assess mainframe source with AWS Transform: with no options, a guided run that     -checks and sets up everything first; the AWS resources stay until reframe teardown -reframe setup    Check and set up the prerequisites and the AWS sign-in, without starting a run     -reframe status   The run's stage, the job's plan steps, any waiting question and the next step      -reframe events   The run's event log                                                                -reframe answer   Show AWS's waiting question, or answer it                                          -reframe resume   Continue a run that stopped; nothing with a receipt is repeated                    -reframe report   Build the HTML report from the run's downloads again                               -reframe claude   The Claude assessment: assess the same snapshot with Claude's code-modernization   -plugin, show it in the same business review, load its graph into the run's Neptune -cluster, and compare it with AWS Transform's results                               -reframe reconcileThe reconciliation: decide every rule the two assessments do not agree on against  -the source code, with evidence Reframe checks, then write recommended              -requirements, one SME list and the reconciliation page; needs both assessments     -done, and no AWS resources                                                         -reframe compare  Build the page comparing AWS Transform's and Claude's results again                -reframe publish  Copy a run's reports, cleaned of the AWS account's identifiers, into a folder      -others can open                                                                    -reframe reports  The reports published to your AWS account: list them, open one with your AWS       -sign-in, or remove the bucket                                                      -reframe teardown List every AWS resource the run created, ask for consent, record it, then remove   -them                                                                               - -Examples -reframe                                          the home screen: your runs, the next step and a    -menu                                               -reframe run                                      a guided run: checks the prerequisites, the AWS    -sign-in and the source, then starts                -reframe run --source <folder | file.zip |        start straight away, with no questions             -github-url>                                       -reframe status                                   where the latest run is, and what to do next       -reframe answer                                   AWS's waiting question, in interactive mode        -reframe report --open                            open the business review in the browser            -reframe claude                                   the Claude assessment: the same snapshot, assessed -with Claude as well                                -reframe compare --open                           open the page comparing AWS Transform and Claude   -reframe publish --to aws                         upload a cleaned copy of the reports to your       -account's private bucket                           -reframe reports                                  list the published reports; reframe reports open   -<project> opens the latest                         -reframe teardown                                 remove the AWS resources the run created           - -Options ---version             show program's version number and exit                                        --h, --help            this help                                                                     -reframe <command> --help shows a command's options. + + ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +││ +│REFRAME│ +│From mainframe source to reviewed requirements, business rules and a design to build from│ +│Prerequisites  →  Sign in  →  Source  →  AWS Transform and Claude  →  Review  →  Reconcile  →  Design  →│ +│Share│ +││ +╰───────────────────────────── AWS Transform · Claude · Reconciliation · Design ─────────────────────────────╯ + +Commands +Command          What it does                                                                             +────────────────────────────────────────────────────────────────────────────────────────────────────────────── +reframe run      Assess mainframe source with AWS Transform and Claude, or with Claude only (--tools      +claude, no AWS): with no options, a guided run that checks and sets up everything first; +the AWS resources stay until reframe teardown                                            +reframe setup    Check and set up the prerequisites and the AWS sign-in, without starting a run           +reframe status   The run's stage, the job's plan steps, any waiting question and the next step            +reframe events   The run's event log                                                                      +reframe answer   Show AWS's waiting question, or answer it                                                +reframe resume   Continue a run that stopped; nothing with a receipt is repeated                          +reframe report   Build the HTML report from the run's downloads again                                     +reframe claude   The Claude assessment: assess the same snapshot with Claude's code-modernization plugin, +show it in the same business review, load its graph into the run's Neptune cluster, and  +compare it with AWS Transform's results                                                  +reframe reconcileThe reconciliation: decide every rule the two assessments do not agree on (with Claude   +only, every rule) against the source code, with evidence Reframe checks, then write      +recommended requirements, one SME list and the reconciliation page; needs the run's      +assessments done, and no AWS resources                                                   +reframe review   Read the review downloads in a folder and show each reviewer's coverage, sign-offs and   +where reviewers disagree; runs nothing, and the next reframe reconcile --context with    +the same folder combines them                                                            +reframe export   Write a run's reconciled results as one Excel workbook: domains, functions,              +capabilities, requirements, business rules, decision tables, open questions and the SME  +list, with the reviewers' marks; runs nothing                                            +reframe design   The design (pipeline 4): legacy and modern screens, journeys, the clickable prototype,   +final specifications and the AI-DLC package, from the reconciled results; a round redoes +only what new context touches                                                            +reframe compare  Build the page comparing AWS Transform's and Claude's results again                      +reframe publish  Optional: copy a run's reports, cleaned of the AWS account's identifiers, into a folder  +others can open, upload the run's source, results and reports to your account's private  +bucket, or publish the copy to a GitHub Pages site                                       +reframe reports  The reports published to your AWS account: list them, open one with your AWS sign-in, or +remove the bucket                                                                        +reframe teardown List every AWS resource the run created, ask for consent, record it, then remove them    + +Examples +reframe                                              the home screen: your runs, the next step and a menu +reframe run                                          a guided run: checks the prerequisites, the AWS      +sign-in and the source, then starts                  +reframe run --source <folder | file.zip | github-url>start straight away, with no questions               +reframe run --tools claude --source <source>         Claude only: no AWS account, nothing to tear down    +reframe status                                       where the latest run is, and what to do next         +reframe answer                                       AWS's waiting question, in interactive mode          +reframe report --open                                open the business review in the browser              +reframe claude                                       the Claude assessment: the same snapshot, assessed   +with Claude as well                                  +reframe compare --open                               open the page comparing AWS Transform and Claude     +reframe export --to xlsx                             the reconciled requirements and business rules as an +Excel workbook                                       +reframe design --open                                the design: screens, journeys, the prototype, final  +specifications and the AI-DLC package                +reframe publish --to aws                             upload the run's source, results and cleaned reports +to your account's private bucket                     +reframe reports                                      list the published reports; reframe reports open     +<project> opens the latest                           +reframe teardown                                     remove the AWS resources the run created             + +Options +--version               show program's version number and exit                                            +-h, --help              this help                                                                         +reframe <command> --help shows a command's options. diff --git a/docs/images/cli-home.svg b/docs/images/cli-home.svg index 2e88ed87..033c4fc9 100644 --- a/docs/images/cli-home.svg +++ b/docs/images/cli-home.svg @@ -1,4 +1,4 @@ - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + + + + + + + + + + - reframe + reframe - + - - ╭──────────────────────────────────────────────────────────────────────────────────────────────────────╮ -││ -│REFRAME│ -│From mainframe source to requirements and business rules your business can review│ -│Prerequisites  →  Sign in  →  Source  →  AWS Transform and Claude  →  Reconcile  →  Review│ -││ -╰────────────────────────────── AWS Transform · Claude · Reconciliation ───────────────────────────────╯ - -Run    Project  Status Stage  Claude Reconcile Started              AWS resources -──────────────────────────────────────────────────────────────────────────────────────────────────────── -a1b2c3 carddemo DONE   report DONE   DONE      2026-11-23 08:30 UTC in place      - -Suggested next step  choose 9 to open the reconciliation of run a1b2c3; answer its SME list and choose 8 -to run it again -╭──────────────────────────────────────────────── Menu ────────────────────────────────────────────────╮ -│ 1  Start a guided run                           9  Open the reconciliation                       │ -│ 2  Run status                                  10  Publish a run's reports to AWS                │ -│ 3  Answer a waiting question                   11  Published reports                             │ -│ 4  Resume a run                                12  Event log                                     │ -│ 5  Open the business review                    13  Tear down a run                               │ -│ 6  Assess with Claude                          14  Set up prerequisites and sign-in              │ -│ 7  Open the comparison                         15  Help                                          │ -│ 8  Reconcile the two assessments                0  Exit                                          │ -╰──────────────────────────────────────────────────────────────────────────────────────────────────────╯ -reframe <command> --help  a command's options   ·   reframe run --source …  run with no questions   ·    -Ctrl+C  back to the menu + + ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +││ +│REFRAME│ +│From mainframe source to reviewed requirements, business rules and a design to build from│ +│Prerequisites  →  Sign in  →  Source  →  AWS Transform and Claude  →  Review  →  Reconcile  →  Design  →│ +│Share│ +││ +╰───────────────────────────── AWS Transform · Claude · Reconciliation · Design ─────────────────────────────╯ + +Run    Project  Status Stage Claude Reconcile Started               AWS resources       +────────────────────────────────────────────────────────────────────────────────────────────────────────────── +f6bf0b claims   DONE   done  DONE   DONE      2026-11-26 10:00 UTC  none (Claude only)  +1178ff carddemo DONE   done  DONE   DONE      2026-11-24 02:15 UTC  removed             + +Suggested next step  choose 10 to design the modern application from run f6bf0b; choose 9 to open its  +reconciliation +╭─────────────────────────────────────────────────── Menu ───────────────────────────────────────────────────╮ +│ 1  Start a guided run                             10  Design the modern application                    │ +│ 2  Run status                                     11  Publish a run to AWS (optional)                  │ +│ 3  Answer a waiting question                      12  Published reports                                │ +│ 4  Resume a run                                   13  Event log                                        │ +│ 5  Open the business review                       14  Tear down a run                                  │ +│ 6  Assess with Claude                             15  Set up prerequisites and sign-in                 │ +│ 7  Open the comparison                            16  Help                                             │ +│ 8  Reconcile the two assessments                   0  Exit                                             │ +│ 9  Open the reconciliation                        │ +╰────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +reframe <command> --help  a command's options   ·   reframe run --source …  run with no questions   ·   Ctrl+C +back to the menu diff --git a/docs/images/readme/after-dark.png b/docs/images/readme/after-dark.png new file mode 100644 index 00000000..b9b7e283 Binary files /dev/null and b/docs/images/readme/after-dark.png differ diff --git a/docs/images/readme/after-light.png b/docs/images/readme/after-light.png new file mode 100644 index 00000000..9e19e253 Binary files /dev/null and b/docs/images/readme/after-light.png differ diff --git a/docs/images/readme/before-dark.png b/docs/images/readme/before-dark.png new file mode 100644 index 00000000..b885def1 Binary files /dev/null and b/docs/images/readme/before-dark.png differ diff --git a/docs/images/readme/before-light.png b/docs/images/readme/before-light.png new file mode 100644 index 00000000..3f839f56 Binary files /dev/null and b/docs/images/readme/before-light.png differ diff --git a/docs/images/readme/compare-dark.png b/docs/images/readme/compare-dark.png new file mode 100644 index 00000000..66e45c2c Binary files /dev/null and b/docs/images/readme/compare-dark.png differ diff --git a/docs/images/readme/compare-light.png b/docs/images/readme/compare-light.png new file mode 100644 index 00000000..30572612 Binary files /dev/null and b/docs/images/readme/compare-light.png differ diff --git a/docs/images/readme/design-dark.png b/docs/images/readme/design-dark.png new file mode 100644 index 00000000..d1c2c13d Binary files /dev/null and b/docs/images/readme/design-dark.png differ diff --git a/docs/images/readme/design-light.png b/docs/images/readme/design-light.png new file mode 100644 index 00000000..d2643d43 Binary files /dev/null and b/docs/images/readme/design-light.png differ diff --git a/docs/images/readme/logo-dark.svg b/docs/images/readme/logo-dark.svg new file mode 100644 index 00000000..70330eda --- /dev/null +++ b/docs/images/readme/logo-dark.svg @@ -0,0 +1,7 @@ + + Reframe + + + + + diff --git a/docs/images/readme/logo-light.svg b/docs/images/readme/logo-light.svg new file mode 100644 index 00000000..a786747f --- /dev/null +++ b/docs/images/readme/logo-light.svg @@ -0,0 +1,7 @@ + + Reframe + + + + + diff --git a/docs/images/readme/review-dark.png b/docs/images/readme/review-dark.png new file mode 100644 index 00000000..df587a71 Binary files /dev/null and b/docs/images/readme/review-dark.png differ diff --git a/docs/images/readme/review-light.png b/docs/images/readme/review-light.png new file mode 100644 index 00000000..14e4a357 Binary files /dev/null and b/docs/images/readme/review-light.png differ diff --git a/docs/images/readme/social-preview.png b/docs/images/readme/social-preview.png new file mode 100644 index 00000000..95e94dbf Binary files /dev/null and b/docs/images/readme/social-preview.png differ diff --git a/docs/images/reframe.svg b/docs/images/reframe.svg index ee3bfcfe..9b1ba434 100644 --- a/docs/images/reframe.svg +++ b/docs/images/reframe.svg @@ -1,6 +1,6 @@ - + How a Reframe run works - A run starts with the prerequisites, the AWS sign-in, the source and a snapshot, then Terraform creates the buckets, roles and a Neptune graph. Two assessments then run side by side on the same snapshot: the AWS Transform assessment uploads it and drives the AWS Transform job (analysis, business functions, reimagine, requirements) and retrieves the results; the Claude assessment starts as soon as the Neptune graph exists, runs Claude's code-modernization plugin (assess and map, rule cards), puts its results in AWS Transform's shape with requirements generated by Reframe, and loads Claude's graph into the same Neptune cluster. Reframe then builds AWS Transform's business review, Claude's business review and the comparison. The reconciliation, reframe reconcile, then reconciles the two: rules both tools describe the same way are agreed without an agent, every other rule is decided by Claude against the source code with evidence Reframe checks, both tools' open questions become one SME list with the possible defects found in the code, and recommended requirements and the reconciliation page are written from the result; it needs no AWS resources. reframe publish makes a cleaned copy to share. Teardown runs only when you ask. You sign in, answer questions in interactive mode and set Claude's agent limit, review and compare, give the reconciliation your context and answers, and consent before teardown deletes anything. + A run starts with the prerequisites, the AWS sign-in, the source and a snapshot, then Terraform creates the buckets, roles and a Neptune graph. Two assessments then run side by side on the same snapshot: the AWS Transform assessment uploads it and drives the AWS Transform job (analysis, business functions, reimagine, requirements) and retrieves the results; the Claude assessment starts as soon as the Neptune graph exists, runs Claude's code-modernization plugin (assess and map, rule cards), puts its results in AWS Transform's shape with requirements generated by Reframe, and loads Claude's graph into the same Neptune cluster. Reframe then builds AWS Transform's business review, Claude's business review and the comparison. The reconciliation, reframe reconcile, then reconciles the two: rules both tools describe the same way are agreed without an agent, every other rule is decided by Claude against the source code with evidence Reframe checks, both tools' open questions become one SME list with the possible defects found in the code, and recommended requirements and the reconciliation page are written from the result; it needs no AWS resources. The design, reframe design, then reads the legacy screens and how they connect, groups them into journeys, designs modern screens with every legacy field mapped, draws a clickable prototype beside the legacy screens, writes a final specification for every capability and an AI-DLC package for Kiro, Claude Code and Spec Kit; each round redoes only what new context touches. reframe publish makes a cleaned copy to share. Teardown runs only when you ask. You sign in, answer questions in interactive mode and set Claude's agent limit, review and compare, give the reconciliation your context and answers, and consent before teardown deletes anything. @@ -11,10 +11,10 @@ - + - Reframe assesses one snapshot with AWS Transform and with Claude, then reconciles the two against the code + Reframe assesses, reconciles and redesigns a mainframe application from one snapshot Reframe @@ -42,8 +42,9 @@ + - + @@ -51,7 +52,8 @@ - + + @@ -160,17 +162,43 @@ the reconciled review - - - 5 Share - reframe publish: a copy of the reports, cleaned of the account's identifiers, that anyone can open - Reframe + + + 5 The design + reframe design · Reframe and Claude + + + + + + + + + + + + + Screens and flow + from the maps and code + Journeys, modern screens + every legacy field mapped + Clickable prototype + beside the legacy screens + Specifications, package + Kiro, Claude Code, Spec Kit + - - - 6 Teardown, only when you ask - Everything the run created, by its own records, in order - Reframe + + + 6 Share + reframe publish: a copy of the reports and the design, cleaned of the account's identifiers, that anyone can open + Reframe + + + + 7 Teardown, only when you ask + Everything the run created, by its own records, in order + Reframe @@ -197,7 +225,13 @@ the answered SME list run again: only what changed - - Consent - Type yes to the full list + + Stack and context + The target stack, personas, + decisions, prototype marks + fill in the package's placeholders + + + Consent + Type yes to the full list diff --git a/docs/pipeline-2.md b/docs/pipeline-2.md index 72b41744..8cf7a5c0 100644 --- a/docs/pipeline-2.md +++ b/docs/pipeline-2.md @@ -57,15 +57,30 @@ Each stage records an intent before it starts and a receipt when it ends, in the Checked before anything runs, each failure stopping with the exact fix: - pipeline 1's snapshot and AWS resources exist (its stages 1 and 2 are done), and the run is not torn down; -- Claude Code is installed and signed in for the chosen way: - - **subscription** (default): the person's own Claude Code sign-in; - - **bedrock**: Claude Code's Amazon Bedrock settings (`CLAUDE_CODE_USE_BEDROCK=1` and the run's region), either with the run's AWS profile (its exported short-lived credentials, as Terraform gets them) or with a Bedrock API key the person has set in their environment (`AWS_BEARER_TOKEN_BEDROCK`). Reframe passes the key through to Claude Code and never writes it anywhere. A model chosen with `ANTHROPIC_MODEL` is passed on. +- Claude Code is installed and signed in for the chosen way (section 4.1). - the plugin, at the version Reframe pins: Reframe fetches the plugin's folder from Anthropic's plugin repository at one pinned commit into `~/.reframe/tools/code-modernization/` and loads it with `claude --plugin-dir`, so every run uses the same plugin whatever the marketplace holds, and nothing is installed into the person's Claude Code settings; - `python3` 3.8 or later, which the plugin's scripts need; - the plugin's usage counts are turned off for Reframe's runs (`CODE_MODERNIZATION_TELEMETRY=0`): Reframe does not need them. The guided setup offers to install or sign in to anything missing, only on a yes, as in pipeline 1. +### 4.1 How Claude signs in + +The same three ways for every step that runs Claude: the Claude assessment, the reconciliation and the design. `--auth` on `reframe run`, `reframe claude`, `reframe reconcile` and `reframe design` chooses one, and the guided run asks. A sign-in is checked with no call to a model. + +| `--auth` | What Claude Code is given | Billed | Checked before a step | +|---|---|---|---| +| `subscription` (default) | Its own sign-in (`claude auth login`) | On the person's Claude subscription, within its usage limits | `claude auth status` says signed in, first party | +| `api-key` (SC-04) | `ANTHROPIC_API_KEY`, and `ANTHROPIC_BASE_URL` when set (a company's gateway), from the shell that runs Reframe | To the API key, at API prices | The variable is set | +| `bedrock` | `CLAUDE_CODE_USE_BEDROCK=1` and the run's region, with the run's AWS profile (its exported short-lived credentials, as Terraform gets them) or a Bedrock API key in `AWS_BEARER_TOKEN_BEDROCK` | To the AWS account | The profile signs in (STS), or the Bedrock API key is set | + +- **Keys are never written.** Reframe reads a key from the environment and puts it only in the environment of the Claude Code process it starts. The run folder records the way (`auth`), never a key. A copy that `reframe publish` cleans has any `sk-ant-` key replaced, and the check before writing names one if it is left. +- **One way at a time.** The environment is built from nothing, so an `ANTHROPIC_API_KEY` in the shell does not override the subscription, and the subscription is not used when another way is chosen. +- **A model** chosen with `ANTHROPIC_MODEL` (on Bedrock, an inference profile ID) is passed on, whatever the way. +- **Bedrock on a Claude-only run** (SC-05): `reframe run --tools claude --auth bedrock --profile --region ` records the profile and region for Bedrock only. The run creates no AWS resources and has nothing to tear down. With `AWS_BEARER_TOKEN_BEDROCK` set, no profile is needed. Without either, the Claude assessment stops at once with this fix. +- **The estimate** says who is billed: on the subscription, to the API key, or to the AWS account. +- **Live acceptance** of Bedrock (SC-03) waits for the owner's security clearance for the codebase. The API-key way is checked offline, then in a live run on the owner's yes. + ### How Claude Code is run Each plugin step is one headless `claude -p` run in the workspace (spike P2-01): diff --git a/docs/pipeline-3.md b/docs/pipeline-3.md index 2b28e6c7..e45369d3 100644 --- a/docs/pipeline-3.md +++ b/docs/pipeline-3.md @@ -39,6 +39,7 @@ Out of scope: |---|---| | `reframe reconcile [--run ] [--context ] [--auth subscription\|bedrock] [--max-batches ] [--foreground]` | Runs stages R0 to R7 on a run, in a background worker. `--context` is the folder of human context (stage R1). `--max-batches` is the limit for stage R4 (default 120): Reframe stops and asks if its estimate is higher. | | `reframe reconcile --open` | Opens the reconciliation page. | +| `reframe review [--run ] --context ` | Reads the review downloads in a folder and shows each reviewer's coverage, sign-offs and where reviewers disagree (section 8.11); runs nothing. | Run it again, with more context or answered questions, and only the rules whose inputs changed are decided again (stage R4, *Running again*). `reframe status`, `events`, `resume` and `publish` cover pipeline 3; the home screen shows its status per run and gets a menu entry. @@ -163,7 +164,8 @@ How it is built: the page uses the same template as the two reviews, so marks, s In addition to pipelines 1 and 2: - `reconcile/inputs/`: the items, open questions and the context as read (stage R1); -- `reconcile/decisions.json`: each unit's decision, with its input hash and round; `reconcile/steps.json`, the decision steps' time and usage; `reconcile/agreed.json`; +- `reconcile/decisions.json`: each unit's decision, with its input hash and round; `reconcile/steps.json`, the decision steps' time and usage; `reconcile/agreed.json`, and `reconcile/described.json`, the agreed rules' description (section 8.4); +- `reconcile/reviews.json`: the review downloads `reframe review` read (section 8.11); - `reconcile/questions.csv`, `questions.json`, and the merges they came from (`sme-merges.json`, `sme-steps.json`); - `outputs/reconcile/`: the recommended rules, the recommended requirements and the page. @@ -199,3 +201,270 @@ Every point passed on fa1f61, from the CLI, on the Claude subscription. The cont Found and fixed in the run: an answer giving the tool's question code (OQ-008) was not matched to its question, since codes repeat from one function to the next (it now matches by code and one of the question's rules); a resumed round replaced its estimate with what was left of it (a round now keeps its first estimate); and the header said "no context folder" when a request kept the one given before. + +## 8. Part 2: accuracy and the review loop + +Part 2 (P3-11 to P3-24 in the plan) starts by measuring how accurate the recommended rules are (section 8.1). The other stories, specified from what the audit found, are in sections 8.2 to 8.12. + +### 8.1 The accuracy audit (P3-11) + +The evidence check of R4 proves that the cited lines exist, not that they support the rule. The audit measures that, on a sample, with two judges that did not decide the rules and do not see how they were decided. + +**Command.** `python -m reframe.reconcile.audit [--run ] [--size 60] [--seed 1]`, on a run whose reconciliation is done. It needs no AWS resources and reads the snapshot only. It writes to `reconcile/audit/` in the run folder; a second run reuses the sample and every judgment already made, so it continues after a usage limit and costs nothing once complete. + +**The sample.** Drawn once, with a fixed seed, across the decision kinds, so that the rare kinds are checked at all: + +| Kind | Items | +|---|---| +| Agreed without an agent | 8 | +| Merged | 20 | +| Kept, found only by AWS Transform | 12 | +| Kept, found only by Claude | 8 | +| Rewritten from the code | 6 | +| Claude's rule chosen | all (2 on CardDemo) | +| Rejected (the input rule that was rejected) | all (3 on CardDemo) | + +A kind with fewer rules than its share gives all it has. The `needs_sme` units are left to the SME. A possible-defect note belongs to a unit, not a rule, so it is judged once, with the first sampled rule of its unit. + +**The judges.** Two headless Claude Code steps judge every item on their own, each with read-only access to the snapshot: the model that decided the rules (Opus 5.5 on CardDemo) in a fresh session, and a different model (Sonnet 5.5). Each judge is given an item's rule, the source lines it cites, the input rules it stands for and the other rules made from them (its siblings). It is not given the decision, reason, confidence or the other judge's answer. Items are judged in batches of up to 6, a program's items together and small programs packed, at most 4 batches at a time. The judge answers: + +- `verdict`, on how the system behaves when it runs: `correct` (every statement is true of what the code does), `minor` (true in substance, with a wrong or missing detail: a value, a condition, a message), `wrong` (the code does not do this, a condition or behaviour is materially different, or the code the rule describes can never run) or `unsure` (the source cannot settle it); +- `evidence`: `supports`, `partly` or `no`, for the rule's cited lines; +- `lost`: a true detail of the input rules that neither the rule nor its siblings states, or empty; +- `defect` (where the item has a note): `real`, `not_a_defect` or `unsure`; +- a reason and the lines it read, which Reframe checks exist in the snapshot. An answer that fails the check is asked for once more, then recorded as `unsure`. + +For a rejected item the input rule itself is judged: a `wrong` or `unsure` verdict means the rejection stands. + +**Settling.** Where the two judges give different verdicts, or different defect answers, the item goes to `reconcile/audit/settle.csv` with both answers and an empty `owner` column for the owner to fill in. Items the judges agree on take their shared answer. + +**The figures** (`reconcile/audit/audit.json`, and the results below): per decision kind and overall, the share of items `correct`, `correct` or `minor`, and `wrong`; how often the judges agreed; the confidence of the items found `minor` or `wrong`; the share of defect notes found `real`; and the time and cost of each judge. + +### Results (P3-11, 25 November 2026) + +On CardDemo run fa1f61: 59 items (56 recommended rules and the 3 rejected input rules), judged by Opus 5.5 in a fresh session and by Sonnet 5.5, on the Claude subscription. Both judges took about 7 to 9 minutes; together they cost about $8 at API prices. Seven items wait for the owner's settling, so the figures below give the judges' shared answers and, for the disputed items, a range. + +| Kind | Items | Both judges: correct | Disputed | Both judges: wrong | +|---|---|---|---|---| +| Agreed without an agent | 8 | 6 | 2 | 0 | +| Merged | 20 | 20 | 0 | 0 | +| Kept, found only by AWS Transform | 12 | 10 | 2 | 0 | +| Kept, found only by Claude | 8 | 7 | 1 | 0 | +| Rewritten from the code | 6 | 6 | 0 | 0 | +| Claude's rule chosen | 2 | 2 | 0 | 0 | +| **Recommended rules** | **56** | **51 (91%)** | **5** | **0** | +| Rejected input rules | 3 | – | 0 | 3: every rejection upheld | + +- **Accuracy.** Between 51 and 56 of the 56 recommended rules are correct (91% to 100%), and no rule was judged wrong by both judges. The 5 disputed rules are a wrong or missing detail in 3 cases and, in 2, behaviour that does not happen when the code runs: a menu branch no menu entry reaches, and a load job whose job card carries `TYPRUN=SCAN`, so it is only syntax-checked. With 56 items this is a sample: the share of correct rules in the whole set could be lower by about 10 points. +- **Where the errors are.** Merged and rewritten rules, the ones an agent decided against the code with both tools' rules in front of it, were all correct (26 of 26). The disputed rules are rules both tools described the same way, which no agent checked, and rules only one tool found. Two tools agreeing is not proof. +- **Rejections.** All 3 were right: each rejected rule describes code that can never run. +- **Confidence.** Every sampled rule is rated high, the disputed ones included, so confidence says nothing about which rules to check (P3-12). +- **Possible defects.** Of the 27 unit notes judged, both judges found 24 real, 1 not a defect, and 2 are disputed. The notes are mostly right. The earlier count of 636 rules with a note came from each unit's note being repeated on every rule of the unit; 187 of the 431 units have one. P3-13 therefore becomes showing each note once, on its unit, and telling real defects from deliberate behaviour, rather than cutting their number. +- **The judges.** They agreed on 54 of the 59 verdicts and on 25 of the 27 defect answers. Both are Claude models, so they are independent of the decisions but not of each other's training; a judge from another model family would be a stronger check. +- **The audit's own questions.** A first pass, kept as `reconcile/audit-v1/`, showed three ways the questions misled the judges: a rule describing code that can never run was judged `correct`, which made right rejections look wrong; one rule of a unit split in two was said to lose the other half; and a unit's defect note was judged on every sampled rule of the unit. The method above fixes all three. + +**Settled (25 November 2026).** The owner settled the 7 disputed items in `settle.csv`. Of the 56 recommended rules, 51 are correct (91%), 3 have a wrong or missing detail and 2 are wrong; 54 of 56 (96%) are correct in substance. The 3 with a wrong detail are one rule agreed without an agent and two kept from one tool. The 2 wrong rules both describe code that never runs: a rule agreed without an agent about a menu branch no menu entry reaches, and a kept AWS Transform rule about a load job whose job card carries `TYPRUN=SCAN`. Of the 27 defect notes, 25 are real, 1 is not a defect and 1 is unsure. Every sampled rule was rated high. Sections 8.2 to 8.11 follow from these figures. + +### 8.2 What part 2 changes, and where the ideas came from + +The audit shows three things the review needs: which rules to check first (confidence says nothing today), whether the code a rule describes ever runs, and fewer, clearer items for an SME (1,204 rules and 2,358 items to mark). Part 2 adds, to every recommended rule, what a reviewer needs to judge it quickly: how far to trust it, what kind of rule it is, and worked examples. It adds decision tables and a risk level to each capability, a *Review first* view, sign-off by function, and a review loop that reads marks on every item, from any number of reviewers, in either download. + +The rule kinds, worked examples, decision tables and risk levels come from public demonstrations of spec-driven mainframe modernization, whose business-rule, test and UI role files ask for each rule's kind, examples and decision table, and rank capabilities by risk. Reframe keeps what those demonstrations lack: every statement is checked against the source. + +Every rule is decided again in the first round after part 2: the decision step's prompt and schema change, so Reframe adds a method version to each unit's input hash (stage R4, *Running again*) and to each function's (stage R6). On CardDemo that is one full round (stage R3's estimate: about 113 batches). + +### 8.3 The decision step's answer (P3-12, P3-13, P3-21, P3-22) + +Stage R4's answer for each unit gains these fields; the checks in stage R4 apply to them, and an answer that fails is asked once more as before. + +| Field | What it holds | Checked | +|---|---|---| +| `reachable` | Whether the code the unit's rules describe runs: `yes`, `no` or `unknown` | `yes` needs `entry` | +| `entry` | The lines that show how the code is reached: the menu entry, transaction, `XCTL`/`LINK`/`CALL`, or the job step (not `TYPRUN=SCAN`, not commented out) that runs it | Every range exists in the snapshot | +| `depends` | What the behaviour depends on outside the source (data, configuration, a program not in the source), or empty | – | +| `defect` | `{text, call, evidence}`: the possible defect, whether it looks `unintended` or `deliberate`, and the lines that show which | A `text` needs a `call` and evidence that exists | +| `rules[].kind` | Each recommended rule's kind (section 8.6) | One of the kinds | +| `rules[].examples` | One to three worked examples per rule (section 8.7) | Section 8.7 | + +The prompt says: check that the code can run. A paragraph is reached from the program's entry, a program from a menu entry, transaction or a job step that runs. A rule describing code that can never run is `rejected`. A group may now be `rejected` when the code both tools describe never runs. A unit whose answer says `reachable: no` with any other decision fails the check. + +### 8.4 Rules both tools describe the same way + +The owner's decision stands: identical pairs are agreed without an agent deciding them (stage R2). They still need the description every other rule has, and the audit found one of them wrong. So one more step, **R2b**, describes them without deciding them. Agreed rules are batched by program, up to 12 a batch and four batches at once, and a headless step reads each rule's cited lines and answers `reachable`, `entry`, `depends`, `kind` and `examples`. It answers no `decision` and does not change the wording. The checks of section 8.3 apply. A rule the step finds `reachable: no` stays agreed, is rated low (section 8.5), and is listed first in *Review first*. On CardDemo: 51 rules, about 5 batches, about $5 at API prices. + +### 8.5 Confidence that means something (P3-12) + +Reframe sets each recommended rule's confidence from facts it can check, not from the model's word. The model's own rating is kept as `model_confidence`. + +| Confidence | When | +|---|---| +| **high** | An agent decided it against the code with both tools' rules in front of it (`merged`, `aws`, `claude`, `rewritten`), and the code is `reachable: yes` with an `entry` that exists | +| **medium** | It was kept from one tool (`kept`), or agreed without an agent (section 8.4), or `reachable` is `unknown` | +| **low** | An agreed rule whose code never runs (section 8.4), or a unit that fell back to an SME question | + +Why these lines: in the audit every rule an agent decided with both tools' rules was correct (26 of 26), and every error was a rule agreed without an agent or kept from one tool. The two wrong rules described code that never runs. + +What the behaviour depends on outside the source (`depends`) is shown with the rule. It does not lower the confidence of a rule whose code is shown to run. The first round after part 2 rated 70% of CardDemo's rules medium, and 580 of those were medium only because the step named a dependency, often ordinary input data. The prompt now asks only for what decides the behaviour from outside the source: configuration, a control or reference table loaded at run time that chooses the path, or a program not in the source. + +**Done when** the units of the five audit items that were not correct (A02, A03, A31, A32, A41) are rated medium or low, or are rejected, in the first round after part 2. The audit's figures by confidence (section 8.12) show the errors in the lower levels. + +### 8.6 What kind of rule (P3-21) + +Each recommended rule has one kind, so a business reader can start with business rules and leave formatting and technical steps to developers. + +| Kind | What it is | +|---|---| +| `business` | A business decision, policy or calculation: who may do what, how an amount is worked out | +| `validation` | A check on input data, with the message given when it fails | +| `error_handling` | What happens when something fails: a file status, an abend, a rollback | +| `display` | What a screen or report shows and how: layout, formatting, messages that are not validation | +| `technical` | A technical step: opening a file, moving data between records, sorting, restart and checkpoint | +| `side_effect` | A record of what happened: an audit or log record, a counter, a file written for another system | +| `compliance` | Security and access control, the handling of card or personal data, a regulatory record | +| `leftover` | Behaviour that runs but serves no purpose today: a field never read, an option that leads nowhere | + +The page shows the kind on each rule and can filter by it. *Review first* and the business pages list `business`, `validation` and `compliance` rules first. + +### 8.7 Worked examples (P3-22) + +Each recommended rule has one to three worked examples, each a `given` (the inputs, as field and value) and a `then` (the outcome). They use the values, codes and messages the code has, so a reviewer can check a rule against a case they know. The same examples become acceptance criteria in the exports (S-13) and test data in pipeline 4. + +**The check.** Every quoted value in an example (a message, a code in quotes) must appear in a file the decision cites. Numbers are not checked: an example may use any amount. An example that fails is removed and counted on its own rule (P3-27), so a rule with no examples always says how many were removed. A rule whose examples all fail keeps its decision, with no examples, so a bad example never sends a unit to an SME. The decision step must give every rule at least one example. Decisions made before P3-27 keep their unit's count on the unit's first rule until the unit is decided again. + +The page shows the examples under each rule as *For example*: given → then. + +### 8.8 Possible defects once, real or deliberate (P3-13) + +A possible defect belongs to the unit that found it, not to each of its rules. The page shows each note once, on the unit's first rule, with *applies to the N rules of this decision*. It shows the call, *looks unintended* or *looks deliberate*, and the lines that show it. + +On the SME list a defect becomes one entry of kind `defect`, with its call. An unintended one asks "Is this intended?". A deliberate one asks "Confirm this is deliberate". The entry cites the defect's evidence. The audit judges the call: `real` means unintended, `not_a_defect` means deliberate or not happening. + +### 8.9 Decision tables and risk, per capability (P3-23, P3-24) + +Stage R6's step writes two more things for each capability, from the rules it was given: + +- **Decision tables (P3-23).** Where three or more of a capability's rules share their conditions, a table with the conditions as columns and one row per combination, each row giving its outcome and the rule it comes from. A combination no rule covers is listed under the table as a gap, for an SME. Reframe checks that every row cites a rule the step was given; a row that cites none is dropped, and a table left with no rows is dropped. +- **Risk (P3-24).** What the capability touches, from a fixed list: `money` (amounts, balances, interest, fees), `card_data`, `personal_data`, `security` (sign-on, access), `audit`, `updates_records` (writes to master data), `reporting_only`. Reframe sets the risk from these, not the model: **high** if it touches money, security or audit, or holds a `compliance` rule; **medium** if it holds card or personal data or updates records; **low** otherwise. A function's risk is its highest capability's. (Card and personal data were high at first, which rated every CardDemo function high: in a card system nearly everything holds card data.) + +The capability page shows its tables, gaps and risk. The function and domain cards show the risk, and the overview counts functions by risk. *Review first* and sign-off take high-risk functions first. Pipeline 4 uses the order to propose what to modernize first. + +### 8.10 Review first (P3-14) + +The reconciled review opens with a *Review first* view. It lists the items an SME should check before the rest, in this order: + +1. rules whose code never runs (low); +2. conflicts: rules from a unit with a conflicting pair; +3. rules rewritten from the code; +4. units waiting for an SME; +5. possible defects that look unintended; +6. rules kept from one tool; +7. the other medium-confidence rules. + +Within each group, items from high-risk capabilities come first (a rule takes the risk of the first capability whose requirements cite it), and `business`, `validation` and `compliance` rules before the other kinds. Capability risk is used rather than function risk because a function takes its riskiest capability's: on CardDemo 10 of 11 functions are high, against 74 of 153 capabilities. Each group shows its count and how many are marked. Filters choose decision kind, rule kind, confidence and capability risk. On CardDemo, after the recalibration, the view lists the 467 medium and low rules and the open items. The 718 high-confidence rules need not be opened to finish it. + +### 8.11 The review loop (P3-15 to P3-19, P3-25) + +**Sign-off by function (P3-15).** Every review page (AWS Transform's, Claude's and the reconciled review) has a *Sign off this function* button on each function, with an optional comment. A sign-off records the reviewer's name and the time. The downloads carry the sign-offs: the JSON has a `signoffs` list, and the CSV has one row of type `sign-off` per function. The reconciliation reads them from the context folder. `reframe status` lists the signed-off functions, by page, with who signed and when. The reconciled review shows a *Signed off by* tag on the function and its card. A sign-off on another snapshot's review is ignored, like its marks. Pipeline 4 takes signed-off functions as final. + +**Marks on requirements and capabilities (P3-16).** The reconciled review's capabilities can be marked too. A *Needs change* or *Question* mark on a requirement or a capability, with its comment, goes to the requirements step of its function in the next round. The step is given the marked item's previous text and the comment, and told to address it where the rules support it. That function's requirements are written again; no unit is decided again for such a mark, and no other function changes. + +**The CSV download read (P3-17).** The CSV download gains a `key` column. A CSV with the review columns (`key`, `status`, `source_sha256`) in the context folder is read like the JSON download. One whose `source_sha256` is another snapshot's is ignored with that reason. One without a `key` column (downloaded before part 2) is ignored, with the reason "download it again from the page". + +**Agree keeps a rule (P3-18).** A recommended rule marked *Agree* on the reconciled review is kept as agreed: + +- A unit whose recommended rules were all marked *Agree* keeps its decision in later rounds, even when a document changes. Only a later *Needs change* or *Question* mark on one of its rules, or a change to its input rules or to an answer that names them, reopens it. +- A unit decided again with some rules agreed gives those rules to the step as *agreed by a reviewer: keep this wording unless the code contradicts it*. +- A requirement marked *Agree* is kept word for word by Reframe while the rules it cites are unchanged. The step is told those rules are already covered. + +**What nobody marked is kept (P3-26).** When a function's requirements are written again, for a mark or because its rules changed, every requirement of the previous version that no reviewer marked *Needs change* or *Question*, and that is not in a capability so marked, is kept word for word with its code, in its capability with that capability's story, touches and decision tables, while every rule it cites is unchanged and still in the function. The step is told those rules are already covered and writes requirements only for the rest: the marked items, the marked capabilities' requirements, and rules that are new or changed. A reviewer's earlier marks therefore still point at the text they marked. On CardDemo in P3-20, before this, a function written again for one requirement and one capability reworded 34 of its 36 requirements. Replayed on the same round, P3-26 keeps 30 word for word and writes 6 again: the 5 of the capability asked about, and the one whose rule round 4 decided again. + +The page shows *Agreed by , * on each agreed item. + +**Several reviewers (P3-19).** `reframe review [--run ] --context ` reads every review download in the folder, without running anything, and shows: + +- each reviewer's file, page and snapshot; +- their marks by status; +- their coverage of that page's items; +- their sign-offs; +- the items two reviewers marked differently, with each mark and comment. + +It writes `reconcile/reviews.json`. The next round combines every reviewer's marks. *Needs change* and *Question* take precedence over *Agree*. Comments from every reviewer are kept, each prefixed with the reviewer's name. + +**Reviews of a published copy (P3-25).** A reviewer who has no Reframe marks the copy that `reframe publish` made. That copy replaces each AWS Transform ID with a stand-in (`id-` and ten hex digits), and the IDs appear in keys: AWS Transform's rule keys, and the reconciled review's keys built from them (`rec/aws:///1`). So the download names those items differently from the run. The next round and `reframe review` read such downloads: before combining, each mark's key and each sign-off's function are named as the run names them, for every item on AWS Transform's, Claude's and the reconciled review (requirements, rules, open questions, capabilities and functions). A mark or sign-off made on a published copy then counts exactly as the same one made on the run's own page: it reaches the next round, it shows as *Agreed by* or *Signed off by* on the reconciled review, and `reframe review` counts it in the reviewer's coverage. + +### 8.12 Acceptance of part 2 (P3-20) + +Part 2 is done when, from the CLI only, on CardDemo run fa1f61: + +- **Round 3** (the first after part 2) decides every unit again within its estimate. Every recommended rule has a kind, a confidence set by Reframe, and examples that passed their check or a count of those removed. Every unit has `reachable` with an `entry` that exists, or a reason. +- **The audit**, re-run on a new sample (`--seed 2`), with the P3-11 audit kept as `reconcile/audit-p3-11/`, shows: + - no fewer correct rules than P3-11's 91%; + - no wrong rule rated high; + - the five P3-11 items that were not correct (section 8.5) now medium, low or rejected; + - the judges agreeing with the defect calls. +- **Possible defects**: each is shown once on the page, and the SME list's defect entries match the units' notes one to one. +- **Two reviewers' files**, one JSON and one CSV, carry marks, sign-offs, a *Needs change* on a requirement, a disagreement and an *Agree* on a whole unit. `reframe review` shows their coverage and the disagreement. **Round 4** decides again only the marked units, writes again only the marked function's requirements, keeps the agreed unit, and shows the sign-offs in `reframe status` and on the page. +- The README and `docs/cli.md` describe part 2 from the tested commands. + +### Results (P3-20, 25 November 2026) + +On CardDemo run fa1f61, from the CLI, on the Claude subscription, with no AWS resources. + +**Round 3**, the first after part 2, decided all 431 units again. The estimate was 113 batches, 29 to 87 minutes and $56 to $130 at API prices. The round stopped once at Claude's usage limit and `reframe resume` finished it: about 52 minutes of work, and about $32 at API prices by the step logs. + +| | Round 3 | +|---|---| +| Recommended rules | 1,185 from 1,014 input rules (P3-10: 1,204 from 1,111) | +| Confidence set by Reframe | 718 high, 463 medium, 4 low (P3-10: 1,182 high). The model's own rating is kept beside it: 1,140 high, 45 medium | +| Kinds | validation 268, business 267, technical 256, error handling 169, display 167, compliance 30, leftover 16, side effect 12 | +| Code runs | 1,166 rules reached from lines that exist, 4 never run, 15 not shown by the source | +| Worked examples | 1,273 kept, 330 removed by the check | +| Possible defects | 182 unit notes (P3-10: 187), each shown once, matching the SME list's 182 defect entries one to one | +| Requirements | 1,131 in 153 capabilities, 114 decision tables; 10 functions high risk, 1 medium | + +A unit's count of removed examples is kept on its first rule only. So in 115 units, a later rule whose examples were all removed shows neither examples nor a count; in 5 more, the step gave a rule no example. + +**The five P3-11 errors** are all lower now: A02 (agreed, wrong detail) medium; A03 (a menu branch no entry reaches) low, with the code found never to run; A31 and A41 (kept from one tool, wrong detail) medium; A32 (a job under `TYPRUN=SCAN`) rejected. + +**The audit** on a new sample (`--seed 2`, the P3-11 audit kept as `reconcile/audit-p3-11/`) judged 76 items: 65 recommended rules and 11 rejected input rules. Opus 5.5 and Sonnet 5.5 took about 10 minutes and $10 at API prices. + +| Kind | Items | Both judges: correct | Minor | Disputed | +|---|---|---|---|---| +| Agreed without an agent | 8 | 6 | 1 | 1 | +| Merged | 20 | 19 | 0 | 1 | +| Kept, found only by AWS Transform | 12 | 8 | 2 | 2 | +| Kept, found only by Claude | 8 | 7 | 0 | 1 | +| Rewritten from the code | 6 | 6 | 0 | 0 | +| Claude's rule chosen | 11 | 10 | 0 | 1 | +| **Recommended rules** | **65** | **56 (86%)** | **3** | **6** | +| Rejected input rules | 11 | 10 upheld | | 1 | + +- No rule was judged wrong by both judges. Between 56 and 62 of the 65 are correct (86% to 95%), and 59 to 65 correct or minor; the target of 91% needs 4 of the 6 disputed rules settled correct. +- Every rule with a minor error is rated medium. Of the 6 disputed, 2 are rated high and 4 medium; P3-11 had every sampled rule rated high. +- The judges agreed on 20 of 21 defect calls (22 notes real, 2 not a defect, 3 disputed). +- Nine items wait for the owner in `reconcile/audit/settle.csv`; running the audit again then gives the final figures at no cost. + +**Two reviewers.** Pat's JSON download agrees with every rule of one merged unit (4 rules) and with one kept rule, marks a requirement *Needs change* and signs off a function. Sam's CSV download asks a *Question* on the same kept rule and on a capability, and signs off another function. All the marks are in one function, Account Statement Generation and Delivery. `reframe review` showed both reviewers, their sign-offs and the one disagreement, combined as a *Question*. + +**Round 4** estimated 1 batch for 1 unit and decided only the disputed unit again, keeping 430. The unit agreed in full kept its round 3 decision word for word. Only the marked function's requirements were written again: its 7 capabilities became 8 (the one asked about was split in two), 36 requirements became 41, and the requirement marked *Needs change* kept its text, since its rules (a sort step with no screen) do not support the comment. The other 34 were reworded although nobody marked them. Both sign-offs show in `reframe status` and on the page. + +**Open after P3-20.** The owner settles the nine audit items. Two changes follow from the figures: keep the unmarked requirements of a function that is written again word for word while their rules are unchanged, so reviewers' earlier marks still apply; and keep the count of removed examples on each rule. + +### 8.13 A mainframe expert's own check (SC-06) + +The audit's judges are Claude steps, and the owner settles where they differ, so the 91% says how often Claude agrees with Claude. SC-06 gives the same sample to a person who knows mainframe code, and measures the audit against them. + +**Command:** `python -m reframe.reconcile.expert pack [--run ]`, then `python -m reframe.reconcile.expert read --expert `. Neither calls a model. + +- **The sample:** the audit's own, when the run has one, so the expert's verdicts can be set beside the judges'. Without one, a sample is drawn the same way (`--size`, `--seed`). +- **Blind:** the pack shows each rule, its program and its cited lines, with two lines of context and the cited lines marked, and a unit's possible-defect note once. It never shows how a rule was decided, its kind, its confidence, the two tools' own rules or the judges' answers. +- **The pack:** `index.html`, one page with no scripts that opens anywhere. `verdicts.csv` to fill in: verdict (`correct`, `minor`, `wrong` or `unsure`, as the judges answer), defect, comment and the lines read. Also `README.md` with the same definitions the judges get, and `pack.json` naming the snapshot. It is cleaned as `reframe publish` cleans a copy, because it goes outside the team. A folder that is not empty is refused, so a filled-in sheet is never overwritten. +- **Reading it back:** every row is checked first, and a sheet with a bad value is refused whole, naming each bad row. The figures go to `reconcile/audit/expert-.json`: + - the expert's share of correct, and of correct or minor, recommended rules; + - the rejections they uphold; + - their agreement with each judge and with the audit's final verdicts; + - every item where they differ from the audit, with its kind and confidence; + - the rules they call wrong, with their comments. +- **What it tells us:** whether 91% holds when a person judges, and whether the errors sit in the lower confidence levels (section 8.5). + +**On CardDemo** (run fa1f61, 26 November 2026, on a copy): the pack holds the audit's 76 items, 27 of them with a possible-defect note, in a 590 KB page, and cleaning left nothing behind. The expert's verdicts are for the owner to arrange. diff --git a/docs/pipeline-4.md b/docs/pipeline-4.md new file mode 100644 index 00000000..d9a9400d --- /dev/null +++ b/docs/pipeline-4.md @@ -0,0 +1,384 @@ +# Reframe specification: the design (pipeline 4) + +Status: agreed by the owner on 25 November 2026 (P4-01). The owner's decisions of that day are written in (section 9): the engineer gives the target stack; signed-off functions are final and the rest draft; Reframe's own design system, which a context file replaces; the name *the design*, run with `reframe design`. Stories are in [the plan](plan.md), pipeline 4. + +## 1. Goal + +After the reconciliation (pipeline 3) has given one reviewed set of recommended rules and requirements, Reframe designs the modernized application, not a lift and shift of the 3270 screens: + +1. reads every legacy screen (BMS map) into its fields, positions, attributes and function keys, with no model, and draws each as a faithful 3270 copy; +2. reads how the screens and programs connect, from the source, each link citing its lines; +3. groups the screens into the journeys people do, each linked to its capabilities and requirements; +4. designs modern screens for each journey, with a mapping table that takes every legacy screen and field to what replaces it (kept, merged, dropped or new) and why; +5. draws an interactive, clickable prototype of the modern screens, each beside the legacy screens it replaces, that reviewers can mark; +6. writes the final specifications per capability: requirements, business rules with worked examples, screen specifications, data contracts, acceptance criteria and open questions, each citing its sources; +7. writes an AI-DLC package, in a form Kiro loads and a form Claude Code loads, for the forward build on the engineer's target stack; +8. keeps all of it up to date as people add context, redoing only what the context touches and saying what changed. + +Model steps write structured results that cite requirements, rules, screens and source lines. Reframe checks every citation and draws every page, the prototype and the package itself, as in pipelines 2 and 3. + +## 2. Scope + +| In | Out | +|---|---| +| Online screens: every BMS map in the snapshot (21 on CardDemo, including the optional modules' 4) | Generating the application's code: the package is for the forward build. P4-08 builds one journey from it only to check it loads and is complete | +| Batch functions: specifications and data contracts, with jobs described as services or scheduled jobs; no screens or journeys | Deploying anything, and data migration | +| The reconciled requirements and rules, the SME list and its answers, the reviewers' marks and sign-offs | Deciding rules again: a change to rules goes through `reframe reconcile` first, and the design reads its results | +| Copybooks, as the shape of sample data and data contracts | Any AWS resource: the design, like the reconciliation, needs none | + +## 3. Commands + +| Command | What it does | +|---|---| +| `reframe design` | Guided: checks the reconciliation is done, asks for the target stack if the run has none, shows the estimate, and runs in the background. Stops above the batch limit | +| `reframe design --stack "; ; "` | Gives the target stack without asking, for example `"React with TypeScript; Java 21 with Spring Boot; PostgreSQL"` | +| `reframe design --context ` | Adds design context (section 5). The folder is remembered for later rounds | +| `reframe design --max-batches ` | Goes ahead with a larger estimate | +| `reframe design --open` | Opens the design page, with the prototype | +| `reframe design --package [--form kiro\|claude-code\|spec-kit\|all]` | Copies the latest package into a folder, cleaned as `reframe publish` cleans its copy (default: all three forms) | +| `reframe status`, `reframe resume`, `reframe review`, `reframe publish`, `reframe export` | As today, with the design added: its stage and round, resuming after Claude's usage limit, reading prototype review downloads, including the design page and prototype in a published copy, and S-13's backlog files taking the final specifications when they exist | + +**The target stack** is the engineer's input. It is never guessed: the guided command asks, offering common stacks as numbered choices and *something else* typed in, and `reframe design` without a terminal stops and names `--stack`. It is recorded in the run with who gave it and when. A `target-architecture.md` in the context folder adds the detail (versions, services, integration, non-functional requirements); the stack line still comes from the engineer. Changing the stack starts a new round that redoes only what depends on it: the data contracts' types, the screen specifications' component notes, and the package (section 4, stage D9). + +## 4. Stages + +| Stage | What it does | Model | +|---|---|---| +| D0 Preflight | The reconciliation is DONE for this snapshot; the snapshot's SHA-256 matches; the target stack is given; Claude is signed in; the context folder exists | No | +| D1 Screen inventory | Every BMS mapset, map and field read | No | +| D2 Screen flow | How screens and programs connect | Only for what the source leaves open | +| D3 Journeys | Screens grouped into tasks | Yes | +| D4 Modern screens and mapping | New screens per journey, and the mapping table | Yes | +| D5 Prototype | The clickable app | No | +| D6 Final specifications | Per capability | Yes | +| D7 Package | Kiro and Claude Code forms | No | +| D8 Design page | One page over all of it | No | +| D9 Rounds | Only what new context touches is redone | – | + +### D1 Screen inventory (P4-02) + +Reframe parses every `DFHMSD`, `DFHMDI` and `DFHMDF` macro, with continuation lines, into: mapset and map names, size, and each field's name, line, column, length, attributes (`ASKIP`, `PROT`, `UNPROT`, `NUM`, `BRT`, `NORM`, `DRK`, `IC`, `FSET`), colour, highlight, `INITIAL` text, `PICIN` and `PICOUT`, and whether it is a label (unnamed, with initial text) or a data field. The symbolic map copybook (`cpy-bms/`) is matched to each map. Function keys come from the programs that send the map: Reframe reads `EIBAID` and `DFHPFn`, `DFHENTER` and `DFHCLEAR` conditions and the paragraph each leads to, with their lines. A key whose handling the source does not show is listed as *unknown*, not guessed. + +Each screen is drawn as a faithful 3270 copy: a 24 × 80 grid, the field colours and intensities, protected and input fields told apart, and a list of the function keys. Results: `design/screens.json` and `outputs/design/legacy/.html`. + +**Checked:** every map in the snapshot is read and matched to the program that sends it; every field lies inside the map; every named field appears in the symbolic map copybook. Fields that overlap in the source are reported by kind (data over data, an attribute byte on data, a shared attribute byte), not treated as errors: CardDemo's own maps have eight such notes. A key the screen shows but no program tests, or one a program tests but the screen does not show, is listed for review. The spike (P4-02) did this on all 21 CardDemo maps; what it found is in [spikes/p4-02-screens.md](spikes/p4-02-screens.md). + +### D2 Screen flow (P4-03) + +Read from the source, each link citing its lines: + +- transaction to program, from the CSD (`DEFINE TRANSACTION`); +- program to map, from `EXEC CICS SEND MAP` and `RECEIVE MAP`; +- program to program, from `XCTL`, `LINK` and `RETURN TRANSID`; +- menu options to programs, from option tables such as `COMEN02Y` and `COADM02Y`; +- function keys to targets, from D1. + +Where a target is held in a variable that the source sets in more than one place, a model step reads the code and names the targets, each with its lines, which Reframe checks exist. A target still unknown is shown as such. Result: `design/flow.json` and a map on the design page, screens as nodes, links labelled by key or option. + +**Checked:** every cited line exists; every screen is reached from a transaction or a menu, or is listed as *not reached*, with what was looked for. + +**Command:** `python -m reframe.design.flow [--run ]` writes `design/flow.json` and `outputs/design/flow.html`, the map and each screen's links. + +**How targets are read.** A transfer's target is resolved from a literal, a `VALUE` constant, the `MOVE`s into its variable, or a table filled by `VALUE` clauses and redefined with `OCCURS`, such as a menu's options; in that case every program in the table is a target, with its option. A variable the program only ever sets to its own name before transferring stands for the screen the user came from, which the source records at run time; it is shown as such. A key leads to what its branch moves into a transfer's variable, or transfers to by a name the program never changes, reading nested `IF`s and `EVALUATE`s and `WHEN`s stacked on one another, and one paragraph down. + +**On CardDemo** (25 November 2026), in about one second: +- 25 transactions, 65 transfers, 1 call and 36 key links, every cited line checked; +- nothing left open, so no model step ran; +- all 21 screens are reached by navigation; +- F3 leads somewhere on 20 screens (the menu, or the screen the user came from). On Login it ends the session. +- **The map** is drawn from the most-entered screen, the sign-on, which every program transfers to when it starts without a session. It shows Login, then the two menus, then the 15 function screens, then View Authorization Details. Transfers back to the sign-on, F3, F12 and returns to the caller are listed under each screen, not drawn. + +The model step for targets the source leaves open is built when a codebase needs it. + +### D3 Journeys (P4-04) + +One model step per domain groups the screens into journeys: the tasks people do (for example *Sign in*, *Find and view an account*, *Update a card*). Each journey has a name, the role who does it (from `personas.md` if given, otherwise from the requirements' user stories), its steps in order (screen and action), and the capabilities and requirements it serves, by key. + +**Checked:** every screen is in at least one journey, or is listed as unused with the reason; every step follows a link in D2 (or stays on its screen, or goes back the way it came); every capability and requirement key exists, and each requirement belongs to one of the journey's capabilities. A failed answer is asked once more with the reasons, as in pipeline 3; what still fails is kept and listed. A screen belongs to the domain of the business function holding most of its programs' recommended rules. Each step is given its domain's screens (inputs with their labels, outputs, keys), capabilities and requirements, and the whole screen flow, so a journey can start at the sign-on or a menu of another domain. + +**Command:** `python -m reframe.design.journeys [--run ] [--context ]` writes `design/journeys.json` and `outputs/design/journeys.html`. + +**On CardDemo** (25 November 2026): +- **Steps:** 4, one per domain with screens. They ran on the Claude subscription in about 4 minutes, for $4.10 at API prices. +- **Journeys:** 20, covering all 21 screens. Every answer passed Reframe's checks the first time, and no screen was left unused. +- **Examples:** *Find and view an account* (sign-on, Main Menu option 1, View Account, then F3 back to the menu), *Add a transaction type* (Admin Menu, the type list, then F2 to the update screen), and *Report or clear fraud on an authorization*. +- **Coverage:** 86 of the 154 capabilities and 742 of the 1,136 requirements. The rest are mostly batch and background functions, which section 2 gives specifications but no journeys; P4-07 checks that none of them is a screen's. + +### D4 Modern screens and mapping (P4-05) + +One model step per domain (not per journey, so that a screen many journeys share, such as the sign-on or a menu, is designed once, and a list and its detail can become one screen) designs the modern screens for the domain's journeys as a structured tree of components from the design system's list (section 5): page, section, form, field, table, list, tabs, button, link, message, dialog. Each component says what it shows or does, the requirements and rules it serves (by key), its validation and messages taken from the rules, and its keyboard access. + +The mapping table takes **every legacy screen and field** to what replaces it: + +| Legacy | Becomes | How | Why | +|---|---|---|---| +| a screen | one or more modern screens | kept, merged, split, dropped | from the journey and requirements | +| a data field | a component | kept, merged, dropped | for example the date and time in the header become the app's own header | +| a label | a component's label, or dropped | kept, dropped | | +| a function key | a button, link or shortcut | kept, merged, dropped | PF3 *Exit* becomes *Back* | +| – | a new component | new | a need the 3270 screen could not meet, citing the requirement | + +The steps follow the UI guardrails from the research behind part 2 of the reconciliation ([pipeline-3.md](pipeline-3.md), section 8.2): do not recreate poor 3270 usability; never hide a validation in the screen only, every validation keeps its rule; keep keyboard-heavy flows fast for the people who use them; meet WCAG 2.2 AA. + +**On CardDemo** (25 November 2026), 4 steps and one links pass took about 25 minutes, $19.60 at API prices. +- **Screens:** 20 modern screens and one shared application shell. The main and admin menus became one Home screen; card view and update became one card detail. +- **Mapping:** all 683 legacy screens, fields and keys mapped: 234 kept, 347 merged, 52 split, 50 dropped. +- **Checks:** every validation rule is shown, and no check failed. +- **Links pass:** the domains ran in parallel, so the menu domain first guessed other domains' screen ids. Reframe now merges screens of one id that replace no legacy screen (the shell) into one shared screen. It then asks a domain that links to screens nobody designed once more, giving it every other domain's screens. + +**Per screen** (added 25 November 2026, from the research's UI modernization template), each modern screen also records what the design step does not yet carry: +- the role who uses it; +- the data it depends on: the files, tables and copybooks its legacy programs read and write; +- the services it will call, by name; +- the legacy screen's pain points the design removes, such as typed option codes, paging keys or errors shown one at a time; +- test scenarios for user acceptance: one per journey step, written from the worked examples. + +It already records its purpose, fields, validations, rules and the programs behind it. One more guardrail joins the four above: every screen is checked with the people who use it, in the prototype, before it is final. + +**Checked:** no legacy field is left unmapped and none is mapped twice; every component is from the design system; every key cited exists; every rule of kind *validation* that a screen's program applies is shown by a component of that screen. + +### D5 Prototype (P4-06) + +Reframe draws one static HTML app, with no build step and nothing loaded from outside, in `outputs/design/prototype/`: + +- a route per modern screen, and navigation that follows the journeys; +- sample data shaped by the copybooks: each field's type, length and format from its `PIC`, filled from a fixed seed so every round shows the same data, with values from the rules' worked examples where they exist; +- messages and validations written from the rules, in the code's own words where the rule quotes them; +- on each screen, *Show the legacy screen* opens the 3270 copies it replaces, with the mapping; +- marks, as on the review pages: *Agree*, *Needs change* or *Question* with a comment, on each screen and component, and sign-off by journey, downloaded as JSON or CSV in the `reframe-review/1` format with the tool *Reframe's design*. + +**Command:** `python -m reframe.design.prototype [--run ]` writes `outputs/design/prototype/index.html`. It's one file: the screens' data is embedded and its script runs offline. +- **Routes:** each modern screen is a route. The shared screens (header, navigation) frame every screen, and a link to a shared screen goes to Home: the screen with the most links out. +- **Sign in:** the prototype starts at the screen that replaces the sign-on. +- **Actions:** a button runs its screen's checks first. An empty field whose check says it is required shows that check's message from the rule. Then the button opens its screen, or shows the success message the design quotes. +- **Lists:** a row in a list opens the screen the list's view link opens. + +**On CardDemo** (25 November 2026), with no model and in under a second: +- 19 screens, framed by the shared shell, start at Sign in with Home as the hub; +- 20 journeys can be walked; +- all 21 legacy copies are embedded, for 433 KB in all. + +A stub-DOM run of the page's script (`tests/design/render_prototype.js`) renders every route, runs each screen's main action and opens its legacy and review panels, with no script error. Every link leads to a screen that exists. The success messages are the rules' own, for example "User has been added ...". + +### D6 Final specifications (P4-07) + +Reframe assembles each capability's specification with no model. One model step per function, in batches of up to 12 capabilities, writes only the parts that need words: a summary, an acceptance criterion for each requirement no worked example covers, and a design note for each technical rule. + +| Part | From | +|---|---| +| Final requirements | The reconciled requirements, with the reviewers' marks applied and *Agree* kept word for word | +| Business rules | The recommended rules, with their kind, confidence, worked examples and evidence | +| Screen specifications | D4's screens and mapping for the journeys that serve the capability | +| Data contracts | The copybooks the capability's programs use, as records with typed fields (a `PIC S9(7)V99 COMP-3` becomes a signed decimal with 7 integer and 2 fraction digits), on the target stack's types | +| Acceptance criteria | Given/When/Then written from the worked examples, each citing its rule; the same criteria S-13 exports | +| Open questions | The SME list's open entries for the capability's rules | + +Each specification also carries (added 25 November 2026, from the research's business-rule template): +- **Decision tables:** the capability's decision tables from the reconciliation (P3-23), each row citing its rule, and the combinations no rule covers listed as gaps for an SME. +- **Classes:** each rule and requirement classed as a *business rule*, *formatting*, *error handling*, *side effect* or *historical artifact*, taken from the rule's kind (P3-21): business, validation and compliance rules are business rules; display is formatting; error handling stays; side effect stays; leftover is a historical artifact; technical steps go to the design notes. The forward build keeps business rules exactly, may restyle formatting, and asks before carrying a historical artifact. + +A capability in a signed-off function is **final**; every other one is **draft**, marked so in the specification, the page and the package. **Checked:** every requirement, rule, screen and copybook cited exists; every requirement of the capability is in its specification. + +**Command:** `python -m reframe.design.specs [--run ] [--stack "; ; "]` writes `design/specs/` (one specification per capability), `design/contracts.json` and the design page, `outputs/design/index.html`. +- **Acceptance criteria:** one per worked example of the capability's rules, the Given from the example's inputs, the When from the rule's trigger (`WHEN x, THE y SHALL z` gives *x*) and the Then the example's own; each cites its rule and every requirement the rule is behind. The step writes one more for each requirement no example covers, citing that requirement's own rules. +- **Data contracts:** each copybook a capability's programs copy (`COPY`, `EXEC SQL INCLUDE`), read with no model into records of typed fields, with 88-level values, OCCURS and REDEFINES. A copybook is a *file record* where the program reads into, writes or rewrites it, or copies it in its FILE SECTION; otherwise *working storage*. The screen copybooks (`cpy-bms`) are left out. +- **The target stack:** `--stack` is recorded in `design/stack.json` with when it was given. Reframe adds the code and column types from a table it knows (Java, Kotlin, C#, Python, TypeScript, Go; PostgreSQL, MySQL, SQL Server, Oracle, Db2). Without a stack, or for one the table does not know, the neutral types stand and the page says so. Changing the stack redoes only the contracts, with no model step. +- **Runs as:** online where the rules' entry points are CICS transactions or the programs are behind screens, a scheduled job where they are JCL, else a service. + +**On CardDemo** (26 November 2026), 16 steps and 2 retries took about 26 minutes of step time, $11.21 at API prices, with no stack given yet: +- **154 specifications**, 52 final (the two signed-off functions, Daily Transaction Processing and Reporting and Online Account and Transaction Management) and 102 draft; 89 online, 61 scheduled jobs, 1 both, 3 services. +- **1,136 requirements and 1,185 rules**, classed: 570 business rules, 172 error handling, 170 formatting, 12 side effects, 17 historical artifacts, 262 design notes. +- **1,505 acceptance criteria**: 1,291 from worked examples and 214 written for the 191 requirements no example covers. 262 design notes, one per technical rule. +- **40 data contracts**, 113 decision tables with 82 gaps, 485 open SME questions. +- **Checks:** every citation exists, every requirement has a criterion and every technical rule a note; nothing failed. The page is 3.1 MB. + +### D7 Package (P4-08) + +Written by Reframe from D6, in `outputs/design/package/v/`, in three forms: + +- **Kiro:** `.kiro/specs//requirements.md` (EARS requirements and acceptance criteria), `design.md` (screens, components, data contracts, the flow) and `tasks.md` (build tasks, each citing requirement and rule IDs); `.kiro/steering/product.md`, `tech.md` (from the target stack and `target-architecture.md`) and `structure.md`. +- **Claude Code:** `CLAUDE.md` (the product, the stack, the conventions and how to use the specs), `specs/.md`, `tasks.md`, and the prototype in `ui-reference/` as the UI to build to. +- **Spec Kit** (added 25 November 2026): + - **The constitution:** `.specify/memory/constitution.md`, with the non-negotiables. The legacy source is read-only; data is synthetic only, with no personal data; every item keeps its requirement and rule IDs; the target stack; final versus draft; and the order of replacement (P4-12). + - **Per capability:** `specs//spec.md`, `plan.md` and `tasks.md`. + - **Role files:** `.claude/agents/.md` for business rules, UI modernization, data, API, test generation (the golden datasets, P4-11) and compliance, each with its template and guardrails. + + Each task names the role that does it. + +Every requirement, rule, acceptance criterion and task keeps its ID, so the forward build stays traceable to the legacy source. Draft capabilities are marked draft. `CHANGES.md` says what changed since the last version. **Proved by the engineer** (the owner's decision of 26 November 2026, section 9): once they have given the stack and filled in the placeholders, they build *Sign in* from the Claude Code form in a scratch repository and record which acceptance criteria pass; START-HERE.md step 6. + +**Command:** `python -m reframe.design.package [--run ] [--context ] [--out [--form kiro|claude-code|spec-kit|all]]` writes `outputs/design/package/v/` with the three forms, `CHANGES.md` and `manifest.json`, with no model. +- **IDs:** each function gets a short code from its name (Online Account and Transaction Management is `OATM`). Requirements are `OATM-REQ-F-123`, rules `OATM-BR-004`, capabilities `OATM-C16`, criteria `OATM-C16-AC-03` and tasks `OATM-C16-T2`. The codes and rule numbers are kept in `design/package-ids.json`, so an ID never changes between versions; a new rule gets the next number. Every form has `traceability.md`, which takes each ID back to the run's keys and the source lines, and `data-contracts.md`. +- **Tasks**, per capability, each for a role and citing what it implements: model the data (*data*), the business rules (*business rules*), the errors and messages (*business rules*), the services or scheduled job with the design notes (*API*), one per screen to the prototype (*UI modernization*), a test per acceptance criterion (*test generation*), and a review where the capability touches money, card data, personal data, security or audit (*compliance*). Every requirement is in an implementing task. +- **Versions:** a new version only when a file changes. `CHANGES.md` names, by ID, the capabilities added, removed or now final, and the requirements, rules and criteria added, removed or changed, and a changed stack. +- **Context:** `target-architecture.md` joins the stack in `tech.md` and `CLAUDE.md`; `personas.md` and `decisions.md` join `product.md`. +- **`--out`:** copies the latest version into an empty folder, cleaned as `reframe publish` cleans its copy; if anything is left, or the folder is not empty, nothing is written, so a filled-in copy is never overwritten. +- **What the engineer fills in** (`handover.py`): what only their team can give is left as `[FILL IN: ]` where it belongs. That covers the target stack and its detail (versions, build, testing, hosting, security, integration, non-functional needs), the house conventions (coding standards, naming, error handling and logging, style reference, review, definition of done), Spec Kit's technical context in the constitution, an *On this stack* section in each role file, and four Claude Code skill templates in `.claude/skills/`: `build-capability`, `write-acceptance-tests`, `model-data-contract` and `build-screen`, whose stack-specific steps are placeholders. A given stack and a context folder's `target-architecture.md` fill their parts. +- **START-HERE.md**, in the package and in each form, takes the engineer to a package ready for forward engineering: copy it; give the stack; fill in the placeholders; settle what is still open (the draft capabilities by function, the open SME questions, the decision table gaps and the historical artifacts, by ID); check what is left; prove it by building *Sign in* (the capabilities whose rules come from the sign-on screen's programs); then build final capabilities first. +- **`--check `** lists the placeholders left in a copy, by file, and its draft capabilities; it is ready when none is left. +- **Checked by Reframe:** every requirement, rule, criterion and task ID of every specification is in each form's own files (not only in `traceability.md`); every task cites a requirement; every requirement is in an implementing task; every draft is marked. + +**On CardDemo** (26 November 2026), in 2 seconds: 1,113 files, 13 MB with the prototype. The 154 capabilities (52 final) have 820 tasks: 222 business rules, 118 data, 114 API, 99 UI modernization, 154 test generation and 113 compliance. No check failed. A cleaned copy left nothing behind. A copy has 85 placeholders in 18 files and 102 draft capabilities left; the *Sign in* slice is USPM-C01 *Sign on to CardDemo*, 19 criteria, still draft. + +### D8 Design page (P4-07, P4-10) + +`outputs/design/index.html`, in the review layout: overview first (screens, journeys, mapping counts, final and draft capabilities); then the flow map, each journey with its screens side by side (legacy and modern), the mapping table with filters, and each capability's specification. The reconciliation page links to it, and `reframe publish` includes it with the prototype. + +### D9 Rounds with more context (P4-09) + +Each part is kept with a hash of what it was made from, as in pipeline 3. A new round redoes only the parts whose inputs changed: + +| What changed | What is redone | +|---|---| +| The reconciliation (a new round of pipeline 3) | The journeys, screens, specifications and package parts of the functions whose requirements or rules changed | +| The target stack or `target-architecture.md` | Data contract types, screen specifications' component notes, the package | +| The design system | The modern screens' components and the prototype | +| `style-reference/` | The modern screens, the prototype and the package's conventions | +| `personas.md` | The journeys' roles, and what follows from them | +| Prototype marks | The marked screens and components; *Agree* keeps them | +| `decisions.md` | Whatever the decisions name | +| A sign-off | That function's capabilities become final | + +Each round writes `design/changes-.md`: what changed, why, and what was kept, and the package's `CHANGES.md` from it. + +**Command:** `python -m reframe.design.pipeline [--run ] [--context ] [--stack "; ; "] [--plan]` runs a round: the inventory and the flow, the journeys, the modern screens, the prototype, the final specifications, the design page and the package, in order. The context folder is remembered for later rounds. +- **Why a part is redone:** each model stage keeps, beside each part's hash, a hash of each piece of its input. A round names the pieces that changed, for example "prototype marks on its screens changed" or "personas.md changed". +- **Routing:** `personas.md` goes to every domain's journeys. Each decision in `decisions.md` (one per heading) goes only to the journeys, screens and specifications whose legacy or modern screens, functions, capabilities, requirements or rules it names, by name or package ID. A decision that names nothing is listed in the round's changes and goes to the package's product description only. *Needs change* and *Question* marks from the prototype's downloads go to the domain that designed the screen; *Agree* changes nothing. A function signed off in a reconciliation review download is final from that round, with no model step. `style-reference/` goes to every domain's screens and fills the package's style reference. `design-system/tokens.json` sets the prototype's colours and font. +- **`--plan`** says what a round would redo, and why, with no model step and nothing written. It cannot yet see what a redone part changes downstream. +- **The package:** a new version only when a file changes, its `CHANGES.md` carrying the round's own account. + +**On CardDemo** (26 November 2026): `--plan` with nothing new redoes nothing: 4 journey domains, 4 screen domains and 16 specification batches kept. The tests cover a round with a persona, a *Needs change* mark, an *Agree* and a sign-off: only the marked domain's screens and the journeys are redone, the signed-off capability becomes final with no step, and the package's CHANGES.md says so. + +**On a second test codebase** (run 8e5a08, 26 November 2026, kept locally), the first design round from `reframe design` took about 25 minutes and $11.40 at API prices. It read 6 legacy maps and made 6 journeys; the claim screen is listed unused, because no link reaches it. There are 9 modern screens, with all 90 legacy items mapped, and 57 specifications (all draft, since nothing is signed off) with 537 acceptance criteria and 196 design notes. The package is in three forms. The round also found two faults, now fixed: +- **Batches of one function shared an input file.** Their names were cut to 60 characters, so two batches running at once read each other's input, and one batch failed its checks. Each batch's file name now carries a hash of its full name. +- **No data contracts.** That codebase keeps its copybooks beside the programs as `.cpy` files, so copybooks are now found by extension wherever they are; the screen copybooks are left out. + +A part that failed its checks is now done again in the next round, which says so. Round 2 redid only the failed batch, in 2 minutes, and left 0 problems and 2 data contracts. + +### D10 Golden datasets and equivalence tests (P4-11) + +Per capability, Reframe writes a golden dataset from the worked examples and decision tables: cases the new system must answer as the legacy one does. Each case has: +- a dataset ID and its capability; +- the legacy source it comes from, and the rule it covers; +- the input and the expected output; +- whether it is an edge case; +- the service or screen it is run against; +- the comparison method and tolerance. + +Comparisons are exact for money, dates, status codes, IDs and counts, and a difference in formatting (padding, case, an edited amount's layout) is reported apart from a difference in business behaviour. The datasets go into the package as test fixtures with the test-generation role's tasks. Until P4-13 captures real legacy outputs, the expected outputs come from the rules and say so: equivalence is then asserted from the rules, not proven against the running legacy system. + +**Written** with the package, with no model: every round and `python -m reframe.design.package` write `golden/.json` into each form, with `golden/README.md` and `golden/compare.py` (built 26 November 2026). +- **Cases:** one for each worked example of a capability's rules, and one for each row of its decision tables, with IDs `-GD-`. A design note's examples are left out: a technical step is built from its note, not checked as behaviour. A table's gaps go into the dataset as `uncovered`, for the owner, not as cases. +- **Expected output:** the outcome in words, and the messages and codes it quotes (`literals`), which the new system must show word for word. +- **Kinds:** each input field is money, a date, a status, an ID, a count or text, from the words of its name, else the shape of its value. +- **Edge cases:** a validation or error-handling rule's examples, and any case whose outcome is a rejection, an error, a failure, an abend or a record not found. +- **What it is run against:** online, the modern screens whose components cite the rule (else every screen of the capability); a scheduled job, the rule's legacy program, which the job replaces; otherwise the capability's service. +- **The comparison:** `golden/compare.py `, using the Python standard library only. Answers are given by case ID. Money is read from any layout (sign, padding, separators, currency), dates from the common layouts, IDs and counts as numbers. The same value written differently is *formatting*, a different value is *business*, and no answer is *missing*. A dataset is equivalent when no case is business or missing; the exit code says so. +- **In the package:** each capability's test-generation task names its dataset and every case ID. `traceability.md` lists each case with its task. The check requires every form to hold the dataset its task runs. The manifest keeps a hash per case, so `CHANGES.md` names cases added, removed or changed; the first version with datasets says so once. + +**On CardDemo** (run fa1f61, from its 154 specifications, with no model, 26 November 2026): 1,595 cases for 139 capabilities, 633 of them for final capabilities. 1,000 come from worked examples and 595 from decision-table rows; 746 are edge cases, and 900 quote a message or code. 82 combinations are left uncovered for the owner. The cases run against 1,186 screens, 292 jobs and 117 services. The package grew to 1,536 files, and no check failed. The other 15 capabilities have only design notes, so they have no cases. + +### D11 Risk and replacement order (P4-12) + +Each capability already has a risk (P3-24) and touches a list of things (money, card data, personal data, security, audit, record updates, reporting only). Reframe orders the capabilities for replacement: low risk and read-only first (reporting, inquiry screens), then updates, and money, security and adjudication last. Within that order, a capability that shares data stores or screens with another follows it. The order is shown on the design page and written into the package's constitution and tasks, each with its reason. + +### D12 Spike: real legacy outputs (P4-13, low priority) + +Whether real outputs can be captured from the legacy programs without a mainframe: the batch programs compiled and run under GnuCOBOL on the golden datasets' inputs, with the files they read built from the copybooks. CICS screens are out of reach this way. The spike records which CardDemo batch programs compile and run, what they need (files, sort, utilities), and whether their outputs can replace the rules' expected outputs in D10. + +## 5. Design context + +Read from the context folder, by name: + +| File | What it gives | +|---|---| +| `target-architecture.md` | Detail of the target: versions, services, integration, non-functional requirements | +| `design-system/tokens.json` and `design-system/components.md` | Replace Reframe's own design tokens (colour, type, spacing) and component list. Without them, Reframe's own plain, accessible set is used | +| `style-reference/` | The house's own examples to follow: screenshots or pages of existing applications, and code samples. The modern screens follow their look and patterns where the design system does not say, and the package's steering and constitution carry the code conventions | +| `personas.md` | Who uses the system and what they need | +| `decisions.md` | Decisions to follow, one per heading | +| Prototype review downloads | Marks and journey sign-offs on the prototype | + +Pipeline 3's context (documents, its review downloads, the answered SME list) stays with `reframe reconcile`. The design reads the reconciliation's results, not its context. + +## 6. Estimate + +Before any model step, Reframe shows the steps by stage (journeys per domain, screens per journey, specifications per capability), minutes and cost at API prices, and stops above the batch limit, as the reconciliation does. On CardDemo the model steps are about 7 for journeys, 15 to 25 for screens, 153 for specifications (batched by function) and a few for the flow. The spike and the first live run set the figures. + +## 7. Run folder and code + +| Path | What it holds | +|---|---| +| `design/` | Working results: `screens.json`, `flow.json`, `journeys.json`, `modern.json` (the modern screens and the mapping), `specs.json` (the specification steps and their log), `specs/` (one specification per capability), `contracts.json`, `stack.json` (the target stack, with who gave it and when), `changes-.md` | +| `outputs/design/` | `index.html`, `legacy/`, `prototype/`, `package/v/` | + +Code in `src/reframe/design/`: `inventory.py` (BMS), `flow.py`, `journeys.py`, `screens.py`, `prototype.py` with its template, `specs.py`, `contracts.py` (the data contracts), `package.py` and `pipeline.py`; each stage's page beside it, the design page in `designpage.py`. + +## 8. Acceptance (P4-10) + +On CardDemo run fa1f61, from the CLI only, with no AWS resources: + +- all 21 maps are read and drawn, and every flow link cites lines that exist; +- every screen is in a journey or listed unused with its reason; every legacy field is mapped once; +- the prototype covers every modern screen, and every journey can be clicked from start to end; +- every capability has a specification whose citations Reframe checked; signed-off functions are final and the rest draft; +- the package carries the placeholders and START-HERE.md, and `--check` lists what is left (the *Sign in* build is the engineer's proof, after they give the stack); +- a second round, adding a design system, one persona and a prototype download with a *Needs change*, redoes only what those touch and writes what changed; +- the README and `docs/cli.md` describe pipeline 4 from the tested commands. + +### Results (P4-10, 26 November 2026) + +All on CardDemo run fa1f61, from the CLI (`reframe design --plan`, `reframe design`, `--package`, `--check`), with no AWS resources. + +**Round 1** ran over the design built story by story, with no context. It had no Claude step and redid nothing: 4 journey parts, 4 screen parts and 16 specification parts were all kept, and the package stayed v1. + +**Round 2** added an example context in the run's `inputs/design/`: +- a persona, the card services agent; +- a design system, `components.md` and `tokens.json`; +- a prototype download with one *Needs change*: on the account screen, search by card number as well as account number. + +`--plan` said beforehand what the round would redo, and the round matched it: + +| Stage | Redone | Kept | Why | +|---|---|---|---| +| Journeys | 4 domains | 0 | the persona goes to every domain's journeys | +| Modern screens | 4 domains | 0 | the design system goes to every domain's screens | +| Specifications | 10 parts | 6 | the 10 parts whose screens changed; the 6 kept are the batch-only functions, with no screen | + +What came out: +- The account screen's search is now *Account or card number*. +- The journeys' role is the card services agent. +- The prototype uses the design system's colours and font. +- There are 22 modern screens with all 683 legacy fields mapped, and 154 specifications. Every stage has 0 problems. +- The package is v2 with its `CHANGES.md`. `--package` copies it as 1,113 files, and `--check` lists 85 placeholders to fill in and 102 draft capabilities to confirm. +- The round cost $61.61 at API prices on the subscription: journeys $7.89, screens $36.01, specifications $17.71. + +**Found and fixed: rounds could not say why.** `changes-2.md` gave every reason as "an input changed (the earlier round did not record which)". CardDemo's parts were made before P4-09 recorded what each was made from, and round 1 kept them without recording it. A kept part with no record now gets one, so the next round names the reason, for example `personas.md`. + +## 9. The owner's decisions (25 November 2026) + +| Decision | Choice | +|---|---| +| The target stack, and where it comes from | **The engineer gives it**, in the guided command or with `--stack`; Reframe never defaults one. `target-architecture.md` adds detail. | +| Which functions go final | Signed-off functions are final; every other function is included and marked draft | +| The default design system | Reframe's own plain, accessible set, drawn with no outside files; `design-system/` in the context folder replaces it. *Proposed addition for the owner's agreement (25 November 2026, from the research):* a `style-reference/` folder of house screens and code samples, which the screens and the package follow where the design system is silent | +| The name | *The design*, run with `reframe design` | +| The target stack and the forward build (26 November 2026) | **The engineer's input.** Reframe leaves templates (skills, roles, steering, technical context) with placeholders, and instructions (START-HERE.md) for making the package ready for forward engineering; the *Sign in* build check is the engineer's step, not Reframe's | + +## 10. Stories + +| Story | Sections | +|---|---| +| P4-01 Specification and the owner's decisions | this document | +| P4-02 Spike: the screen inventory | 4 D1 | +| P4-03 How the screens connect | 4 D2 | +| P4-04 User journeys | 4 D3 | +| P4-05 Modern screens and their mapping | 4 D4, 5 | +| P4-06 The clickable prototype | 4 D5 | +| P4-07 Final specifications | 4 D6, D8 | +| P4-08 The AI-DLC package | 4 D7 | +| P4-09 Rounds with more context | 4 D9 | +| P4-10 Live acceptance and README | 8 | +| P4-11 Golden datasets and equivalence tests | 4 D10 | +| P4-12 Risk and replacement order | 4 D11 | +| P4-13 Spike: real legacy outputs under GnuCOBOL | 4 D12 | diff --git a/docs/plan.md b/docs/plan.md index d2022b57..2e3c8764 100644 --- a/docs/plan.md +++ b/docs/plan.md @@ -1,6 +1,6 @@ # Reframe plan -The parts of Reframe are named for what they do: the AWS Transform assessment (pipeline 1), the Claude assessment (pipeline 2), the reconciliation (pipeline 3) and the final requirements (pipeline 4, planned). The numbers stay as short labels in the plan and the specifications. +The parts of Reframe are named for what they do: the AWS Transform assessment (pipeline 1), the Claude assessment (pipeline 2), the reconciliation (pipeline 3) and the final requirements, wireframes and AI-DLC package (pipeline 4, planned). The numbers stay as short labels in the plan and the specifications. Status: draft for the owner's agreement, with [the specification](specification.md). @@ -26,6 +26,7 @@ Status: draft for the owner's agreement, with [the specification](specification. | P1-07 | Job creation and the driver loop | §4 stages 5, 6 | The job is polled and its tasks classified; done means every plan step SUCCEEDED with "Generate requirements" in the plan | | P1-08 | Autonomous answers: plan, source location, function selection, confirmation, defaults | §4 stage 6, §5 | Autonomous answers recorded in `decisions.json` | | P1-25 | Autonomous answers: the readiness menu after the selection | §4 stage 6 | The readiness menu is answered with its one choice that proceeds; "no further action is needed" is a notice; the catalog's review form is never submitted while a question offering choices waits; offline tests for each wording recorded on 23 November 2026 | +| P1-26 | Autonomous answers: a name that is both a domain and a function | §4 stage 6 | When AWS asks whether a name in the selection means the business domain or the business function, autonomous mode answers the domain in the words AWS asks for; interactive mode offers both readings; offline tests for each wording recorded on a second test codebase on 25 November 2026 | | P1-09 | Interactive mode: `reframe answer` | §5 | Every waiting question can be answered from the CLI | | P1-10 | Retrieval: download, check, unpack, manifest, summary | §4 stage 7 | Requirements and assessment downloaded and summarized | | P1-16 | HTML report | §4 stage 8 | One self-contained report covers the overview, functions, requirements, business rules, open questions, data model, assessment and decisions | @@ -123,8 +124,102 @@ Specification: [pipeline-3.md](pipeline-3.md). It starts from the comparison of | P3-09 | The reconciliation page and publish | §4 R7 | The page as specified, linked from the comparison, with marks and downloads; `reframe publish` includes it as `reconciled/` with a fourth card | | P3-10 | Live acceptance and README | §7 | Every point of section 7 passes from the CLI; the README and `docs/cli.md` describe pipeline 3 from the tested commands | -## Later work +## The reconciliation, part 2: accuracy and the review loop (pipeline 3) -Specified after pipelines 1 and 2 have been tested, first each on its own and then together. +Agreed by the owner on 24 November 2026, after the reconciliation's live acceptance. On CardDemo it wrote 1,204 recommended rules from 1,111 input rules; 1,182 were rated high confidence and 636 carried a possible-defect note, and the reconciled review has 2,358 items to mark. Part 2 first measures how accurate the recommended rules are, then makes the review something an SME can finish and closes the loop from their marks back into the next round. Its specification is [pipeline-3.md](pipeline-3.md), section 8. P3-21 to P3-24, added on 25 November 2026, give each rule a kind and worked examples and each capability decision tables and a risk level; P3-25, added the same day, reads review downloads made on a published copy; P3-20, the live acceptance, comes last. -- **Final requirements (pipeline 4): requirements, business rules and wireframes.** It produces them, takes more human context (text, Markdown, documents, PDFs and similar), and gives the updated version of each. This is where Reframe ends. +| Story | Title | Specification | Done when | +|---|---|---|---| +| P3-11 | Spike: accuracy audit on CardDemo | §8.1 | Done 25 November 2026: of 56 sampled rules 51 correct (91%), 3 with a wrong detail, 2 wrong; every rejection upheld; 25 of 27 defect notes real; every rule rated high | +| P3-12 | Confidence that means something | §8.3, §8.4, §8.5 | Reframe sets confidence from facts it checks: who decided the rule against the code, and whether the code is reached (with the entry lines); rules agreed by both tools are described by a step that reads their code. In the first round after part 2 the five audit items that were not correct are medium, low or rejected | +| P3-13 | Possible defects: once per unit, real or deliberate | §8.3, §8.8 | Each possible-defect note is shown once, on the unit it belongs to, saying whether the behaviour looks unintended or deliberate with the lines that show it, and the SME list's defect entries match one to one. On the audit's new sample the judges agree with the call | +| P3-14 | Review first | §8.10 | The reconciled review opens with a *Review first* view: code that never runs, conflicts, rewritten rules, units waiting for an SME, unintended defects, rules kept from one tool and other medium-confidence rules, in that order, high-risk capabilities and business rules first, each group with its count and progress, filtered by decision, kind, confidence and capability risk | +| P3-15 | Sign-off by function | §8.11 | A reviewer signs off a function in any review page; both downloads carry the sign-offs, the reconciliation reads them, and `reframe status` and the reconciled review show which functions are signed off, by whom and when | +| P3-16 | Marks on requirements and capabilities read | §8.11 | Capabilities can be marked. *Needs change* and *Question* marks on requirements and capabilities, with their comments, make the requirements step rewrite that function's requirements in the next round, given the previous text and the comment; no unit is decided again and no other function changes | +| P3-17 | Marks from the CSV download read | §8.11 | The CSV download has a `key` column and is read like the JSON download, sign-offs included; another snapshot's, or one without a `key` column, is ignored with the reason | +| P3-18 | Agree keeps a rule | §8.11 | A unit whose rules were all marked *Agree* keeps its decision in later rounds unless a later mark or a change to its input rules reopens it; agreed rules are given to a step that redoes their unit; an agreed requirement is kept word for word while its rules are unchanged; the page shows who agreed and when | +| P3-19 | Several reviewers' files | §8.11 | `reframe review --context ` shows each reviewer's coverage, sign-offs and where reviewers disagree, and writes `reconcile/reviews.json`. The next round combines every reviewer's marks, *Needs change* and *Question* taking precedence over *Agree*, and keeps each comment with its reviewer's name | +| P3-21 | What kind of rule | §8.3, §8.6 | Every recommended rule has one of eight kinds (business, validation, error handling, display, technical, side effect, compliance, leftover), shown on the page with a filter; business, validation and compliance rules are listed first | +| P3-22 | Worked examples | §8.3, §8.7 | Every recommended rule has one to three worked examples (given → then) using the code's values and messages; every quoted value appears in a file the decision cites, or the example is removed and counted | +| P3-23 | Decision tables | §8.9 | Where three or more of a capability's rules share conditions, the capability has a decision table, each row citing its rule, with the combinations no rule covers listed as gaps for an SME | +| P3-24 | Risk per capability | §8.9 | Each capability names what it touches from a fixed list (money, card data, personal data, security, audit, record updates, reporting only); Reframe sets its risk from that (high for money, security, audit or a compliance rule), a function takes its highest capability's, and the review and sign-off order use it | +| P3-25 | Reviews of a published copy read | §8.11 | A mark or sign-off downloaded from a copy made by `reframe publish`, where each AWS Transform ID in a key is a stand-in, reaches the next round exactly as the same mark made on the run's own page; `reframe review` counts its coverage; this holds for AWS Transform's, Claude's and the reconciled review | +| P3-26 | What nobody marked is kept | §8.11 | A function written again keeps word for word, with their codes, the previous requirements no reviewer marked and whose cited rules are unchanged; only the marked requirements and capabilities and new or changed rules get new requirements | +| P3-27 | Removed examples counted on each rule | §8.7 | Each recommended rule carries the count of its own examples removed by the check, and the decision step must give every rule an example | +| P3-20 | Live acceptance of part 2 | §8.12 | On CardDemo, from the CLI: round 3 decides every unit again within its estimate; the audit on a new sample shows no fewer correct rules than 91%, no wrong rule rated high and the five P3-11 errors rated lower; two reviewers' files (JSON and CSV) go through `reframe review` and round 4, which redoes only what they touch; the README and `docs/cli.md` describe part 2 from the tested commands | + +## Exports + +Part of sharing the results: the requirements in the forms people work in. Specified in [sharing.md](sharing.md) before the stories start. + +| Story | Title | Specification | Done when | +|---|---|---|---| +| S-12 | Requirements to a spreadsheet | [sharing §7](sharing.md) | `reframe export --to xlsx` writes one workbook from a run's reconciled results: domains, functions, capabilities, requirements, business rules, decision tables, open questions and the SME list as sheets, each requirement with the rules and source lines behind it and the reviewers' marks; every cell is text, cleaned as `reframe publish` cleans its copy | +| S-13 | Backlog items with acceptance criteria | [sharing §8](sharing.md) | #385 · Done 26 November 2026 (the owner moved it forward from Later, the same day): `reframe export --to jira` writes an Epic per function and a Story per capability, and `--to azure-devops` an Epic per domain, a Feature per function and a User Story per capability, each tool's CSV import file, from the design's final specifications with the package's IDs and their acceptance criteria. No credentials; a person imports it. On CardDemo: 154 stories with 1,503 criteria | +| S-14 | Runs in the workspace, with inputs and outputs | [specification §7](specification.md), [how to run](how-to-run.md) | Done 26 November 2026 (the owner's request): every run is in `/.reframe///`, the folder Reframe is run from, with `inputs/reconcile/` and `inputs/design/` (read when `--context` is not given) and `outputs/`; Reframe's tools and settings stay in `~/.reframe`; `.reframe/` is git-ignored. The existing runs were moved, not rerun, with symlinks left at the old paths. `reframe design` is a command, `reframe publish` includes the design and the package, and the README, the command reference and a one-page [How to run Reframe](how-to-run.md) describe it | +| S-15 | A published run's source, results and reports | [sharing §4](sharing.md) | Done 26 November 2026 (the owner's request): `reframe publish --to aws` uploads the run under `//` in the standing Reframe bucket as `source/` (the snapshot and a note of its origin without local paths), `results/aws/` and `results/claude/` (the tools' own files) and `reports/` (the cleaned copy and `report.zip`). The owner chose the standing bucket over each run's source bucket, which teardown deletes. Reports published before keep opening | + +## Final requirements, wireframes and the AI-DLC package (pipeline 4) + +Agreed by the owner on 24 November 2026. From the reconciled and reviewed results, pipeline 4 designs the modernized application, not a lift and shift of the 3270 screens: every legacy screen is mapped one to one to what replaces it, and the new screens are an interactive, clickable prototype. It writes the final specifications and an AI-DLC package that Claude Code or Kiro loads for the forward deployment. People keep adding context after the first run (a design system, the target architecture, personas, SME answers, marks on the prototype, decisions), and each round redoes only the journeys, screens, specifications and package parts that context touches, with a summary of what changed. Model steps write structured results that cite requirements, rules and screens; Reframe checks the citations and draws every page and the prototype itself. Specification: [pipeline-4.md](pipeline-4.md), agreed by the owner on 25 November 2026 with their decisions (section 9). + +| Story | Title | Specification | Done when | +|---|---|---|---| +| P4-01 | Specification and the owner's decisions | [pipeline-4.md](pipeline-4.md) | `docs/pipeline-4.md` is agreed, with the owner's decisions on: the target stack and where it comes from, which functions go final (signed off only, others marked draft), the default design system and the pipeline's name | +| P4-02 | Spike: the screen inventory | [§4 D1](pipeline-4.md) | Done 25 November 2026 ([spikes/p4-02-screens.md](spikes/p4-02-screens.md)): every BMS map in CardDemo (21) is read into its fields, positions, attributes and function keys, with no model, and each legacy screen is drawn as a faithful 3270 copy | +| P4-03 | How the screens connect | [§4 D2](pipeline-4.md) | Done 25 November 2026: the flow between screens and programs is read from the source and shown as a map, each link citing its lines; on CardDemo nothing is left open | +| P4-04 | User journeys | [§4 D3](pipeline-4.md) | Done 25 November 2026: screens are grouped into the tasks people do, each journey linked to its capabilities and requirements; on CardDemo 20 journeys over all 21 screens, every answer passing Reframe's checks | +| P4-05 | Modernized screens and their mapping | [§4 D4, §5](pipeline-4.md) | Each journey has modern screen designs. A mapping table takes every legacy screen and field to its new component as kept, merged, dropped or new, with the reason; no legacy field is left unmapped. Each screen also records its role, data and service dependencies, the pain points it removes and test scenarios, and follows a `style-reference/` folder where the design system is silent | +| P4-06 | The clickable prototype | [§4 D5](pipeline-4.md) | Done 25 November 2026: one static HTML app with a route per screen, sample data shaped by the fields and messages written from the rules, each screen beside the legacy screens it replaces; screens and components can be marked *Agree*, *Needs change* or *Question*, journeys signed off, and the marks downloaded | +| P4-07 | Final specifications | [§4 D6, D8](pipeline-4.md) | Done 26 November 2026: per capability, the final requirements and business rules, screen specifications, data contracts from the copybooks, acceptance criteria, decision tables with their gaps, and the questions still open, each citing its sources; each rule and requirement classed as business rule, formatting, error handling, side effect or historical artifact | +| P4-08 | The AI-DLC package | [§4 D7](pipeline-4.md) | Done 26 November 2026, with placeholders and START-HERE.md for what the engineer gives (the stack, house conventions, skills); the *Sign in* build check is the engineer's step (owner's decision). One package in three forms: Kiro (`.kiro/specs//` with `requirements.md`, `design.md` and `tasks.md`, and steering files), Claude Code (`CLAUDE.md`, the specifications, the prototype as the UI reference and the tasks) and Spec Kit (a constitution, `specs//` and role files under `.claude/agents/`, each task naming its role), every item keeping its requirement and rule IDs. Checked by loading it into Claude Code and building one journey | +| P4-09 | Rounds with more context | [§4 D9](pipeline-4.md) | Done 26 November 2026 (`python -m reframe.design.pipeline`, with `--plan`): added context redoes only the parts it touches; each round versions the package and writes what changed since the last | +| P4-10 | Live acceptance and README | [§8](pipeline-4.md) | Done 26 November 2026 ([results](pipeline-4.md)): rounds 1 and 2 on CardDemo from the CLI; round 2's persona, design system and *Needs change* redid only what they reach, and a kept part now records its pieces so a later round can say why. On CardDemo, from the CLI: the prototype covers every screen, a second round with added context changes only what it should, and the README and `docs/cli.md` describe pipeline 4 from the tested commands | +| P4-11 | Golden datasets and equivalence tests | [§4 D10](pipeline-4.md) | Done 26 November 2026 (the owner moved it forward from Later, the same day), with no model: per capability, a golden dataset from the worked examples and decision tables in each form of the package, with `golden/compare.py` setting formatting apart from business differences, and the test-generation task naming every case. On CardDemo: 1,595 cases for 139 capabilities, 746 edge cases and 82 combinations left for the owner. Expected outputs come from the rules until P4-13 | +| P4-12 | Risk and replacement order | [§4 D11](pipeline-4.md) | **Later** (the owner, 26 November 2026). Capabilities are ordered for replacement from their risk and what they touch, low-risk and read-only first and money, security and adjudication last, shared data and screens kept together; the order and its reasons are on the design page and in the package's constitution and tasks | +| P4-13 | Spike: real legacy outputs under GnuCOBOL (low priority) | [§4 D12](pipeline-4.md) | **Later** (the owner, 26 November 2026). A note records which CardDemo batch programs compile and run under GnuCOBOL with files built from the copybooks, and whether their outputs can replace the rules' expected outputs in the golden datasets | + +## Release 1.0: anyone can try it + +The owner's direction (26 November 2026): release v1.0.0 so anyone can try Reframe, with Claude only or with both tools. The specification, with the owner's decisions, is [docs/release-1.md](release-1.md); each story's *done when* is in its issue (epic #433). + +| Story | Title | Specification | Issue | +|---|---|---|---| +| C1-01 | A run without AWS | [release 1.0](release-1.md) | #434 · Done 26 November 2026: `reframe run --tools claude`, the guided run's first question and `reframe setup --tools claude`; status, home, resume, report, compare and teardown say what applies | +| C1-02 | The Claude assessment alone | [release 1.0](release-1.md) | #435 · Done 26 November 2026: the Claude worker takes the snapshot; C7 keeps the graph as a file | +| C1-03 | Reconciliation from one tool | [release 1.0](release-1.md) | #436 · Done 26 November 2026: every rule checked against the code in Claude's frame; the two-tool prompts are unchanged | +| C1-04 | Design and publish on a Claude-only run | [release 1.0](release-1.md) | #437 · Done 26 November 2026: the design is unchanged; a published copy has no AWS review or comparison | +| C1-05 | Claude-only live on a second codebase | [release 1.0](release-1.md) | #438 · Done 26 November 2026 ([results](release-1.md)): the second test codebase from `reframe run --tools claude` to the package and a local published copy, about $71 at API prices; a usage limit followed by a task notice is now a limit stop | +| S-16 | Publish to GitHub Pages, optional | [release 1.0](release-1.md) | #439 · Done 26 November 2026: `reframe publish --to pages --repo /`, after a typed yes | +| S-17 | The demo on GitHub Pages | [release 1.0](release-1.md) | #440 · Done 26 November 2026: `reports/index.html` and `.github/workflows/pages.yml`; Pages is turned on for the repository at the release | +| R1-01 | README for anyone | [release 1.0](release-1.md) | #441 · Done 26 November 2026: a 128-line README with badges, the demo and a quick start; the detail in `docs/guide.md` | +| R1-02 | Package metadata | [release 1.0](release-1.md) | #442 · Done 26 November 2026: 1.0.0 metadata; CI on Linux and macOS, Python 3.10 to 3.13, and a built-package check | +| R1-03 | Contributing | [release 1.0](release-1.md) | #443 · Done 26 November 2026: CONTRIBUTING.md, CHANGELOG.md, issue templates, SECURITY.md updated | +| R1-04 | A clean machine | [release 1.0](release-1.md) | #444 · Done 26 November 2026 ([results](release-1.md)): Linux container and macOS installs; a fresh macOS user account needs the Mac's administrator, so CI's clean macOS runners stand in | +| A1-01 | End-to-end runs | [release 1.0](release-1.md) | #445 · Done 27 November 2026 ([results](release-1.md)): the second test codebase with both tools and with Claude only. CardDemo with both tools was not run again for 1.0: its full run of 22 to 26 November stands, and AWS runs wait for the owner's own AWS account (the owner, 27 November 2026) | +| REL-1 | Release v1.0.0 | [release 1.0](release-1.md) | #446 · Released 27 November 2026, from CodeStrata/reframe | + +## Credibility: code quality + +The owner's direction (26 November 2026): make Reframe credible to someone reading its code. The checks run in CI on every pull request, with the checkers' versions pinned in `pyproject.toml`'s `dev` extra ([CONTRIBUTING](../CONTRIBUTING.md) says how to run them). Epic #449. + +| Story | Title | Specification | Done when | +|---|---|---|---| +| Q1-01 | Honest status | – | #450 · `pyproject.toml` classes Reframe as Beta (`Development Status :: 4 - Beta`), not Production/Stable | +| Q1-02 | Lint in CI | [CONTRIBUTING](../CONTRIBUTING.md) | #451 · `ruff check src tests` passes in CI with pyflakes, syntax and bugbear rules. The 51 findings of the first check are fixed: unused imports and names, two dead loads in the design round, loop variables never read, and a test that accepted any exception | +| Q1-03 | Types in CI | [CONTRIBUTING](../CONTRIBUTING.md) | #452 · `mypy` passes in CI. The modules with type errors still to fix are listed in `pyproject.toml`, and the list only shrinks: 25 of 85 modules at the start, after 13 were fixed | +| Q1-04 | Tests of the drivers, and a coverage floor | [CONTRIBUTING](../CONTRIBUTING.md) | #453 · The Claude assessment's driver, the AWS Transform assessment's driver and the command handlers are tested stage by stage with fakes, and CI fails below 80% line coverage. At the start: 81% overall; the drivers went from 44%, 38% and 46% to 95%, 93% and 71% | +| Q1-05 | Split `core/commands.py` | – | #454 · **After the v1.0.0 tag** (the owner, 26 November 2026), so it does not collide with the release's fixes. The 900-line module becomes one module per command group, with the Q1-04 tests passing unchanged | + +## Proving it at scale + +After everything above is tested and the owner is satisfied. + +| Story | Title | Specification | Done when | +|---|---|---|---| +| SC-01 | Spike: a larger codebase | [spike](spikes/sc-01-larger-codebase.md) | Spike written 26 November 2026, for the owner to choose: no public COBOL and CICS codebase several times CardDemo's size has a licence that allows it. The paths are CardDemo, GenApp and Bank-of-Z as one codebase (about 2.7 times CardDemo, permissive licences, read today), or NAV's DSF (MIT, about 20 times, a real national system) once Reframe reads PL/I. Estimates are in the spike | +| SC-02 | All pipelines on the larger codebase | to be written | **Later** (the owner, 26 November 2026). Every pipeline runs to the end on it, with the time, agents and cost of each recorded in the documentation | +| SC-03 | Amazon Bedrock, live | [pipeline 2 §4.1](pipeline-2.md) | **Later** (the owner, 26 November 2026). The Claude assessment, the reconciliation and pipeline 4 run live with Claude on Amazon Bedrock. Held until the owner's security clearance for using Bedrock on the codebase | +| SC-04 | Sign in with an Anthropic API key | [pipeline 2 §4.1](pipeline-2.md) | #457 · Done 26 November 2026, offline (the owner: build and test offline, a live run only on a yes): `--auth api-key` on `reframe run`, `claude`, `reconcile` and `design`, and in the guided run. `ANTHROPIC_API_KEY`, with `ANTHROPIC_BASE_URL` when set, goes to Claude Code from the shell and is never written; the preflight checks it is set; the estimate says it is billed to the key; `reframe publish` replaces a key it finds and names it | +| SC-05 | Amazon Bedrock on a Claude-only run | [pipeline 2 §4.1](pipeline-2.md) | #458 · Done 26 November 2026, offline: `reframe run --tools claude --auth bedrock --profile

--region ` uses the profile for Bedrock only and creates no AWS resources; `AWS_BEARER_TOKEN_BEDROCK` needs no profile. The reconciliation and the design now check the Bedrock sign-in against the run's profile (before, they checked it with no identity and always refused). Live runs wait for SC-03 | +| SC-06 | A mainframe expert's own check of an audit sample | [pipeline 3 §8.13](pipeline-3.md) | #460 · Built 26 November 2026, with no model: `python -m reframe.reconcile.expert pack` writes a blind pack of the audit's sample, cleaned, with `verdicts.csv`; `read` reports the expert's figures, their agreement with each judge and with the audit, and the rules they call wrong. On CardDemo the pack holds the audit's 76 items. **Live:** the expert's verdicts, for the owner to arrange | diff --git a/docs/release-1.md b/docs/release-1.md new file mode 100644 index 00000000..aaafd8b4 --- /dev/null +++ b/docs/release-1.md @@ -0,0 +1,149 @@ +# Reframe 1.0: anyone can try it + +The owner's direction (26 November 2026): release Reframe officially, as version 1.0.0, so anyone can try it and find it useful. This document is the specification and plan for that release. The owner's decisions are in section 7, all agreed on 26 November 2026. + +## 1. Goal + +Someone who finds the repository can, in this order: + +1. **see what it makes, with nothing installed:** the CardDemo reports, open in the browser; +2. **run it on their own code with only Claude:** no AWS account, no AWS Transform; +3. **add AWS Transform when they have it:** the two assessments side by side, reconciled against the code, as today; +4. **share the results their way:** a folder, their AWS account or GitHub Pages, each optional. + +## 2. Claude-only mode (C1-01 to C1-05) + +Today `reframe run` starts with AWS: the snapshot goes to an S3 bucket, AWS Transform runs, and the Claude assessment needs the run's resources (its Neptune graph). A Claude-only run needs none of that. + +```bash +reframe run --tools claude --source +``` + +The guided run asks "AWS Transform and Claude, or Claude only?", and Claude only skips the AWS profile and sign-in questions. + +| Stage | With AWS Transform | Claude only | +|---|---|---| +| Prerequisites | Git, AWS CLI, Terraform, the MCP server, Claude Code | Git and Claude Code | +| Snapshot | in the run folder, and uploaded to the run's bucket | in the run folder only | +| AWS resources | the run's bucket, sandbox role, Neptune graph | none, so no teardown | +| Claude assessment | the plugin, Reframe's requirements (C6), the graph loaded into Neptune (C7) | the same, without C7: the graph stays a file, `outputs/claude/graph.nq` | +| Business review | AWS Transform's and Claude's | Claude's | +| Comparison | the two tools | none | +| The frame | AWS Transform's domains and business functions | Claude's domains and the functions Reframe wrote in C6 | +| Reconciliation | groups decided against the code; one-sided rules checked | every rule is one-sided, so every rule is checked against the code (`kept`, `rejected` or `needs_sme`), with the same evidence checks, confidence and SME list | +| Design and package | from the reconciled results | the same | +| Publish | all of it | all of it | + +The home screen, `reframe status` and the next-step hints say which tools a run uses, and offer only the steps that apply. `reframe claude` on a Claude-only run is the assessment itself; `reframe compare` says there is nothing to compare. + +**Cost.** The reconciliation checks every Claude rule, not just the disputed ones. On CardDemo that is about 300 rules: roughly 35 batches, 15 to 40 minutes and about $15 to $40 at API prices. + +| Story | Done when | +|---|---| +| C1-01 A run without AWS | `reframe run --tools claude` takes the snapshot, writes no AWS records, and the home screen, status and teardown treat it as Claude-only | +| C1-02 The Claude assessment alone | The plugin, C6 and the report run on a Claude-only run; C7 is skipped with its reason | +| C1-03 Reconciliation from one tool | Pipeline 3 runs with Claude's frame, checks every rule against the code, and writes the same page, SME list and requirements | +| C1-04 Design and publish | `reframe design` and `reframe publish` work unchanged on a Claude-only run | +| C1-05 Live on a second codebase | A Claude-only run of a second, smaller test codebase, from `reframe run` to the package, with no AWS profile set | + +## 3. Publishing to GitHub Pages, optional (S-16, S-17) + +**S-16 `reframe publish --to pages`.** It is for people who want a link to send, with nothing to install. + +```bash +reframe publish --to pages --repo / +``` + +- It writes the cleaned copy, exactly as `--to ` does, to the repository's `gh-pages` branch, under `//`, with an index of every published run. It does this with Git and `gh`, using the person's own GitHub sign-in. +- It turns GitHub Pages on for that branch if it is off, then prints the address. +- **A Pages site is public**, on a public repository and on most private ones. Before anything is pushed, Reframe says so, names the repository and the address, and asks the person to type `yes`. With no terminal it refuses. +- Nothing else changes: publishing stays optional, and `--to ` and `--to aws` are as they are. + +**S-17 The demo.** This repository's own Pages site serves `reports/` (CardDemo only: other test codebases are run locally and nothing from them is committed, the owner's decision of 26 November 2026): a GitHub Actions workflow deploys it on every push to `main`. The README's first screen links to it. The demo is optional for anyone forking the repository: the workflow runs only where Pages is turned on. + +## 4. A repository that explains itself (R1-01 to R1-04) + +| Story | Done when | +|---|---| +| R1-01 README | The first screen says what Reframe is, who it is for and what it makes. It shows badges (CI, release, Python, license), the live demo, and a five-minute quick start for Claude only and for both tools. The detail moves to `docs/` (guides per pipeline), so the README is about 150 lines and every link resolves | +| R1-02 Package metadata | `pyproject.toml` has version 1.0.0, a current description, project URLs, classifiers and the license. `uv tool install git+https://github.com/CodeStrata/reframe` installs it | +| R1-03 Contributing | `CONTRIBUTING.md` (set-up, tests, the change-control flow), `CHANGELOG.md` (0.3.0 to 1.0.0), bug and feature issue templates, and `SECURITY.md` kept | +| R1-04 A clean machine | On a fresh macOS user account and in a Linux container: install from GitHub, then `reframe --help`, `reframe setup` (its checks), a Claude-only run of the second test codebase, and `reframe publish --to ` | + +### Results (R1-04, 26 November 2026) + +- **Linux:** a clean `python:3.12-slim` container, with the built wheel. + - It installs, and `--version` and `--help` work. + - `reframe publish` of the second codebase's run writes all 453 pages, to a local folder. + - 351 of 360 offline tests pass. The 9 that error call `git`, which the slim image lacks; Git is one of Reframe's prerequisites. +- **macOS:** + - `uv tool install "git+https://github.com/CodeStrata/reframe@"` into an empty tool folder installs 1.0.0, with `--tools` and `--to pages`. + - The wheel installs in a clean virtual environment and finds its templates. + - A fresh user account was not made: that needs the Mac's administrator. CI's macOS jobs, with Python 3.10 to 3.13, run the tests on a clean runner instead. +- **Found and fixed:** `reframe run --source …` with the default `--tools both` started AWS Transform only, because only the guided run added Claude. It now starts both, and `--tools aws` keeps the old behaviour. + +### Results (C1-05, 26 November 2026) + +The second test codebase with Claude only (run 3095b6, from its ZIP file), with the CLI alone and no AWS profile. Every stage worked: + +| Stage | Result | Cost at API prices | +|---|---|---| +| `reframe run --tools claude` | Snapshot, preflight without AWS, then the plugin's preflight, assess, map and extract-rules: 103 rule cards. Reframe's requirements ran over Claude's 9 domains and 22 functions, and Claude's business review was built. | $42.95, including $11.98 for the extraction attempt the usage limit cut short | +| `reframe reconcile` | 103 one-tool units in 14 batches, under the batch limit (estimate 4 to 12 minutes, $7 to $16). 102 kept and 1 for an SME: 220 recommended rules, all cited by 254 requirements, with 32 decision tables, 43 SME questions from 49, and 36 possible defects. The page says the run used Claude only and links to no comparison. | $18.63 | +| `reframe design` | 15 journeys (1 screen unused), 13 modern screens, 68 specifications (all draft, since nothing is signed off), 2 data contracts and package v1, with 0 problems in every stage, in 17 minutes. `--package` copied 511 files, and `--check` lists 85 placeholders. | $9.54 | +| `reframe publish --to ` | 528 pages: Claude's review, the reconciliation and the design. No AWS review, no comparison, 0 broken links, no local paths. | none | +| `reframe teardown` | "It created no AWS resources, so there is nothing to tear down." | none | + +**Found and fixed: a usage limit read as a failure.** Rule extraction hit Claude's 5-hour usage limit. Claude Code then wrote an empty *success* result for a background task's notice, and Reframe, reading only the last line, recorded FAILED. The step's answer is now the last result that is not such a notice, and a usage-limit result anywhere makes the step a limit stop. `reframe resume` after the reset finished the run, with no work repeated. + +**Seen, not a fault:** Claude's plugin puts the codebase's screens in a domain of their own, *3270 presentation*, so all of the run's journeys sit in that one domain. With both tools, the journeys follow AWS Transform's business domains instead. + +## 5. Acceptance before the release (A1-01) + +From the CLI only, each from `reframe run` to `reframe publish` and teardown, without any stop that needs a fix in the code: + +- CardDemo with both tools, from its GitHub URL; +- the second test codebase with both tools, from its ZIP file; +- the second test codebase with Claude only (C1-05). + +Only CardDemo's results are published. The second codebase's runs are kept locally. + +Each run's time, agent count and cost are recorded in the plan. A stop because of a usage limit or an expired sign-in is fine: `reframe resume` must carry on without repeating work. Any other stop is fixed, and that run is repeated. + +### Results: the second test codebase with both tools (A1-01, 26 and 27 November 2026) + +Run 8f53b4, from `reframe run --source --project --max-agents 650`, which now starts both assessments. It reached the end, but not without interruption. Every stop it made was fixed in Reframe or resumed: + +| Stage | Result | +|---|---| +| AWS Transform | All 9 plan steps succeeded, and the results and business review were built. It was stuck for about four hours at *Discover business functions* (fix 2). | +| Claude | Preflight, assess, map and extract-rules: 109 rules and 314 requirements, with the graph loaded into Neptune (5,318 quads, 54 rules joined to AWS's programs) and the comparison built. It stopped once at Claude's usage limit, reported correctly as a limit stop thanks to C1-05's fix, and resumed. | +| Teardown | 40 resources. The first attempt stopped partway when the Mac lost DNS. The second deleted only the 10 left, and the check found nothing still in AWS. | +| Reconciliation | 248 units decided against the code and 9 rules agreed by both tools: 466 recommended rules, all cited by 392 requirements, 36 decision tables, 138 SME questions and 70 possible defects. | +| Design | 11 journeys, 10 modern screens, 67 specifications and 2 contracts, with 0 problems. Package v1 has 504 files, and `--check` lists 85 placeholders. It stopped once at Claude's usage limit and was continued with `reframe design`. | +| Publish | 523 pages: AWS's review, Claude's, the comparison, the reconciliation and the design, with 0 broken links. | + +Claude's cost at API prices was about $85: assessment $36.79, comparison $1.53, reconciliation $36.59, design $9.91. + +**Found and fixed:** +1. **The "already in progress" loop.** AWS said the reimagine was initiated but added no steps to its plan. After that, every six minutes, its review form reopened; Reframe submitted it, AWS asked for the selection, and then refused the same selection as a second request. Once AWS refuses a selection this way, Reframe now stops resubmitting the form and asks once, in plain words, what is running and to start again. Live, AWS's readiness menu came back, and its Proceed added the steps and started the plan. A second refusal waits for the person. +2. **"Not configured" read as an expired sign-in.** The AWS Transform MCP server's start-up region probe sometimes failed for us-east-1 with an empty error. Reframe then stopped the run as an expired sign-in, although the AWS CLI sign-in was valid. The client now starts a new server after 5, 15 and 30 seconds before giving up. +3. **Two design rounds at once.** A round was started in a terminal while another was running on the same run. Rounds now take the run's design lock. + +## 6. The release (REL-1) + +After the owner's go-ahead: merge `develop` into `main`, tag `v1.0.0` on `main`, and publish a GitHub release with notes from `CHANGELOG.md`. + +**Released 27 November 2026,** from the repository's new home, `CodeStrata/reframe`. A1-01 ran the second test codebase with both tools and with Claude only. CardDemo with both tools was not run again for 1.0: its full run of 22 to 26 November stands, and AWS runs wait for the owner's own AWS account. + +## 7. The owner's decisions + +| Decision | Choice | +|---|---| +| Version | **v1.0.0** (agreed 26 November 2026) | +| Licence | **MIT** (the owner, 27 November 2026): Reframe stays open source under the MIT License, so anyone, the owner's own later work included, can use and improve it. A move to the AGPL, merged on 26 November, was reverted before 1.0 | +| Published examples | **CardDemo only** (the owner, 26 November 2026), with its Apache-2.0 licence and notice; other test codebases are run locally and nothing from them is committed | +| Scope | Claude-only mode, optional Pages publishing with the demo, the repository clean-up, and end-to-end runs first (agreed 26 November 2026) | +| Claude-only frame | **Claude's domains** and the functions Reframe already writes in C6, with no new model step (agreed with the reconciliation choice) | +| Claude-only reconciliation | **Every Claude rule is checked against the code**, as one-sided rules are today (agreed 26 November 2026). Taking Claude's rules unchecked would be cheaper, but the P3-11 audit found the errors were in unchecked rules | +| Pages publishing | **Push to `gh-pages`** (agreed 26 November 2026): `reframe publish --to pages --repo /` pushes to `gh-pages` with the person's GitHub sign-in, after they type `yes` to a warning that the site is public. It is optional, like every publish | diff --git a/docs/sharing.md b/docs/sharing.md index 6de3d43d..c6618397 100644 --- a/docs/sharing.md +++ b/docs/sharing.md @@ -1,6 +1,6 @@ # Reframe specification: sharing the results -Status: draft for the owner's agreement. Stories S-01 to S-04 in [the plan](plan.md), in their own epic, outside pipelines 1 and 2. +Status: draft for the owner's agreement. Stories S-01 to S-12 in [the plan](plan.md), in their own epic, outside pipelines 1 and 2. ## 1. Goal @@ -27,7 +27,7 @@ The links between the pages still work in the copy. Each is replaced by a placeholder such as ``. Reframe then checks the whole copy for each of those patterns. If any is still there, nothing is written and the file is named. -The review marks in a published copy stay in each reader's browser, as in the original. +The review marks in a published copy stay in each reader's browser, as in the original. A reviewer downloads them from the page; the reconciliation's next round and `reframe review` read that download like one made on the run's own page, although the copy names items by their cleaned keys ([pipeline-3.md](pipeline-3.md), section 8.11). ## 3. The CardDemo reports in the repository (S-02) @@ -50,15 +50,45 @@ Reframe creates it the first time a report is uploaded, from a plan checked to o | Command | What it does | |---|---| -| `reframe publish [--run ] --to aws` | Makes the cleaned copy of section 2 and uploads it under `//` in the bucket, with a receipt. | +| `reframe publish [--run ] --to aws` | Uploads the run under `//` in the bucket, with a receipt: `source/`, `results/` and `reports/` (S-15, below). | | `reframe reports` | Lists the reports in the bucket: project, run, source and when each was published. | | `reframe reports open /` | Downloads that report with your AWS sign-in into `~/.reframe/reports-store/cache/`, and opens it in your browser. | | `reframe reports teardown` | Lists the bucket and how many objects it holds from the store's own records, asks for `yes`, and removes the bucket with its contents. | +**A run's three folders (S-15).** The owner's request (26 November 2026): publishing is optional; when the work is done, an engineer may publish the whole run to one bucket, with a folder each for the source, the results and the reports. The owner chose the standing bucket over each run's source bucket, which `reframe teardown` deletes, so a run can be published after teardown too. + +```text +reframe-reports-xxxxxxxx/ + // + source/ .zip, the snapshot both tools read, and source.json (its checksum, files and origin) + results/ + aws/ what AWS Transform wrote, as Reframe retrieved it + claude/ what Claude's code-modernization plugin wrote + reports/ the cleaned copy: every report, the design and the AI-DLC package, and report.zip +``` + +`source/` and `results/` are the run's own files, not cleaned. Anyone who can read the bucket can read the source code and the raw results, so give read access only to people who may see the code. The bucket is apart from every run, so `reframe teardown` leaves it and what is in it; publish after teardown as well as before. + +Each folder is sent only if the run has it: a run with no Claude results has no `results/claude/`. A report published before S-15 sits at `//` itself; `reframe reports` lists it and `open` and `download` still find it. + **Who can open them (S-04).** Only someone whose AWS sign-in may read the bucket: `s3:ListBucket` and `s3:GetObject` on it. That is anyone the account already trusts with S3 reads, and no one else. Readers can also download a report from the S3 console. Nothing is reachable without signing in to the account. **Tried and dropped.** A link that opens a report in the browser after the AWS sign-in, so a reader needs no Reframe and no download, was built (S-05 to S-08) and dropped by the owner on 23 November 2026. It needed the organization's IAM Identity Center administrator to add an application by hand, and added CloudFront, a Cognito user pool and an edge function to the account. The reports stay in the bucket, opened as above. +## 5. GitHub Pages, optional (S-16, S-17) + +The owner's decision (26 November 2026, [release 1.0](release-1.md), section 3): a person who wants a link to send, with nothing to install, can publish the cleaned copy to GitHub Pages. Like every publish target, it is optional. + +```bash +reframe publish --to pages --repo / +``` + +- Reframe makes the cleaned copy of section 2 and puts it on the repository's `gh-pages` branch, under `//`, with a front page of every published run, newest first. Publishing the same run again replaces it. +- It uses the person's own GitHub sign-in through `git` and `gh`. It turns Pages on for the branch if it is off, then prints the address. +- **A Pages site is public**: anyone with the address can read it, on a public repository and on a private one too (only GitHub Enterprise Cloud can limit who reads a Pages site). So before anything is pushed, Reframe names the repository and the address, says the site is public, and asks the person to type `yes`. With no terminal it refuses. + +**The demo (S-17).** This repository's own Pages site, , serves `reports/`: the CardDemo copy of section 3 and a front page for it. Only CardDemo's reports are published; other codebases Reframe is tested on are run locally, and nothing from them is committed (the owner, 26 November 2026). A workflow deploys it on every push to `main` that changes `reports/`. It runs only in `CodeStrata/reframe`, so a fork publishes nothing unless its owner chooses to. + ## 6. Opening and downloading by project (S-09 to S-11) The owner's direction (24 November 2026): an engineer runs and publishes; an architect or stakeholder gets the project's name and opens or downloads the report with their own AWS sign-in. Nothing is hosted, and nothing is readable without that sign-in. @@ -73,6 +103,71 @@ The owner's direction (24 November 2026): an engineer runs and publishes; an arc | `reframe reports open --run ` | The same for an older run (`reframe reports` lists them) | | `reframe reports download [--run ] --to ` | Saves the copy in a folder, to keep or send on; warns, as `publish` does, about a macOS-protected folder | -**Without Reframe (S-11).** `reframe publish --to aws` also uploads `report.zip`, the same cleaned copy in one file, with everything in one folder `-/`, next to the pages. `reframe reports open` and `download` leave it out. A reader signs in to the AWS console, opens the bucket in S3, and downloads `//report.zip`: the console downloads single files, not folders. They unzip it and open `index.html`. +**Without Reframe (S-11).** `reframe publish --to aws` also uploads `report.zip`, the same cleaned copy in one file, with everything in one folder `-/`, next to the pages in `reports/`. `reframe reports open` and `download` leave it out. A reader signs in to the AWS console, opens the bucket in S3, and downloads `//reports/report.zip`: the console downloads single files, not folders. They unzip it and open `index.html`. Pre-signed download links are left out on purpose: they work for anyone who has the link, with no sign-in. + +## 7. Requirements to a spreadsheet (S-12) + +People who plan the new system work in spreadsheets: they sort, filter, assign and add their own columns. `reframe export --to xlsx` writes the reconciled results as one Excel workbook, so nobody has to copy them out of the page. + +| Command | What it does | +|---|---| +| `reframe export --to xlsx` | Writes `outputs/reconcile/--requirements.xlsx` from the latest run's reconciliation | +| `reframe export --to xlsx --out ` | Writes it there instead; a folder gets the same file name | +| `reframe export --to xlsx --context ` | Adds the reviewers' marks from the review downloads in that folder (default: the reconciliation's context folder) | +| `reframe export --to xlsx --open` | Opens it in the computer's spreadsheet app when written | + +It needs the reconciliation done. It runs nothing, uses no AWS and no Claude, and reads only the run folder and the context folder. + +**Sheets.** Each sheet is one table with a header row, frozen, with filters on, every column named in plain words. The workbook opens on Requirements. + +| Sheet | One row per | Columns | +|---|---|---| +| About | fact | project, run, source and its SHA-256, round, when it was written, what it is (recommended by Reframe, model output for review), the counts, and the review downloads read or ignored | +| Domains | domain | name, kind, description, business functions, requirements | +| Business functions | function | domain, name, description, risk, capabilities, requirements, business rules, who signed it off and when | +| Capabilities | capability | domain, function, number, title, user story, risk, what it touches, requirements, open questions, decision tables | +| Requirements | requirement | domain, function, capability, ID, functional or non-functional, EARS pattern, the requirement, the business rules behind it (ID and name), their programs and source lines, kept from an earlier review | +| Business rules | recommended rule | domain, function, ID, name, the rule, kind, decision, confidence and why, program, source lines, whether the code runs and how it is reached, what it depends on, worked examples, requirements that cite it, possible defect, the AWS Transform and Claude rules it came from, round, who agreed it | +| Decision tables | table row or gap | domain, function, capability, table, conditions, values, outcome, the rule it cites, or "Gap" with the note for an SME | +| Open questions | question a requirement left | domain, function, capability, ID, question, status | +| SME list | SME question | ID, kind, defect call, question, owner, status, answer, settled by, where it came from, evidence | + +Requirements, business rules, capabilities and open questions also carry two review columns: **Mark**, the reviewers' marks combined as the next round combines them (*Needs change*, then *Question*, then *Agree*), and **Reviewers' marks**, each reviewer's own mark and comment. Only downloads from the reconciled review of the same snapshot are read; others are listed as ignored on About, with the reason. The last column of those sheets is the item's **Key**, as the page names it, cleaned like every other cell (an AWS Transform ID becomes the stand-in `reframe publish` gives it). Marks downloaded from the run's own page and from a published copy are both matched. + +**Kept safe.** Every cell is written as text, never as a formula, so a value that starts with `=` stays text. Every cell is cleaned as `reframe publish` cleans its copy (account ID, ARNs, S3 locations, IDs, e-mail addresses, local paths, the AWS profile); if anything is left, nothing is written and the sheet and row are named. The file is written with the standard library, so Reframe gains no dependency. + +**Not read back.** The workbook is for reading and planning. Answers go in the SME list CSV (`reconcile/questions.csv`) and marks in the page's review downloads, which `reframe reconcile --context` reads; About says so. + +## 8. The design as a backlog (S-13) + +Teams plan the build in Jira or Azure DevOps. `reframe export --to jira` and `reframe export --to azure-devops` write the design's capabilities as that tool's CSV import file, so nobody types the backlog in again. + +| Command | What it does | +|---|---| +| `reframe export --to jira` | Writes `outputs/design/--jira.csv` | +| `reframe export --to azure-devops` | Writes `outputs/design/--azure-devops.csv` | +| `--out ` | Writes it there instead; a folder, made if need be, gets the same file name | + +It needs the design's final specifications (`reframe design`), not only the reconciliation. The specifications already hold the acceptance criteria, written in Given/When/Then from the rules' worked examples (pipeline 4, D6), and the backlog keeps the AI-DLC package's IDs. A story, its requirements, rules, criteria and golden cases are named the same in the backlog, the package and the golden datasets. (Updated 26 November 2026 from "written from the rules": the specifications are where the criteria are written, so the backlog takes them from there.) It runs nothing, uses no AWS and no Claude, and needs no credentials: a person imports the file. + +| Tool | Rows | Linked by | +|---|---|---| +| Jira | An Epic per business function, then a Story per capability | `Issue ID` and `Parent` (each story's epic), mapped at import | +| Azure DevOps | An Epic per domain, a Feature per business function, a User Story per capability | The `Title 1`, `Title 2` and `Title 3` columns, as Azure DevOps's import builds a hierarchy | + +**A story** has: +- **Title:** the capability's ID and title. +- **Description:** the user story, and whether it is final or draft (draft: confirm it with the owner before building). Then the requirements and the business rules, each with its ID and class, and the open questions. Then the traceability: the package folder, the run key, how it runs, its risk and what it touches, and its golden dataset. +- **Acceptance criteria:** each with its ID and the rules it checks. For Jira they are a column to map to your field, and in the description too; for Azure DevOps they go in the Acceptance Criteria field. +- **Priority and tags:** priority comes from the capability's risk. Labels (Jira) or tags (Azure DevOps) are `reframe`, the status, `risk-`, and the domain or the function's code. + +Jira's text is in its wiki markup; Azure DevOps's fields are HTML, escaped. A cell that starts with `=`, `+`, `-` or `@` gets a leading space, so a spreadsheet that opens the file does not run it. Every cell is cleaned as `reframe publish` cleans its copy; if anything is left, nothing is written. + +**On CardDemo** (run fa1f61, on a copy, 26 November 2026), each file took under a second: +- **Jira:** 11 epics and 154 stories (52 final). +- **Azure DevOps:** 5 epics, 11 features and 154 user stories. +- **Both:** 1,136 requirements and 1,503 acceptance criteria. + +The largest cell is 23,659 characters, within Jira's limit of 32,767 for a text field. diff --git a/docs/specification.md b/docs/specification.md index d99a237f..bedce804 100644 --- a/docs/specification.md +++ b/docs/specification.md @@ -143,6 +143,7 @@ Reframe polls the job every minute, with its open tasks and chat. It answers eac | Which business functions to reimagine (the catalog's chat message) | One structured chat reply naming every business domain in the catalog and the unassigned programs | The catalog's options through `reframe answer` | | "Do you want to proceed?" after the selection | "Yes, proceed." | `reframe answer` | | The readiness menu after the selection: numbered choices (proceed with everything selected, switch the selection, drop the unassigned programs) ending "Please reply with your choice." | The one choice that proceeds, sent as AWS numbers it; when no single choice starts with "Proceed", it waits for `reframe answer` | `reframe answer` | +| A name that is both a business domain and a business function: AWS lists "domain " and "function " and asks which was meant | The domain, in the words AWS asks for ("domain", or "domain "), since the selection names business domains only | `reframe answer` | | Any other blocking question with options | AWS's default option when AWS marks one, recorded as Reframe's decision | `reframe answer` | | A blocking question with no default | Waits for `reframe answer` | `reframe answer` | | Non-blocking forms (for example "Add collaborators") | Left open | Left open | @@ -221,12 +222,13 @@ Later pipelines get their own folders (for example `src/reframe/claude/` for the ## 7. Run folder -`~/.reframe/projects//runs//`, owner-only permissions: +`/.reframe///` (the folder Reframe is run from; changed from `~/.reframe/projects//runs//` on 26 November 2026, S-14), owner-only permissions: - `run.json`: inputs, mode, stage, status; - `events.jsonl`: every event; - `changes/`: intent and receipt for every AWS change; - `decisions.json`: every answer Reframe gave and why; +- `inputs/`: the context people add, `reconcile/` and `design/`, each with a README saying what goes there; - `outputs/`: the downloads, the manifest, the summary and the report; - `terraform/`: the roots, saved plans and the bootstrap state; - `teardown/`: the inventory, the consent and the deletion records. diff --git a/docs/spikes/p4-02-screens.md b/docs/spikes/p4-02-screens.md new file mode 100644 index 00000000..eaa45e75 --- /dev/null +++ b/docs/spikes/p4-02-screens.md @@ -0,0 +1,61 @@ +# Spike P4-02: the screen inventory (25 November 2026) + +On CardDemo run fa1f61, with no model and no AWS: + +```bash +python -m reframe.design.inventory --run fa1f61 +``` + +It writes `design/screens.json` and one 3270 copy per map in `outputs/design/legacy/`, with an index. It takes 0.3 seconds. + +## What it read + +| | CardDemo | +|---|---| +| BMS sources, mapsets and maps | 21 each, the optional modules' 4 included | +| Fields | 1,166: 135 input, 451 output (the program fills them), 393 labels, 187 stoppers | +| Maps matched to their symbolic copybook | 21 of 21; every named field is in it | +| Maps matched to the program that sends them | 21 of 21, one program each | +| Function keys shown on the screens | 72 | +| Key tests in the programs | 139, each with its line and the statement it leads to | + +Each screen page shows the 3270 copy, its keys (what the screen says, where the program handles it, and where the two differ), the checks and every field. Spot-checked against the BMS source: Login, Update Account, View Authorizations and Add User are drawn as the maps define them. + +## What it found in the source + +**Keys that differ** between what a screen shows and what its program tests: + +| Screen | Key | Finding | +|---|---|---| +| Add User (`COUSR1A`) | F12 | Shown on the screen; `COUSR01C` tests only ENTER, F3 and F4 | +| Transaction Type Update (`CTRTUPA`) | F6 | The screen says `F6=Add`; `COTRTUPC` never tests F6 | +| Delete User (`COUSR3A`) | F12 | `COUSR03C` handles it; the screen does not show it | +| View Authorization Details, Maintain Transaction Type, View Account, List Credit Cards | ENTER | Handled, but the screen does not say so: ENTER is implied | + +The first two are candidates for the SME list: a key the user is told to press that does nothing. + +**Eight notes on the maps themselves**, none an error in reading them: +- **Three User screens:** the user type field's attribute byte falls on the last character (a space) of its label. +- **Two credit card screens:** the function key line's attribute byte falls on the last cell of an 80-column message line above it. +- **View Authorization Details:** the same as the User screens, on its transaction ID label. +- **Update Account and View Account:** an unnamed 9-character field at line 1, column 1 sits over the "Tran:" label, so 3270 shows neither. + +The spec's check is therefore a report, not a stop. Overlaps are named by kind (data over data, an attribute byte on data, a shared attribute byte), and a zero-length stopper, which only ends the field before it, is not counted. + +## What the reading had to handle + +- **Continuation:** a non-blank in column 72 continues a statement from column 16. Inside a quoted string the text runs to column 71, blanks included. Outside one, the operand ends at its last non-blank. Strings such as `'ENTER=Continue F3=Back F7=Backward F8=Forwar-` / `d'` span lines. +- **Keys tested two ways:** + - directly: `EVALUATE EIBAID` / `WHEN DFHPF3`, as in `COSGN00C`; + - through flags a shared copybook sets: `CCARD-AID-PFK03` from `CSSTRPFY`. + + A `SET ... TO TRUE` is an assignment, not a test, and is skipped. +- **Dark keys:** Update Account shows `F5=Save F12=Cancel` dark (`DRK`) until the program reveals them, so keys are read from every field with initial text, and the copy draws dark fields dim. +- **Commented-out code:** `COCRDLIC` has `*COPY COCRDSL.`. Lines with `*` or `/` in column 7 are skipped, or the list program would be counted as using the detail screen. +- **Titles:** most maps carry their title as a label; Login and Transaction Type Update set it from the program, so the title comes from the BMS file's opening comment. + +## For P4-03, the screen flow + +- **Map and program names held in variables:** `SEND MAP(CCARD-NEXT-MAP) MAPSET(CCARD-NEXT-MAPSET)` and `XCTL PROGRAM(CDEMO-TO-PROGRAM)` use variables set from `LIT-` constants, which have `VALUE` clauses in the same program. Resolving those statically should settle most links without a model. +- **Menus:** the menu options are tables in `COMEN02Y` and `COADM02Y`, each with the program name per option. +- **F3:** usually leads to `MOVE LIT-MENUTRANID TO CDEMO-TO-TRANID` or similar, so the "back" target comes from those constants too. diff --git a/docs/spikes/sc-01-larger-codebase.md b/docs/spikes/sc-01-larger-codebase.md new file mode 100644 index 00000000..a5504972 --- /dev/null +++ b/docs/spikes/sc-01-larger-codebase.md @@ -0,0 +1,55 @@ +# Spike SC-01: a larger codebase + +**Question:** which public mainframe codebase, several times CardDemo's size and with a licence that allows it, should Reframe be proven on (SC-02)? + +**Answer, for the owner to choose:** no public COBOL and CICS codebase several times CardDemo's size has a licence that allows it. The one large, real system is NAV's DSF, written in PL/I. Two paths are below, with a recommendation. + +Read on 26 November 2026 from GitHub's metadata (languages, file trees, licences), with nothing cloned or downloaded. + +## What was found + +| Codebase | What it is | Size | Licence | Usable | +|---|---|---|---|---| +| [aws-samples/aws-mainframe-modernization-carddemo](https://github.com/aws-samples/aws-mainframe-modernization-carddemo) | The baseline: credit cards, CICS, batch, VSAM, with IMS, DB2 and MQ extensions | 44 COBOL programs, 62 copybooks, 55 JCL, 21 BMS maps; 2.2 MB of COBOL | Apache-2.0 | Yes (done) | +| [cicsdev/cics-genapp](https://github.com/cicsdev/cics-genapp) | IBM's general insurance sample, CICS and DB2 | 31 programs, 13 copybooks, 29 JCL, 1 BMS; 0.4 MB | EPL-2.0 | Yes, for local tests | +| [IBM/Bank-of-Z](https://github.com/IBM/Bank-of-Z) | A hybrid banking sample, CICS or IMS by customer, z/OS Connect | 45 programs, 96 copybooks, 17 assembler; 1.3 MB of COBOL | Apache-2.0 | Yes, for local tests | +| [navikt/DSF](https://github.com/navikt/DSF) | *Det Sentrale Folketrygdsystemet*, Norway's national insurance system, in production for 51 years (1967 to 2018) | 1,473 PL/I files, 48 MB: about 20 times CardDemo's source | MIT | Yes, once Reframe reads PL/I | +| [RocketSoftwareCOBOLandMainframe/BankDemo](https://github.com/RocketSoftwareCOBOLandMainframe/BankDemo) | Rocket's banking demo, CICS, IMS, JCL | 82 programs, 83 copybooks | Internal demonstration with Rocket products only | No | +| [sentientsergio/COBOL-Legacy-Benchmark-Suite](https://github.com/sentientsergio/COBOL-Legacy-Benchmark-Suite) | A portfolio-management system written for benchmarking LLM translation | 42 programs | None stated | No | +| [etalab/taxe-fonciere](https://github.com/etalab/taxe-fonciere) | France's property-tax computation | 6 programs, 17 copybooks | CeCILL-2.1 | Yes, but small | + +Every other public COBOL repository with stars is a course, a tool, a parser or a toy. + +**Published or local** (the owner, 26 November 2026): only CardDemo's reports are published in this repository. Every other codebase here is for testing: it is run locally, and nothing from it (reports, packages, excerpts) is committed. The licences above would allow publishing with attribution; the owner chose not to. + +## Two paths + +**A. Three COBOL applications as one codebase, now.** CardDemo, GenApp and Bank-of-Z together: +- **Size:** about 120 programs, 2.7 times CardDemo by programs and 1.8 times by source. +- **What it proves:** CICS, IMS, DB2, batch and three unrelated business domains in one run. Reframe reads all of it today. +- **What it does not prove:** a real system's size, or the cross-application flows a real estate has. +- **Licences:** all permissive (Apache-2.0, EPL-2.0 and Apache-2.0). + +**B. DSF, after Reframe reads PL/I.** This is the real proof of scale, on a system that ran a country's national insurance for 51 years. +- **What Reframe needs first:** + - The design's inventory, flow and data contracts read COBOL, BMS and copybooks; each needs a PL/I reader (`%INCLUDE`, `DECLARE`, the PL/I procedure structure). + - Whether Claude's code-modernization plugin handles PL/I, and whether AWS Transform does, must be checked, each in a small spike. +- **Start with a slice:** a subsystem of about five times CardDemo, then all of it. + +## What a run would cost + +These are rough figures, scaled from CardDemo's recorded costs by source size. They are estimates to decide with, not quotes. + +| Step | CardDemo (recorded) | Path A, about 2 to 3 times | A DSF slice, about 5 times | +|---|---|---|---| +| Claude assessment | about 9 million tokens, 2 hours, on the subscription | about 20 to 30 million tokens; needs a raised agent limit and may hit the subscription's limits (a stop and `reframe resume`) | about 45 million tokens; an API key or Bedrock is the practical sign-in | +| Reconciliation, at API prices | $30 to $70 | $70 to $210 | $150 to $350 | +| Design, at API prices | $35 to $60 | $80 to $180 | $175 to $300 | +| AWS Transform | the job and the run's resources, until teardown | the same, in the owner's own AWS account | the same, if AWS Transform reads PL/I | + +## Recommendation + +1. **Path A now** for SC-02, with Claude only, or with both tools once the owner's own AWS account is ready. It is cheap, it uses what Reframe reads today, and it shows Reframe across three domains. +2. **Then PL/I**, as its own stories: a spike on the plugin and AWS Transform, then the PL/I readers. After that, the DSF slice as the real scale proof. PL/I support matters beyond the proof too: many banks and insurers run PL/I. + +**The owner decides:** the path, and a yes to each live run with its estimate. Bedrock waits for SC-03's clearance. diff --git a/pyproject.toml b/pyproject.toml index df05bd3d..01d3e7f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,13 +4,42 @@ build-backend = "setuptools.build_meta" [project] name = "reframe" -version = "0.4.0" -description = "Run an AWS Transform mainframe assessment end to end from one command, and bring back its requirements" +version = "1.0.0" +description = "From legacy source to reviewed requirements, business rules and a design to build from, with Claude, or Claude and AWS Transform; tested on mainframe code" +readme = "README.md" requires-python = ">=3.10" license = "MIT" license-files = ["LICENSE"] +authors = [{ name = "Satish Kumar Nampally" }] +keywords = ["mainframe", "cobol", "modernization", "legacy", "reverse-engineering", "requirements", "claude", "aws-transform", "ai-dlc"] +classifiers = [ + "Development Status :: 4 - Beta", + "Environment :: Console", + "Intended Audience :: Developers", + "Intended Audience :: Information Technology", + "Operating System :: MacOS", + "Operating System :: POSIX :: Linux", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Topic :: Software Development :: Code Generators", + "Topic :: Software Development :: Documentation", +] dependencies = ["mcp>=2,<3", "PyYAML>=6,<7", "rich>=13,<15"] +[project.optional-dependencies] +# what CI checks with (the lint job and the coverage floor); pinned so a new release of a checker cannot fail a PR +dev = ["ruff==0.17.6", "mypy==2.4.1", "types-PyYAML==6.0.12.20261122", "coverage==7.15.4"] + +[project.urls] +Homepage = "https://github.com/CodeStrata/reframe" +Documentation = "https://github.com/CodeStrata/reframe/blob/main/docs/how-to-run.md" +Examples = "https://codestrata.github.io/reframe/" +Changelog = "https://github.com/CodeStrata/reframe/blob/main/CHANGELOG.md" +Issues = "https://github.com/CodeStrata/reframe/issues" + [project.scripts] reframe = "reframe.core.cli:main" @@ -20,3 +49,58 @@ where = ["src"] [tool.setuptools.package-data] "reframe.infrastructure" = ["terraform/*/*.tf", "terraform/modules/*/*.tf"] "reframe.report" = ["template.html", "compare.html"] +"reframe.design" = ["prototype.html"] + +[tool.ruff] +target-version = "py310" + +[tool.ruff.lint] +# correctness, not style: pyflakes, syntax and statement errors, and bugbear +select = ["E4", "E7", "E9", "F", "B"] +# E731 (a lambda given a name) and E741 (a variable named l) are style; B905 (zip without strict=) would change behaviour +ignore = ["E731", "E741", "B905"] + +[tool.coverage.run] +source = ["reframe"] + +[tool.coverage.report] +# the floor CI holds (Q1-04): raise it as tests are added, never lower it +fail_under = 80 + +[tool.mypy] +python_version = "3.10" +files = ["src/reframe"] +ignore_missing_imports = true +warn_unused_ignores = true +warn_redundant_casts = true + +# Modules with type errors still to fix (Q1-03). The list only shrinks: take a module off once it is clean. +[[tool.mypy.overrides]] +module = [ + "reframe.claude.graph", + "reframe.claude.load", + "reframe.claude.runner", + "reframe.claude.steps", + "reframe.core.commands", + "reframe.core.pipeline", + "reframe.core.teardown", + "reframe.design.flow", + "reframe.design.inventory", + "reframe.design.journeys", + "reframe.design.package", + "reframe.infrastructure.network", + "reframe.reconcile.audit", + "reframe.reconcile.decide", + "reframe.reconcile.inputs", + "reframe.reconcile.questions", + "reframe.reconcile.requirements", + "reframe.report.build", + "reframe.report.compare", + "reframe.report.store", + "reframe.source.s3", + "reframe.transform.answers", + "reframe.transform.api", + "reframe.transform.documents", + "reframe.transform.retrieve", +] +ignore_errors = true diff --git a/reports/.nojekyll b/reports/.nojekyll new file mode 100644 index 00000000..e69de29b diff --git a/reports/carddemo/LICENSE-CardDemo.txt b/reports/carddemo/LICENSE-CardDemo.txt new file mode 100644 index 00000000..67db8588 --- /dev/null +++ b/reports/carddemo/LICENSE-CardDemo.txt @@ -0,0 +1,175 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. diff --git a/reports/carddemo/NOTICE.md b/reports/carddemo/NOTICE.md new file mode 100644 index 00000000..261e761c --- /dev/null +++ b/reports/carddemo/NOTICE.md @@ -0,0 +1,10 @@ +# CardDemo: the source these reports describe + +These reports describe AWS's CardDemo sample application, , at the commit recorded in the run's snapshot. + +- **The reports are Reframe's output:** model-written descriptions, rules, requirements and designs, for people to review. +- **The extracts are CardDemo's:** the source lines the reports cite and quote, the messages, and the legacy screens drawn from its BMS maps. They are unmodified, and they remain under CardDemo's licence, the Apache License 2.0 (`LICENSE-CardDemo.txt` beside this file), with CardDemo's notice: + + > Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Reframe is not made, endorsed or supported by Amazon Web Services. AWS, AWS Transform, CICS and the other product names here are their owners' trademarks, used only to say what the source and the tools are. diff --git a/reports/carddemo/aws/index.html b/reports/carddemo/aws/index.html index 8bca6030..d774f1c5 100644 --- a/reports/carddemo/aws/index.html +++ b/reports/carddemo/aws/index.html @@ -3,7 +3,7 @@ -Business review: carddemo-p2 +Business review: aws-carddemo

+

Legacy screens · aws-carddemo

+

How the screens connect

+

Read from the source with no model: 25 transactions, 65 transfers, 1 calls, 0 returns to another +transaction and 36 key links, each with the lines that show it. 0 transfer(s) the source leaves open.

+

Map

Columns by distance from the screens nothing leads to. Arrows: transfers, menu options and keys that move forward. +F3, F12, returns to the screen a user came from, links to an earlier column and transfers to the sign-on are left out; each screen below lists them.

+ +

View Authorizations COPAU0A · COPAUS0C

Reached: navigated · transaction CPVS · from Main Menu COMEN01C, View Authorization Details COPAUS1C

ByGoes toLines
ENTERView Authorization Details COPAUS1Capp/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:225
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:34
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:316
F3Main Menu COMEN01Capp/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:235
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:35
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:236
transfer (XCTL)the screen it came from, as the program records it before transferringapp/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:192
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:322
transfer (XCTL)Login Screen COSGN00Capp/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:669
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:322

View Authorization Details COPAU1A · COPAUS1C

Reached: navigated · transaction CPVD · from View Authorizations COPAUS0C

ByGoes toLines
F3View Authorizations COPAUS0Capp/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:184
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:34
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:185
call (LINK)COPAUS2C (no screen)app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:35
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:248

Maintain Transaction Type CTRTLIA · COTRTLIC

Reached: navigated · transaction CTLI · from Admin Menu COADM01C

ByGoes toLines
F2Transaction Type Update Screen COTRTUPCapp/app-transaction-type-db2/cbl/COTRTLIC.cbl:630
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:50
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:638
F3the screen it came from, as the program records it before transferringapp/app-transaction-type-db2/cbl/COTRTLIC.cbl:591
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:519
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:605
F3Admin Menu COADM01Capp/app-transaction-type-db2/cbl/COTRTLIC.cbl:591
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:47
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:603

Transaction Type Update Screen CTRTUPA · COTRTUPC

Reached: navigated · transaction CTTU · from Admin Menu COADM01C, Maintain Transaction Type COTRTLIC

ByGoes toLines
F3the screen it came from, as the program records it before transferringapp/app-transaction-type-db2/cbl/COTRTUPC.cbl:429
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:446
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:442
F3Admin Menu COADM01Capp/app-transaction-type-db2/cbl/COTRTUPC.cbl:429
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:209
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:440

Update Account CACTUPA · COACTUPC

Reached: navigated · transaction CAUP · from Main Menu COMEN01C

ByGoes toLines
F3the screen it came from, as the program records it before transferringapp/cbl/COACTUPC.cbl:927
app/cbl/COACTUPC.cbl:945
app/cbl/COACTUPC.cbl:941
F3Main Menu COMEN01Capp/cbl/COACTUPC.cbl:927
app/cbl/COACTUPC.cbl:557
app/cbl/COACTUPC.cbl:939

View Account CACTVWA · COACTVWC

Reached: navigated · transaction CAVW · from Main Menu COMEN01C

ByGoes toLines
F3the screen it came from, as the program records it before transferringapp/cbl/COACTVWC.cbl:324
app/cbl/COACTVWC.cbl:342
app/cbl/COACTVWC.cbl:338
F3Main Menu COMEN01Capp/cbl/COACTVWC.cbl:324
app/cbl/COACTVWC.cbl:168
app/cbl/COACTVWC.cbl:336

Admin Menu COADM1A · COADM01C

Reached: navigated · transaction CA00 · from Login Screen COSGN00C, Maintain Transaction Type COTRTLIC, Transaction Type Update Screen COTRTUPC, List Users COUSR00C, Add User COUSR01C, Update User COUSR02C, Delete User COUSR03C

ByGoes toLines
F3Login Screen COSGN00Capp/cbl/COADM01C.cbl:100
app/cbl/COADM01C.cbl:101
option 5 Transaction Type List/Update (Db2)Maintain Transaction Type COTRTLICapp/cpy/COADM02Y.cpy:46
app/cbl/COADM01C.cbl:145
option 6 Transaction Type Maintenance (Db2)Transaction Type Update Screen COTRTUPCapp/cpy/COADM02Y.cpy:50
app/cbl/COADM01C.cbl:145
option 1 User List (Security)List Users COUSR00Capp/cpy/COADM02Y.cpy:26
app/cbl/COADM01C.cbl:145
option 2 User Add (Security)Add User COUSR01Capp/cpy/COADM02Y.cpy:31
app/cbl/COADM01C.cbl:145
option 3 User Update (Security)Update User COUSR02Capp/cpy/COADM02Y.cpy:36
app/cbl/COADM01C.cbl:145
option 4 User Delete (Security)Delete User COUSR03Capp/cpy/COADM02Y.cpy:41
app/cbl/COADM01C.cbl:145

Bill Payment COBIL0A · COBIL00C

Reached: navigated · transaction CB00 · from Main Menu COMEN01C

ByGoes toLines
F3Main Menu COMEN01Capp/cbl/COBIL00C.cbl:128
app/cbl/COBIL00C.cbl:130
transfer (XCTL)Login Screen COSGN00Capp/cbl/COBIL00C.cbl:108
app/cbl/COBIL00C.cbl:281

List Credit Cards CCRDLIA · COCRDLIC

Reached: navigated · transaction CCLI · from Main Menu COMEN01C

ByGoes toLines
ENTERView Credit Card Detail COCRDSLCapp/cbl/COCRDLIC.cbl:517
app/cbl/COCRDLIC.cbl:195
app/cbl/COCRDLIC.cbl:526
ENTERUpdate Credit Card Details COCRDUPCapp/cbl/COCRDLIC.cbl:545
app/cbl/COCRDLIC.cbl:203
app/cbl/COCRDLIC.cbl:554
F3Main Menu COMEN01Capp/cbl/COCRDLIC.cbl:384
app/cbl/COCRDLIC.cbl:187
app/cbl/COCRDLIC.cbl:402
transfer (XCTL)the screen it came from, as the program records it before transferringapp/cbl/COCRDLIC.cbl:428
app/cbl/COCRDLIC.cbl:538

View Credit Card Detail CCRDSLA · COCRDSLC

Reached: navigated · transaction CCDL · from List Credit Cards COCRDLIC, Main Menu COMEN01C

ByGoes toLines
F3the screen it came from, as the program records it before transferringapp/cbl/COCRDSLC.cbl:305
app/cbl/COCRDSLC.cbl:324
app/cbl/COCRDSLC.cbl:320
F3Main Menu COMEN01Capp/cbl/COCRDSLC.cbl:305
app/cbl/COCRDSLC.cbl:179
app/cbl/COCRDSLC.cbl:318

Update Credit Card Details CCRDUPA · COCRDUPC

Reached: navigated · transaction CCUP · from List Credit Cards COCRDLIC, Main Menu COMEN01C

ByGoes toLines
F3the screen it came from, as the program records it before transferringapp/cbl/COCRDUPC.cbl:435
app/cbl/COCRDUPC.cbl:457
app/cbl/COCRDUPC.cbl:453
F3Main Menu COMEN01Capp/cbl/COCRDUPC.cbl:435
app/cbl/COCRDUPC.cbl:235
app/cbl/COCRDUPC.cbl:451

Main Menu COMEN1A · COMEN01C

Reached: navigated · transaction CM00 · from Update Account COACTUPC, View Account COACTVWC, Bill Payment COBIL00C, List Credit Cards COCRDLIC, View Credit Card Detail COCRDSLC, Update Credit Card Details COCRDUPC, View Authorizations COPAUS0C, Transaction Reports CORPT00C, Login Screen COSGN00C, List Transactions COTRN00C, View Transaction COTRN01C, Add Transaction COTRN02C

ByGoes toLines
F3Login Screen COSGN00Capp/cbl/COMEN01C.cbl:96
app/cbl/COMEN01C.cbl:97
option 2 Account Update UUpdate Account COACTUPCapp/cpy/COMEN02Y.cpy:31
app/cbl/COMEN01C.cbl:156
option 1 Account View UView Account COACTVWCapp/cpy/COMEN02Y.cpy:25
app/cbl/COMEN01C.cbl:156
option 10 Bill Payment UBill Payment COBIL00Capp/cpy/COMEN02Y.cpy:80
app/cbl/COMEN01C.cbl:156
option 3 Credit Card List UList Credit Cards COCRDLICapp/cpy/COMEN02Y.cpy:37
app/cbl/COMEN01C.cbl:156
option 4 Credit Card View UView Credit Card Detail COCRDSLCapp/cpy/COMEN02Y.cpy:43
app/cbl/COMEN01C.cbl:156
option 5 Credit Card Update UUpdate Credit Card Details COCRDUPCapp/cpy/COMEN02Y.cpy:49
app/cbl/COMEN01C.cbl:156
option 11 Pending Authorization View UView Authorizations COPAUS0Capp/cpy/COMEN02Y.cpy:86
app/cbl/COMEN01C.cbl:156
option 9 Transaction Reports UTransaction Reports CORPT00Capp/cpy/COMEN02Y.cpy:74
app/cbl/COMEN01C.cbl:156
option 6 Transaction List UList Transactions COTRN00Capp/cpy/COMEN02Y.cpy:55
app/cbl/COMEN01C.cbl:156
option 7 Transaction View UView Transaction COTRN01Capp/cpy/COMEN02Y.cpy:61
app/cbl/COMEN01C.cbl:156
option 8 Transaction Add UAdd Transaction COTRN02Capp/cpy/COMEN02Y.cpy:67
app/cbl/COMEN01C.cbl:156

Transaction Reports CORPT0A · CORPT00C

Reached: navigated · transaction CR00 · from Main Menu COMEN01C

ByGoes toLines
F3Main Menu COMEN01Capp/cbl/CORPT00C.cbl:187
app/cbl/CORPT00C.cbl:188
transfer (XCTL)Login Screen COSGN00Capp/cbl/CORPT00C.cbl:173
app/cbl/CORPT00C.cbl:548

Login Screen COSGN0A · COSGN00C

Reached: navigated · transaction CC00 · from Admin Menu COADM01C, Bill Payment COBIL00C, Main Menu COMEN01C, View Authorizations COPAUS0C, Transaction Reports CORPT00C, List Transactions COTRN00C, View Transaction COTRN01C, Add Transaction COTRN02C, List Users COUSR00C, Add User COUSR01C, Update User COUSR02C, Delete User COUSR03C

ByGoes toLines
transfer (XCTL)Admin Menu COADM01Capp/cbl/COSGN00C.cbl:231
transfer (XCTL)Main Menu COMEN01Capp/cbl/COSGN00C.cbl:236

List Transactions COTRN0A · COTRN00C

Reached: navigated · transaction CT00 · from Main Menu COMEN01C, View Transaction COTRN01C

ByGoes toLines
ENTERView Transaction COTRN01Capp/cbl/COTRN00C.cbl:120
app/cbl/COTRN00C.cbl:188
F3Main Menu COMEN01Capp/cbl/COTRN00C.cbl:122
app/cbl/COTRN00C.cbl:123
transfer (XCTL)Login Screen COSGN00Capp/cbl/COTRN00C.cbl:108
app/cbl/COTRN00C.cbl:192

View Transaction COTRN1A · COTRN01C

Reached: navigated · transaction CT01 · from Main Menu COMEN01C, List Transactions COTRN00C

ByGoes toLines
F3Main Menu COMEN01Capp/cbl/COTRN01C.cbl:115
app/cbl/COTRN01C.cbl:117
F5List Transactions COTRN00Capp/cbl/COTRN01C.cbl:125
app/cbl/COTRN01C.cbl:126
transfer (XCTL)Login Screen COSGN00Capp/cbl/COTRN01C.cbl:95
app/cbl/COTRN01C.cbl:205

Add Transaction COTRN2A · COTRN02C

Reached: navigated · transaction CT02 · from Main Menu COMEN01C

ByGoes toLines
F3Main Menu COMEN01Capp/cbl/COTRN02C.cbl:136
app/cbl/COTRN02C.cbl:138
transfer (XCTL)Login Screen COSGN00Capp/cbl/COTRN02C.cbl:116
app/cbl/COTRN02C.cbl:508

List Users COUSR0A · COUSR00C

Reached: navigated · transaction CU00 · from Admin Menu COADM01C

ByGoes toLines
ENTERUpdate User COUSR02Capp/cbl/COUSR00C.cbl:123
app/cbl/COUSR00C.cbl:192
ENTERDelete User COUSR03Capp/cbl/COUSR00C.cbl:123
app/cbl/COUSR00C.cbl:202
F3Admin Menu COADM01Capp/cbl/COUSR00C.cbl:125
app/cbl/COUSR00C.cbl:126
transfer (XCTL)Login Screen COSGN00Capp/cbl/COUSR00C.cbl:111
app/cbl/COUSR00C.cbl:196

Add User COUSR1A · COUSR01C

Reached: navigated · transaction CU01 · from Admin Menu COADM01C

ByGoes toLines
F3Admin Menu COADM01Capp/cbl/COUSR01C.cbl:93
app/cbl/COUSR01C.cbl:94
transfer (XCTL)Login Screen COSGN00Capp/cbl/COUSR01C.cbl:79
app/cbl/COUSR01C.cbl:175

Update User COUSR2A · COUSR02C

Reached: navigated · transaction CU02 · from Admin Menu COADM01C, List Users COUSR00C

ByGoes toLines
F12Admin Menu COADM01Capp/cbl/COUSR02C.cbl:124
app/cbl/COUSR02C.cbl:125
F3Admin Menu COADM01Capp/cbl/COUSR02C.cbl:111
app/cbl/COUSR02C.cbl:114
transfer (XCTL)Login Screen COSGN00Capp/cbl/COUSR02C.cbl:91
app/cbl/COUSR02C.cbl:258

Delete User COUSR3A · COUSR03C

Reached: navigated · transaction CU03 · from Admin Menu COADM01C, List Users COUSR00C

ByGoes toLines
F12Admin Menu COADM01Capp/cbl/COUSR03C.cbl:123
app/cbl/COUSR03C.cbl:124
F3Admin Menu COADM01Capp/cbl/COUSR03C.cbl:111
app/cbl/COUSR03C.cbl:113
transfer (XCTL)Login Screen COSGN00Capp/cbl/COUSR03C.cbl:91
app/cbl/COUSR03C.cbl:205
+

Left open by the source

  • None.
+
\ No newline at end of file diff --git a/reports/carddemo/design/index.html b/reports/carddemo/design/index.html new file mode 100644 index 00000000..df292f7c --- /dev/null +++ b/reports/carddemo/design/index.html @@ -0,0 +1,68 @@ + +The design
+

Legacy screens · Screen flow · Journeys · +Modern screens · Prototype · aws-carddemo

+

The design

+

The modernized application's design, from the reconciled requirements and rules: the screens, the journeys, and a final specification +for every capability. A capability in a signed-off function is final; every other one is draft. Reframe assembled each specification and checked +every requirement, rule, screen and copybook it cites; a Claude step per function wrote the summaries, 212 acceptance criteria for requirements +no worked example covers, and 262 design notes. Model output, for review.

+
21legacy screens
20modern screens
17journeys
683legacy items mapped
154capabilities
52final
102draft
1136requirements
1503acceptance criteria
40data contracts
82decision table gaps
485open SME questions
+

Target stack: not given yet, so the data contracts show neutral types.

+

Mapping: 62 dropped, 93 kept, 512 merged, 16 split. Rules by class: 570 business rule, 12 side effect, 172 error handling, 170 formatting, 17 historical artifact, 262 design note. Criteria: 1291 from worked examples, 212 written from the rules.

+
+ +
+

Customer Account Self-Service

Account Statement Generation and Delivery

1. Re-sequence transactions by card numberdraft · scheduled job · 3 requirements · 2 rules · 2 criteria

A scheduled step that puts every transaction in order by card number, then by transaction ID, so statements can be built one card at a time. The statement operations team runs it before statements are produced. It must never lose, duplicate or reorder transactions, and if the step fails it must not leave a partial work copy behind.

As a statement operations team, I want the transaction master re-sorted by card number and transaction ID into a work copy, so that statements can be built card by card.

Draft: the function is not signed off yet. Risk high; touches card_data, money. rec/CustomerAccountSelf-Service/AccountStatementGenerationandDelivery#1

Requirements

CodeClassRequirementCriteria
REQ-F-001design noteThe system shall sort the transaction master (AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS) ascending by card number and then by transaction ID, moving the 16-byte card number to the front of each record, and write a new card-ordered work copy (AWS.M2.CARDDEMO.TRXFL.SEQ) of fixed 350-byte records.AC-01
REQ-F-002error handlingWhen the sort step ends normally, the system shall keep the card-ordered work copy.AC-02
REQ-F-003error handlingIf the sort step ends abnormally, then the system shall discard the card-ordered work copy, with no message for this case defined in the rules.AC-02

Business rules

RuleClassText, worked examples and evidence
Re-sequence transactions by card number
rec/aws:CustomerAccountSelf-Service/AccountStatementGenerationandDelivery/id-cf681614a4/1
design note
technical, medium
THE Card Statement Production SHALL sort the transaction master (AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS) ascending by card number and then by transaction ID, moving the 16-byte card number to the front of each record, and write a new card-ordered work copy (AWS.M2.CARDDEMO.TRXFL.SEQ) of fixed 350-byte records.
  • transaction 0000000000000002 card: 4111111111111111; transaction 0000000000000001 card: 4222222222222222 → The work copy lists card 4111111111111111's transaction first, each record starting with its card number.
app/jcl/CREASTMT.JCL:44-55, app/cpy/CVTRA05Y.cpy:4-18
Re-sequence transactions by card number
rec/aws:CustomerAccountSelf-Service/AccountStatementGenerationandDelivery/id-cf681614a4/2
error handling
error_handling, medium
WHEN the sort step ends normally, THE Card Statement Production SHALL keep the work copy, and WHEN it ends abnormally, SHALL discard it.
  • sort step outcome: abend → AWS.M2.CARDDEMO.TRXFL.SEQ is not kept.
app/jcl/CREASTMT.JCL:44-55, app/cpy/CVTRA05Y.cpy:4-18

Acceptance criteria

IDCriterionChecks
AC-01Given transaction 0000000000000002 card: 4111111111111111; transaction 0000000000000001 card: 4222222222222222
When Card Statement Production runs
Then The work copy lists card 4111111111111111's transaction first, each record starting with its card number.
REQ-F-001
Re-sequence transactions by card number
worked example 1 of the rule
AC-02Given sort step outcome: abend
When the sort step ends normally
Then AWS.M2.CARDDEMO.TRXFL.SEQ is not kept.
REQ-F-002, REQ-F-003
Re-sequence transactions by card number
worked example 1 of the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-030 When producing statements, if the customer or account for a card cannot be found, should that statement be skipped, the run stopped, or an exception recorded? (Statement operations business owner)
  • SME-031 On statements, should address line 3, state, country and ZIP each be cut off at their first space, even when the value has more than one word? (Statement operations business owner)
  • SME-032 Statement production assumes card cross-references are processed in ascending card number order, matching the sorted transactions. Must the new system guarantee that order? (Data architecture team)
  • DEF-101 Is this intended? The reformatting copies only 50 bytes from position 279 of the transaction record, while the two timestamps there take 52 bytes, so the last 2 bytes of the processed timestamp are dropped from the work copy. (Subject-matter expert)

Design notes

  • Produce a card-ordered extract of all transactions, sorted ascending by card number (16 characters) and then by transaction ID. Store it as a staging data set or a query or view that later steps read in that order. The new application does not have to copy the card number to the front of each record or use 350-byte fixed records. What matters is the sort order and that every transaction is included. Re-sequence transactions by card number
2. Load and group card-ordered transactionsdraft · scheduled job · 3 requirements · 3 rules · 5 criteria

Loads the card-ordered transactions into a store keyed by card number and transaction ID, and groups them by card. This lets each statement list only that card's transactions, in transaction-ID order. It must never put a transaction under the wrong card, and it must not silently drop transactions when the legacy limits (51 cards, 10 transactions per card) are exceeded.

As a statement operations team, I want the card-ordered transactions loaded into a keyed file and grouped by card, so that each card's statement lists exactly that card's transactions in transaction-ID order.

Draft: the function is not signed off yet. Risk high; touches card_data, money. rec/CustomerAccountSelf-Service/AccountStatementGenerationandDelivery#2

Requirements

CodeClassRequirementCriteria
REQ-F-004design noteWhen every earlier step of the statement job ended with return code 0, the system shall copy every record of the card-ordered work copy (AWS.M2.CARDDEMO.TRXFL.SEQ) into the keyed transaction file (AWS.M2.CARDDEMO.TRXFL.VSAM.KSDS), keyed on card number followed by transaction ID.AC-01, AC-02
REQ-F-005design noteWhile loading the card-and-transaction-ID-sorted transaction extract, the system shall add each transaction to the current card's slot while the card number is unchanged, and on a new card number shall close the previous card's transaction count and open a new card slot with a count of 1.AC-03
REQ-N-001design noteThe system shall hold at most 51 distinct cards for the whole transaction file and at most 10 transactions per card in memory, with no check when either limit is exceeded.AC-04, AC-05

Business rules

RuleClassText, worked examples and evidence
Load card-ordered transactions into keyed file
rec/aws:CustomerAccountSelf-Service/AccountStatementGenerationandDelivery/id-f1049295ce/1
design note
technical, medium
WHEN every earlier step of the statement job ended with return code 0, THE Card Statement Production SHALL copy every record of the card-ordered work copy (AWS.M2.CARDDEMO.TRXFL.SEQ) into the keyed transaction file (AWS.M2.CARDDEMO.TRXFL.VSAM.KSDS), keyed on card number followed by transaction ID.
  • return code of the sort step: 0; records in work copy: 250 → All 250 records are loaded into the keyed transaction file.
  • return code of the sort step: 16 → The copy is skipped.
app/jcl/CREASTMT.JCL:29-30, app/jcl/CREASTMT.JCL:56-61
Group transactions by card in table
rec/group:claude/RULE-216/1
design note
technical, high
WHEN the statement run loads the card-and-transaction-ID-sorted transaction extract, THE statement batch SHALL add each transaction to the current card's slot while the card number is unchanged, and on a new card number SHALL close the previous card's transaction count and open a new card slot with a count of 1.
  • extract rows: 3 rows for card 4111000000000001, then 2 rows for card 4111000000000002 → Slot 1 holds card 4111000000000001 with count 3; slot 2 holds card 4111000000000002 with count 2
app/cbl/CBSTM03A.CBL:756-760, app/cbl/CBSTM03A.CBL:818-853, app/cbl/CBSTM03A.CBL:416-432, app/jcl/CREASTMT.JCL:44-61
In-memory capacity limit of 51 cards x 10 transactions per card
rec/claude:claude/RULE-214/1
design note
technical, medium
THE statement batch SHALL hold at most 51 distinct cards for the whole transaction file and at most 10 transactions per card in memory, with no check when either limit is exceeded.
  • transactions for one card: 12 → Transactions 11 and 12 are stored outside the table; the statement may show wrong data or the job may abend
  • distinct cards in the transaction file: 52 → The 52nd card is stored outside the table; statements may be wrong or the job may abend
app/cbl/CBSTM03A.CBL:225-233, app/cbl/CBSTM03A.CBL:818-830

Acceptance criteria

IDCriterionChecks
AC-01Given return code of the sort step: 0; records in work copy: 250
When every earlier step of the statement job ended with return code 0
Then All 250 records are loaded into the keyed transaction file.
REQ-F-004
Load card-ordered transactions into keyed file
worked example 1 of the rule
AC-02Given return code of the sort step: 16
When every earlier step of the statement job ended with return code 0
Then The copy is skipped.
REQ-F-004
Load card-ordered transactions into keyed file
worked example 2 of the rule
AC-03Given extract rows: 3 rows for card 4111000000000001, then 2 rows for card 4111000000000002
When the statement run loads the card-and-transaction-ID-sorted transaction extract
Then Slot 1 holds card 4111000000000001 with count 3; slot 2 holds card 4111000000000002 with count 2
REQ-F-005
Group transactions by card in table
worked example 1 of the rule
AC-04Given transactions for one card: 12
When statement batch runs
Then Transactions 11 and 12 are stored outside the table; the statement may show wrong data or the job may abend
REQ-N-001
In-memory capacity limit of 51 cards x 10 transactions per card
worked example 1 of the rule
AC-05Given distinct cards in the transaction file: 52
When statement batch runs
Then The 52nd card is stored outside the table; statements may be wrong or the job may abend
REQ-N-001
In-memory capacity limit of 51 cards x 10 transactions per card
worked example 2 of the rule

Screens

None: scheduled job.

Data contracts

COSTM01 (working storage; CBSTM03A), CUSTREC (working storage; CBSTM03A), CVACT01Y (working storage; CBSTM03A), CVACT03Y (working storage; CBSTM03A)

Decision tables

None.

Open questions

  • SME-030 When producing statements, if the customer or account for a card cannot be found, should that statement be skipped, the run stopped, or an exception recorded? (Statement operations business owner)
  • SME-031 On statements, should address line 3, state, country and ZIP each be cut off at their first space, even when the value has more than one word? (Statement operations business owner)
  • SME-032 Statement production assumes card cross-references are processed in ascending card number order, matching the sorted transactions. Must the new system guarantee that order? (Data architecture team)
  • DEF-174 Is this intended? Loading never checks the 51-card or 10-transaction limit, so larger files overrun the table instead of being rejected or handled. (Subject-matter expert)

Design notes

  • Make card-ordered transactions available by the composite key (card number, transaction ID). An indexed table or a keyed staging store works. Load it only after every earlier step of the statement job has succeeded. Copy every record, and run the load as a gated step in the scheduled job. Load card-ordered transactions into keyed file
  • Group the sorted transactions by card number: a control break opens a new group with a count of 1 when the card number changes and adds to the current group while it stays the same. In the new application this is a group-by on card number that keeps transaction-ID order within each card. Group transactions by card in table
  • The legacy program holds at most 51 cards and 10 transactions per card in memory and does not check either limit. The new application should not have these fixed limits. It can stream or query per card, or size its collections dynamically. If a limit has to stay, exceeding it must be reported, not ignored. The business has to confirm whether to keep the legacy truncation. In-memory capacity limit of 51 cards x 10 transactions per card
3. Produce one statement per carddraft · scheduled job · 6 requirements · 7 rules · 9 criteria

The scheduled statement run produces one statement for every card in the card cross-reference, in plain text and in HTML. Each statement combines the cardholder's customer and account details with that card's transactions. It must produce exactly one statement per card, and if the run fails it must keep no statements from that run.

As a cardholder, I want a monthly statement in plain text and HTML for each of my cards, so that I can see my account details and transactions.

Draft: the function is not signed off yet. Risk high; touches card_data, money, personal_data, reporting_only. rec/CustomerAccountSelf-Service/AccountStatementGenerationandDelivery#3

Requirements

CodeClassRequirementCriteria
REQ-F-006design noteWhen every earlier step of the statement job ended with return code 0, the system shall run the statement program (CBSTM03A) over the card-ordered transactions, card cross-reference, account master and customer master, writing a new plain-text statement report (AWS.M2.CARDDEMO.STATEMNT.PS, 80-byte lines) and a new HTML statement report (AWS.M2.CARDDEMO.STATEMNT.HTML, 100-byte lines).AC-01, AC-02
REQ-F-007design noteThe system shall open both statement output files, load the whole transaction file into memory, open the cross-reference, customer and account files, build one statement per cross-reference card, then close the transaction, cross-reference, customer and account files and the two output files, in that order.AC-03, AC-04
REQ-F-008business ruleThe system shall read the card cross-reference file in card-number order and produce one statement per cross-reference record until the file ends.AC-05, AC-06
REQ-F-009design noteThe system shall, for each cross-reference record, look up the customer by the record's customer ID and the account by the record's account ID, then write the statement header and details, then the card's transactions, total and footer.AC-07
REQ-F-010error handlingWhen the statement step ends normally, the system shall keep both statement reports.AC-08
REQ-F-011error handlingIf the statement step ends abnormally, then the system shall delete the text and HTML statement files, so no statements from that run are kept.AC-08, AC-09

Business rules

RuleClassText, worked examples and evidence
Produce text and HTML card statements
rec/aws:CustomerAccountSelf-Service/AccountStatementGenerationandDelivery/id-2f9f109ea1/1
design note
technical, medium
WHEN every earlier step of the statement job ended with return code 0, THE Card Statement Production SHALL run the statement program (CBSTM03A) over the card-ordered transactions, card cross-reference, account master and customer master, writing a new plain-text statement report (AWS.M2.CARDDEMO.STATEMNT.PS, 80-byte lines) and a new HTML statement report (AWS.M2.CARDDEMO.STATEMNT.HTML, 100-byte lines).
  • return code of earlier steps: 0 → The statement program runs and both the text and HTML statement reports are created.
  • return code of the re-sequencing step: 16 → The statement step is skipped and no statement reports are produced.
app/jcl/CREASTMT.JCL:79-96, app/cbl/CBSTM03A.CBL:39-47, app/scheduler/CardDemo.ca7:468-471
Fixed processing sequence: load transactions, open masters, then produce statements
rec/claude:claude/RULE-161/1
design note
technical, medium
THE statement batch SHALL open both statement output files, load the whole transaction file into memory, open the cross-reference, customer and account files, build one statement per cross-reference card, then close the transaction, cross-reference, customer and account files and the two output files, in that order.
  • cross-reference cards: 3; transaction records: 8 → All 8 transactions are loaded first, then 3 statements are written, then all files are closed
app/cbl/CBSTM03A.CBL:293-314, app/cbl/CBSTM03A.CBL:730-853, app/cbl/CBSTM03A.CBL:316-339
File status passed back to the caller as the outcome code
rec/claude:claude/RULE-163/2
design note
technical, medium
THE statement program (CBSTM03A) SHALL drive each file through the routine in the order open, read one or more times, then close.
  • File: 'ACCTFILE' → It is opened, read by key for each card, and closed at the end.
app/cbl/CBSTM03B.CBL:151-152, app/cbl/CBSTM03B.CBL:175-176, app/cbl/CBSTM03B.CBL:200-201, app/cbl/CBSTM03B.CBL:225-226, app/cbl/CBSTM03A.CBL:758-830, app/cbl/CBSTM03A.CBL:857-870
Produce one statement per card
rec/group:claude/RULE-162/1
business rule
business, high
THE statement job SHALL read the card cross-reference file in card-number order and produce one statement per cross-reference record until the file ends.
  • Account: 00000000011; Cards on cross-reference: 2 → Two statements are produced, each with the same account balance and FICO score but only its own card's transactions
  • Card on cross-reference: 4111000099990000; Transactions for card: none → A statement is still produced, with no transaction lines and a total of 0.00
app/cbl/CBSTM03A.CBL:316-329, app/cbl/CBSTM03A.CBL:345-414, app/cbl/CBSTM03A.CBL:921-923, app/cbl/CBSTM03B.CBL:37-52, app/jcl/CREASTMT.JCL:19-20
Produce one statement per card
rec/group:claude/RULE-162/2
design note
technical, high
FOR each cross-reference record, THE statement job SHALL look up the customer by the record's customer ID and the account by the record's account ID, then write the statement header and details, then the card's transactions, total and footer.
  • Cross-reference customer ID: 000000001; Cross-reference account ID: 00000000011 → Name and address come from customer 000000001; balance comes from account 00000000011
app/cbl/CBSTM03A.CBL:316-329, app/cbl/CBSTM03A.CBL:345-414, app/cbl/CBSTM03A.CBL:921-923, app/cbl/CBSTM03B.CBL:37-52, app/jcl/CREASTMT.JCL:19-20
Produce text and HTML card statements
rec/aws:CustomerAccountSelf-Service/AccountStatementGenerationandDelivery/id-2f9f109ea1/2
error handling
error_handling, medium
WHEN the statement step ends normally, THE Card Statement Production SHALL keep both statement reports, and WHEN it ends abnormally, SHALL discard them.
  • statement step outcome: abend → Neither AWS.M2.CARDDEMO.STATEMNT.PS nor AWS.M2.CARDDEMO.STATEMNT.HTML is kept.
app/jcl/CREASTMT.JCL:79-96, app/cbl/CBSTM03A.CBL:39-47, app/scheduler/CardDemo.ca7:468-471
Customer and account master records must exist for every card or the run aborts
rec/claude:claude/RULE-076/4
error handling
error_handling, medium
WHEN the statement step abends, THE job SHALL delete the text and HTML statement files, so no statements from that run are kept.
  • statements written before failure: 40 → Both statement files are deleted at abnormal end
app/cbl/CBSTM03A.CBL:345-414, app/cbl/CBSTM03A.CBL:921-923, app/jcl/CREASTMT.JCL:87-96

Acceptance criteria

IDCriterionChecks
AC-01Given return code of earlier steps: 0
When every earlier step of the statement job ended with return code 0
Then The statement program runs and both the text and HTML statement reports are created.
REQ-F-006
Produce text and HTML card statements
worked example 1 of the rule
AC-02Given return code of the re-sequencing step: 16
When every earlier step of the statement job ended with return code 0
Then The statement step is skipped and no statement reports are produced.
REQ-F-006
Produce text and HTML card statements
worked example 2 of the rule
AC-03Given cross-reference cards: 3; transaction records: 8
When statement batch runs
Then All 8 transactions are loaded first, then 3 statements are written, then all files are closed
REQ-F-007
Fixed processing sequence: load transactions, open masters, then produce statements
worked example 1 of the rule
AC-04Given File: 'ACCTFILE'
When statement program (CBSTM03A) runs
Then It is opened, read by key for each card, and closed at the end.
REQ-F-007
File status passed back to the caller as the outcome code
worked example 1 of the rule
AC-05Given Account: 00000000011; Cards on cross-reference: 2
When statement job runs
Then Two statements are produced, each with the same account balance and FICO score but only its own card's transactions
REQ-F-008
Produce one statement per card
worked example 1 of the rule
AC-06Given Card on cross-reference: 4111000099990000; Transactions for card: none
When statement job runs
Then A statement is still produced, with no transaction lines and a total of 0.00
REQ-F-008
Produce one statement per card
worked example 2 of the rule
AC-07Given Cross-reference customer ID: 000000001; Cross-reference account ID: 00000000011
When Produce one statement per card applies
Then Name and address come from customer 000000001; balance comes from account 00000000011
REQ-F-009
Produce one statement per card
worked example 1 of the rule
AC-08Given statement step outcome: abend
When the statement step ends normally
Then Neither AWS.M2.CARDDEMO.STATEMNT.PS nor AWS.M2.CARDDEMO.STATEMNT.HTML is kept.
REQ-F-010, REQ-F-011
Produce text and HTML card statements
worked example 1 of the rule
AC-09Given statements written before failure: 40
When the statement step abends
Then Both statement files are deleted at abnormal end
REQ-F-011
Customer and account master records must exist for every card or the run aborts
worked example 1 of the rule

Screens

None: scheduled job.

Data contracts

COSTM01 (working storage; CBSTM03A), CUSTREC (working storage; CBSTM03A), CVACT01Y (working storage; CBSTM03A), CVACT03Y (working storage; CBSTM03A)

Decision tables

None.

Open questions

  • SME-030 When producing statements, if the customer or account for a card cannot be found, should that statement be skipped, the run stopped, or an exception recorded? (Statement operations business owner)
  • SME-031 On statements, should address line 3, state, country and ZIP each be cut off at their first space, even when the value has more than one word? (Statement operations business owner)
  • SME-032 Statement production assumes card cross-references are processed in ascending card number order, matching the sorted transactions. Must the new system guarantee that order? (Data architecture team)
  • SME-033 Should there be one statement per card, or one per account covering all its cards? (Card servicing business owner)

Design notes

  • A scheduled statement job that runs only after the earlier steps succeed. It reads card-ordered transactions, the card cross-reference, accounts and customers, and writes two new outputs per run: a plain-text statement report and an HTML statement report. The 80- and 100-character line widths only matter if the text output must match the legacy layout exactly. Produce text and HTML card statements
  • Fixed order for the run: open both outputs, load the card transactions, open the cross-reference, customer and account sources, build every statement, then release all inputs and close the outputs. In the new application, make the transactions available before statement building starts, and finalise the outputs only after every statement is built. Fixed processing sequence: load transactions, open masters, then produce statements
  • Every data source has the lifecycle open, read one or more times, close. The new application can do this with scoped resources such as connections or readers that are always released, including on failure. File status passed back to the caller as the outcome code
  • For each cross-reference record, look up the customer by its customer ID and the account by its account ID, then write the header and details, the transactions, the total and the footer. Both lookups use the primary key of their record. Produce one statement per card
4. Show statement header and holder detailsdraft · scheduled job · 7 requirements · 7 rules · 6 criteria

The top of each statement tells the cardholder whose account it covers: the cardholder's name and address, the account ID, current balance and FICO score. The HTML version also shows the issuer, Bank of XYZ. Names, addresses and the balance must come from the right customer and account records, formatted exactly as specified, with negative balances clearly marked.

As a cardholder, I want my statement to show the issuer, my name, address and basic account details, so that I know whose account the statement covers and its current position.

Draft: the function is not signed off yet. Risk high; touches money, personal_data, reporting_only. rec/CustomerAccountSelf-Service/AccountStatementGenerationandDelivery#4

Requirements

CodeClassRequirementCriteria
REQ-F-012formattingWhen a statement is produced for a card, the system shall write to the text statement, in order: the '*START OF STATEMENT*' banner, the holder name, three address lines, a dashed line, the 'Basic Details' heading, the Account ID, Current Balance and FICO Score lines, the 'TRANSACTION SUMMARY ' heading and the 'Tran ID', 'Tran Details', 'Tran Amount' column headings.AC-02
REQ-F-013formattingThe system shall form the holder name from the customer's first, middle and last name, keeping each name only up to its first space and joining them with single spaces.AC-03
REQ-F-014formattingThe system shall print address lines 1 and 2 as held on the customer record, and shall form address line 3 from address line 3, state code, country code and ZIP, each kept only up to its first space and joined with single spaces.AC-04
REQ-F-015formattingThe system shall show the account ID and current balance from the account record and the FICO score from the customer record, with the balance printed as nine whole digits and two decimals with a trailing minus sign when negative.AC-05
REQ-F-016formattingWhen a statement is produced for a card, the system shall start the HTML statement with a page header holding the heading 'Statement for Account Number: ' with the account ID and the bank block 'Bank of XYZ', '410 Terry Ave N', 'Seattle WA 99999'.AC-01
REQ-F-017formattingThe system shall show the fixed issuer heading 'Bank of XYZ', '410 Terry Ave N', 'Seattle WA 99999' on every HTML statement and no issuer block on the text statement.AC-01
REQ-F-018formattingThe system shall then write to the HTML statement the holder name (at most 50 characters, cut at the first double space), the three address lines, the 'Basic Details' heading, the Account ID, Current Balance and FICO Score lines, the 'Transaction Summary' heading and the 'Tran ID', 'Tran Details', 'Amount' column headings.AC-06

Business rules

RuleClassText, worked examples and evidence
Write statement header and account details
rec/group:claude/RULE-215/1
formatting
display, high
WHEN a statement is produced for a card, THE statement job SHALL write to the text statement, in order: the '*START OF STATEMENT*' banner, the holder name, three address lines, a dashed line, the 'Basic Details' heading, the Account ID, Current Balance and FICO Score lines, the 'TRANSACTION SUMMARY ' heading and the 'Tran ID', 'Tran Details', 'Tran Amount' column headings.
app/cbl/CBSTM03A.CBL:85-146, app/cbl/CBSTM03A.CBL:148-223, app/cbl/CBSTM03A.CBL:458-504, app/cbl/CBSTM03A.CBL:506-555, app/cbl/CBSTM03A.CBL:558-672, app/cpy/CUSTREC.cpy:6-22
Assemble statement holder details
rec/group:claude/RULE-215/2
formatting
display, high
THE statement job SHALL form the holder name from the customer's first, middle and last name, keeping each name only up to its first space and joining them with single spaces.
app/cbl/CBSTM03A.CBL:85-146, app/cbl/CBSTM03A.CBL:148-223, app/cbl/CBSTM03A.CBL:458-504, app/cbl/CBSTM03A.CBL:506-555, app/cbl/CBSTM03A.CBL:558-672, app/cpy/CUSTREC.cpy:6-22
Assemble statement holder details
rec/group:claude/RULE-215/3
formatting
display, high
THE statement job SHALL print address lines 1 and 2 as held on the customer record, and SHALL form address line 3 from address line 3, state code, country code and ZIP, each kept only up to its first space and joined with single spaces.
app/cbl/CBSTM03A.CBL:85-146, app/cbl/CBSTM03A.CBL:148-223, app/cbl/CBSTM03A.CBL:458-504, app/cbl/CBSTM03A.CBL:506-555, app/cbl/CBSTM03A.CBL:558-672, app/cpy/CUSTREC.cpy:6-22
Write statement header and account details
rec/group:claude/RULE-215/4
formatting
display, high
THE statement job SHALL show the account ID and current balance from the account record and the FICO score from the customer record, with the balance printed as nine whole digits and two decimals with a trailing minus sign when negative.
app/cbl/CBSTM03A.CBL:85-146, app/cbl/CBSTM03A.CBL:148-223, app/cbl/CBSTM03A.CBL:458-504, app/cbl/CBSTM03A.CBL:506-555, app/cbl/CBSTM03A.CBL:558-672, app/cpy/CUSTREC.cpy:6-22
Assemble statement holder details
rec/group:claude/RULE-215/5
formatting
display, high
WHEN a statement is produced for a card, THE statement job SHALL start the HTML statement with a page header holding the heading 'Statement for Account Number: ' with the account ID and the bank block 'Bank of XYZ', '410 Terry Ave N', 'Seattle WA 99999'.
app/cbl/CBSTM03A.CBL:85-146, app/cbl/CBSTM03A.CBL:148-223, app/cbl/CBSTM03A.CBL:458-504, app/cbl/CBSTM03A.CBL:506-555, app/cbl/CBSTM03A.CBL:558-672, app/cpy/CUSTREC.cpy:6-22
Issuer branding and address hardcoded on HTML statements
rec/claude:claude/RULE-241/1
formatting
display, medium
THE HTML statement SHALL show the fixed issuer heading 'Bank of XYZ', '410 Terry Ave N', 'Seattle WA 99999' on every statement; the text statement shows no issuer block.
  • account: 00000000001 → The HTML statement header shows 'Bank of XYZ', '410 Terry Ave N', 'Seattle WA 99999'
app/cbl/CBSTM03A.CBL:167-172, app/cbl/CBSTM03A.CBL:537-544, app/cbl/CBSTM03A.CBL:458-503
Write holder name, address and basic details
rec/group:claude/RULE-215/6
formatting
display, high
THE statement job SHALL then write to the HTML statement the holder name (at most 50 characters, cut at the first double space), the three address lines, the 'Basic Details' heading, the Account ID, Current Balance and FICO Score lines, the 'Transaction Summary' heading and the 'Tran ID', 'Tran Details', 'Amount' column headings.
app/cbl/CBSTM03A.CBL:85-146, app/cbl/CBSTM03A.CBL:148-223, app/cbl/CBSTM03A.CBL:458-504, app/cbl/CBSTM03A.CBL:506-555, app/cbl/CBSTM03A.CBL:558-672, app/cpy/CUSTREC.cpy:6-22

Acceptance criteria

IDCriterionChecks
AC-01Given account: 00000000001
When HTML statement runs
Then The HTML statement header shows 'Bank of XYZ', '410 Terry Ave N', 'Seattle WA 99999'
REQ-F-016, REQ-F-017
Issuer branding and address hardcoded on HTML statements
worked example 1 of the rule
AC-02Given A cross-reference card whose customer and account records both exist
When The statement run produces the text statement for that card
Then The text statement starts with these lines in this order: '*START OF STATEMENT*', the holder name, address line 1, address line 2, address line 3, a dashed line, 'Basic Details', the Account ID line, the Current Balance line, the FICO Score line, 'TRANSACTION SUMMARY ', and the column headings 'Tran ID', 'Tran Details', 'Tran Amount'
REQ-F-012
Write statement header and account details
written from the rule
AC-03Given A customer with first name 'MARY', middle name 'ANN' and last name 'SMITH JONES'
When The statement holder name is formed
Then The holder name is 'MARY ANN SMITH': each name is kept only up to its first space, and the parts are joined with single spaces
REQ-F-013
Assemble statement holder details
written from the rule
AC-04Given A customer with address line 1 '12 MAIN ST', address line 2 'APT 4', address line 3 'SEATTLE', state 'WA', country 'USA' and ZIP '98109'
When The statement address is written
Then Address lines 1 and 2 are printed as '12 MAIN ST' and 'APT 4', exactly as held, and address line 3 is 'SEATTLE WA USA 98109'. Each of the four parts is kept only up to its first space, so a value of 'NEW YORK' in address line 3 becomes 'NEW'.
REQ-F-014
Assemble statement holder details
written from the rule
AC-05Given An account with ID 00000000001 and current balance -1234.56, whose customer has a FICO score of 750
When The basic details are written
Then The Account ID line shows 00000000001 from the account record. The Current Balance line shows 000001234.56- (nine whole digits, two decimals, trailing minus). The FICO Score line shows 750 from the customer record. A balance of 1500.00 is shown as 000001500.00 with no minus sign.
REQ-F-015
Write statement header and account details
written from the rule
AC-06Given A statement being produced for a card, after the HTML page header
When The HTML holder and details section is written
Then The HTML statement contains, in this order: the holder name (no more than 50 characters and cut at the first double space), the three address lines, 'Basic Details', the Account ID, Current Balance and FICO Score lines, 'Transaction Summary', and the column headings 'Tran ID', 'Tran Details', 'Amount'
REQ-F-018
Write holder name, address and basic details
written from the rule

Screens

None: scheduled job.

Data contracts

COSTM01 (working storage; CBSTM03A), CUSTREC (working storage; CBSTM03A), CVACT01Y (working storage; CBSTM03A), CVACT03Y (working storage; CBSTM03A)

Decision tables

None.

Open questions

  • SME-030 When producing statements, if the customer or account for a card cannot be found, should that statement be skipped, the run stopped, or an exception recorded? (Statement operations business owner)
  • SME-031 On statements, should address line 3, state, country and ZIP each be cut off at their first space, even when the value has more than one word? (Statement operations business owner)
  • SME-032 Statement production assumes card cross-references are processed in ascending card number order, matching the sorted transactions. Must the new system guarantee that order? (Data architecture team)
  • DEF-090 Is this intended? Each name and address part is cut at its first space, so multi-word names and cities are shortened. When the middle name is blank, the text name has a double space, and the HTML name (cut at the first double space) shows only the first name. The balance field holds nine whole digits while the account balance holds ten, so the leading digit is lost on balances of 1,000,000,000 or more. (Subject-matter expert)

Design notes

None.

5. List card transactions and totaldraft · scheduled job · 7 requirements · 7 rules · 9 criteria

Each statement lists every transaction on that card, in transaction-ID order, with its ID, description and amount. The text statement ends with a total of the amounts. The statement must never miss one of the card's transactions or include another card's, and the total must be the exact signed sum of the listed amounts.

As a cardholder, I want my statement to list each transaction on my card with a total, so that I can check what was charged to my account.

Draft: the function is not signed off yet. Risk high; touches card_data, money, reporting_only. rec/CustomerAccountSelf-Service/AccountStatementGenerationandDelivery#5

Requirements

CodeClassRequirementCriteria
REQ-F-019business ruleWhen a statement is built for a cross-reference card, the system shall list exactly the transactions loaded for the slot whose card number equals that card, in loaded (transaction-ID) order, and shall stop looking once it reaches a slot with a higher card number or passes the last loaded card.AC-01, AC-02
REQ-F-020formattingWhen a statement is produced for a card, the system shall list every transaction held for that card number on both the text and HTML statements, one line each showing transaction ID, description (first 49 characters) and amount with a trailing minus sign for negative amounts.AC-06
REQ-F-021formattingWhen a transaction belongs to the card being stated, the system shall write one detail line to the text statement file showing the transaction ID, the first 49 characters of the transaction description, and the transaction amount after a '$' sign with two decimals and a trailing minus for negative amounts.AC-07
REQ-F-022formattingWhen a transaction of the statement's card is listed, the system shall write an HTML table row of three cells: transaction ID, description (first 49 characters) and edited amount, right-aligned.AC-08
REQ-F-023business ruleThe system shall set the statement total to zero for each card and add each listed transaction's signed amount to it.AC-03, AC-04
REQ-F-024formattingWhen the transactions are listed, the system shall write to the text statement a dashed line, the line 'Total EXP:' with '$' and the total (trailing minus if negative), and the '*END OF STATEMENT*' banner.AC-09
REQ-F-025formattingWhen the transactions are listed, the system shall close the HTML statement with an 'End of Statement' heading and the closing page tags, without a total line.AC-05

Business rules

RuleClassText, worked examples and evidence
List card transactions on statement
rec/group:claude/RULE-216/2
business rule
business, high
WHEN a statement is built for a cross-reference card, THE statement batch SHALL list exactly the transactions loaded for the slot whose card number equals that card, in loaded (transaction-ID) order, and SHALL stop looking once it reaches a slot with a higher card number or passes the last loaded card.
  • statement card: 4111000000000002; loaded transactions for that card: IDs 0000000000000007 and 0000000000000009 → The statement lists the two transactions 0000000000000007 then 0000000000000009 and no others
  • statement card: 4111000000000005; loaded transactions for that card: none → The statement has no transaction rows and a total of $0.00
app/cbl/CBSTM03A.CBL:756-760, app/cbl/CBSTM03A.CBL:818-853, app/cbl/CBSTM03A.CBL:416-432, app/jcl/CREASTMT.JCL:44-61
List card transactions and accumulate total
rec/group:claude/RULE-019/1
formatting
display, high
WHEN a statement is produced for a card, THE statement job SHALL list every transaction held for that card number, in card-then-transaction-ID order, one line each showing transaction ID, description (first 49 characters) and amount with a trailing minus sign for negative amounts, on both the text and HTML statements.
app/cbl/CBSTM03A.CBL:324-326, app/cbl/CBSTM03A.CBL:416-456, app/cbl/CBSTM03A.CBL:132-146, app/cbl/CBSTM03A.CBL:675-723, app/cbl/CBSTM03A.CBL:818-853, app/jcl/CREASTMT.JCL:52-54
Write transaction detail line
rec/aws:CustomerAccountSelf-Service/AccountStatementGenerationandDelivery/id-e47860c9f2/1
formatting
display, medium
WHEN a transaction on file belongs to the card being stated, THE statement program SHALL write one detail line to the text statement file showing the transaction ID, the first 49 characters of the transaction description, and the transaction amount after a '$' sign with two decimals and a trailing minus for negative amounts (ST-LINE14).
app/cbl/CBSTM03A.CBL:416-430, app/cbl/CBSTM03A.CBL:674-679, app/cbl/CBSTM03A.CBL:132-137, app/cpy/COSTM01.cpy:20-29
Write one transaction row
rec/aws:CustomerAccountSelf-Service/AccountStatementGenerationandDelivery/id-699e5e27b2/1
formatting
display, medium
WHEN a transaction of the statement's card is listed, THE HTML statement SHALL write a table row of three cells: transaction ID, description (first 49 characters) and edited amount, right-aligned.
app/cbl/CBSTM03A.CBL:675-721, app/cbl/CBSTM03A.CBL:198-206
List card transactions and accumulate total
rec/group:claude/RULE-019/2
business rule
business, high
THE statement job SHALL set the statement total to zero for each card and add each listed transaction's signed amount to it.
  • Transactions: 120.50, 45.25, -20.00 → Total is 145.75
  • Previous card's total: 300.00; Next card's transactions: none → Next card's total is 0.00
app/cbl/CBSTM03A.CBL:324-326, app/cbl/CBSTM03A.CBL:416-456, app/cbl/CBSTM03A.CBL:132-146, app/cbl/CBSTM03A.CBL:675-723, app/cbl/CBSTM03A.CBL:818-853, app/jcl/CREASTMT.JCL:52-54
Write total expenses and statement end
rec/group:claude/RULE-019/3
formatting
display, high
AFTER the transactions are listed, THE statement job SHALL write to the text statement a dashed line, the line 'Total EXP:' with '$' and the total (trailing minus if negative), and the '*END OF STATEMENT*' banner.
app/cbl/CBSTM03A.CBL:324-326, app/cbl/CBSTM03A.CBL:416-456, app/cbl/CBSTM03A.CBL:132-146, app/cbl/CBSTM03A.CBL:675-723, app/cbl/CBSTM03A.CBL:818-853, app/jcl/CREASTMT.JCL:52-54
Write total expenses and statement end
rec/group:claude/RULE-019/4
formatting
display, high
AFTER the transactions are listed, THE statement job SHALL close the HTML statement with an 'End of Statement' heading and the closing page tags, without a total line.
  • Statement total: 145.75 → HTML statement ends with 'End of Statement'; the 145.75 total does not appear in the HTML
app/cbl/CBSTM03A.CBL:324-326, app/cbl/CBSTM03A.CBL:416-456, app/cbl/CBSTM03A.CBL:132-146, app/cbl/CBSTM03A.CBL:675-723, app/cbl/CBSTM03A.CBL:818-853, app/jcl/CREASTMT.JCL:52-54

Acceptance criteria

IDCriterionChecks
AC-01Given statement card: 4111000000000002; loaded transactions for that card: IDs 0000000000000007 and 0000000000000009
When a statement is built for a cross-reference card
Then The statement lists the two transactions 0000000000000007 then 0000000000000009 and no others
REQ-F-019
List card transactions on statement
worked example 1 of the rule
AC-02Given statement card: 4111000000000005; loaded transactions for that card: none
When a statement is built for a cross-reference card
Then The statement has no transaction rows and a total of $0.00
REQ-F-019
List card transactions on statement
worked example 2 of the rule
AC-03Given Transactions: 120.50, 45.25, -20.00
When statement job runs
Then Total is 145.75
REQ-F-023
List card transactions and accumulate total
worked example 1 of the rule
AC-04Given Previous card's total: 300.00; Next card's transactions: none
When statement job runs
Then Next card's total is 0.00
REQ-F-023
List card transactions and accumulate total
worked example 2 of the rule
AC-05Given Statement total: 145.75
When Write total expenses and statement end applies
Then HTML statement ends with 'End of Statement'; the 145.75 total does not appear in the HTML
REQ-F-025
Write total expenses and statement end
worked example 1 of the rule
AC-06Given Card 4111111111111111 has three transactions loaded, with IDs T1, T2 and T3, and one amount of -25.00
When The statement for that card is produced
Then The text and HTML statements each list exactly three transaction lines, in the order T1, T2, T3. Each line shows the transaction ID, the first 49 characters of the description and the amount. The -25.00 amount is shown with a trailing minus sign.
REQ-F-020
List card transactions and accumulate total
written from the rule
AC-07Given A transaction on the stated card with an amount of -42.50 and a 60-character description
When Its line is written to the text statement
Then One detail line shows the transaction ID, the first 49 characters of the description only, and '$' followed by the amount 42.50 with two decimals and a trailing minus
REQ-F-021
Write transaction detail line
written from the rule
AC-08Given A transaction on the stated card
When Its row is written to the HTML statement
Then Exactly one table row is written with three cells: the transaction ID, the description cut to its first 49 characters, and the edited amount, right-aligned
REQ-F-022
Write one transaction row
written from the rule
AC-09Given A card whose listed transactions are 100.00 and -30.00
When The transactions have been listed on the text statement
Then The next lines are a dashed line, a line 'Total EXP:' with '$' and 70.00, and then '*END OF STATEMENT*'. If the listed amounts sum to a negative value, the total has a trailing minus.
REQ-F-024
Write total expenses and statement end
written from the rule

Screens

None: scheduled job.

Data contracts

COSTM01 (working storage; CBSTM03A), CUSTREC (working storage; CBSTM03A), CVACT01Y (working storage; CBSTM03A), CVACT03Y (working storage; CBSTM03A)

Decision tables

None.

Open questions

  • SME-030 When producing statements, if the customer or account for a card cannot be found, should that statement be skipped, the run stopped, or an exception recorded? (Statement operations business owner)
  • SME-031 On statements, should address line 3, state, country and ZIP each be cut off at their first space, even when the value has more than one word? (Statement operations business owner)
  • SME-032 Statement production assumes card cross-references are processed in ascending card number order, matching the sorted transactions. Must the new system guarantee that order? (Data architecture team)
  • SME-034 How important is the rule that a statement total is the signed sum of the card's transaction amounts, starting from zero for each statement? Is it core to the system, or a rule that would be costly to get wrong? (Finance / statements business owner)
  • DEF-008 Is this intended? The HTML statement lists the transactions but never shows the total that the text statement prints. In-memory storage also holds only 10 transactions per card and 51 cards, with no check when this is exceeded. (Subject-matter expert)
  • DEF-100 Confirm this is deliberate: The transaction description is 100 characters on the transaction record but the statement line holds only 49, so longer descriptions are cut off without any notice. (Subject-matter expert)

Design notes

None.

6. Stop the statement run on file errorsdraft · scheduled job · 7 requirements · 7 rules · 7 criteria · 2 gaps

If any statement data cannot be opened, read or closed, the run stops with a clear message naming the file and the return code, and no statements from that run are issued. Its main audience is the statement operations team. It must never issue a statement built from missing customer or account data, and it must never carry on after a file error.

As a statement operations team, I want the statement run to stop with a clear message when a file cannot be opened, read or closed, so that no incomplete statements are issued.

Draft: the function is not signed off yet. Risk high; touches audit. rec/CustomerAccountSelf-Service/AccountStatementGenerationandDelivery#6

Requirements

CodeClassRequirementCriteria
REQ-F-026error handlingIf the customer record for a cross-reference card cannot be read (any result other than '00'), then the system shall display 'ERROR READING CUSTFILE' with the return code and abend, producing no further statements.AC-02
REQ-F-027error handlingIf the account record for a cross-reference card cannot be read (any result other than '00'), then the system shall display 'ERROR READING ACCTFILE' with the return code and abend.AC-03
REQ-F-028error handlingIf reading the next cross-reference record returns anything other than '00' or end of file '10', then the system shall display 'ERROR READING XREFFILE' with the return code and abend.AC-04
REQ-F-029error handlingIf reading the cross-reference, customer or account file fails, then the system shall display the read error message with the return code, then 'ABENDING PROGRAM', and abend.AC-05
REQ-F-030error handlingIf opening, closing or making the first read of the transaction file, or opening or closing the cross-reference, customer or account file, returns anything other than '00' or '04', then the system shall display 'ERROR OPENING <file>', 'ERROR READING TRNXFILE' or 'ERROR CLOSING <file>' with the return code and abend.AC-06
REQ-F-031error handlingIf a later read of the transaction file during loading returns anything other than '00' or end of file '10', then the system shall display 'ERROR READING TRNXFILE' with the return code and abend.AC-07
REQ-F-032error handlingIf the statement step abends, then the system shall delete the text and HTML statement files, so no statements from that run are kept.AC-01

Business rules

RuleClassText, worked examples and evidence
Customer and account master records must exist for every card or the run aborts
rec/claude:claude/RULE-076/1
error handling
error_handling, medium
WHEN the customer record for a cross-reference card cannot be read (any result other than '00'), THE statement batch SHALL display 'ERROR READING CUSTFILE' with the return code and abend, producing no further statements.
app/cbl/CBSTM03A.CBL:345-414, app/cbl/CBSTM03A.CBL:921-923, app/jcl/CREASTMT.JCL:87-96
Produce one statement per card
rec/group:claude/RULE-162/3
error handling
error_handling, high
WHEN reading the cross-reference, customer or account file fails (anything other than success, or end of file for the cross-reference), THE statement job SHALL display 'ERROR READING XREFFILE', 'ERROR READING CUSTFILE' or 'ERROR READING ACCTFILE' with the return code, then 'ABENDING PROGRAM', and abend.
app/cbl/CBSTM03A.CBL:316-329, app/cbl/CBSTM03A.CBL:345-414, app/cbl/CBSTM03A.CBL:921-923, app/cbl/CBSTM03B.CBL:37-52, app/jcl/CREASTMT.JCL:19-20
Customer and account master records must exist for every card or the run aborts
rec/claude:claude/RULE-076/2
error handling
error_handling, medium
WHEN the account record for a cross-reference card cannot be read (any result other than '00'), THE statement batch SHALL display 'ERROR READING ACCTFILE' with the return code and abend.
app/cbl/CBSTM03A.CBL:345-414, app/cbl/CBSTM03A.CBL:921-923, app/jcl/CREASTMT.JCL:87-96
Customer and account master records must exist for every card or the run aborts
rec/claude:claude/RULE-076/3
error handling
error_handling, medium
WHEN reading the next cross-reference record returns anything other than '00' or end of file '10', THE statement batch SHALL display 'ERROR READING XREFFILE' with the return code and abend.
app/cbl/CBSTM03A.CBL:345-414, app/cbl/CBSTM03A.CBL:921-923, app/jcl/CREASTMT.JCL:87-96
File open/read/close outcome acceptance policy
rec/claude:claude/RULE-077/1
error handling
error_handling, medium
WHEN opening, closing or making the first read of the transaction file, or opening or closing the cross-reference, customer or account file, returns anything other than '00' or '04', THE statement batch SHALL display 'ERROR OPENING <file>', 'ERROR READING TRNXFILE' or 'ERROR CLOSING <file>' with the return code and abend.
app/cbl/CBSTM03A.CBL:730-754, app/cbl/CBSTM03A.CBL:765-815, app/cbl/CBSTM03A.CBL:837-847, app/cbl/CBSTM03A.CBL:856-919, app/cbl/CBSTM03B.CBL:130-152
File open/read/close outcome acceptance policy
rec/claude:claude/RULE-077/2
error handling
error_handling, medium
WHEN a later read of the transaction file during loading returns anything other than '00' or end of file '10', THE statement batch SHALL display 'ERROR READING TRNXFILE' with the return code and abend.
app/cbl/CBSTM03A.CBL:730-754, app/cbl/CBSTM03A.CBL:765-815, app/cbl/CBSTM03A.CBL:837-847, app/cbl/CBSTM03A.CBL:856-919, app/cbl/CBSTM03B.CBL:130-152
Customer and account master records must exist for every card or the run aborts
rec/claude:claude/RULE-076/4
error handling
error_handling, medium
WHEN the statement step abends, THE job SHALL delete the text and HTML statement files, so no statements from that run are kept.
  • statements written before failure: 40 → Both statement files are deleted at abnormal end
app/cbl/CBSTM03A.CBL:345-414, app/cbl/CBSTM03A.CBL:921-923, app/jcl/CREASTMT.JCL:87-96

Acceptance criteria

IDCriterionChecks
AC-01Given statements written before failure: 40
When the statement step abends
Then Both statement files are deleted at abnormal end
REQ-F-032
Customer and account master records must exist for every card or the run aborts
worked example 1 of the rule
AC-02Given A cross-reference card whose customer ID has no customer record, so the read returns '23'
When The statement run processes that card
Then The run displays 'ERROR READING CUSTFILE' with return code 23, then 'ABENDING PROGRAM', and abends. No statement is produced for that card or any card after it.
REQ-F-026
Customer and account master records must exist for every card or the run aborts, Produce one statement per card
written from the rule
AC-03Given A cross-reference card whose account ID has no account record, so the read returns '23'
When The statement run looks up the account
Then The run displays 'ERROR READING ACCTFILE' with return code 23, then 'ABENDING PROGRAM', and abends
REQ-F-027
Customer and account master records must exist for every card or the run aborts, Produce one statement per card
written from the rule
AC-04Given Reading the next cross-reference record returns a status other than '00' or '10'
When The statement run reads the cross-reference
Then The run displays 'ERROR READING XREFFILE' with that return code, then 'ABENDING PROGRAM', and abends. A status of '10' (end of file) ends the run normally, with no error.
REQ-F-028
Customer and account master records must exist for every card or the run aborts, Produce one statement per card
written from the rule
AC-05Given A read of the cross-reference, customer or account file fails
When The failure is detected
Then The matching message ('ERROR READING XREFFILE', 'ERROR READING CUSTFILE' or 'ERROR READING ACCTFILE') is displayed with the return code, followed by 'ABENDING PROGRAM', and the run abends
REQ-F-029
Produce one statement per card
written from the rule
AC-06Given Opening the account file returns a status other than '00' or '04'. Separately, the first read of the transaction file returns such a status, or closing the customer file does.
When The statement run performs that operation
Then The run displays 'ERROR OPENING <file>', 'ERROR READING TRNXFILE' or 'ERROR CLOSING <file>' respectively, with the return code, and abends. A status of '00' or '04' lets the run continue.
REQ-F-030
File open/read/close outcome acceptance policy
written from the rule
AC-07Given While the transactions are loading, a read after the first one returns a status other than '00' or '10'
When The statement run reads that transaction
Then The run displays 'ERROR READING TRNXFILE' with the return code and abends. A status of '10' ends loading normally.
REQ-F-031
File open/read/close outcome acceptance policy
written from the rule

Screens

None: scheduled job.

Data contracts

COSTM01 (working storage; CBSTM03A), CUSTREC (working storage; CBSTM03A), CVACT01Y (working storage; CBSTM03A), CVACT03Y (working storage; CBSTM03A)

Decision tables

Statement run file outcome handling

FileOperationResult codeMessage and run outcomeRule
CUSTFILEKeyed readOther than '00'Display 'ERROR READING CUSTFILE' with return code; abendrec/claude:claude/RULE-076/1
ACCTFILEKeyed readOther than '00'Display 'ERROR READING ACCTFILE' with return code; abendrec/claude:claude/RULE-076/2
XREFFILENext readOther than '00' or '10'Display 'ERROR READING XREFFILE' with return code; abendrec/claude:claude/RULE-076/3
XREFFILE, CUSTFILE or ACCTFILEReadFailureDisplay read error with return code, then 'ABENDING PROGRAM'; abendrec/group:claude/RULE-162/3
Any statement fileOpen or closeOther than '00' or '04'Display 'ERROR OPENING <file>' or 'ERROR CLOSING <file>' with return code; abendrec/claude:claude/RULE-077/1
TRNXFILEFirst readOther than '00' or '04'Display 'ERROR READING TRNXFILE' with return code; abendrec/claude:claude/RULE-077/1
TRNXFILELater read during loadingOther than '00' or '10'Display 'ERROR READING TRNXFILE' with return code; abendrec/claude:claude/RULE-077/2
Any statement fileOpen, close or first transaction read'04'Gap: '04' is accepted and the run continues; no rule says what '04' means or whether the statement is still complete.
TRNXFILEFirst read'10' (empty transaction file)Gap: Empty transaction file abends under R7; confirm whether that is intended or statements without transactions should be produced.

Open questions

  • SME-030 When producing statements, if the customer or account for a card cannot be found, should that statement be skipped, the run stopped, or an exception recorded? (Statement operations business owner)
  • SME-031 On statements, should address line 3, state, country and ZIP each be cut off at their first space, even when the value has more than one word? (Statement operations business owner)
  • SME-032 Statement production assumes card cross-references are processed in ascending card number order, matching the sorted transactions. Must the new system guarantee that order? (Data architecture team)
  • DEF-162 Is this intended? An empty transaction extract makes the whole run abend instead of producing statements with no transactions, and a '04' result is accepted on the first transaction read but causes an abend on later reads. (Subject-matter expert)

Design notes

None.

7. Read-only statement data accessdraft · scheduled job · 7 requirements · 7 rules · 8 criteria

Statement data is read only through a data-access layer that reads files and reports each outcome. Producing statements therefore never changes customer, account, card or transaction records. The layer must never write, change or delete data, and it must report not-found and end-of-data outcomes accurately so the run can stop or continue correctly.

As a statement operations team, I want statement data read through a routine that only reads files and returns each file outcome, so that producing statements never changes customer, account, card or transaction records.

Draft: the function is not signed off yet. Risk high; touches card_data, money, personal_data, security. rec/CustomerAccountSelf-Service/AccountStatementGenerationandDelivery#7

Requirements

CodeClassRequirementCriteria
REQ-F-033design noteWhen the statement program asks for a customer record by key, the system shall take the given number of key characters as the customer id and read that customer directly, returning the record and status '00' when found and status '23' when not found.AC-06
REQ-F-034design noteWhen the statement program asks for an account record by key, the system shall take the given number of key characters as the 11-digit account id and read that account directly, returning the record and status '00' when found and status '23' when not found.AC-07
REQ-F-035error handlingThe system shall return the file status of every open, read or close to the calling program as the outcome code, for example '00' for success, '10' for end of file on a sequential read and '23' for a key not found.AC-01, AC-02
REQ-F-036design noteThe system shall drive each statement file in the order open, read one or more times, then close.AC-03
REQ-F-037design noteThe system shall let the transaction file (TRNXFILE) and card cross-reference file (XREFFILE) be opened, read in key order (card number and transaction id for transactions, card number for the cross-reference) and closed.AC-04
REQ-F-038design noteThe system shall let the customer file (CUSTFILE) and account file (ACCTFILE) be opened, read by key and closed.AC-08
REQ-N-002design noteThe system shall open all four statement files for input only, so it never adds, changes or deletes records, even though write ('W') and rewrite ('Z') operation codes are defined.AC-05

Business rules

RuleClassText, worked examples and evidence
Keyed customer/account lookup uses caller-supplied key length
rec/claude:claude/RULE-078/1
design note
technical, medium
WHEN the statement program asks for a customer record by key, THE statement file routine (CBSTM03B) SHALL take the given number of key characters as the customer id and read that customer directly, returning the record and status '00' when found and status '23' when not found.
app/cbl/CBSTM03B.CBL:43-53, app/cbl/CBSTM03B.CBL:188-201, app/cbl/CBSTM03B.CBL:213-226, app/cbl/CBSTM03A.CBL:366-382, app/cbl/CBSTM03A.CBL:390-406, app/cpy/CVACT03Y.cpy:6-7
Keyed customer/account lookup uses caller-supplied key length
rec/claude:claude/RULE-078/2
design note
technical, medium
WHEN the statement program asks for an account record by key, THE statement file routine (CBSTM03B) SHALL take the given number of key characters as the 11-digit account id and read that account directly, returning the record and status '00' when found and status '23' when not found.
app/cbl/CBSTM03B.CBL:43-53, app/cbl/CBSTM03B.CBL:188-201, app/cbl/CBSTM03B.CBL:213-226, app/cbl/CBSTM03A.CBL:366-382, app/cbl/CBSTM03A.CBL:390-406, app/cpy/CVACT03Y.cpy:6-7
File status passed back to the caller as the outcome code
rec/claude:claude/RULE-163/1
error handling
error_handling, medium
THE statement file routine (CBSTM03B) SHALL return the file status of every open, read or close it performs to the calling program as the outcome code, for example '00' for success, '10' for end of file on a sequential read and '23' for a key not found.
  • File: 'TRNXFILE'; Operation: 'R'; Transactions left: none → Outcome code '10' is returned.
  • File: 'XREFFILE'; Operation: 'O' → Outcome code '00' is returned when the file opens.
app/cbl/CBSTM03B.CBL:151-152, app/cbl/CBSTM03B.CBL:175-176, app/cbl/CBSTM03B.CBL:200-201, app/cbl/CBSTM03B.CBL:225-226, app/cbl/CBSTM03A.CBL:758-830, app/cbl/CBSTM03A.CBL:857-870
File status passed back to the caller as the outcome code
rec/claude:claude/RULE-163/2
design note
technical, medium
THE statement program (CBSTM03A) SHALL drive each file through the routine in the order open, read one or more times, then close.
  • File: 'ACCTFILE' → It is opened, read by key for each card, and closed at the end.
app/cbl/CBSTM03B.CBL:151-152, app/cbl/CBSTM03B.CBL:175-176, app/cbl/CBSTM03B.CBL:200-201, app/cbl/CBSTM03B.CBL:225-226, app/cbl/CBSTM03A.CBL:758-830, app/cbl/CBSTM03A.CBL:857-870
Statement data access: allowed operations per file
rec/claude:claude/RULE-217/1
design note
technical, medium
THE statement file routine (CBSTM03B) SHALL let the transaction file (TRNXFILE) and card cross-reference file (XREFFILE) be opened, read in key order (card number and transaction id for transactions, card number for the cross-reference) and closed.
  • File: 'TRNXFILE'; Operation: 'R' → The next transaction in card number and transaction id order is returned in the 1000-byte data area.
app/cbl/CBSTM03B.CBL:31-53, app/cbl/CBSTM03B.CBL:100-112, app/cbl/CBSTM03B.CBL:114-229
Statement data access: allowed operations per file
rec/claude:claude/RULE-217/2
design note
technical, medium
THE statement file routine (CBSTM03B) SHALL let the customer file (CUSTFILE) and account file (ACCTFILE) be opened, read by key and closed.
app/cbl/CBSTM03B.CBL:31-53, app/cbl/CBSTM03B.CBL:100-112, app/cbl/CBSTM03B.CBL:114-229
Statement data access: allowed operations per file
rec/claude:claude/RULE-217/3
design note
technical, medium
THE statement file routine (CBSTM03B) SHALL open all four files for input only, so it never adds, changes or deletes records, even though write ('W') and rewrite ('Z') operation codes are defined.
  • File: 'CUSTFILE'; Operation: 'W' → Nothing is written; the customer file is unchanged.
app/cbl/CBSTM03B.CBL:31-53, app/cbl/CBSTM03B.CBL:100-112, app/cbl/CBSTM03B.CBL:114-229

Acceptance criteria

IDCriterionChecks
AC-01Given File: 'TRNXFILE'; Operation: 'R'; Transactions left: none
When statement file routine (CBSTM03B) runs
Then Outcome code '10' is returned.
REQ-F-035
File status passed back to the caller as the outcome code
worked example 1 of the rule
AC-02Given File: 'XREFFILE'; Operation: 'O'
When statement file routine (CBSTM03B) runs
Then Outcome code '00' is returned when the file opens.
REQ-F-035
File status passed back to the caller as the outcome code
worked example 2 of the rule
AC-03Given File: 'ACCTFILE'
When statement program (CBSTM03A) runs
Then It is opened, read by key for each card, and closed at the end.
REQ-F-036
File status passed back to the caller as the outcome code
worked example 1 of the rule
AC-04Given File: 'TRNXFILE'; Operation: 'R'
When statement file routine (CBSTM03B) runs
Then The next transaction in card number and transaction id order is returned in the 1000-byte data area.
REQ-F-037
Statement data access: allowed operations per file
worked example 1 of the rule
AC-05Given File: 'CUSTFILE'; Operation: 'W'
When statement file routine (CBSTM03B) runs
Then Nothing is written; the customer file is unchanged.
REQ-N-002
Statement data access: allowed operations per file
worked example 1 of the rule
AC-06Given A customer record exists for the given customer ID, and no record exists for a second ID
When The statement program asks for each customer by key
Then The first lookup returns that customer's record with status '00', and the second returns status '23'
REQ-F-033
Keyed customer/account lookup uses caller-supplied key length
written from the rule
AC-07Given An account record exists for the 11-digit account ID 00000000001, and no record exists for 00000000099
When The statement program asks for each account by key
Then The lookup for 00000000001 returns the account record with status '00', and the lookup for 00000000099 returns status '23'
REQ-F-034
Keyed customer/account lookup uses caller-supplied key length
written from the rule
AC-08Given The customer file and the account file
When The statement program opens each one, reads by key and closes it
Then Each operation is allowed and returns its file status. Reading by key is the only read the statement program uses on these files.
REQ-F-038
Statement data access: allowed operations per file
written from the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-035 Does the caller always pass a key length of 9 for customer lookups and 11 for account lookups? Should the new system check the key length, and check that the account key is numeric, before looking it up? (Application architect)
  • DEF-175 Is this intended? An operation a file does not support (for example 'R' on CUSTFILE, or 'W' or 'Z' on any file) does nothing but still returns that file's last status, often '00', so the caller would take it as success; an unknown file name returns without setting any outcome code. (Subject-matter expert)

Design notes

  • Look up a customer directly by primary key (customer ID) and return the record, or a 'not found' result that the caller can tell apart from other failures. The legacy program passes the key length in from the caller. The new application should use a typed customer ID instead. Keyed customer/account lookup uses caller-supplied key length
  • Look up an account directly by its 11-digit account ID (primary key) and return the record or a clear 'not found' result. Validate the ID as 11 digits rather than relying on a key length the caller supplies. Keyed customer/account lookup uses caller-supplied key length
  • Every data source the statement job uses follows the lifecycle open, read one or more times, close. Use scoped resources that are always released, including when the run fails. File status passed back to the caller as the outcome code
  • Transactions must be readable in order of (card number, transaction ID), and the card cross-reference in card-number order. These are ordered sequential reads, such as streams or cursors over a sorted query, with a clear end-of-data signal. Statement data access: allowed operations per file
  • Customers and accounts are needed only for keyed point lookups. No scans or ordered reads are needed for them. Statement data access: allowed operations per file
  • The statement job's data access must be read-only. Use read-only connections or a read replica with credentials that cannot write. Expose no write or update operations, even though the legacy routine defines 'W' and 'Z' operation codes. Statement data access: allowed operations per file
8. Publish statements as PDFdraft · scheduled job · 1 requirements · 1 rules · 1 criterion

Once statements have been created, the text statements are converted to PDF so cardholders can view and keep them in a standard format. The PDF must contain exactly the statements from the completed run, and it must never be published from a failed or partial run.

As a cardholder, I want my account statement delivered as a PDF, so that I can view and keep it in a standard format.

Draft: the function is not signed off yet. Risk high; touches money, personal_data, reporting_only. rec/CustomerAccountSelf-Service/AccountStatementGenerationandDelivery#8

Requirements

CodeClassRequirementCriteria
REQ-F-039design noteWhen the statement creation job (CREASTMT) completes, the system shall run the text-to-PDF conversion (TXT2PDF, with BROWSE Y) on the account statement text file AWS.M2.CARDDEMO.STATEMNT.PS and write the statements as the PDF data set 'AWS.M2.CARDDEMO.STATEMNT.PS.PDF'.AC-01

Business rules

RuleClassText, worked examples and evidence
Convert account statements to PDF
rec/aws:CustomerAccountSelf-Service/AccountStatementGenerationandDelivery/id-031cf09d91/1
design note
technical, medium
WHEN the statement creation job (CREASTMT) completes, THE Account Statement PDF Publication SHALL run the text-to-PDF conversion (TXT2PDF, with BROWSE Y) on the account statement text file AWS.M2.CARDDEMO.STATEMNT.PS and write the statements as the PDF data set 'AWS.M2.CARDDEMO.STATEMNT.PS.PDF'.
  • statement text file: statements for 50 accounts produced by CREASTMT → The job converts the text file and writes 'AWS.M2.CARDDEMO.STATEMNT.PS.PDF' containing those statements.
app/jcl/TXT2PDF1.JCL:24-40, app/scheduler/CardDemo.ca7:470-495, app/jcl/CREASTMT.JCL:75

Acceptance criteria

IDCriterionChecks
AC-01Given statement text file: statements for 50 accounts produced by CREASTMT
When the statement creation job (CREASTMT) completes
Then The job converts the text file and writes 'AWS.M2.CARDDEMO.STATEMNT.PS.PDF' containing those statements.
REQ-F-039
Convert account statements to PDF
worked example 1 of the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-298 What should the modernized statement PDF output be called, and where should it be stored? Today it is known only by the legacy dataset name AWS.M2.CARDDEMO.STATEMNT.PS.PDF. (Statement operations team)
  • SME-299 The statement PDF conversion only runs if every earlier step ended with return code 0, yet it is the job's only business step. Which earlier steps does this cover, and should the modernized system keep this check? (Batch operations team)
  • SME-300 If the statement PDF conversion fails or is rerun, should a rerun overwrite the existing PDF, and is a partial PDF acceptable after a failure? (Batch operations team)
  • SME-301 The browse option (BROWSE Y) is described only as making the statement PDF viewable. Which PDF properties must the modernized conversion keep to meet this intent? (Statement operations team)
  • DEF-102 Is this intended? The step carries COND=(0,NE), which looks meant to skip conversion after a failure, but as the first and only step it has nothing to test, so the PDF is produced even if the statement job's output is incomplete. (Subject-matter expert)

Design notes

  • A scheduled follow-on step that starts when statement creation completes. It renders the plain-text statement report to PDF and stores the result as the published statement document (legacy name AWS.M2.CARDDEMO.STATEMNT.PS.PDF), for example in document storage. Any text-to-PDF renderer works. The legacy job uses the TXT2PDF utility with BROWSE Y. Convert account statements to PDF

Daily Transaction Processing and Reporting

1. Extract account data to output filesfinal · scheduled job · 12 requirements · 13 rules · 15 criteria

A scheduled extract that reads every account on the account master and writes it out in four formats for downstream processes: a flat account record, a balance array record, and two variable-length records (one with status, one with financial details). It serves operations analysts and the systems that consume these extracts. It must never skip or duplicate an account, so N accounts always give N, N and 2N records. It must also stop the run on any read or write error rather than produce a partial extract.

As an operations analyst, I want each account on the account master file extracted to the account output, balance array and variable-length files, so that downstream processes receive the account details in the formats they expect.

Final: signed off by Pat (acceptance), 2026-11-25 Risk high; touches money. rec/CustomerAccountSelf-Service/DailyTransactionProcessingandReporting#1

Requirements

CodeClassRequirementCriteria
REQ-F-001design noteWhen an account record is read successfully, the system shall copy the account ID, active status, current balance, credit limit, cash credit limit, open date, expiration date, current cycle credit and group ID to the account output record.AC-11
REQ-F-002design noteWhen an account record is read successfully, the system shall convert the account reissue date from YYYY-MM-DD to YYYYMMDD and write it as the output reissue date.AC-12
REQ-F-003business ruleWhen the account's current cycle debit equals zero, the system shall set the output current cycle debit to 2525.00.AC-01, AC-02, AC-03, AC-04
REQ-F-004business ruleThe system shall not copy a non-zero current cycle debit to the account output record.AC-03, AC-04
REQ-F-005historical artifactWhen an account record is read successfully, the system shall write a balance array record holding the account identifier and the current balance in cycle slots 1 and 2 with cycle debits 1005.00 and 1525.00, and slot 3 with balance -1025.00 and cycle debit -2500.00.AC-05, AC-06
REQ-F-006design noteWhen an account record is read successfully, the system shall write a 12-byte variable-length status record holding the 11-digit account ID followed by the account active status.AC-13
REQ-F-007design noteWhen an account record is read successfully, the system shall then write a 39-byte variable-length financial record holding the account ID, current balance, credit limit and the four-digit year of the reissue date.AC-14
REQ-F-008design noteWhen an account is read successfully from the account master file, the system shall write one account output record, one balance array record and two variable-length records and then read the next account, so that N accounts give N, N and 2N records.AC-07
REQ-F-009error handlingWhen a write to any of the three output files returns file status '00' or '10', the system shall treat the write as successful and continue processing.AC-08
REQ-F-010error handlingIf a write to the account output file, the balance array file or either variable-length record write returns a file status other than '00' or '10', then the system shall display 'ACCOUNT FILE WRITE STATUS IS:' with the status, 'FILE STATUS IS: NNNN' with the four-digit status and 'ABENDING PROGRAM', and abend with code 999.AC-09
REQ-F-011design noteWhen reading the account master file returns status '10', the system shall treat it as end of file, stop reading, close the account file and end normally with 'END OF EXECUTION OF PROGRAM CBACT01C'.AC-10
REQ-F-012error handlingIf reading the account master file returns a status other than '00' or '10', then the system shall display 'ERROR READING ACCOUNT FILE' with the file status and abend with code 999.AC-15

Business rules

RuleClassText, worked examples and evidence
Build account output record with reformatted reissue date
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-89872a17ad/1
design note
technical, medium
WHEN an account is read successfully, THE account extract job SHALL copy the account ID, active status, current balance, credit limit, cash credit limit, open date, expiration date, current cycle credit and group ID to the account output record.
app/cbl/CBACT01C.cbl:215-240, app/asm/COBDATFT.asm:46-54, app/cpy/CODATECN.cpy:17-39
Stage account reissue date
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-34b559ee3e/1
design note
technical, medium
WHEN an account record is read successfully, THE account extract job SHALL copy the account reissue date (YYYY-MM-DD) both to the date-conversion input and to a working date whose first four characters give the reissue year used in the financial variable-length record.
app/cbl/CBACT01C.cbl:131-137, app/cbl/CBACT01C.cbl:223-224, app/cbl/CBACT01C.cbl:282
Build account output record with reformatted reissue date
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-89872a17ad/2
design note
technical, medium
WHEN an account is read successfully, THE account extract job SHALL convert the reissue date from YYYY-MM-DD to YYYYMMDD by calling the date routine (COBDATFT, input and output type '2') and write it as the output reissue date.
app/cbl/CBACT01C.cbl:215-240, app/asm/COBDATFT.asm:46-54, app/cpy/CODATECN.cpy:17-39
Default zero cycle debit to fixed amount
rec/agreed:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-8cd9643305/1
business rule
business, medium
WHEN the account's current cycle debit equals zero, THE Account Output Record Builder SHALL set the output cycle debit to 2525.00
  • ACCT-CURR-CYC-DEBIT: 0.00 → The output record's cycle debit (OUT-ACCT-CURR-CYC-DEBIT) is 2525.00.
  • ACCT-CURR-CYC-DEBIT: 150.00 → The output cycle debit is not set to 2525.00 (the code does not copy 150.00 into it either).
app/cbl/CBACT01C.cbl:236-238, app/cbl/CBACT01C.cbl:236-238
Build account output record with reformatted reissue date
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-89872a17ad/3
business rule
business, medium
WHEN the account's current cycle debit is zero, THE account extract job SHALL set the output current cycle debit to 2525.00; a non-zero cycle debit is not copied to the output record.
  • Current cycle debit: 0.00 → Output cycle debit 2525.00
  • Current cycle debit: 310.50 → Output cycle debit is not set from the account (310.50 is not written)
app/cbl/CBACT01C.cbl:215-240, app/asm/COBDATFT.asm:46-54, app/cpy/CODATECN.cpy:17-39
Populate account balance array record
rec/agreed:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-baf39cace9/1
historical artifact
leftover, medium
WHEN an account has been read successfully, THE Balance Array Builder SHALL copy the account identifier and the current balance into cycle slots 1 and 2 with cycle debits `1005.00` and `1525.00`, and set slot 3 to balance `-1025.00` and cycle debit `-2500.00`
  • ACCT-ID: 00000000001; ACCT-CURR-BAL: 1940.00 → The array record holds account 00000000001 with slot 1 balance 1940.00 / cycle debit 1005.00, slot 2 balance 1940.00 / cycle debit 1525.00, slot 3 balance -1025.00 / cycle debit -2500.00.
  • ACCT-ID: 00000000002; ACCT-CURR-BAL: 0.00 → Slots 1 and 2 hold balance 0.00 with cycle debits 1005.00 and 1525.00; slot 3 is still -1025.00 / -2500.00 whatever the account holds.
app/cbl/CBACT01C.cbl:253-260, app/cbl/CBACT01C.cbl:253-261
Populate account status and financial records
rec/group:claude/RULE-037/1
design note
technical, high
WHEN an account record is read successfully, THE account extract job SHALL write a 12-byte variable-length status record holding the 11-digit account ID followed by the account active status.
app/cbl/CBACT01C.cbl:123-130, app/cbl/CBACT01C.cbl:276-285, app/cbl/CBACT01C.cbl:287-290, app/cbl/CBACT01C.cbl:302-305, app/cbl/CBACT01C.cbl:223-224
Populate account status and financial records
rec/group:claude/RULE-037/2
design note
technical, high
WHEN an account record is read successfully, THE account extract job SHALL then write a 39-byte variable-length financial record holding the account ID, current balance, credit limit and the four-digit year of the reissue date.
app/cbl/CBACT01C.cbl:123-130, app/cbl/CBACT01C.cbl:276-285, app/cbl/CBACT01C.cbl:287-290, app/cbl/CBACT01C.cbl:302-305, app/cbl/CBACT01C.cbl:223-224
Process successfully read account
rec/group:claude/RULE-157/1
design note
technical, high
WHEN an account is read successfully from the account master file, THE account extract job SHALL write one record to the account output file, one record to the balance array file and two records to the variable-length file, then read the next account, so N accounts give N, N and 2N records.
  • Accounts on the account master file: 3 → 3 records on OUTFILE, 3 on ARRYFILE, 6 on VBRCFILE
app/cbl/CBACT01C.cbl:141-160, app/cbl/CBACT01C.cbl:165-198, app/cbl/CBACT01C.cbl:388-410
Write 12-byte account status record
rec/group:claude/RULE-067/2
error handling
error_handling, high
WHEN a write to any of the three output files returns file status '00' or '10', THE account extract job SHALL treat the write as successful and continue processing.
  • File: balance array file (ARRYFILE); Write status: '10' → No error; processing continues
app/cbl/CBACT01C.cbl:242-251, app/cbl/CBACT01C.cbl:263-274, app/cbl/CBACT01C.cbl:287-300, app/cbl/CBACT01C.cbl:302-315, app/cbl/CBACT01C.cbl:406-426
Write 12-byte account status record
rec/group:claude/RULE-067/1
error handling
error_handling, high
WHEN a write to the account output file, the balance array file, or either variable-length record write (12-byte status, 39-byte financial) returns a file status other than '00' or '10', THE account extract job SHALL display 'ACCOUNT FILE WRITE STATUS IS:' with the status, display 'FILE STATUS IS: NNNN' with the four-digit status, display 'ABENDING PROGRAM' and abend with code 999.
  • File: account output file (OUTFILE); Write status: '00' → Processing continues with the next write
app/cbl/CBACT01C.cbl:242-251, app/cbl/CBACT01C.cbl:263-274, app/cbl/CBACT01C.cbl:287-300, app/cbl/CBACT01C.cbl:302-315, app/cbl/CBACT01C.cbl:406-426
Sequential extract run lifecycle and end-of-file handling
rec/group:claude/RULE-157/2
design note
technical, high
WHEN reading the account master file returns status '10', THE account extract job SHALL treat it as end of file, stop the loop, close the account file and end normally with 'END OF EXECUTION OF PROGRAM CBACT01C'.
  • Read status: '10' → Loop ends; 'END OF EXECUTION OF PROGRAM CBACT01C' displayed
app/cbl/CBACT01C.cbl:141-160, app/cbl/CBACT01C.cbl:165-198, app/cbl/CBACT01C.cbl:388-410
Sequential extract run lifecycle and end-of-file handling
rec/group:claude/RULE-157/3
error handling
error_handling, high
WHEN reading the account master file returns a status other than '00' or '10', THE account extract job SHALL display 'ERROR READING ACCOUNT FILE' and the file status, and abend with code 999.
app/cbl/CBACT01C.cbl:141-160, app/cbl/CBACT01C.cbl:165-198, app/cbl/CBACT01C.cbl:388-410

Acceptance criteria

IDCriterionChecks
AC-01Given ACCT-CURR-CYC-DEBIT: 0.00
When the account's current cycle debit equals zero
Then The output record's cycle debit (OUT-ACCT-CURR-CYC-DEBIT) is 2525.00.
REQ-F-003
Default zero cycle debit to fixed amount
worked example 1 of the rule
AC-02Given ACCT-CURR-CYC-DEBIT: 150.00
When the account's current cycle debit equals zero
Then The output cycle debit is not set to 2525.00 (the code does not copy 150.00 into it either).
REQ-F-003
Default zero cycle debit to fixed amount
worked example 2 of the rule
AC-03Given Current cycle debit: 0.00
When the account's current cycle debit is zero
Then Output cycle debit 2525.00
REQ-F-003, REQ-F-004
Build account output record with reformatted reissue date
worked example 1 of the rule
AC-04Given Current cycle debit: 310.50
When the account's current cycle debit is zero
Then Output cycle debit is not set from the account (310.50 is not written)
REQ-F-003, REQ-F-004
Build account output record with reformatted reissue date
worked example 2 of the rule
AC-05Given ACCT-ID: 00000000001; ACCT-CURR-BAL: 1940.00
When an account has been read successfully
Then The array record holds account 00000000001 with slot 1 balance 1940.00 / cycle debit 1005.00, slot 2 balance 1940.00 / cycle debit 1525.00, slot 3 balance -1025.00 / cycle debit -2500.00.
REQ-F-005
Populate account balance array record
worked example 1 of the rule
AC-06Given ACCT-ID: 00000000002; ACCT-CURR-BAL: 0.00
When an account has been read successfully
Then Slots 1 and 2 hold balance 0.00 with cycle debits 1005.00 and 1525.00; slot 3 is still -1025.00 / -2500.00 whatever the account holds.
REQ-F-005
Populate account balance array record
worked example 2 of the rule
AC-07Given Accounts on the account master file: 3
When an account is read successfully from the account master file
Then 3 records on OUTFILE, 3 on ARRYFILE, 6 on VBRCFILE
REQ-F-008
Process successfully read account
worked example 1 of the rule
AC-08Given File: balance array file (ARRYFILE); Write status: '10'
When a write to any of the three output files returns file status '00' or '10'
Then No error; processing continues
REQ-F-009
Write 12-byte account status record
worked example 1 of the rule
AC-09Given File: account output file (OUTFILE); Write status: '00'
When a write to the account output file
Then Processing continues with the next write
REQ-F-010
Write 12-byte account status record
worked example 1 of the rule
AC-10Given Read status: '10'
When reading the account master file returns status '10'
Then Loop ends; 'END OF EXECUTION OF PROGRAM CBACT01C' displayed
REQ-F-011
Sequential extract run lifecycle and end-of-file handling
worked example 1 of the rule
AC-11Given an account on the account master with ID 00000000001, active status 'Y', current balance 1500.00, credit limit 5000.00, cash credit limit 1000.00, open date 2015-01-10, expiration date 2027-01-10, current cycle credit 200.00 and group ID 'A000000000'
When the extract reads the account successfully
Then the account output record holds account ID 00000000001, active status 'Y', current balance 1500.00, credit limit 5000.00, cash credit limit 1000.00, open date 2015-01-10, expiration date 2027-01-10, current cycle credit 200.00 and group ID 'A000000000', unchanged from the master
REQ-F-001
Build account output record with reformatted reissue date
written from the rule
AC-12Given an account whose reissue date is '2025-03-15' (YYYY-MM-DD)
When the extract reads the account successfully
Then the account output record's reissue date is '20250315' (YYYYMMDD)
REQ-F-002
Stage account reissue date, Build account output record with reformatted reissue date
written from the rule
AC-13Given an account with ID 00000000001 and active status 'Y'
When the extract reads the account successfully
Then a 12-byte variable-length status record '00000000001Y' is written: the 11-digit account ID followed by the active status
REQ-F-006
Populate account status and financial records
written from the rule
AC-14Given an account with ID 00000000001, current balance 1500.00, credit limit 5000.00 and reissue date '2025-03-15'
When the extract reads the account successfully and has written the status record
Then a 39-byte variable-length financial record is written next, holding account ID 00000000001, current balance 1500.00, credit limit 5000.00 and reissue year '2025'
REQ-F-007
Stage account reissue date, Populate account status and financial records
written from the rule
AC-15Given an extract run in progress
When reading the account master returns a file status other than '00' or '10' (for example '30')
Then the run displays 'ERROR READING ACCOUNT FILE' with status '30' and abends with code 999, and does not end normally
REQ-F-012
Sequential extract run lifecycle and end-of-file handling
written from the rule

Screens

None: scheduled job.

Data contracts

CVACT01Y (file record; CBACT01C), CODATECN (working storage; CBACT01C)

Decision tables

Account master read outcome

Account master read statusExtract actionRule
'00' (read successfully)Write one account output, one balance array and two variable-length records, then read the next accountrec/group:claude/RULE-157/1
'10'End of file: stop, close the account file and end normallyrec/group:claude/RULE-157/2
Other than '00' or '10'Display 'ERROR READING ACCOUNT FILE' with status and abend with code 999rec/group:claude/RULE-157/3

Open questions

  • SME-006 The account extract replaces a zero cycle debit with 2,525.00, and the balance array record is filled with fixed amounts (cycle debits 1,005.00, 1,525.00 and -2,500.00; a balance of -1,025.00). Are these real business values or test data to be replaced? And when an account has a non-zero cycle debit, should its own value be carried through to the extract? (Business analyst)
  • SME-007 The extract accepts a write result of '10' as well as '00' as success. Should accepting '10' be kept in the new system? (Technical lead)
  • SME-008 Do downstream consumers depend on the exact fixed record layouts of the account extracts (including the different status and financial record lengths), so they must be kept? (Integration team)
  • SME-009 Does anything downstream use the balance array file, or is it a demo/test file that can be dropped or replaced with real data? (Downstream data owner)
  • DEF-031 Is this intended? Every write failure, including those on the array and variable-record files, is reported with the same text 'ACCOUNT FILE WRITE STATUS IS:', so the message does not say which file failed; status '10' (end of file) is also accepted on a write, where it has no meaning. (Subject-matter expert)
  • DEF-070 Is this intended? At the end of the run only the account master file is closed; the three output files are never explicitly closed and rely on the runtime closing them at GOBACK. (Subject-matter expert)
  • DEF-108 Is this intended? The current cycle debit is only set (to the fixed 2525.00) when the account's value is zero; a non-zero cycle debit is never copied, so the output carries whatever was left in the record area. COBDATFT's 'INVALID INPUT' error result is also never checked. (Subject-matter expert)

Design notes

  • Map each account straight onto the flat account extract record: ID, active status, current balance, credit limit, cash credit limit, open date, expiration date, current cycle credit and group ID, with no changes to the values. Define the extract layout as a versioned contract that its downstream consumers agree to. Build account output record with reformatted reissue date
  • Parse the reissue date once from its stored YYYY-MM-DD form. Use it both for the YYYYMMDD output date and for the four-digit reissue year in the financial record, so the two can never disagree. Stage account reissue date
  • Use a standard date library to reformat the reissue date from YYYY-MM-DD to YYYYMMDD instead of a separate shared date-conversion routine. Decide and test how an invalid or blank reissue date is handled. Build account output record with reformatted reissue date
  • Produce a fixed 12-character status record per account: the account ID zero-padded to 11 digits, then the one-character active status. Downstream readers depend on the exact width. Populate account status and financial records
  • After each account's status record, produce a 39-byte financial record (account ID, current balance, credit limit, reissue year) in the same output stream. Keep the order status-then-financial for each account, and give the numeric fields an agreed fixed encoding. Populate account status and financial records
  • Process accounts as a sequential stream over the whole account master. Each account produces exactly one account record, one balance array record and two variable-length records, so the record counts can be reconciled (N, N, 2N) at the end of the run. Process successfully read account
  • Treat running out of accounts as normal completion: close the source and log the completion message 'END OF EXECUTION OF PROGRAM CBACT01C' (or an agreed equivalent) with a success exit status for the scheduler. Sequential extract run lifecycle and end-of-file handling
2. Validate daily transactionsfinal · scheduled job · 7 requirements · 11 rules · 20 criteria

Checks each daily card transaction before it is posted. The card must be on the card cross-reference, its account must exist, the account must not go over its credit limit, and the transaction must not be dated after the account expires. It serves the card issuer and decides which transactions are posted and which are rejected. It must never post a transaction for an unknown card, a missing account, an over-limit cycle or an expired account, and it must assign the correct reason code (100, 101, 102 or 103), with expiry (103) taking precedence over over-limit (102).

As a card issuer, I want each daily transaction checked against the card cross-reference and the linked account, so that only transactions for known cards on valid, in-limit, unexpired accounts are posted.

Final: signed off by Pat (acceptance), 2026-11-25 Risk high; touches card_data, money. rec/CustomerAccountSelf-Service/DailyTransactionProcessingandReporting#2

Requirements

CodeClassRequirementCriteria
REQ-F-013business ruleThe system shall look up the transaction's card in the card cross-reference first and shall look up the linked account only when the card was found.AC-01, AC-02, AC-03, AC-04, AC-05, AC-06
REQ-F-014business ruleIf the transaction's card number is not found in the card cross-reference, then the system shall record failure reason 100 'INVALID CARD NUMBER FOUND' and skip the account checks.AC-03, AC-04, AC-05, AC-06, AC-07, AC-08
REQ-F-015business ruleIf the account linked to the card is not on the account master, then the system shall reject the transaction with reason 101 'ACCOUNT RECORD NOT FOUND' and shall not evaluate the credit-limit or expiration checks.AC-09
REQ-F-016business ruleIf the card's account is found and its credit limit is less than the cycle credit total minus the cycle debit total plus the transaction amount, then the system shall reject the transaction with reason 102 'OVERLIMIT TRANSACTION', passing a projection equal to the limit.AC-10, AC-11
REQ-F-017business ruleThe system shall base the credit-limit check on the current billing cycle's credit and debit totals plus the new transaction, not on the account's current balance.AC-12
REQ-F-018business ruleWhile the account linked to the card is found, when the account expiration date is earlier than the transaction's original date, the system shall record failure reason 103 'TRANSACTION RECEIVED AFTER ACCT EXPIRATION'.AC-13, AC-14, AC-15, AC-16, AC-17, AC-18, AC-19
REQ-F-019business ruleWhen a transaction is both over the credit limit and dated after the account's expiration date, the system shall record only reason 103 'TRANSACTION RECEIVED AFTER ACCT EXPIRATION'.AC-20

Business rules

RuleClassText, worked examples and evidence
Sequence card and account validation
rec/group:claude/RULE-082/1
business rule
validation, high
THE daily posting batch SHALL look up the card in the card cross-reference first and SHALL look up the linked account only when the card was found.
  • Card number: 4111000011112222 (not in cross-reference) → Rejected with reason 100 'INVALID CARD NUMBER FOUND'; the account is not looked up
  • Card number: 4111000011112222 (in cross-reference, account 00000000012) → Account 00000000012 is looked up
app/cbl/CBTRN02C.cbl:370-378, app/cbl/CBTRN02C.cbl:380-392, app/cbl/CBTRN02C.cbl:393-422, app/cbl/CBTRN02C.cbl:211-216
Reject transaction for unknown card
rec/agreed:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-1c15cb8232/1
business rule
validation, medium
IF the transaction's card number is not found in the card cross-reference, THEN THE Transaction Validation SHALL set the failure reason (`WS-VALIDATION-FAIL-REASON`) to 100 and skip the account checks; when the card is found and the reason is 0, proceed to the account lookup (physical store: `XREF-FILE`)
  • DALYTRAN-CARD-NUM: 4000000000000002; Card in cross-reference: no → WS-VALIDATION-FAIL-REASON is 100; the account lookup, credit limit and expiration checks are not made
  • DALYTRAN-CARD-NUM: 4000000000000002; Card in cross-reference: yes; XREF-ACCT-ID: 00000000011 → Reason stays 0 and account 00000000011 is looked up for the credit limit and expiration checks
app/cbl/CBTRN02C.cbl:370-376,380,382-385,391, app/cbl/CBTRN02C.cbl:370-392
Reject transaction with unknown card
rec/agreed:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-6d49a924be/1
business rule
validation, medium
IF the transaction's card number is not found in the card cross-reference, THEN THE Transaction Validation SHALL record (`XREF-FILE`) failure reason `100` with description `'INVALID CARD NUMBER FOUND'` and skip the account checks; proceed to the account lookup only when the reason is still `0`
  • DALYTRAN-CARD-NUM: 5500000000000004; Card in cross-reference: no → Reject record trailer holds reason 100 and 'INVALID CARD NUMBER FOUND'; reject count goes up by 1 and the job ends with return code 4
  • DALYTRAN-CARD-NUM: 5500000000000004; Card in cross-reference: yes → Reason stays 0 and the account lookup is made
app/cbl/CBTRN02C.cbl:370-376,380,382-387,391, app/cbl/CBTRN02C.cbl:370-392
Reject unknown card number
rec/agreed:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-d389a06924/1
business rule
validation, medium
IF the transaction's card number is not found in the card cross-reference, THEN THE Transaction Validation SHALL set the validation failure reason to 100 (card not found) (physical store: `XREF-FILE`)
  • DALYTRAN-CARD-NUM: 4111111111111111; Card in cross-reference: no → Failure reason is 100 (card not found); the transaction is written to the daily rejects file
  • DALYTRAN-CARD-NUM: 4111111111111111; Card in cross-reference: yes → Failure reason stays 0 and validation goes on to the account checks
app/cbl/CBTRN02C.cbl:380,382-385,391, app/cbl/CBTRN02C.cbl:370-392
Reject transaction for unknown account
rec/group:claude/RULE-082/2
business rule
validation, high
WHEN the account linked to the card is not on the account master, THE daily posting batch SHALL reject the transaction with reason 101 'ACCOUNT RECORD NOT FOUND' and SHALL NOT evaluate the credit-limit or expiration checks.
  • Card number: 4111000011112222; Linked account: 00000000099 (not on account master) → Transaction rejected with reason 0101 'ACCOUNT RECORD NOT FOUND' and written to the daily rejects file
app/cbl/CBTRN02C.cbl:370-378, app/cbl/CBTRN02C.cbl:380-392, app/cbl/CBTRN02C.cbl:393-422, app/cbl/CBTRN02C.cbl:211-216
Reject transaction exceeding credit limit
rec/group:claude/RULE-043/1
business rule
validation, high
WHEN the card's account is found and its credit limit is less than the cycle credit total minus the cycle debit total plus the transaction amount, THE transaction validation SHALL reject the transaction with reason 102 'OVERLIMIT TRANSACTION'; a projection equal to the limit passes.
  • credit limit: $5,000.00; cycle credit: $4,800.00; cycle debit: $0.00; transaction amount: $250.00 → The projection is $5,050.00, which is over the limit, so the transaction is rejected with 102 'OVERLIMIT TRANSACTION'.
  • credit limit: $5,000.00; cycle credit: $4,800.00; cycle debit: $0.00; transaction amount: $200.00 → The projection is exactly $5,000.00, so the transaction passes the limit check.
app/cbl/CBTRN02C.cbl:393-422, app/cbl/CBTRN02C.cbl:545-552, app/cbl/CBTRN02C.cbl:208-216, app/cpy/CVACT01Y.cpy:7-14
Over-credit-limit rejection
rec/group:claude/RULE-043/2
business rule
business, high
THE transaction validation SHALL base the limit check on the current billing cycle's credit and debit totals plus the new transaction, not on the account's current balance.
  • current balance: $4,900.00; credit limit: $5,000.00; cycle credit: $100.00; cycle debit: $0.00; transaction amount: $300.00 → The projection is $400.00, so the transaction passes even though balance plus amount would be $5,200.00.
app/cbl/CBTRN02C.cbl:393-422, app/cbl/CBTRN02C.cbl:545-552, app/cbl/CBTRN02C.cbl:208-216, app/cpy/CVACT01Y.cpy:7-14
Reject transaction after account expiration
rec/agreed:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-349b9c3d6a/1
business rule
validation, medium
WHILE the account linked to the card is found, WHEN the account expiration date is earlier than the transaction date, THE Transaction Validation SHALL set the validation failure reason to 103 (transaction after account expiration)
  • Card found in cross-reference: yes; Account found: yes; ACCT-EXPIRAION-DATE: 2024-12-31; DALYTRAN-ORIG-TS (date part): 2025-01-02 → Failure reason is 103 (transaction after account expiration); the transaction is rejected
  • Account found: yes; ACCT-EXPIRAION-DATE: 2027-12-31; DALYTRAN-ORIG-TS (date part): 2025-01-02 → Failure reason is not set to 103; if no other check fails the transaction is posted
  • Account found: no → The expiration check is not made; failure reason is 101 'ACCOUNT RECORD NOT FOUND'
app/cbl/CBTRN02C.cbl:414-417,420-421, app/cbl/CBTRN02C.cbl:414-420
Reject transaction after account expiration
rec/agreed:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-8aead3d4c5/1
business rule
validation, medium
WHILE the linked account was found, WHEN the account expiration date is earlier than the transaction's original date, THE Transaction Validation SHALL record failure reason `103` with description `'TRANSACTION RECEIVED AFTER ACCT EXPIRATION'`
  • Account found: yes; ACCT-EXPIRAION-DATE: 2025-03-31; DALYTRAN-ORIG-TS: 2025-04-01-10.15.00.000000 → Failure reason 103 with description 'TRANSACTION RECEIVED AFTER ACCT EXPIRATION' is written in the reject record's trailer
  • Account found: yes; Balance after transaction: over credit limit; ACCT-EXPIRAION-DATE: 2025-03-31; DALYTRAN-ORIG-TS: 2025-04-01-10.15.00.000000 → The reason 102 'OVERLIMIT TRANSACTION' is replaced, and the reject shows 103 'TRANSACTION RECEIVED AFTER ACCT EXPIRATION'
app/cbl/CBTRN02C.cbl:414-421, app/cbl/CBTRN02C.cbl:414-420
Reject transaction after account expiration
rec/agreed:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-0567568026/1
business rule
validation, medium
WHEN the account is found and its expiration date is earlier than the transaction date, THE Transaction Validation SHALL set the failure reason (`WS-VALIDATION-FAIL-REASON`) to 103
  • ACCT-EXPIRAION-DATE: 2025-06-30; DALYTRAN-ORIG-TS (date part): 2025-07-15 → WS-VALIDATION-FAIL-REASON is set to 103; the transaction is written to the daily rejects file and not posted
  • ACCT-EXPIRAION-DATE: 2025-06-30; DALYTRAN-ORIG-TS (date part): 2025-06-30 → No failure reason 103 is set (an expiry date equal to the transaction date is accepted)
app/cbl/CBTRN02C.cbl:414-417,420, app/cbl/CBTRN02C.cbl:414-420
Over-credit-limit rejection
rec/group:claude/RULE-043/3
business rule
validation, high
WHEN a transaction is both over the limit and dated after the account's expiration date, THE transaction validation SHALL record only reason 103 'TRANSACTION RECEIVED AFTER ACCT EXPIRATION', because the expiration check runs after the limit check and overwrites reason 102.
  • projection: over the credit limit; transaction date: after account expiration → The reject record carries 103 'TRANSACTION RECEIVED AFTER ACCT EXPIRATION', not 102.
app/cbl/CBTRN02C.cbl:393-422, app/cbl/CBTRN02C.cbl:545-552, app/cbl/CBTRN02C.cbl:208-216, app/cpy/CVACT01Y.cpy:7-14

Acceptance criteria

IDCriterionChecks
AC-01Given Card number: 4111000011112222 (not in cross-reference)
When daily posting batch runs
Then Rejected with reason 100 'INVALID CARD NUMBER FOUND'; the account is not looked up
REQ-F-013
Sequence card and account validation
worked example 1 of the rule
AC-02Given Card number: 4111000011112222 (in cross-reference, account 00000000012)
When daily posting batch runs
Then Account 00000000012 is looked up
REQ-F-013
Sequence card and account validation
worked example 2 of the rule
AC-03Given DALYTRAN-CARD-NUM: 4000000000000002; Card in cross-reference: no
When the transaction's card number is not found in the card cross-reference
Then WS-VALIDATION-FAIL-REASON is 100; the account lookup, credit limit and expiration checks are not made
REQ-F-013, REQ-F-014
Reject transaction for unknown card
worked example 1 of the rule
AC-04Given DALYTRAN-CARD-NUM: 4000000000000002; Card in cross-reference: yes; XREF-ACCT-ID: 00000000011
When the transaction's card number is not found in the card cross-reference
Then Reason stays 0 and account 00000000011 is looked up for the credit limit and expiration checks
REQ-F-013, REQ-F-014
Reject transaction for unknown card
worked example 2 of the rule
AC-05Given DALYTRAN-CARD-NUM: 5500000000000004; Card in cross-reference: no
When the transaction's card number is not found in the card cross-reference
Then Reject record trailer holds reason 100 and 'INVALID CARD NUMBER FOUND'; reject count goes up by 1 and the job ends with return code 4
REQ-F-013, REQ-F-014
Reject transaction with unknown card
worked example 1 of the rule
AC-06Given DALYTRAN-CARD-NUM: 5500000000000004; Card in cross-reference: yes
When the transaction's card number is not found in the card cross-reference
Then Reason stays 0 and the account lookup is made
REQ-F-013, REQ-F-014
Reject transaction with unknown card
worked example 2 of the rule
AC-07Given DALYTRAN-CARD-NUM: 4111111111111111; Card in cross-reference: no
When the transaction's card number is not found in the card cross-reference
Then Failure reason is 100 (card not found); the transaction is written to the daily rejects file
REQ-F-014
Reject unknown card number
worked example 1 of the rule
AC-08Given DALYTRAN-CARD-NUM: 4111111111111111; Card in cross-reference: yes
When the transaction's card number is not found in the card cross-reference
Then Failure reason stays 0 and validation goes on to the account checks
REQ-F-014
Reject unknown card number
worked example 2 of the rule
AC-09Given Card number: 4111000011112222; Linked account: 00000000099 (not on account master)
When the account linked to the card is not on the account master
Then Transaction rejected with reason 0101 'ACCOUNT RECORD NOT FOUND' and written to the daily rejects file
REQ-F-015
Reject transaction for unknown account
worked example 1 of the rule
AC-10Given credit limit: $5,000.00; cycle credit: $4,800.00; cycle debit: $0.00; transaction amount: $250.00
When the card's account is found and its credit limit is less than the cycle credit total minus the cycle debit total plus the transaction amount
Then The projection is $5,050.00, which is over the limit, so the transaction is rejected with 102 'OVERLIMIT TRANSACTION'.
REQ-F-016
Reject transaction exceeding credit limit
worked example 1 of the rule
AC-11Given credit limit: $5,000.00; cycle credit: $4,800.00; cycle debit: $0.00; transaction amount: $200.00
When the card's account is found and its credit limit is less than the cycle credit total minus the cycle debit total plus the transaction amount
Then The projection is exactly $5,000.00, so the transaction passes the limit check.
REQ-F-016
Reject transaction exceeding credit limit
worked example 2 of the rule
AC-12Given current balance: $4,900.00; credit limit: $5,000.00; cycle credit: $100.00; cycle debit: $0.00; transaction amount: $300.00
When transaction validation runs
Then The projection is $400.00, so the transaction passes even though balance plus amount would be $5,200.00.
REQ-F-017
Over-credit-limit rejection
worked example 1 of the rule
AC-13Given Card found in cross-reference: yes; Account found: yes; ACCT-EXPIRAION-DATE: 2024-12-31; DALYTRAN-ORIG-TS (date part): 2025-01-02
When the account linked to the card is found, WHEN the account expiration date is earlier than the transaction date
Then Failure reason is 103 (transaction after account expiration); the transaction is rejected
REQ-F-018
Reject transaction after account expiration
worked example 1 of the rule
AC-14Given Account found: yes; ACCT-EXPIRAION-DATE: 2027-12-31; DALYTRAN-ORIG-TS (date part): 2025-01-02
When the account linked to the card is found, WHEN the account expiration date is earlier than the transaction date
Then Failure reason is not set to 103; if no other check fails the transaction is posted
REQ-F-018
Reject transaction after account expiration
worked example 2 of the rule
AC-15Given Account found: no
When the account linked to the card is found, WHEN the account expiration date is earlier than the transaction date
Then The expiration check is not made; failure reason is 101 'ACCOUNT RECORD NOT FOUND'
REQ-F-018
Reject transaction after account expiration
worked example 3 of the rule
AC-16Given Account found: yes; ACCT-EXPIRAION-DATE: 2025-03-31; DALYTRAN-ORIG-TS: 2025-04-01-10.15.00.000000
When the linked account was found, WHEN the account expiration date is earlier than the transaction's original date
Then Failure reason 103 with description 'TRANSACTION RECEIVED AFTER ACCT EXPIRATION' is written in the reject record's trailer
REQ-F-018
Reject transaction after account expiration
worked example 1 of the rule
AC-17Given Account found: yes; Balance after transaction: over credit limit; ACCT-EXPIRAION-DATE: 2025-03-31; DALYTRAN-ORIG-TS: 2025-04-01-10.15.00.000000
When the linked account was found, WHEN the account expiration date is earlier than the transaction's original date
Then The reason 102 'OVERLIMIT TRANSACTION' is replaced, and the reject shows 103 'TRANSACTION RECEIVED AFTER ACCT EXPIRATION'
REQ-F-018
Reject transaction after account expiration
worked example 2 of the rule
AC-18Given ACCT-EXPIRAION-DATE: 2025-06-30; DALYTRAN-ORIG-TS (date part): 2025-07-15
When the account is found and its expiration date is earlier than the transaction date
Then WS-VALIDATION-FAIL-REASON is set to 103; the transaction is written to the daily rejects file and not posted
REQ-F-018
Reject transaction after account expiration
worked example 1 of the rule
AC-19Given ACCT-EXPIRAION-DATE: 2025-06-30; DALYTRAN-ORIG-TS (date part): 2025-06-30
When the account is found and its expiration date is earlier than the transaction date
Then No failure reason 103 is set (an expiry date equal to the transaction date is accepted)
REQ-F-018
Reject transaction after account expiration
worked example 2 of the rule
AC-20Given projection: over the credit limit; transaction date: after account expiration
When a transaction is both over the limit and dated after the account's expiration date
Then The reject record carries 103 'TRANSACTION RECEIVED AFTER ACCT EXPIRATION', not 102.
REQ-F-019
Over-credit-limit rejection
worked example 1 of the rule

Screens

None: scheduled job.

Data contracts

CVACT01Y (file record; CBTRN02C), CVACT03Y (file record; CBTRN02C), CVTRA01Y (file record; CBTRN02C), CVTRA05Y (file record; CBTRN02C), CVTRA06Y (file record; CBTRN02C)

Decision tables

Daily transaction validation outcome

Card in cross-referenceLinked account foundOver credit limitTransaction after account expirationFailure reasonRule
No---Reason 100 'INVALID CARD NUMBER FOUND'; account checks skippedrec/agreed:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-6d49a924be/1
YesNo--Reason 101 'ACCOUNT RECORD NOT FOUND'; limit and expiration checks not evaluatedrec/group:claude/RULE-082/2
YesYesYesNoReason 102 'OVERLIMIT TRANSACTION'rec/group:claude/RULE-043/1
YesYesNoYesReason 103 'TRANSACTION RECEIVED AFTER ACCT EXPIRATION'rec/agreed:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-8aead3d4c5/1
YesYesYesYesOnly reason 103 recorded (overwrites 102)rec/group:claude/RULE-043/3
YesYesNoNoReason stays 0; transaction is postedrec/group:claude/RULE-218/1

Open questions

  • SME-039 How should the over-credit-limit check measure exposure? Today it uses cycle credits minus cycle debits plus the transaction amount, and because debits are stored as negative amounts this effectively adds payments. Is that intended, or should the check use the current balance plus the transaction amount? Should cash transactions also be checked against the cash credit limit? (Credit risk / card product owner)
  • DEF-018 Is this intended? Negative amounts are stored in the cycle debit total as negative values (2800-UPDATE-ACCOUNT-REC), so 'credit minus debit' adds their magnitude back and raises the projection instead of lowering it. The check also ignores the current balance and any earlier cycles, and reason 103 silently overwrites reason 102. (Subject-matter expert)

Design notes

None.

3. Post validated transactionsfinal · scheduled job · 13 requirements · 14 rules · 17 criteria

Posts each validated daily transaction: it adds the amount to the matching category balance, updates the account's current balance and cycle credit or debit totals, and writes the posted transaction, stamped with the run time, to the transaction master. It serves the card issuer and keeps balances in line with the day's activity. It must never post in the wrong order (category balance, then account, then transaction), lose an amount, or let a storage failure pass unnoticed; any read or write error on these files stops the run.

As a card issuer, I want each validated daily transaction posted to its category balance, its account and the transaction master file, so that balances and cycle totals reflect the day's activity.

Final: signed off by Pat (acceptance), 2026-11-25 Risk high; touches card_data, money, updates_records. rec/CustomerAccountSelf-Service/DailyTransactionProcessingandReporting#3

Requirements

CodeClassRequirementCriteria
REQ-F-020business ruleWhen a daily transaction passes validation, the system shall first update the category balance, then update the account, and then write the posted transaction to the transaction file.AC-01, AC-02
REQ-F-021design noteWhen a transaction passes validation, the system shall look up the category balance record for the card's account, the transaction type and the transaction category.AC-03
REQ-F-022business ruleWhen a category balance record already exists for the account, type and category, the system shall add the transaction amount to that balance and save the record.AC-04, AC-05
REQ-F-023business ruleWhen no category balance record exists for the account, type and category, the system shall create one with a balance equal to the transaction amount and display 'TCATBAL record not found for key : ... Creating.'.AC-06
REQ-F-024error handlingIf reading the category balance fails for any reason other than record not found, or creating or saving it fails, then the system shall display 'ERROR READING TRANSACTION BALANCE FILE', 'ERROR WRITING TRANSACTION BALANCE FILE' or 'ERROR REWRITING TRANSACTION BALANCE FILE' with the file status and abend.AC-07, AC-08
REQ-F-025business ruleWhen a daily transaction passes validation, the system shall add the transaction amount to the account's current balance.AC-09, AC-10
REQ-F-026business ruleWhen a posted transaction amount is zero or positive, the system shall add it to the account's current billing-cycle credit total.AC-11
REQ-F-027business ruleWhen a posted transaction amount is negative, the system shall add it as a negative value to the account's current billing-cycle debit total.AC-12
REQ-F-028design noteThe system shall save the updated balance and cycle totals back to the account record before the transaction itself is written.AC-13
REQ-F-029historical artifactIf the account record cannot be rewritten because it is not found, then the system shall set reason 109 'ACCOUNT RECORD NOT FOUND' and still write the transaction to the transaction file without rejecting it or counting it as rejected.AC-14
REQ-F-030design noteWhen a daily transaction passes validation, the system shall build the posted transaction from the daily transaction's ID, type, category, source, description, amount, merchant ID, name, city and ZIP, card number and original timestamp.AC-15
REQ-F-031design noteThe system shall stamp each posted transaction with the run's current date and time in the form YYYY-MM-DD-HH.MM.SS.hh0000.AC-17
REQ-F-032error handlingIf writing the posted transaction fails, then the system shall display 'ERROR WRITING TO TRANSACTION FILE' with the file status and abend the run.AC-01, AC-16

Business rules

RuleClassText, worked examples and evidence
Post transaction and maintain category balance
rec/group:claude/RULE-020/5
error handling
error_handling, high
WHEN a transaction passes validation, THE daily posting batch SHALL update the category balance, then the account balances, then write the posted transaction, abending with 'ERROR WRITING TO TRANSACTION FILE' if the transaction write fails.
  • Validation result: passed; Transaction file status on write: '00' → Category balance, account and transaction file are all updated
app/cbl/CBTRN02C.cbl:467-501, app/cbl/CBTRN02C.cbl:503-524, app/cbl/CBTRN02C.cbl:526-542, app/cbl/CBTRN02C.cbl:424-444, app/cbl/CBTRN02C.cbl:545-560, app/cbl/CBTRN02C.cbl:562-579
Assemble posted transaction record
rec/group:claude/RULE-165/3
business rule
business, high
WHEN a daily transaction passes validation, THE transaction posting SHALL first update the category balance, then update the account, and then write the posted transaction to the transaction file (TRANSACT-FILE).
  • validation result: passed → Category balance, then account, are updated, and then the transaction record is written.
app/cbl/CBTRN02C.cbl:424-444, app/cbl/CBTRN02C.cbl:562-579, app/cbl/CBTRN02C.cbl:692-705, app/cbl/CBTRN02C.cbl:150-177
Locate category balance for transaction
rec/group:claude/RULE-020/1
design note
technical, high
WHEN a transaction passes validation, THE daily posting batch SHALL look up the category balance record for the card's account, the transaction type and the transaction category.
  • Account: 00000000012; Transaction type: 01; Category: 0001 → The batch reads the category balance for account 00000000012, type '01', category 0001
app/cbl/CBTRN02C.cbl:467-501, app/cbl/CBTRN02C.cbl:503-524, app/cbl/CBTRN02C.cbl:526-542, app/cbl/CBTRN02C.cbl:424-444, app/cbl/CBTRN02C.cbl:545-560, app/cbl/CBTRN02C.cbl:562-579
Update existing category balance record
rec/group:claude/RULE-020/2
business rule
business, high
WHEN a category balance record already exists for the account, type and category, THE daily posting batch SHALL add the transaction amount to that balance and save the record.
  • Existing category balance: $500.00; Transaction amount: $25.00 → The category balance becomes $525.00
  • Existing category balance: $500.00; Transaction amount: -$40.00 → The category balance becomes $460.00
app/cbl/CBTRN02C.cbl:467-501, app/cbl/CBTRN02C.cbl:503-524, app/cbl/CBTRN02C.cbl:526-542, app/cbl/CBTRN02C.cbl:424-444, app/cbl/CBTRN02C.cbl:545-560, app/cbl/CBTRN02C.cbl:562-579
Locate category balance for transaction
rec/group:claude/RULE-020/3
business rule
business, high
WHEN no category balance record exists for the account, type and category, THE daily posting batch SHALL create one with a balance equal to the transaction amount and display 'TCATBAL record not found for key : ... Creating.'.
  • Category balance record: none for account 00000000012, type '01', category 0001; Transaction amount: $25.00 → A new category balance record is created with balance $25.00
app/cbl/CBTRN02C.cbl:467-501, app/cbl/CBTRN02C.cbl:503-524, app/cbl/CBTRN02C.cbl:526-542, app/cbl/CBTRN02C.cbl:424-444, app/cbl/CBTRN02C.cbl:545-560, app/cbl/CBTRN02C.cbl:562-579
Create or update category balance
rec/group:claude/RULE-020/4
error handling
error_handling, high
WHEN reading the category balance fails for any reason other than record not found, or creating or saving it fails, THE daily posting batch SHALL display 'ERROR READING TRANSACTION BALANCE FILE', 'ERROR WRITING TRANSACTION BALANCE FILE' or 'ERROR REWRITING TRANSACTION BALANCE FILE' with the file status and abend.
  • Category balance file status on read: '35' → 'ERROR READING TRANSACTION BALANCE FILE' is displayed and the batch abends
  • Category balance file status on rewrite: '22' → 'ERROR REWRITING TRANSACTION BALANCE FILE' is displayed and the batch abends
app/cbl/CBTRN02C.cbl:467-501, app/cbl/CBTRN02C.cbl:503-524, app/cbl/CBTRN02C.cbl:526-542, app/cbl/CBTRN02C.cbl:424-444, app/cbl/CBTRN02C.cbl:545-560, app/cbl/CBTRN02C.cbl:562-579
Post transaction to account balances
rec/group:claude/RULE-004/1
business rule
business, high
WHEN a daily transaction passes validation, THE account posting SHALL add the transaction amount to the account's current balance.
  • current balance: $1,200.00; transaction amount: $75.25 → Current balance becomes $1,275.25.
  • current balance: $1,275.25; transaction amount: -$100.00 → Current balance becomes $1,175.25.
app/cbl/CBTRN02C.cbl:545-560, app/cbl/CBTRN02C.cbl:424-444, app/cbl/CBTRN02C.cbl:206-216, app/cpy/CVACT01Y.cpy:7-14
Post transaction to account balances
rec/group:claude/RULE-004/2
business rule
business, high
WHEN a posted transaction amount is zero or positive, THE account posting SHALL add it to the account's current billing-cycle credit total.
  • cycle credit: $300.00; transaction amount: $75.25 → Cycle credit becomes $375.25; cycle debit is unchanged.
app/cbl/CBTRN02C.cbl:545-560, app/cbl/CBTRN02C.cbl:424-444, app/cbl/CBTRN02C.cbl:206-216, app/cpy/CVACT01Y.cpy:7-14
Post transaction to account balances
rec/group:claude/RULE-004/3
business rule
business, high
WHEN a posted transaction amount is negative, THE account posting SHALL add it as a negative value to the account's current billing-cycle debit total, so the debit total grows more negative.
  • cycle debit: -$50.00; transaction amount: -$100.00 → Cycle debit becomes -$150.00; cycle credit is unchanged.
app/cbl/CBTRN02C.cbl:545-560, app/cbl/CBTRN02C.cbl:424-444, app/cbl/CBTRN02C.cbl:206-216, app/cpy/CVACT01Y.cpy:7-14
Post transaction to account balances
rec/group:claude/RULE-004/4
design note
technical, high
THE account posting SHALL save the updated balance and cycle totals back to the account record (ACCOUNT-FILE) before the transaction itself is written.
  • transaction amount: $75.25; account: found during validation → The account record is rewritten with the new balance and cycle credit.
app/cbl/CBTRN02C.cbl:545-560, app/cbl/CBTRN02C.cbl:424-444, app/cbl/CBTRN02C.cbl:206-216, app/cpy/CVACT01Y.cpy:7-14
Update account balances for posted transaction
rec/group:claude/RULE-004/5
historical artifact
leftover, high
WHEN the account record cannot be rewritten because it is not found, THE account posting SHALL set reason 109 'ACCOUNT RECORD NOT FOUND', but the transaction is still written to the transaction file and is neither rejected nor counted as rejected.
  • account rewrite: record not found → Reason 109 'ACCOUNT RECORD NOT FOUND' is set in memory only; the transaction is still written, no reject record is written, and the reason is cleared for the next transaction.
app/cbl/CBTRN02C.cbl:545-560, app/cbl/CBTRN02C.cbl:424-444, app/cbl/CBTRN02C.cbl:206-216, app/cpy/CVACT01Y.cpy:7-14
Assemble posted transaction record
rec/group:claude/RULE-165/1
design note
technical, high
WHEN a daily transaction passes validation, THE transaction posting SHALL build the posted transaction from the daily transaction's ID, type, category, source, description, amount, merchant ID, name, city and ZIP, card number and original timestamp.
  • daily transaction ID: 0000000000001234; original timestamp: 2025-03-01-09.30.00.000000 → The posted transaction has ID 0000000000001234 and original timestamp 2025-03-01-09.30.00.000000, with all other details copied over.
app/cbl/CBTRN02C.cbl:424-444, app/cbl/CBTRN02C.cbl:562-579, app/cbl/CBTRN02C.cbl:692-705, app/cbl/CBTRN02C.cbl:150-177
Assemble posted transaction record
rec/group:claude/RULE-165/2
design note
technical, high
THE transaction posting SHALL stamp each posted transaction with the run's current date and time in the form YYYY-MM-DD-HH.MM.SS.hh0000 (hundredths of a second followed by '0000').
app/cbl/CBTRN02C.cbl:424-444, app/cbl/CBTRN02C.cbl:562-579, app/cbl/CBTRN02C.cbl:692-705, app/cbl/CBTRN02C.cbl:150-177
Write posted transaction record
rec/group:claude/RULE-165/4
error handling
error_handling, high
WHEN writing the posted transaction fails, THE transaction posting SHALL display 'ERROR WRITING TO TRANSACTION FILE' with the file status and abend the run.
  • transaction file write status: 22 (duplicate key) → 'ERROR WRITING TO TRANSACTION FILE' and the status are displayed, and the program abends.
app/cbl/CBTRN02C.cbl:424-444, app/cbl/CBTRN02C.cbl:562-579, app/cbl/CBTRN02C.cbl:692-705, app/cbl/CBTRN02C.cbl:150-177

Acceptance criteria

IDCriterionChecks
AC-01Given Validation result: passed; Transaction file status on write: '00'
When a transaction passes validation
Then Category balance, account and transaction file are all updated
REQ-F-020, REQ-F-032
Post transaction and maintain category balance
worked example 1 of the rule
AC-02Given validation result: passed
When a daily transaction passes validation
Then Category balance, then account, are updated, and then the transaction record is written.
REQ-F-020
Assemble posted transaction record
worked example 1 of the rule
AC-03Given Account: 00000000012; Transaction type: 01; Category: 0001
When a transaction passes validation
Then The batch reads the category balance for account 00000000012, type '01', category 0001
REQ-F-021
Locate category balance for transaction
worked example 1 of the rule
AC-04Given Existing category balance: $500.00; Transaction amount: $25.00
When a category balance record already exists for the account, type and category
Then The category balance becomes $525.00
REQ-F-022
Update existing category balance record
worked example 1 of the rule
AC-05Given Existing category balance: $500.00; Transaction amount: -$40.00
When a category balance record already exists for the account, type and category
Then The category balance becomes $460.00
REQ-F-022
Update existing category balance record
worked example 2 of the rule
AC-06Given Category balance record: none for account 00000000012, type '01', category 0001; Transaction amount: $25.00
When no category balance record exists for the account, type and category
Then A new category balance record is created with balance $25.00
REQ-F-023
Locate category balance for transaction
worked example 1 of the rule
AC-07Given Category balance file status on read: '35'
When reading the category balance fails for any reason other than record not found, or creating or saving it fails
Then 'ERROR READING TRANSACTION BALANCE FILE' is displayed and the batch abends
REQ-F-024
Create or update category balance
worked example 1 of the rule
AC-08Given Category balance file status on rewrite: '22'
When reading the category balance fails for any reason other than record not found, or creating or saving it fails
Then 'ERROR REWRITING TRANSACTION BALANCE FILE' is displayed and the batch abends
REQ-F-024
Create or update category balance
worked example 2 of the rule
AC-09Given current balance: $1,200.00; transaction amount: $75.25
When a daily transaction passes validation
Then Current balance becomes $1,275.25.
REQ-F-025
Post transaction to account balances
worked example 1 of the rule
AC-10Given current balance: $1,275.25; transaction amount: -$100.00
When a daily transaction passes validation
Then Current balance becomes $1,175.25.
REQ-F-025
Post transaction to account balances
worked example 2 of the rule
AC-11Given cycle credit: $300.00; transaction amount: $75.25
When a posted transaction amount is zero or positive
Then Cycle credit becomes $375.25; cycle debit is unchanged.
REQ-F-026
Post transaction to account balances
worked example 1 of the rule
AC-12Given cycle debit: -$50.00; transaction amount: -$100.00
When a posted transaction amount is negative
Then Cycle debit becomes -$150.00; cycle credit is unchanged.
REQ-F-027
Post transaction to account balances
worked example 1 of the rule
AC-13Given transaction amount: $75.25; account: found during validation
When account posting runs
Then The account record is rewritten with the new balance and cycle credit.
REQ-F-028
Post transaction to account balances
worked example 1 of the rule
AC-14Given account rewrite: record not found
When the account record cannot be rewritten because it is not found
Then Reason 109 'ACCOUNT RECORD NOT FOUND' is set in memory only; the transaction is still written, no reject record is written, and the reason is cleared for the next transaction.
REQ-F-029
Update account balances for posted transaction
worked example 1 of the rule
AC-15Given daily transaction ID: 0000000000001234; original timestamp: 2025-03-01-09.30.00.000000
When a daily transaction passes validation
Then The posted transaction has ID 0000000000001234 and original timestamp 2025-03-01-09.30.00.000000, with all other details copied over.
REQ-F-030
Assemble posted transaction record
worked example 1 of the rule
AC-16Given transaction file write status: 22 (duplicate key)
When writing the posted transaction fails
Then 'ERROR WRITING TO TRANSACTION FILE' and the status are displayed, and the program abends.
REQ-F-032
Write posted transaction record
worked example 1 of the rule
AC-17Given a daily transaction that has passed validation, and a posting run whose clock reads 2026-11-25 14:05:09.37
When the posted transaction is written
Then its processed timestamp is '2026-11-25-14.05.09.370000' (YYYY-MM-DD-HH.MM.SS, then hundredths of a second, then '0000')
REQ-F-031
Assemble posted transaction record
written from the rule

Screens

None: scheduled job.

Data contracts

CVACT01Y (file record; CBTRN02C), CVACT03Y (file record; CBTRN02C), CVTRA01Y (file record; CBTRN02C), CVTRA05Y (file record; CBTRN02C), CVTRA06Y (file record; CBTRN02C)

Decision tables

Category balance lookup outcome

Category balance lookup resultCategory balance actionRule
Record existsAdd transaction amount to the balance and save the recordrec/group:claude/RULE-020/2
Record not foundCreate record with balance equal to the transaction amount and display 'TCATBAL record not found for key : ... Creating.'rec/group:claude/RULE-020/3
Read fails for another reasonDisplay 'ERROR READING TRANSACTION BALANCE FILE' with status and abendrec/group:claude/RULE-020/4

Open questions

  • SME-040 When posting a transaction and the account record cannot be saved (failure reason 109), should the run stop, should the transaction go to the daily rejects file, or should the posted transaction still be written? (Card business rules team)
  • SME-041 Posting one transaction updates the category balance, then the account, then writes the posted transaction. If a later step fails, must the earlier updates be reversed, so that all three succeed or fail together? (Batch operations team)
  • SME-042 Each posting run replaces the contents of the posted-transaction master. Is that intended, or should posted transactions accumulate across days? (Card operations / batch operations owner)
  • DEF-003 Is this intended? When the account rewrite fails, reason 109 is set after the posting decision has been made. The transaction is still written, nothing goes to the rejects file, the reject count is unchanged, and the run does not abend. Rewrite failures other than INVALID KEY are not checked at all, so the account and transaction files can disagree. (Subject-matter expert)
  • DEF-009 Is this intended? Posting is not all-or-nothing: the category balance is saved before the account update, and if the account rewrite fails (reason 109 'ACCOUNT RECORD NOT FOUND') the batch neither abends nor rejects; it still writes the transaction, leaving the category balance and transaction file out of step with the account. (Subject-matter expert)
  • DEF-073 Is this intended? The category balance and the account are updated before the transaction is written. If the write then fails (for example a duplicate transaction ID), the run abends after those updates were already made. (Subject-matter expert)

Design notes

  • Look up the category balance by a composite key of account ID, transaction type and transaction category; a unique key or index on these three columns. 'Not found' must be told apart from other errors, because 'not found' leads to creating the record. Locate category balance for transaction
  • Save the account's new balance and cycle totals before writing the posted transaction. Ideally both happen in one database transaction, so an account is never updated without its transaction record, or the reverse. Post transaction to account balances
  • Map the posted transaction field for field from the daily transaction: ID, type, category, source, description, amount, merchant ID, name, city, ZIP, card number and original timestamp. Only the processed timestamp is added by posting. Assemble posted transaction record
  • Take the processed timestamp from the run's clock and store it as a proper timestamp. Where it is exported or compared with legacy data, render it as YYYY-MM-DD-HH.MM.SS.hh0000 (hundredths of a second followed by '0000'). Assemble posted transaction record
4. Run daily posting and handle rejectsfinal · scheduled job · 5 requirements · 5 rules · 7 criteria

Runs the daily posting over the whole daily transaction file: it validates and posts each transaction, writes each rejected one with its 4-digit reason code and description, and reports how many were processed and rejected. It serves operations analysts, who follow up on rejects. It must never lose a rejected transaction or miscount, and it must end with return code 4 whenever anything was rejected so the schedule can react.

As an operations analyst, I want every daily transaction read, rejected ones written with their reason, and run counts reported, so that I can see what was posted and follow up on rejected transactions.

Final: signed off by Pat (acceptance), 2026-11-25 Risk high; touches audit, card_data, money. rec/CustomerAccountSelf-Service/DailyTransactionProcessingandReporting#4

Requirements

CodeClassRequirementCriteria
REQ-F-033business ruleWhile daily transactions remain in the daily transaction file, the system shall read the next one, add it to the processed count, clear its failure reason to 0, validate it and, when the failure reason stays 0, post it.AC-01, AC-02
REQ-F-034side effectWhen a daily transaction fails validation, the system shall add one to the reject count and write a reject record holding the original 350-byte transaction followed by an 80-byte trailer of the 4-digit reason code and 76-character reason description.AC-03
REQ-F-035error handlingIf writing a reject record to the daily rejects file returns a file status other than '00', then the system shall display 'ERROR WRITING TO REJECTS FILE' with the file status and abend the job with code 999.AC-04
REQ-F-036formattingWhen all daily transactions have been read, the system shall display 'TRANSACTIONS PROCESSED :' with the count of all transactions read and 'TRANSACTIONS REJECTED :' with the reject count.AC-07
REQ-F-037error handlingWhen the run finishes with a reject count greater than 0, the system shall end with job return code 4, otherwise leaving the return code unchanged.AC-05, AC-06

Business rules

RuleClassText, worked examples and evidence
Process daily transactions until input exhausted
rec/group:claude/RULE-218/1
business rule
business, high
WHILE daily transactions remain in the daily transaction file, THE Daily Transaction Posting SHALL read the next one, add it to the processed count, clear its failure reason to 0 and validate it; WHEN the failure reason stays 0 it SHALL post it by updating the category balance, then the account, then writing the transaction file.
  • Daily transaction: card on file, account found, within limit, before expiry; Failure reason after validation: 0 → The transaction is posted: category balance updated, account updated, transaction written to the transaction file.
  • Daily transactions in file: 120 → All 120 are read and validated one by one until end of file.
app/cbl/CBTRN02C.cbl:202-219, app/cbl/CBTRN02C.cbl:221-231, app/cbl/CBTRN02C.cbl:345-368, app/cbl/CBTRN02C.cbl:180-183, app/cbl/CBTRN02C.cbl:440-442, app/cbl/CBTRN02C.cbl:446-464
Process daily transactions until input exhausted
rec/group:claude/RULE-218/2
side effect
side_effect, high
WHEN a daily transaction fails validation (failure reason not 0), THE Daily Transaction Posting SHALL add one to the reject count and write a reject record to the daily rejects file holding the original 350-byte transaction followed by an 80-byte trailer of the 4-digit reason code and 76-character reason description.
  • Failure reason: 100; Reason description: 'INVALID CARD NUMBER FOUND' → A 430-byte reject record is written: the original transaction, then '0100' and 'INVALID CARD NUMBER FOUND'; the transaction is not posted.
app/cbl/CBTRN02C.cbl:202-219, app/cbl/CBTRN02C.cbl:221-231, app/cbl/CBTRN02C.cbl:345-368, app/cbl/CBTRN02C.cbl:180-183, app/cbl/CBTRN02C.cbl:440-442, app/cbl/CBTRN02C.cbl:446-464
Write rejected transaction with reason
rec/group:claude/RULE-218/3
error handling
error_handling, high
WHEN writing a reject record to the daily rejects file fails (file status not '00'), THE Daily Transaction Posting SHALL display 'ERROR WRITING TO REJECTS FILE' with the file status and abend the job with code 999.
  • Rejects file write status: '34' (out of space) → 'ERROR WRITING TO REJECTS FILE' is shown with the status and the job abends with code 999.
app/cbl/CBTRN02C.cbl:202-219, app/cbl/CBTRN02C.cbl:221-231, app/cbl/CBTRN02C.cbl:345-368, app/cbl/CBTRN02C.cbl:180-183, app/cbl/CBTRN02C.cbl:440-442, app/cbl/CBTRN02C.cbl:446-464
Rejected transactions are written to the daily rejects file with a reason trailer
rec/group:claude/RULE-218/4
formatting
display, high
WHEN all daily transactions have been read, THE Daily Transaction Posting SHALL display 'TRANSACTIONS PROCESSED :' with the count of all transactions read (posted and rejected) and 'TRANSACTIONS REJECTED :' with the reject count.
app/cbl/CBTRN02C.cbl:202-219, app/cbl/CBTRN02C.cbl:221-231, app/cbl/CBTRN02C.cbl:345-368, app/cbl/CBTRN02C.cbl:180-183, app/cbl/CBTRN02C.cbl:440-442, app/cbl/CBTRN02C.cbl:446-464
Signal rejected transactions in job outcome
rec/group:claude/RULE-218/5
error handling
error_handling, high
WHEN the run finishes with a reject count greater than 0, THE Daily Transaction Posting SHALL end with job return code 4 to signal that transactions were rejected; otherwise the return code is left unchanged.
  • Transactions rejected: 3 → The job ends with return code 4.
  • Transactions rejected: 0 → The return code is not set to 4 (normal completion, 0).
app/cbl/CBTRN02C.cbl:202-219, app/cbl/CBTRN02C.cbl:221-231, app/cbl/CBTRN02C.cbl:345-368, app/cbl/CBTRN02C.cbl:180-183, app/cbl/CBTRN02C.cbl:440-442, app/cbl/CBTRN02C.cbl:446-464

Acceptance criteria

IDCriterionChecks
AC-01Given Daily transaction: card on file, account found, within limit, before expiry; Failure reason after validation: 0
When daily transactions remain in the daily transaction file
Then The transaction is posted: category balance updated, account updated, transaction written to the transaction file.
REQ-F-033
Process daily transactions until input exhausted
worked example 1 of the rule
AC-02Given Daily transactions in file: 120
When daily transactions remain in the daily transaction file
Then All 120 are read and validated one by one until end of file.
REQ-F-033
Process daily transactions until input exhausted
worked example 2 of the rule
AC-03Given Failure reason: 100; Reason description: 'INVALID CARD NUMBER FOUND'
When a daily transaction fails validation (failure reason not 0)
Then A 430-byte reject record is written: the original transaction, then '0100' and 'INVALID CARD NUMBER FOUND'; the transaction is not posted.
REQ-F-034
Process daily transactions until input exhausted
worked example 1 of the rule
AC-04Given Rejects file write status: '34' (out of space)
When writing a reject record to the daily rejects file fails (file status not '00')
Then 'ERROR WRITING TO REJECTS FILE' is shown with the status and the job abends with code 999.
REQ-F-035
Write rejected transaction with reason
worked example 1 of the rule
AC-05Given Transactions rejected: 3
When the run finishes with a reject count greater than 0
Then The job ends with return code 4.
REQ-F-037
Signal rejected transactions in job outcome
worked example 1 of the rule
AC-06Given Transactions rejected: 0
When the run finishes with a reject count greater than 0
Then The return code is not set to 4 (normal completion, 0).
REQ-F-037
Signal rejected transactions in job outcome
worked example 2 of the rule
AC-07Given a daily transaction file of 10 transactions, of which 7 pass validation and are posted and 3 are rejected
When all daily transactions have been read
Then the run displays 'TRANSACTIONS PROCESSED :' with 10 (posted and rejected together) and 'TRANSACTIONS REJECTED :' (two spaces before the colon) with 3
REQ-F-036
Rejected transactions are written to the daily rejects file with a reason trailer
written from the rule

Screens

None: scheduled job.

Data contracts

CVACT01Y (file record; CBTRN02C), CVACT03Y (file record; CBTRN02C), CVTRA01Y (file record; CBTRN02C), CVTRA05Y (file record; CBTRN02C), CVTRA06Y (file record; CBTRN02C)

Decision tables

None.

Open questions

  • SME-039 How should the over-credit-limit check measure exposure? Today it uses cycle credits minus cycle debits plus the transaction amount, and because debits are stored as negative amounts this effectively adds payments. Is that intended, or should the check use the current balance plus the transaction amount? Should cash transactions also be checked against the cash credit limit? (Credit risk / card product owner)
  • SME-040 When posting a transaction and the account record cannot be saved (failure reason 109), should the run stop, should the transaction go to the daily rejects file, or should the posted transaction still be written? (Card business rules team)
  • SME-041 Posting one transaction updates the category balance, then the account, then writes the posted transaction. If a later step fails, must the earlier updates be reversed, so that all three succeed or fail together? (Batch operations team)

Design notes

None.

5. Calculate and post monthly interestfinal · scheduled job · 14 requirements · 13 rules · 17 criteria · 1 gap

Calculates monthly interest on each category balance (balance × rate ÷ 1200) at the rate for the account's disclosure group, falling back to the 'DEFAULT' group's rate when the group has none. It writes each interest charge as a system transaction, then adds the account's total interest to its balance and resets its cycle totals to zero. It serves the card issuer, who must charge customers the right interest. It must never use the wrong rate, charge interest at a rate of 0, or carry on when an account or card cross-reference is missing.

As a card issuer, I want monthly interest calculated on each category balance at the account group's rate and posted to the account, so that customers are charged the correct interest.

Final: signed off by Pat (acceptance), 2026-11-25 Risk high; touches card_data, money, updates_records. rec/CustomerAccountSelf-Service/DailyTransactionProcessingandReporting#5

Requirements

CodeClassRequirementCriteria
REQ-F-038design noteThe system shall read the category balance file in order, one record at a time, processing each record until the end of the file is reached.AC-01
REQ-F-039business ruleWhen a category balance belongs to a different account from the previous one, the system shall post the previous account's accumulated interest (except for the first account of the run), reset the interest total to 0, and read the new account and its card cross-reference.AC-02, AC-03
REQ-F-040business ruleWhen the system processes a category balance, the system shall look up the interest rate in the disclosure group file using the account's group, the balance's transaction type and its transaction category.AC-04
REQ-F-041business ruleWhen no group-specific rate exists for a category balance, the system shall use the 'DEFAULT' group rate.AC-05
REQ-F-042business ruleIf the interest rate lookup fails for any reason other than no group-specific rate existing, then the system shall abend.AC-05
REQ-F-043business ruleWhen a category balance has a non-zero interest rate, the system shall compute monthly interest as balance times rate divided by 1200 and add it to the account's total interest.AC-06, AC-07
REQ-F-044business ruleWhen monthly interest has been computed for a category balance, the system shall write a transaction with id run-date plus sequence suffix, type '01', category '05', source 'System', description 'Int. for a/c ' plus account id, the interest amount, the card number and the current timestamp, abending if the write fails.AC-06, AC-07, AC-08
REQ-F-045business ruleWhen the rate found for a category balance is 0, the system shall calculate no interest for that balance, write no interest transaction for it and add nothing to the account's interest total.AC-09, AC-10
REQ-F-046historical artifactWhen interest is calculated for a category balance, the system shall calculate and post no fee, as the fee step is marked 'To be implemented'.AC-11
REQ-F-047business ruleWhen the system finishes an account's category balances, the system shall add the account's total interest to its current balance, set its current-cycle credit and current-cycle debit to 0, and rewrite the account record.AC-12, AC-13
REQ-F-048business ruleWhen the end of the category balance file is reached, the system shall post the last account's accumulated interest to that account before closing its files.AC-14
REQ-F-049error handlingIf the rewrite of the account record fails, then the system shall display 'ERROR RE-WRITING ACCOUNT FILE' with the file status and abend with code 999.AC-15
REQ-F-050error handlingIf the account of a category balance is not on the account master file, then the system shall display 'ACCOUNT NOT FOUND: ' with the account number and 'ERROR READING ACCOUNT FILE' with the file status, and abend with code 999, leaving accounts already rewritten in this run as they are.AC-16
REQ-F-051error handlingIf no card cross-reference exists for the account of a category balance, then the system shall display 'ACCOUNT NOT FOUND: ' with the account number and 'ERROR READING XREF FILE' with the file status, and abend with code 999.AC-17

Business rules

RuleClassText, worked examples and evidence
Iterate category balances and post final account
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-4fb00b8880/1
design note
technical, medium
THE interest batch SHALL read the category balance file in order, one record at a time, processing each record until the end of the file is reached.
  • category balance records: 3 → All 3 records are processed, then the end of file is detected
app/cbl/CBACT04C.cbl:188-222, app/cbl/CBACT04C.cbl:325-348
Handle account change between balances
rec/group:claude/RULE-071/1
business rule
business, high
WHEN a category balance belongs to a different account from the previous one, THE interest batch SHALL post the previous account's accumulated interest (except for the first account of the run), reset the interest total to 0, and read the new account and its card cross-reference.
  • previous account: 00000000001; next balance's account: 00000000002; interest accumulated for 00000000001: 12.50 → 12.50 is posted to account 00000000001, the total restarts at 0 and account 00000000002 is read
  • first balance of the run, account: 00000000001 → Nothing is posted; account 00000000001 and its cross-reference are read
app/cbl/CBACT04C.cbl:194-206, app/cbl/CBACT04C.cbl:372-413, app/cbl/CBACT04C.cbl:628-632
Look up rate and gate interest
rec/group:claude/RULE-070/1
business rule
business, high
WHEN the interest batch processes a category balance, THE interest batch SHALL look up the interest rate in the disclosure group file using the account's group, the balance's transaction type and its transaction category.
  • account group: GOLD; transaction type: 01; transaction category: 0001 → The rate is read from the disclosure group record keyed GOLD / 01 / 0001
app/cbl/CBACT04C.cbl:210-217, app/cbl/CBACT04C.cbl:415-440, app/cbl/CBACT04C.cbl:462-468
Determine group rate with default fallback
rec/agreed:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-cf95cd423c/1
business rule
business, medium
WHEN an interest rate is needed for a category balance, THE Interest Rate Lookup SHALL retrieve the group-specific rate, fall back to the 'DEFAULT' group rate when no group-specific rate exists, and abend on any other lookup failure (physical store: `DISCGRP-FILE`)
  • DISCGRP read status: '35' → 'ERROR READING DISCLOSURE GROUP FILE' displayed and the job abends.
app/cbl/CBACT04C.cbl:415-416,422-426,428-430,434-439,443-444,452-454,458-459, app/cbl/CBACT04C.cbl:415-460
Compute monthly category interest
rec/agreed:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-80b16a6fb4/1
business rule
business, medium
WHEN a category balance has a non-zero interest rate, THE Interest Calculation SHALL compute monthly interest as balance times rate divided by 1200, add it to the account's total interest, and generate an interest transaction
  • Category balance: 1200.00; Interest rate: 18.00 → Monthly interest = 1200.00 x 18.00 / 1200 = 18.00, added to the account's total interest and an interest transaction written.
  • Category balance: 500.00; Interest rate: 0 → No interest computed and no transaction written.
app/cbl/CBACT04C.cbl:462,464-465,467-468, app/cbl/CBACT04C.cbl:462-470
Write system interest transaction
rec/agreed:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-b2b4b9d2cf/1
side effect
side_effect, medium
WHEN monthly interest has been computed for a category balance, THE Interest Transaction Generation SHALL write a transaction with id run-date plus sequence suffix, type '01', category '05', source 'System', description 'Int. for a/c ' plus account id, the interest amount, the card number and the current timestamp, abending if the write fails (physical store: `TRANSACT-FILE`)
  • TRANSACT write status: not '00' → 'ERROR WRITING TRANSACTION RECORD' displayed and the job abends.
app/cbl/CBACT04C.cbl:473-474,476-480,482-498,500,507-509,513-514, app/cbl/CBACT04C.cbl:473-515
Look up rate and gate interest
rec/group:claude/RULE-070/2
business rule
business, high
WHEN the rate found for a category balance is 0, THE interest batch SHALL calculate no interest for that balance, write no interest transaction for it and add nothing to the account's interest total.
  • category balance: 500.00; disclosure group rate: 0.00 → No interest transaction is written and the account's interest total is unchanged
  • category balance: 500.00; disclosure group rate: 18.00 → Interest is calculated for the balance and an interest transaction is written
app/cbl/CBACT04C.cbl:210-217, app/cbl/CBACT04C.cbl:415-440, app/cbl/CBACT04C.cbl:462-468
Fee assessment not implemented
rec/claude:claude/RULE-240/1
historical artifact
leftover, medium
WHEN interest is calculated for a category balance, THE interest batch SHALL run a fee step that does nothing, so no fee is calculated or posted (the fee step is marked 'To be implemented').
  • category balance: 500.00; disclosure group rate: 18.00 → Interest is calculated; no fee transaction is written and no fee is added to the account
app/cbl/CBACT04C.cbl:214-217, app/cbl/CBACT04C.cbl:518-520, app/jcl/INTCALC.jcl:20
Post accumulated interest to account
rec/group:claude/RULE-158/1
business rule
business, high
WHEN the interest batch finishes an account's category balances, THE interest batch SHALL add the account's total interest to its current balance, set its current-cycle credit and current-cycle debit to 0, and rewrite the account record.
  • current balance: 1,000.00; total interest: 15.00; current-cycle credit: 300.00; current-cycle debit: 1,200.00 → Current balance 1,015.00, current-cycle credit 0.00, current-cycle debit 0.00, record rewritten
  • current balance: 200.00; total interest: 0.00 (all rates zero); current-cycle debit: 50.00 → Current balance stays 200.00 and current-cycle debit is set to 0.00
app/cbl/CBACT04C.cbl:350-370, app/cbl/CBACT04C.cbl:628-632
Iterate category balances and post final account
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-4fb00b8880/2
business rule
business, medium
WHEN the end of the category balance file is reached, THE interest batch SHALL post the last account's accumulated interest to that account before closing its files.
  • last account in the file: 00000000050; accumulated interest: 8.25 → 8.25 is added to account 00000000050's current balance and the account is rewritten
app/cbl/CBACT04C.cbl:188-222, app/cbl/CBACT04C.cbl:325-348
Post accumulated interest to account
rec/group:claude/RULE-158/2
error handling
error_handling, high
WHEN the rewrite of the account record fails, THE interest batch SHALL display 'ERROR RE-WRITING ACCOUNT FILE' with the file status and abend with code 999.
  • account rewrite file status: 23 → 'ERROR RE-WRITING ACCOUNT FILE' is displayed with the status and the run abends with code 999
app/cbl/CBACT04C.cbl:350-370, app/cbl/CBACT04C.cbl:628-632
Account and card cross-reference must exist for every category balance
rec/group:claude/RULE-071/2
error handling
error_handling, high
WHEN the account of a category balance is not on the account master file, THE interest batch SHALL display 'ACCOUNT NOT FOUND: ' with the account number and 'ERROR READING ACCOUNT FILE' with the file status, and abend with code 999, leaving accounts already rewritten in this run as they are.
app/cbl/CBACT04C.cbl:194-206, app/cbl/CBACT04C.cbl:372-413, app/cbl/CBACT04C.cbl:628-632
Account and card cross-reference must exist for every category balance
rec/group:claude/RULE-071/3
error handling
error_handling, high
WHEN no card cross-reference exists for the account of a category balance, THE interest batch SHALL display 'ACCOUNT NOT FOUND: ' with the account number and 'ERROR READING XREF FILE' with the file status, and abend with code 999.
app/cbl/CBACT04C.cbl:194-206, app/cbl/CBACT04C.cbl:372-413, app/cbl/CBACT04C.cbl:628-632

Acceptance criteria

IDCriterionChecks
AC-01Given category balance records: 3
When interest batch runs
Then All 3 records are processed, then the end of file is detected
REQ-F-038
Iterate category balances and post final account
worked example 1 of the rule
AC-02Given previous account: 00000000001; next balance's account: 00000000002; interest accumulated for 00000000001: 12.50
When a category balance belongs to a different account from the previous one
Then 12.50 is posted to account 00000000001, the total restarts at 0 and account 00000000002 is read
REQ-F-039
Handle account change between balances
worked example 1 of the rule
AC-03Given first balance of the run, account: 00000000001
When a category balance belongs to a different account from the previous one
Then Nothing is posted; account 00000000001 and its cross-reference are read
REQ-F-039
Handle account change between balances
worked example 2 of the rule
AC-04Given account group: GOLD; transaction type: 01; transaction category: 0001
When the interest batch processes a category balance
Then The rate is read from the disclosure group record keyed GOLD / 01 / 0001
REQ-F-040
Look up rate and gate interest
worked example 1 of the rule
AC-05Given DISCGRP read status: '35'
When an interest rate is needed for a category balance
Then 'ERROR READING DISCLOSURE GROUP FILE' displayed and the job abends.
REQ-F-041, REQ-F-042
Determine group rate with default fallback
worked example 1 of the rule
AC-06Given Category balance: 1200.00; Interest rate: 18.00
When a category balance has a non-zero interest rate
Then Monthly interest = 1200.00 x 18.00 / 1200 = 18.00, added to the account's total interest and an interest transaction written.
REQ-F-043, REQ-F-044
Compute monthly category interest
worked example 1 of the rule
AC-07Given Category balance: 500.00; Interest rate: 0
When a category balance has a non-zero interest rate
Then No interest computed and no transaction written.
REQ-F-043, REQ-F-044
Compute monthly category interest
worked example 2 of the rule
AC-08Given TRANSACT write status: not '00'
When monthly interest has been computed for a category balance
Then 'ERROR WRITING TRANSACTION RECORD' displayed and the job abends.
REQ-F-044
Write system interest transaction
worked example 1 of the rule
AC-09Given category balance: 500.00; disclosure group rate: 0.00
When the rate found for a category balance is 0
Then No interest transaction is written and the account's interest total is unchanged
REQ-F-045
Look up rate and gate interest
worked example 1 of the rule
AC-10Given category balance: 500.00; disclosure group rate: 18.00
When the rate found for a category balance is 0
Then Interest is calculated for the balance and an interest transaction is written
REQ-F-045
Look up rate and gate interest
worked example 2 of the rule
AC-11Given category balance: 500.00; disclosure group rate: 18.00
When interest is calculated for a category balance
Then Interest is calculated; no fee transaction is written and no fee is added to the account
REQ-F-046
Fee assessment not implemented
worked example 1 of the rule
AC-12Given current balance: 1,000.00; total interest: 15.00; current-cycle credit: 300.00; current-cycle debit: 1,200.00
When the interest batch finishes an account's category balances
Then Current balance 1,015.00, current-cycle credit 0.00, current-cycle debit 0.00, record rewritten
REQ-F-047
Post accumulated interest to account
worked example 1 of the rule
AC-13Given current balance: 200.00; total interest: 0.00 (all rates zero); current-cycle debit: 50.00
When the interest batch finishes an account's category balances
Then Current balance stays 200.00 and current-cycle debit is set to 0.00
REQ-F-047
Post accumulated interest to account
worked example 2 of the rule
AC-14Given last account in the file: 00000000050; accumulated interest: 8.25
When the end of the category balance file is reached
Then 8.25 is added to account 00000000050's current balance and the account is rewritten
REQ-F-048
Iterate category balances and post final account
worked example 1 of the rule
AC-15Given account rewrite file status: 23
When the rewrite of the account record fails
Then 'ERROR RE-WRITING ACCOUNT FILE' is displayed with the status and the run abends with code 999
REQ-F-049
Post accumulated interest to account
worked example 1 of the rule
AC-16Given an interest run in which account 00000000001 has already been rewritten with its interest, and the next category balance belongs to account 00000000099, which is not on the account master
When the run reaches that category balance and looks up account 00000000099
Then it displays 'ACCOUNT NOT FOUND: ' with 00000000099 and 'ERROR READING ACCOUNT FILE' with the file status, abends with code 999, and account 00000000001 keeps the interest already posted to it
REQ-F-050
Account and card cross-reference must exist for every category balance
written from the rule
AC-17Given a category balance for account 00000000099, which has no card cross-reference
When the run looks up the card cross-reference for account 00000000099
Then it displays 'ACCOUNT NOT FOUND: ' with 00000000099 and 'ERROR READING XREF FILE' with the file status, and abends with code 999
REQ-F-051
Account and card cross-reference must exist for every category balance
written from the rule

Screens

None: scheduled job.

Data contracts

CVACT01Y (file record; CBACT04C), CVACT03Y (file record; CBACT04C), CVTRA01Y (file record; CBACT04C), CVTRA02Y (file record; CBACT04C), CVTRA05Y (file record; CBACT04C)

Decision tables

Interest rate lookup and interest outcome

Rate lookup resultRate foundInterest actionRule
Group-specific rate foundNon-zeroCompute balance × rate / 1200, add to account total, write interest transactionrec/agreed:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-80b16a6fb4/1
No group-specific rate-Use the 'DEFAULT' group raterec/agreed:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-cf95cd423c/1
Other lookup failure-Abendrec/agreed:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-cf95cd423c/1
Rate found0No interest, no interest transaction, nothing added to account totalrec/group:claude/RULE-070/2
No group-specific rate and no 'DEFAULT' group rate-Gap: Rules do not say explicitly whether a missing 'DEFAULT' group rate counts as 'any other lookup failure' and abends.

Open questions

  • SME-012 Interest transaction IDs are made from the run date plus a sequence number. What type and length must the ID and the sequence part have, and what should happen if the sequence runs out of digits? (Data architecture team)
  • SME-013 If the interest run fails, the interest transactions are discarded but accounts already updated with interest are not rolled back. Should account updates and interest transactions be saved together as one unit, and how should a restart avoid charging interest twice? (Batch operations)
  • SME-015 Is the interest run the official cycle-close event that resets each account's cycle credit and debit totals, and should accounts with no category balances also have their cycle totals reset? (Card product / finance owner)
  • DEF-032 Is this intended? An abend part-way through leaves earlier accounts' balances already rewritten with interest, but the job's TRANSACT output is catalogued with abnormal disposition DELETE, so the interest transactions for those accounts are discarded; a rerun would post interest to them again. (Subject-matter expert)
  • DEF-103 Is this intended? The final posting at end of file runs even when the category balance file is empty, so no account has been read and the program tries to rewrite an empty account record, which fails and abends the run with 'ERROR RE-WRITING ACCOUNT FILE'. (Subject-matter expert)
  • DEF-180 Confirm this is deliberate: Fees are never assessed although the job describes itself as computing interest and fees; the fee step is an empty stub. (Subject-matter expert)

Design notes

  • Read all category balances in key order (account ID, then type, then category) as one sorted stream, so each account's balances come together. The per-account interest total and the account rewrite depend on that grouping. Iterate category balances and post final account
6. Produce daily transaction reportfinal · online and scheduled job · 5 requirements · 4 rules · 8 criteria

Produces the Daily Transaction Report for a date range. It lists the transactions in range by card, with the transaction type and category descriptions, totals per account, and page totals every 20 lines. It serves operations analysts reviewing the day's activity. It must never print a transaction without its reference data (it stops instead), and it must put the right date range in the heading.

As an operations analyst, I want a paginated daily transaction report with reference descriptions and account totals, so that I can review the day's transactions by card and account.

Final: signed off by Pat (acceptance), 2026-11-25 Risk high; touches card_data, money, reporting_only. rec/CustomerAccountSelf-Service/DailyTransactionProcessingandReporting#6

Requirements

CodeClassRequirementCriteria
REQ-F-052formattingWhen the first transaction of the run is about to be printed, the system shall mark the report as started, put the reporting start and end dates into the heading, and print 'DALYREPT' 'Daily Transaction Report' 'Date Range: <start> to <end>', a blank line, the column headings and a dashed line.AC-08
REQ-F-053formattingWhile transactions remain to be processed, when the transaction's card number differs from the current card number, the system shall write the account total and separator lines if the report has already started, reset the account total to zero, make the new card current and look up its cross-reference.AC-01, AC-02, AC-03
REQ-F-054design noteWhen an in-range transaction is ready for reporting, the system shall retrieve the account for the card, the transaction type description and the category description by type and category code.AC-04, AC-05, AC-06
REQ-F-055design noteIf the card cross-reference, transaction type or transaction category record is not found for a reported transaction, then the system shall abend the run.AC-04, AC-05, AC-06
REQ-F-056formattingWhen a detail line is about to be printed and the count of lines printed so far, headings, totals and separators included, is an exact multiple of 20, the system shall first print the 'Page Total' line and a dashed line, then the report title line, a blank line, the column headings and a dashed line.AC-07

Business rules

RuleClassText, worked examples and evidence
Print report heading on first write
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-f37acc3f90/1
formatting
display, medium
WHEN the first transaction of the run is about to be printed, THE Daily Transaction Report SHALL mark the report as started, put the reporting start and end dates into the heading, and print the headings: 'DALYREPT' 'Daily Transaction Report' 'Date Range: <start> to <end>', a blank line, the column headings and a dashed line.
app/cbl/CBTRN03C.cbl:274-280, app/cbl/CBTRN03C.cbl:324-341, app/cpy/CVTRA07Y.cpy:4-48
Print account total on card change
rec/agreed:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-c3d4e76bda/1
formatting
display, medium
WHILE transactions remain to be processed (`END-OF-FILE` = 'N'), WHEN the transaction's card number differs from the current card number, THE Account Break Reporting SHALL write the account total and separator lines when the report has already started ('N'), reset the account total to zero, make the new card current, and look up its cross-reference
  • WS-CURR-CARD-NUM: 4111111111111111; TRAN-CARD-NUM: 4222222222222222; WS-FIRST-TIME: N; WS-ACCOUNT-TOTAL: 350.00 → An account total line of 350.00 and a separator line are written, the account total resets to 0, and card 4222222222222222 is looked up in the cross-reference.
  • TRAN-CARD-NUM: 4111111111111111; WS-FIRST-TIME: Y → No account total line is written (first card of the report); the card becomes current and is looked up.
  • WS-CURR-CARD-NUM: 4111111111111111; TRAN-CARD-NUM: 4111111111111111 → No account break: no total line, the total keeps accumulating.
app/cbl/CBTRN03C.cbl:179,181-188,306-314, app/cbl/CBTRN03C.cbl:181-188
Enrich transaction with reference data
rec/agreed:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-3aa9ad025b/1
design note
technical, medium
WHEN an in-range transaction is ready for reporting, THE Transaction Reference Enrichment SHALL retrieve the account for the card, the transaction type description and the category description by type and category code, and abend the run when any reference record is not found (physical stores: `TRANCATG-FILE`, `TRANTYPE-FILE`, `XREF-FILE`)
  • TRAN-CARD-NUM: 4111111111111111 (in cross-reference); TRAN-TYPE-CD: 01; TRAN-CAT-CD: 0001 → The report line carries the account id, the type description and the category description for 01/0001.
  • TRAN-CARD-NUM: 9999999999999999 (not in cross-reference) → 'INVALID CARD NUMBER : ' is displayed with the card number, IO status 23 is shown and the run abends.
  • TRAN-TYPE-CD: 99 (not on file) → 'INVALID TRANSACTION TYPE : ' is displayed with the type, IO status 23 is shown and the run abends.
app/cbl/CBTRN03C.cbl:189-195,484-486,490-491,494-496,500-501,504-506,510-511, app/cbl/CBTRN03C.cbl:484-512
Report pagination every 20 lines
rec/claude:claude/RULE-243/1
formatting
display, medium
WHEN a detail line is about to be printed and the count of lines printed so far (headings, totals and separators included) is an exact multiple of 20, THE Daily Transaction Report SHALL first print the 'Page Total' line and a dashed line, then the report title line, a blank line, the column headings and a dashed line.
  • lines printed so far: 19; next transaction: for a new card, so 2 account-total lines are printed first → The count passes from 19 to 21 without being checked at 20, so no page break occurs until the count reaches 40.
app/cbl/CBTRN03C.cbl:129-132, app/cbl/CBTRN03C.cbl:181-184, app/cbl/CBTRN03C.cbl:282-289, app/cbl/CBTRN03C.cbl:293-341, app/cbl/CBTRN03C.cbl:373

Acceptance criteria

IDCriterionChecks
AC-01Given WS-CURR-CARD-NUM: 4111111111111111; TRAN-CARD-NUM: 4222222222222222; WS-FIRST-TIME: N; WS-ACCOUNT-TOTAL: 350.00
When transactions remain to be processed (`END-OF-FILE` = 'N'), WHEN the transaction's card number differs from the current card number
Then An account total line of 350.00 and a separator line are written, the account total resets to 0, and card 4222222222222222 is looked up in the cross-reference.
REQ-F-053
Print account total on card change
worked example 1 of the rule
AC-02Given TRAN-CARD-NUM: 4111111111111111; WS-FIRST-TIME: Y
When transactions remain to be processed (`END-OF-FILE` = 'N'), WHEN the transaction's card number differs from the current card number
Then No account total line is written (first card of the report); the card becomes current and is looked up.
REQ-F-053
Print account total on card change
worked example 2 of the rule
AC-03Given WS-CURR-CARD-NUM: 4111111111111111; TRAN-CARD-NUM: 4111111111111111
When transactions remain to be processed (`END-OF-FILE` = 'N'), WHEN the transaction's card number differs from the current card number
Then No account break: no total line, the total keeps accumulating.
REQ-F-053
Print account total on card change
worked example 3 of the rule
AC-04Given TRAN-CARD-NUM: 4111111111111111 (in cross-reference); TRAN-TYPE-CD: 01; TRAN-CAT-CD: 0001
When an in-range transaction is ready for reporting
Then The report line carries the account id, the type description and the category description for 01/0001.
REQ-F-054, REQ-F-055
Enrich transaction with reference data
worked example 1 of the rule
AC-05Given TRAN-CARD-NUM: 9999999999999999 (not in cross-reference)
When an in-range transaction is ready for reporting
Then 'INVALID CARD NUMBER : ' is displayed with the card number, IO status 23 is shown and the run abends.
REQ-F-054, REQ-F-055
Enrich transaction with reference data
worked example 2 of the rule
AC-06Given TRAN-TYPE-CD: 99 (not on file)
When an in-range transaction is ready for reporting
Then 'INVALID TRANSACTION TYPE : ' is displayed with the type, IO status 23 is shown and the run abends.
REQ-F-054, REQ-F-055
Enrich transaction with reference data
worked example 3 of the rule
AC-07Given lines printed so far: 19; next transaction: for a new card, so 2 account-total lines are printed first
When a detail line is about to be printed and the count of lines printed so far (headings, totals and separators included) is an exact multiple of 20
Then The count passes from 19 to 21 without being checked at 20, so no page break occurs until the count reaches 40.
REQ-F-056
Report pagination every 20 lines
worked example 1 of the rule
AC-08Given a report run with start date 2022-06-01 and end date 2022-06-30 that has not yet printed anything
When the first transaction of the run is about to be printed
Then the report is marked as started, and before the transaction it prints 'DALYREPT' 'Daily Transaction Report' 'Date Range: 2022-06-01 to 2022-06-30', then a blank line, the column headings and a dashed line; later transactions do not print this heading again on first-write grounds
REQ-F-052
Print report heading on first write
written from the rule

Screens

None: online and scheduled job.

Data contracts

CVACT03Y (file record; CBTRN03C), CVTRA03Y (file record; CBTRN03C), CVTRA04Y (file record; CBTRN03C), CVTRA05Y (file record; CBTRN03C), CVTRA07Y (working storage; CBTRN03C)

Decision tables

None.

Open questions

  • SME-043 The transaction report extract selects transactions using fixed dates (2022-01-01 to 2022-07-06), but the report itself takes its start and end dates from the run's date parameter. Should the extract period come from the same run parameter, and what should happen if the two periods differ? (Reporting owner)
  • SME-044 When the transaction report meets a transaction outside the reporting period, the program stops reading entirely, so later in-range transactions and the grand total are lost (the input is sorted by card, not date). Should out-of-range transactions just be skipped instead? Is it acceptable to rely only on the earlier sort step's date filter? (Reporting owner / batch operations lead)
  • SME-045 At the end of the transaction report, the last transaction's amount is added to the page, account and grand totals a second time, which overstates them. Is this double-counting intended, or should it be corrected? How critical are these totals? (Finance reporting owner)
  • SME-046 Should the transaction report print an 'Account Total' line for the last card at the end of the report? (Reporting owner)
  • SME-047 What page size does the transaction report need? Is 20 lines per page a business requirement, and should a page break happen whenever that size is reached, rather than only on exact multiples? (Reporting owner)
  • DEF-182 Is this intended? Account-total and page-total blocks add 2 lines at once, so the counter can skip over a multiple of 20 and a page runs on to the next multiple. Page length is therefore irregular, at up to about 40 lines. (Subject-matter expert)

Design notes

  • For each in-range transaction, look up the card's cross-reference (giving the account) by card number, the type description by type code, and the category description by type and category code. A missing reference record must fail the report run rather than print a blank. The type and category tables are small and can be cached for the run. Enrich transaction with reference data
7. Post daily transactions and record rejectsfinal · scheduled job · 3 requirements · 2 rules · 3 criteria

The scheduled daily posting job. It takes the day's card transactions, posts accepted ones to the transaction master, the account records and the category balances, and keeps rejected ones in a new daily rejects file of 430-byte records (the 350-byte transaction plus an 80-byte reason trailer). It serves the card operations team. It must never leave a partial rejects file behind when the job fails; the rejects file is kept only when the job ends normally.

As a card operations team, I want each day's card transactions posted to the transaction master and account records, with rejected transactions kept separately, so that balances reflect the day's activity and rejects can be investigated.

Final: signed off by Pat (acceptance), 2026-11-25 Risk high; touches card_data, money, updates_records. rec/CustomerAccountSelf-Service/DailyTransactionProcessingandReporting#7

Requirements

CodeClassRequirementCriteria
REQ-F-057design noteThe system shall run the posting program (CBTRN02C) to read the daily transaction file ('AWS.M2.CARDDEMO.DALYTRAN.PS') and the card cross-reference ('AWS.M2.CARDDEMO.CARDXREF.VSAM.KSDS'), write posted transactions to the transaction master ('AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS'), and update the account master ('AWS.M2.CARDDEMO.ACCTDATA.VSAM.KSDS') and the transaction category balances ('AWS.M2.CARDDEMO.TCATBALF.VSAM.KSDS').AC-01
REQ-F-058side effectThe system shall write rejected transactions to a new generation of the daily rejects file ('AWS.M2.CARDDEMO.DALYREJS(+1)') in fixed 430-byte records made of the 350-byte transaction plus an 80-byte validation trailer.AC-02, AC-03
REQ-N-001side effectIf the posting step abends, then the system shall delete the new daily rejects generation, keeping it only when the step ends normally.AC-02, AC-03

Business rules

RuleClassText, worked examples and evidence
Post daily transactions and record rejects
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-9f70648d88/1
design note
technical, medium
THE Daily Transaction Posting job SHALL run the posting program (CBTRN02C) to read the daily transaction file ('AWS.M2.CARDDEMO.DALYTRAN.PS') and the card cross-reference ('AWS.M2.CARDDEMO.CARDXREF.VSAM.KSDS'), write posted transactions to the transaction master ('AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS'), and update the account master ('AWS.M2.CARDDEMO.ACCTDATA.VSAM.KSDS') and the transaction category balances ('AWS.M2.CARDDEMO.TCATBALF.VSAM.KSDS').
  • daily transaction file: 200 transactions for known cards → the transactions are written to the transaction master, and account balances and category balances are updated
app/jcl/POSTTRAN.jcl:19-42, app/cbl/CBTRN02C.cbl:80-84, app/cbl/CBTRN02C.cbl:238, app/cbl/CBTRN02C.cbl:256, app/cbl/CBTRN02C.cbl:275, app/cbl/CBTRN02C.cbl:293
Post daily transactions and record rejects
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-9f70648d88/2
side effect
side_effect, medium
THE Daily Transaction Posting job SHALL write rejected transactions to a new generation of the daily rejects file ('AWS.M2.CARDDEMO.DALYREJS(+1)'), in fixed 430-byte records (350-byte transaction plus an 80-byte validation trailer). The generation is kept if the step ends normally and deleted if the step abends.
  • rejected transactions: 3; step outcome: ends normally → a new DALYREJS generation with 3 records of 430 bytes is cataloged
  • step outcome: abends → the new DALYREJS generation is deleted
app/jcl/POSTTRAN.jcl:19-42, app/cbl/CBTRN02C.cbl:80-84, app/cbl/CBTRN02C.cbl:238, app/cbl/CBTRN02C.cbl:256, app/cbl/CBTRN02C.cbl:275, app/cbl/CBTRN02C.cbl:293

Acceptance criteria

IDCriterionChecks
AC-01Given daily transaction file: 200 transactions for known cards
When Daily Transaction Posting job runs
Then the transactions are written to the transaction master, and account balances and category balances are updated
REQ-F-057
Post daily transactions and record rejects
worked example 1 of the rule
AC-02Given rejected transactions: 3; step outcome: ends normally
When Daily Transaction Posting job runs
Then a new DALYREJS generation with 3 records of 430 bytes is cataloged
REQ-F-058, REQ-N-001
Post daily transactions and record rejects
worked example 1 of the rule
AC-03Given step outcome: abends
When Daily Transaction Posting job runs
Then the new DALYREJS generation is deleted
REQ-F-058, REQ-N-001
Post daily transactions and record rejects
worked example 2 of the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-039 How should the over-credit-limit check measure exposure? Today it uses cycle credits minus cycle debits plus the transaction amount, and because debits are stored as negative amounts this effectively adds payments. Is that intended, or should the check use the current balance plus the transaction amount? Should cash transactions also be checked against the cash credit limit? (Credit risk / card product owner)

Design notes

  • Run a scheduled daily job that reads the day's transaction feed and, for each transaction, uses the card cross-reference and posts to the transaction master, account and category balance tables. The job needs read access to the feed and cross-reference, and write access to transactions, accounts and category balances. Schedule it after the daily feed arrives and before any jobs that read the posted data. Post daily transactions and record rejects
8. Calculate monthly interest as system transactionsfinal · scheduled job · 4 requirements · 3 rules · 4 criteria

The scheduled monthly interest job, run at billing-cycle close for a supplied processing date. It turns interest on category balances into system transactions and writes them to a new system transaction file of 350-byte records. It serves the card operations team. It must run before transactions are combined, and it must never leave a partial system transaction file when it fails.

As a card operations team, I want monthly interest calculated at billing-cycle close and produced as system transactions, so that interest charges are added to the transaction history before transactions are combined.

Final: signed off by Pat (acceptance), 2026-11-25 Risk high; touches card_data, money. rec/CustomerAccountSelf-Service/DailyTransactionProcessingandReporting#8

Requirements

CodeClassRequirementCriteria
REQ-F-059design noteThe system shall run the interest program (CBACT04C) with the processing date supplied as an external parameter ('2022071800' in the delivered job), reading the transaction category balances, card cross-reference (by card and by account), account master and disclosure groups in shared mode.AC-01
REQ-F-060design noteThe system shall write the generated system transactions to a new generation of the system transaction file (AWS.M2.CARDDEMO.SYSTRAN) of fixed 350-byte records.AC-02, AC-03
REQ-N-002design noteIf the interest step fails, then the system shall delete the new system transaction generation, cataloguing it only when the step ends normally.AC-02, AC-03
REQ-F-061business ruleWhen the billing cycle closes each month, the system shall run the interest calculation before the job that combines the system transactions (COMBTRAN).AC-04

Business rules

RuleClassText, worked examples and evidence
Run interest step producing system transactions
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-8e80166047/1
design note
technical, medium
THE Interest Calculation job SHALL run the interest program (CBACT04C) with the processing date supplied as an external parameter, '2022071800' in the delivered job, reading the transaction category balances, card cross-reference (by card and by account), account master and disclosure groups in shared mode.
  • Job parameter: '2022071800' → The interest program runs with processing date 2022071800 and the input files remain open to other readers
app/jcl/INTCALC.jcl:22-41, app/cbl/CBACT04C.cbl:28-56, app/cbl/CBACT04C.cbl:175-180, app/cbl/CBACT04C.cbl:473-480, app/scheduler/CardDemo.controlm:69-80
Run interest step producing system transactions
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-8e80166047/2
design note
technical, medium
THE Interest Calculation job SHALL write the generated system transactions to a new generation of the system transaction file (AWS.M2.CARDDEMO.SYSTRAN) of fixed 350-byte records, cataloged when the step ends normally and deleted if the step fails.
  • Step outcome: normal end → A new SYSTRAN generation is cataloged
  • Step outcome: abend → The new SYSTRAN generation is deleted
app/jcl/INTCALC.jcl:22-41, app/cbl/CBACT04C.cbl:28-56, app/cbl/CBACT04C.cbl:175-180, app/cbl/CBACT04C.cbl:473-480, app/scheduler/CardDemo.controlm:69-80
Run interest step producing system transactions
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-8e80166047/3
business rule
business, medium
THE Interest Calculation job SHALL run monthly, at billing-cycle close, before the job that combines the system transactions (COMBTRAN).
  • Billing cycle: closes 31 July → The interest job runs once for that cycle, then COMBTRAN runs
app/jcl/INTCALC.jcl:22-41, app/cbl/CBACT04C.cbl:28-56, app/cbl/CBACT04C.cbl:175-180, app/cbl/CBACT04C.cbl:473-480, app/scheduler/CardDemo.controlm:69-80

Acceptance criteria

IDCriterionChecks
AC-01Given Job parameter: '2022071800'
When Interest Calculation job runs
Then The interest program runs with processing date 2022071800 and the input files remain open to other readers
REQ-F-059
Run interest step producing system transactions
worked example 1 of the rule
AC-02Given Step outcome: normal end
When Interest Calculation job runs
Then A new SYSTRAN generation is cataloged
REQ-F-060, REQ-N-002
Run interest step producing system transactions
worked example 1 of the rule
AC-03Given Step outcome: abend
When Interest Calculation job runs
Then The new SYSTRAN generation is deleted
REQ-F-060, REQ-N-002
Run interest step producing system transactions
worked example 2 of the rule
AC-04Given Billing cycle: closes 31 July
When Interest Calculation job runs
Then The interest job runs once for that cycle, then COMBTRAN runs
REQ-F-061
Run interest step producing system transactions
worked example 1 of the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-012 Interest transaction IDs are made from the run date plus a sequence number. What type and length must the ID and the sequence part have, and what should happen if the sequence runs out of digits? (Data architecture team)
  • SME-013 If the interest run fails, the interest transactions are discarded but accounts already updated with interest are not rolled back. Should account updates and interest transactions be saved together as one unit, and how should a restart avoid charging interest twice? (Batch operations)

Design notes

  • Run a scheduled monthly job that takes the processing date as a run parameter (the delivered job used '2022071800') rather than the system clock, so a run can be repeated or backdated. It reads category balances, the card cross-reference by card and by account, accounts and disclosure groups without locking out other readers. Run interest step producing system transactions
  • Write the generated interest transactions as one new, versioned batch output (a new file version or a batch-tagged table load) in the 350-byte transaction layout. Publish it only if the job succeeds and discard it on failure, so the combine step never picks up a partial batch. Run interest step producing system transactions
9. Consolidate transactions into the transaction masterfinal · scheduled job · 3 requirements · 3 rules · 3 criteria

Combines the latest transaction backup with the latest system-generated (interest) transactions into one set sorted by transaction ID, then loads that set into the transaction master. It serves the card operations team, so the master holds all activity including interest. It must never publish a combined set from a failed sort, and it must keep the transaction ID order.

As a card operations team, I want backed-up and system-generated transactions combined in transaction ID order and loaded into the transaction master, so that the master holds all activity including interest.

Final: signed off by Pat (acceptance), 2026-11-25 Risk high; touches money, updates_records. rec/CustomerAccountSelf-Service/DailyTransactionProcessingandReporting#9

Requirements

CodeClassRequirementCriteria
REQ-F-062design noteThe system shall combine the latest transaction backup (AWS.M2.CARDDEMO.TRANSACT.BKUP) with the latest system-generated transactions (AWS.M2.CARDDEMO.SYSTRAN) into a new generation of AWS.M2.CARDDEMO.TRANSACT.COMBINED, sorted ascending by transaction ID (first 16 characters).AC-01
REQ-N-003error handlingIf the sort step fails, then the system shall delete the new combined generation instead of cataloguing it.AC-02
REQ-F-063design noteThe system shall then copy every record of the new combined transaction generation (AWS.M2.CARDDEMO.TRANSACT.COMBINED) into the keyed transaction master (AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS).AC-03

Business rules

RuleClassText, worked examples and evidence
Combine and order transactions by identifier
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-811e18fab2/1
design note
technical, medium
THE transaction consolidation job SHALL combine the latest transaction backup (AWS.M2.CARDDEMO.TRANSACT.BKUP) with the latest system-generated transactions (AWS.M2.CARDDEMO.SYSTRAN) into a new generation of AWS.M2.CARDDEMO.TRANSACT.COMBINED, sorted ascending by transaction ID (first 16 characters).
  • backup transaction ID: 0000000000000005; system transaction ID: 0000000000000003 → The combined file lists 0000000000000003 before 0000000000000005
app/jcl/COMBTRAN.jcl:22-37
Combine and order transactions by identifier
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-811e18fab2/2
error handling
error_handling, medium
WHEN the sort step fails, THE transaction consolidation job SHALL delete the new combined generation instead of cataloguing it.
  • sort step: abends → No new generation of AWS.M2.CARDDEMO.TRANSACT.COMBINED is catalogued
app/jcl/COMBTRAN.jcl:22-37
Load combined transactions into transaction master
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-7e80e8abea/1
design note
technical, medium
THE transaction consolidation job SHALL then copy every record of the new combined transaction generation (AWS.M2.CARDDEMO.TRANSACT.COMBINED) into the keyed transaction master (AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS).
  • records in combined file: 1,250 → All 1,250 records are loaded into the transaction master in transaction-ID order
app/jcl/COMBTRAN.jcl:41-48, app/jcl/COMBTRAN.jcl:33-37

Acceptance criteria

IDCriterionChecks
AC-01Given backup transaction ID: 0000000000000005; system transaction ID: 0000000000000003
When transaction consolidation job runs
Then The combined file lists 0000000000000003 before 0000000000000005
REQ-F-062
Combine and order transactions by identifier
worked example 1 of the rule
AC-02Given sort step: abends
When the sort step fails
Then No new generation of AWS.M2.CARDDEMO.TRANSACT.COMBINED is catalogued
REQ-N-003
Combine and order transactions by identifier
worked example 1 of the rule
AC-03Given records in combined file: 1,250
When transaction consolidation job runs
Then All 1,250 records are loaded into the transaction master in transaction-ID order
REQ-F-063
Load combined transactions into transaction master
worked example 1 of the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-125 When combined transactions are loaded into the transaction master, what should happen if a transaction ID already exists there: replace it, keep the existing record, or fail the load? (Business analyst / data owner)
  • SME-126 When the transaction backup file and the system transaction file are merged, how should two records with the same transaction ID be handled: keep both, keep one, or treat it as an error? (Business analyst)
  • SME-127 While the transaction combine-and-load job runs, may other processes read or update the input files and the transaction master? (Batch operations team)
  • DEF-109 Is this intended? The load step has no return-code test on the sort step. A failed sort does not stop the job; the step is attempted anyway and fails only when the new generation it needs cannot be found. (Subject-matter expert)

Design notes

  • Build a sorted extract that merges the latest transaction backup with the latest system-transaction batch, ordered ascending by the 16-character transaction ID, and publish it as a new version. Make it a scheduled step that depends on the backup and interest jobs, and discard its output if it fails. Combine and order transactions by identifier
  • Load every record of the combined, sorted set into the transaction store keyed by transaction ID, as a bulk load or upsert in one step. Decide explicitly what to do with duplicate transaction IDs. Load combined transactions into transaction master
10. Back up the transaction masterfinal · scheduled job · 3 requirements · 3 rules · 5 criteria

Copies the whole transaction master into a new backup version of 350-byte records, giving a point-in-time copy for consolidation, extracts and recovery. It serves the card operations team. It must copy every record, must not block other jobs reading the master, and must keep the new backup only when the copy succeeds.

As a card operations team, I want the transaction master copied into a new backup generation, so that a point-in-time copy of transaction history is available for consolidation, extracts and recovery.

Final: signed off by Pat (acceptance), 2026-11-25 Risk high; touches money, updates_records. rec/CustomerAccountSelf-Service/DailyTransactionProcessingandReporting#10

Requirements

CodeClassRequirementCriteria
REQ-F-064design noteThe system shall copy every record of the transaction master (AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS), read shared with other jobs, into a new generation of the transaction backup (AWS.M2.CARDDEMO.TRANSACT.BKUP(+1)) of fixed-length 350-byte records.AC-01, AC-02, AC-03
REQ-N-004error handlingWhen the backup step ends normally, the system shall keep (catalog) the new backup generation.AC-01, AC-02, AC-04, AC-05
REQ-N-005error handlingIf the backup step fails, then the system shall delete the new backup generation.AC-01, AC-02, AC-04, AC-05

Business rules

RuleClassText, worked examples and evidence
Back up transaction master to new generation
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-71dd512a66/1
design note
technical, medium
THE Transaction History Backup job SHALL copy all records of the transaction master (AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS), read in shared mode, into a new generation of the transaction backup (AWS.M2.CARDDEMO.TRANSACT.BKUP) of fixed-length 350-byte records, cataloguing the new generation when the step ends normally and deleting it if the step fails.
  • transaction master: 500 transaction records; latest backup generation: G0074V00 → A new backup generation G0075V00 holding the 500 records as 350-byte records is catalogued.
  • copy step: fails → The new backup generation is deleted and not catalogued.
samples/jcl/REPRTEST.jcl:22-33, app/proc/REPROC.prc:21-28, app/ctl/REPROCT.ctl:15, app/app-transaction-type-db2/ctl/REPROCT.ctl:15
Back up processed transaction master
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-d73e3c0c46/1
design note
technical, medium
THE Transaction History Backup SHALL copy every record of the processed transaction master (AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS), read shared with other jobs, into a new generation of the transaction backup (AWS.M2.CARDDEMO.TRANSACT.BKUP(+1)) of fixed-length 350-byte records.
  • Records in transaction master: 5,000 → A new backup generation is created holding the same 5,000 records, each 350 bytes.
app/jcl/TRANBKP.jcl:23-33, app/proc/REPROC.prc:21-28, app/ctl/REPROCT.ctl:15
Back up processed transaction master
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-d73e3c0c46/2
error handling
error_handling, medium
WHEN the backup step ends normally, THE Transaction History Backup SHALL keep the new backup generation, and WHEN the step fails, it SHALL delete that generation.
  • Backup step outcome: ends normally → The new backup generation is catalogued and becomes the current backup.
  • Backup step outcome: abends → The new backup generation is deleted.
app/jcl/TRANBKP.jcl:23-33, app/proc/REPROC.prc:21-28, app/ctl/REPROCT.ctl:15

Acceptance criteria

IDCriterionChecks
AC-01Given transaction master: 500 transaction records; latest backup generation: G0074V00
When Transaction History Backup job runs
Then A new backup generation G0075V00 holding the 500 records as 350-byte records is catalogued.
REQ-F-064, REQ-N-004, REQ-N-005
Back up transaction master to new generation
worked example 1 of the rule
AC-02Given copy step: fails
When Transaction History Backup job runs
Then The new backup generation is deleted and not catalogued.
REQ-F-064, REQ-N-004, REQ-N-005
Back up transaction master to new generation
worked example 2 of the rule
AC-03Given Records in transaction master: 5,000
When Transaction History Backup runs
Then A new backup generation is created holding the same 5,000 records, each 350 bytes.
REQ-F-064
Back up processed transaction master
worked example 1 of the rule
AC-04Given Backup step outcome: ends normally
When the backup step ends normally
Then The new backup generation is catalogued and becomes the current backup.
REQ-N-004, REQ-N-005
Back up processed transaction master
worked example 1 of the rule
AC-05Given Backup step outcome: abends
When the backup step ends normally
Then The new backup generation is deleted.
REQ-N-004, REQ-N-005
Back up processed transaction master
worked example 2 of the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-277 How many earlier versions of the transaction backup file should be kept, and when should older versions be removed? (Batch operations / data management team)
  • SME-278 When should the REPRTEST transaction backup job run (schedule or trigger), and must it run before or after other daily transaction processing? (Batch operations team)
  • SME-285 The TRANBKP backup is meant to run after transactions are processed. Which processing steps must finish first, and how should the backup be sequenced after them? (Batch operations team)
  • DEF-106 Is this intended? The next step deletes the transaction master and its alternate index with no condition on the backup step's return code, so if the copy ends with an error return code instead of an abend, the master is still deleted and the only copy may be lost. (Subject-matter expert)

Design notes

  • Run a scheduled snapshot job that copies every transaction to a new, versioned backup in the 350-byte layout. Publish the new version only on success and discard it on failure, keeping earlier versions available. Back up transaction master to new generation
  • Take the snapshot with a consistent, non-blocking read (for example a read-only snapshot or export), so other jobs can still read the transaction master during the backup. Back up processed transaction master
11. Set up the transaction master and its timestamp indexfinal · scheduled job · 2 requirements · 2 rules · 2 criteria

A setup job that recreates the transaction master empty, loads it from the initial daily transaction file, and builds an index on the processed timestamp, so transactions can be found by ID or by when they were processed. It serves the card operations team. It must load every record, and the timestamp index must allow many transactions with the same timestamp.

As a card operations team, I want the transaction master loaded from the initial daily transaction file and indexed by processed timestamp, so that transactions can be accessed both by ID and by when they were processed.

Final: signed off by Pat (acceptance), 2026-11-25 Risk medium; touches updates_records. rec/CustomerAccountSelf-Service/DailyTransactionProcessingandReporting#11

Requirements

CodeClassRequirementCriteria
REQ-F-065design noteThe system shall copy every record of the initial daily transaction file 'AWS.M2.CARDDEMO.DALYTRAN.PS.INIT' into the transaction master 'AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS', which earlier steps of the same setup job delete and redefine empty, opening both files for shared access.AC-01
REQ-F-066design noteWhen the transaction master has been loaded, the system shall build the alternate index 'AWS.M2.CARDDEMO.TRANSACT.VSAM.AIX' from the transaction master, keyed on the 26-byte processed timestamp at offset 304, with duplicate keys allowed.AC-02

Business rules

RuleClassText, worked examples and evidence
Load transaction master from daily file
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-0f783ea085/1
design note
technical, medium
THE transaction master setup job (TRANFILE, STEP15) SHALL copy every record of the initial daily transaction file 'AWS.M2.CARDDEMO.DALYTRAN.PS.INIT' into the transaction master 'AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS', which earlier steps in the same job delete and redefine empty, opening both files for shared access.
  • Initial daily transaction file: 300 records; Transaction master before the job: old content → The old master is deleted and redefined empty, then loaded with the 300 records.
app/jcl/TRANFILE.jcl:32-74
Build alternate index over transactions
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-3640b32336/1
design note
technical, medium
WHEN the transaction master has been loaded, THE transaction master setup job (TRANFILE, STEP30) SHALL build the alternate index 'AWS.M2.CARDDEMO.TRANSACT.VSAM.AIX' from the transaction master 'AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS'. The index is keyed on the 26-byte processed timestamp at offset 304, and duplicate keys are allowed.
  • Transaction master: 2 transactions with the same processed timestamp 2022-07-18-10.15.00.000000 → Both transactions are indexed under that timestamp in AWS.M2.CARDDEMO.TRANSACT.VSAM.AIX and can be read through the alternate path.
app/jcl/TRANFILE.jcl:76-111

Acceptance criteria

IDCriterionChecks
AC-01Given Initial daily transaction file: 300 records; Transaction master before the job: old content
When transaction master setup job (TRANFILE, STEP15) runs
Then The old master is deleted and redefined empty, then loaded with the 300 records.
REQ-F-065
Load transaction master from daily file
worked example 1 of the rule
AC-02Given Transaction master: 2 transactions with the same processed timestamp 2022-07-18-10.15.00.000000
When the transaction master has been loaded
Then Both transactions are indexed under that timestamp in AWS.M2.CARDDEMO.TRANSACT.VSAM.AIX and can be read through the alternate path.
REQ-F-066
Build alternate index over transactions
worked example 1 of the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-291 Which transaction attribute is the alternate key of the transaction alternate index? (Data architecture team)
  • SME-292 When daily transactions are loaded into the transaction master, should records with a key already present replace, merge with, or be rejected against the existing records? (Business analyst, daily transaction processing)
  • SME-293 What should happen if the transaction master store does not exist or the load fails — including whether the alternate index build is skipped? (Batch operations team)
  • SME-294 If the transaction master load is interrupted after a partial load, must it be rerunnable without duplicating or losing records? (Batch operations team)
  • SME-295 While the transaction master load and index build run, may other processes read or update the transaction master? What isolation is required? (Data architecture team)
  • DEF-105 Is this intended? No step has a condition code check, so the load and index build still run after a failed definition in STEP10. STEP05 also resets delete errors up to 8 to 0. (Subject-matter expert)

Design notes

  • Provide a setup or seeding job that empties the transaction store (drop and recreate, or truncate) and bulk-loads every record from the initial daily transaction file. It is for environment setup only and must never be part of the regular daily schedule. Load transaction master from daily file
  • Add a secondary, non-unique index on the transaction's processed timestamp, the 26-character value at offset 304 in the legacy record, alongside the primary key on transaction ID. In a relational store this is an ordinary database index kept up to date automatically rather than rebuilt after loading. Build alternate index over transactions
12. Load disclosure group and category balance mastersfinal · scheduled job · 4 requirements · 3 rules · 5 criteria

Loads the disclosure group master (interest rates by group, type and category) and the transaction category balance file from their flat files. The disclosure master is fully replaced on each load. It serves the card operations team, so interest and posting work from current data. It must replace the disclosure groups completely rather than merge them, it must not fail when there is no previous master, and nothing else may write to these files during the load.

As a card operations team, I want the disclosure group master and the transaction category balance file loaded from their flat files, so that interest calculation and posting work from current reference and balance data.

Final: signed off by Pat (acceptance), 2026-11-25 Risk high; touches money, updates_records. rec/CustomerAccountSelf-Service/DailyTransactionProcessingandReporting#12

Requirements

CodeClassRequirementCriteria
REQ-F-067design noteBefore loading, the system shall delete any existing disclosure group master and define it afresh as a keyed file of 50-byte records with a 16-byte key, so that the master is fully replaced rather than updated.AC-01, AC-02
REQ-N-006design noteIf no disclosure group master exists when the load deletes it, then the system shall not treat this as an error.AC-01, AC-02
REQ-F-068design noteThe system shall copy every record of the disclosure group flat file (AWS.M2.CARDDEMO.DISCGRP.PS, read shared) into the disclosure group master (AWS.M2.CARDDEMO.DISCGRP.VSAM.KSDS), holding the master for exclusive use during the load.AC-03
REQ-F-069design noteThe system shall copy every transaction category balance record from the flat file (AWS.M2.CARDDEMO.TCATBALF.PS, read shared with other jobs) into the keyed category balance file (AWS.M2.CARDDEMO.TCATBALF.VSAM.KSDS), holding the keyed file for exclusive use during the load.AC-04, AC-05

Business rules

RuleClassText, worked examples and evidence
Load disclosure group master from flat file
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-238027f5f4/2
design note
technical, medium
BEFORE loading, THE Disclosure Group Master Load SHALL delete any existing disclosure group master and define it afresh as a keyed file of 50-byte records with a 16-byte key, so the master is fully replaced rather than updated, and a missing master is not treated as an error.
  • Existing master: 10 records; Flat file: 4 records → After the job the master holds only the 4 records from the flat file
  • Existing master: none → The delete step ends with return code 0 and the master is defined and loaded
app/jcl/DISCGRP.jcl:22-28, app/jcl/DISCGRP.jcl:33-49, app/jcl/DISCGRP.jcl:54-61
Load disclosure group master from flat file
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-238027f5f4/1
design note
technical, medium
THE Disclosure Group Master Load SHALL copy every record of the disclosure group flat file (AWS.M2.CARDDEMO.DISCGRP.PS, read shared) into the disclosure group master (AWS.M2.CARDDEMO.DISCGRP.VSAM.KSDS), holding the master for exclusive use during the load.
  • Disclosure group flat file: 3 records of 50 bytes → The disclosure group master holds the same 3 records after the job
app/jcl/DISCGRP.jcl:22-28, app/jcl/DISCGRP.jcl:33-49, app/jcl/DISCGRP.jcl:54-61
Load category balances into keyed file
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-062daa8b86/1
design note
technical, medium
THE Transaction Category Balance Load SHALL copy every transaction category balance record from the flat file (AWS.M2.CARDDEMO.TCATBALF.PS) into the keyed category balance file (AWS.M2.CARDDEMO.TCATBALF.VSAM.KSDS), reading the flat file shared with other jobs and holding the keyed file for exclusive use during the load.
  • Records in flat category balance file: 120 → The keyed category balance file holds the same 120 records after the load.
  • Another job using the keyed file: yes → The load waits for or is refused exclusive use of the keyed file; the flat file can still be read by others.
app/jcl/TCATBALF.jcl:54-61, app/jcl/TCATBALF.jcl:22-49

Acceptance criteria

IDCriterionChecks
AC-01Given Existing master: 10 records; Flat file: 4 records
When Load disclosure group master from flat file applies
Then After the job the master holds only the 4 records from the flat file
REQ-F-067, REQ-N-006
Load disclosure group master from flat file
worked example 1 of the rule
AC-02Given Existing master: none
When Load disclosure group master from flat file applies
Then The delete step ends with return code 0 and the master is defined and loaded
REQ-F-067, REQ-N-006
Load disclosure group master from flat file
worked example 2 of the rule
AC-03Given Disclosure group flat file: 3 records of 50 bytes
When Disclosure Group Master Load runs
Then The disclosure group master holds the same 3 records after the job
REQ-F-068
Load disclosure group master from flat file
worked example 1 of the rule
AC-04Given Records in flat category balance file: 120
When Transaction Category Balance Load runs
Then The keyed category balance file holds the same 120 records after the load.
REQ-F-069
Load category balances into keyed file
worked example 1 of the rule
AC-05Given Another job using the keyed file: yes
When Transaction Category Balance Load runs
Then The load waits for or is refused exclusive use of the keyed file; the flat file can still be read by others.
REQ-F-069
Load category balances into keyed file
worked example 2 of the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-250 Are 'disclosure group' and 'discount group' the same business data, and which name should the new system use? (Business data owner)
  • SME-254 When loading the disclosure group master, should the load replace existing records, add to them, or require an empty store? (Batch operations)
  • SME-255 When loading the disclosure group master, how should duplicate keys and failed writes be handled, and can the load be safely re-run after an interruption? (Batch operations)
  • SME-282 When loading category balances, should existing records be cleared, replaced, or kept, and how should a record whose key already exists be handled? (Batch operations / data owner)
  • SME-283 If the category balance load fails partway, what recovery is required (keep the partial load, roll back, or restart)? (Batch operations)
  • SME-284 What must the operations listing from the category balance load contain (for example, record counts or error details)? (Batch operations)

Design notes

  • Make the disclosure group load a full replace: clear or recreate the store, keyed on the 16-character key of group ID, type and category over 50-byte records, before loading. Treat an absent previous store as normal, not an error. Load disclosure group master from flat file
  • Bulk-load every record of the disclosure group feed into the keyed disclosure group store. Load it as one unit (in a single transaction, or by swapping in a staging table) so the interest job never sees a partly loaded rate table. Load disclosure group master from flat file
  • Bulk-load every category balance record from the flat feed into the category balance store, keyed on account ID, type and category. Hold exclusive write access during the load, and schedule it so it never overlaps the posting or interest jobs. Load category balances into keyed file
13. Print the transaction category balance reportfinal · scheduled job · 4 requirements · 3 rules · 3 criteria

Produces a printed report of every transaction category balance so card operations analysts can review balances by account, transaction type and category. Each run takes a fresh snapshot of the category balances and lists them in ascending order of account id, then transaction type, then category code. It must never mix in a stale earlier report or keep a partial report when the run fails.

As a card operations analyst, I want a sorted report of transaction category balances, so that I can review balances by account, transaction type and category.

Final: signed off by Pat (acceptance), 2026-11-25 Risk high; touches money, reporting_only. rec/CustomerAccountSelf-Service/DailyTransactionProcessingandReporting#13

Requirements

CodeClassRequirementCriteria
REQ-F-070design noteThe system shall first delete any earlier category balance report (AWS.M2.CARDDEMO.TCATBALF.REPT), then copy the whole category balance file (AWS.M2.CARDDEMO.TCATBALF.VSAM.KSDS) into a new generation of the category balance backup (AWS.M2.CARDDEMO.TCATBALF.BKUP) of 50-byte records.AC-01
REQ-F-071formattingThe system shall write the category balance report (AWS.M2.CARDDEMO.TCATBALF.REPT) from the new backup generation, ordered ascending by account id, then transaction type, then category code, as one 40-byte line per record showing account id, type, category and balance edited as 'TTTTTTTTT.TT', separated by single blanks.AC-02
REQ-N-007error handlingWhen the report step completes normally, the system shall catalog the new category balance report.AC-03
REQ-N-008error handlingIf the report step fails, then the system shall delete the partial category balance report.AC-03

Business rules

RuleClassText, worked examples and evidence
Produce sorted category balance report
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-b15030fc28/1
design note
technical, medium
THE Transaction Category Balance Print job SHALL first delete any earlier category balance report (AWS.M2.CARDDEMO.TCATBALF.REPT), then copy the whole category balance file (AWS.M2.CARDDEMO.TCATBALF.VSAM.KSDS) into a new generation of the category balance backup (AWS.M2.CARDDEMO.TCATBALF.BKUP) of 50-byte records.
  • existing report: AWS.M2.CARDDEMO.TCATBALF.REPT from yesterday; category balance file: 3 records → Yesterday's report is deleted and a new backup generation holding the 3 records is created.
app/jcl/PRTCATBL.jcl:21-25, app/jcl/PRTCATBL.jcl:29-39, app/jcl/PRTCATBL.jcl:43-63, app/proc/REPROC.prc:21-28, app/cpy/CVTRA01Y.cpy:4-9
Produce sorted category balance report
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-b15030fc28/2
formatting
display, medium
THE Transaction Category Balance Print job SHALL write the category balance report (AWS.M2.CARDDEMO.TCATBALF.REPT) from the new backup generation, ordered ascending by account id, then transaction type, then category code, one 40-byte line per record showing account id, type, category and balance edited as 'TTTTTTTTT.TT', separated by single blanks.
  • record A: account 00000000005, type 02, category 0003; record B: account 00000000005, type 01, category 0007 → Record B is printed before record A because type 01 comes before type 02.
app/jcl/PRTCATBL.jcl:21-25, app/jcl/PRTCATBL.jcl:29-39, app/jcl/PRTCATBL.jcl:43-63, app/proc/REPROC.prc:21-28, app/cpy/CVTRA01Y.cpy:4-9
Produce sorted category balance report
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-b15030fc28/3
error handling
error_handling, medium
WHEN the report step completes normally, THE Transaction Category Balance Print job SHALL catalog the new report, and WHEN the step fails it SHALL delete the partial report.
  • sort step outcome: abends → No AWS.M2.CARDDEMO.TCATBALF.REPT data set is kept.
app/jcl/PRTCATBL.jcl:21-25, app/jcl/PRTCATBL.jcl:29-39, app/jcl/PRTCATBL.jcl:43-63, app/proc/REPROC.prc:21-28, app/cpy/CVTRA01Y.cpy:4-9

Acceptance criteria

IDCriterionChecks
AC-01Given existing report: AWS.M2.CARDDEMO.TCATBALF.REPT from yesterday; category balance file: 3 records
When Transaction Category Balance Print job runs
Then Yesterday's report is deleted and a new backup generation holding the 3 records is created.
REQ-F-070
Produce sorted category balance report
worked example 1 of the rule
AC-02Given record A: account 00000000005, type 02, category 0003; record B: account 00000000005, type 01, category 0007
When Transaction Category Balance Print job runs
Then Record B is printed before record A because type 01 comes before type 02.
REQ-F-071
Produce sorted category balance report
worked example 1 of the rule
AC-03Given sort step outcome: abends
When the report step completes normally
Then No AWS.M2.CARDDEMO.TCATBALF.REPT data set is kept.
REQ-N-007, REQ-N-008
Produce sorted category balance report
worked example 1 of the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-273 Should the category balance report filter balances by a date parameter, as the job's comment says? If so, which date and which comparison apply? (Business reporting owner)
  • SME-274 The category balance report line adds up to 41 positions but the line is defined as 40 wide. Which element should be shortened, or should the line width change? (Business reporting owner)
  • SME-275 Must the category balance report show a sign for negative balances, and if so how? (Business reporting owner)
  • DEF-110 Is this intended? The balance is a signed field (S9(09)V99) but the edit mask 'TTTTTTTTT.TT' has no sign, so a negative category balance prints the same as a positive one; also the built line is 41 bytes (11+1+2+1+4+1+12+9) against a 40-byte report record, so the last pad byte is truncated (or the sort fails, depending on the site sort options). The step comment about filtering by parm date and sorting by card number does not match what the step does. (Subject-matter expert)

Design notes

  • Before reporting, remove the previous category balance report and take a complete point-in-time snapshot of all category balance records as a new numbered backup version. The report is then built from that snapshot, not from the live balances, so it reflects one consistent moment. Produce sorted category balance report
14. Produce account extracts from the account masterfinal · scheduled job · 4 requirements · 3 rules · 3 criteria

Produces fresh extracts of the account master in three layouts (fixed account records, account array records and variable-length records) so downstream processes can use account data without reading the master directly. The account master is only read, never changed. Every run must replace the extracts completely, and the run must never leave behind extracts from a failed run.

As a card operations team, I want fresh extracts of the account master in fixed, array and variable-record formats, so that downstream processes can use account data without accessing the master directly.

Final: signed off by Pat (acceptance), 2026-11-25 Risk high; touches money, reporting_only. rec/CustomerAccountSelf-Service/DailyTransactionProcessingandReporting#14

Requirements

CodeClassRequirementCriteria
REQ-F-072design noteThe system shall first delete any earlier account extract, account array extract and variable-record extract (AWS.M2.CARDDEMO.ACCTDATA.PSCOMP, .ARRYPS, .VBPS) so that each run writes them afresh.AC-01
REQ-F-073side effectThe system shall run the account master reader (CBACT01C) with shared read access to the account master (AWS.M2.CARDDEMO.ACCTDATA.VSAM.KSDS) and write three new extracts: the account extract (107-byte fixed records), the account array extract (110-byte fixed records) and the variable-record extract (variable records up to 84 bytes).AC-02
REQ-N-009error handlingWhen the reader step completes normally, the system shall catalog each extract.AC-03
REQ-N-010error handlingIf the reader step fails, then the system shall delete the extracts.AC-03

Business rules

RuleClassText, worked examples and evidence
Produce account extracts from account master
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-c18f4d868d/1
design note
technical, medium
THE Account Master Extract Run SHALL first delete any earlier account extract, account array extract and variable-record extract (AWS.M2.CARDDEMO.ACCTDATA.PSCOMP, .ARRYPS, .VBPS) so that each run writes them afresh.
  • AWS.M2.CARDDEMO.ACCTDATA.PSCOMP: exists from last run → It is deleted before the reader runs and a new one is created.
app/jcl/READACCT.jcl:22-28, app/jcl/READACCT.jcl:32-50, app/cbl/CBACT01C.cbl:29-50, app/cbl/CBACT01C.cbl:80-85
Produce account extracts from account master
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-c18f4d868d/2
side effect
side_effect, medium
THE Account Master Extract Run SHALL run the account master reader (CBACT01C) with shared read access to the account master (AWS.M2.CARDDEMO.ACCTDATA.VSAM.KSDS) and write three new extracts: the account extract (107-byte fixed records), the account array extract (110-byte fixed records) and the variable-record extract (variable records up to 84 bytes).
  • account master: 50 accounts → AWS.M2.CARDDEMO.ACCTDATA.PSCOMP, AWS.M2.CARDDEMO.ACCTDATA.ARRYPS and AWS.M2.CARDDEMO.ACCTDATA.VBPS are created from those accounts.
app/jcl/READACCT.jcl:22-28, app/jcl/READACCT.jcl:32-50, app/cbl/CBACT01C.cbl:29-50, app/cbl/CBACT01C.cbl:80-85
Produce account extracts from account master
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-c18f4d868d/3
error handling
error_handling, medium
WHEN the reader step completes normally, THE Account Master Extract Run SHALL catalog each extract, and WHEN the step fails it SHALL delete them.
  • CBACT01C step: abends → None of the three extracts is kept.
app/jcl/READACCT.jcl:22-28, app/jcl/READACCT.jcl:32-50, app/cbl/CBACT01C.cbl:29-50, app/cbl/CBACT01C.cbl:80-85

Acceptance criteria

IDCriterionChecks
AC-01Given AWS.M2.CARDDEMO.ACCTDATA.PSCOMP: exists from last run
When Account Master Extract Run runs
Then It is deleted before the reader runs and a new one is created.
REQ-F-072
Produce account extracts from account master
worked example 1 of the rule
AC-02Given account master: 50 accounts
When Account Master Extract Run runs
Then AWS.M2.CARDDEMO.ACCTDATA.PSCOMP, AWS.M2.CARDDEMO.ACCTDATA.ARRYPS and AWS.M2.CARDDEMO.ACCTDATA.VBPS are created from those accounts.
REQ-F-073
Produce account extracts from account master
worked example 1 of the rule
AC-03Given CBACT01C step: abends
When the reader step completes normally
Then None of the three extracts is kept.
REQ-N-009, REQ-N-010
Produce account extracts from account master
worked example 1 of the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-006 The account extract replaces a zero cycle debit with 2,525.00, and the balance array record is filled with fixed amounts (cycle debits 1,005.00, 1,525.00 and -2,500.00; a balance of -1,025.00). Are these real business values or test data to be replaced? And when an account has a non-zero cycle debit, should its own value be carried through to the extract? (Business analyst)
  • SME-007 The extract accepts a write result of '10' as well as '00' as success. Should accepting '10' be kept in the new system? (Technical lead)
  • SME-008 Do downstream consumers depend on the exact fixed record layouts of the account extracts (including the different status and financial record lengths), so they must be kept? (Integration team)

Design notes

  • The extract job must clear out the previous run's account extract, account array extract and variable-record extract before writing, so each run's outputs are regenerated from scratch and never appended to or merged with older data. Produce account extracts from account master
15. Extract transactions for a reporting periodfinal · scheduled job · 7 requirements · 7 rules · 11 criteria · 1 screen · 1 gap

Takes a fresh backup of all transactions and extracts those whose processing date falls in the reporting period, sorted by card number, as input to the transaction report. The period is the fixed range 2022-01-01 to 2022-07-06 when the standalone job is run, or the start and end dates the analyst entered when it is requested online. It must never include a transaction outside the inclusive date range, and it must never keep an extract or backup from a failed step.

As a card operations analyst, I want transactions for a chosen date range extracted from a fresh backup and sorted by card number, so that the transaction report covers exactly the period I need.

Final: signed off by Pat (acceptance), 2026-11-25 Risk high; touches card_data, money, reporting_only. rec/CustomerAccountSelf-Service/DailyTransactionProcessingandReporting#15

Requirements

CodeClassRequirementCriteria
REQ-F-074design noteThe system shall first copy every record of the transaction master (AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS) into a new generation of the transaction backup (AWS.M2.CARDDEMO.TRANSACT.BKUP) of 350-byte records, cataloged on success and discarded on failure.AC-01, AC-02
REQ-F-075business ruleWhen the transaction backup for the run has been created, the system shall keep only transactions whose processing date (TRAN-PROC-DT) is within the report date range inclusive, sort them ascending by card number, and write them to a new generation of the daily transaction extract (AWS.M2.CARDDEMO.TRANSACT.DALY).AC-03, AC-04
REQ-F-076business ruleWhen the run is submitted as the standalone transaction report job, the system shall use the fixed date range '2022-01-01' to '2022-07-06'.AC-05
REQ-F-077business ruleWhen the run is requested from the online report screen, the system shall use the start and end dates of that request as the date range.AC-06
REQ-N-011error handlingIf the sort step fails, then the system shall discard the new daily transaction extract generation instead of cataloging it.AC-07
REQ-F-078business ruleWhen the sort test job is run, the system shall select from the latest transaction backup generation (AWS.M2.CARDDEMO.TRANSACT.BKUP(0)) only the transactions whose processing date equals the fixed date '2022-06-02', leaving out all others.AC-08, AC-09
REQ-F-079design noteWhen the sort test job is run, the system shall write the selected transactions in ascending card number order to a new generation of the daily transaction file (AWS.M2.CARDDEMO.TRANSACT.DALY(+1)) with the same record layout as the backup, keeping it when the step ends normally and deleting it if the step fails.AC-10, AC-11

Business rules

RuleClassText, worked examples and evidence
Back up the transaction master
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-7138fdb9d7/1
design note
technical, medium
THE Transaction Reporting Run SHALL first copy every record of the transaction master (AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS) into a new generation of the transaction backup (AWS.M2.CARDDEMO.TRANSACT.BKUP) of 350-byte records, cataloged on success and discarded on failure.
  • transaction master records: 1,200; copy step result: ends normally → A new backup generation with 1,200 records is cataloged.
  • copy step result: fails → The new backup generation is deleted.
app/jcl/TRANREPT.jcl:23-33, app/proc/REPROC.prc:21-28, app/ctl/REPROCT.ctl:15
Extract date-range transactions sorted by card
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-f4a043d91b/1
business rule
business, medium
WHEN the transaction backup for the run has been created, THE Transaction Reporting Run SHALL keep only transactions whose processing date (TRAN-PROC-DT) is within the report date range inclusive, sort them ascending by card number, and write them to a new generation of the daily transaction extract (AWS.M2.CARDDEMO.TRANSACT.DALY).
  • processing date: 2022-03-15; date range: 2022-01-01 to 2022-07-06 → The transaction is written to the extract, in card number order.
  • processing date: 2022-07-07; date range: 2022-01-01 to 2022-07-06 → The transaction is left out of the extract.
app/jcl/TRANREPT.jcl:37-55, app/proc/TRANREPT.prc:35-53, app/cbl/CORPT00C.cbl:94-114
Extract date-range transactions sorted by card
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-f4a043d91b/2
business rule
business, medium
WHEN the run is submitted as the standalone transaction report job, THE Transaction Reporting Run SHALL use the fixed date range '2022-01-01' to '2022-07-06'.
  • submitted by: standalone TRANREPT job → Only transactions processed from 2022-01-01 through 2022-07-06 are reported.
app/jcl/TRANREPT.jcl:37-55, app/proc/TRANREPT.prc:35-53, app/cbl/CORPT00C.cbl:94-114
Extract date-range transactions sorted by card
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-f4a043d91b/3
business rule
business, medium
WHEN the run is requested from the online report screen, THE Transaction Reporting Run SHALL use the start and end dates of that request as the date range.
  • start date entered: 2022-05-01; end date entered: 2022-05-31 → Only transactions processed in May 2022 go to the extract.
app/jcl/TRANREPT.jcl:37-55, app/proc/TRANREPT.prc:35-53, app/cbl/CORPT00C.cbl:94-114
Extract date-range transactions sorted by card
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-f4a043d91b/4
error handling
error_handling, medium
WHEN the sort step fails, THE Transaction Reporting Run SHALL discard the new daily transaction extract generation instead of cataloging it.
  • sort step result: fails → The new AWS.M2.CARDDEMO.TRANSACT.DALY generation is deleted.
app/jcl/TRANREPT.jcl:37-55, app/proc/TRANREPT.prc:35-53, app/cbl/CORPT00C.cbl:94-114
Extract one day's transactions by card
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-945fc34dbe/1
business rule
business, medium
WHEN the sort test job is run, THE Daily Transaction Extract SHALL select from the latest transaction backup generation (AWS.M2.CARDDEMO.TRANSACT.BKUP(0)) only the transactions whose processing date equals the fixed date '2022-06-02', and leave out all others.
  • Transaction processing date (TRAN-PROC-DT): 2022-06-02 → The transaction is written to the daily extract.
  • Transaction processing date (TRAN-PROC-DT): 2022-06-03 → The transaction is left out of the daily extract.
samples/jcl/SORTTEST.jcl:19-35
Extract one day's transactions by card
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-945fc34dbe/2
design note
technical, medium
THE Daily Transaction Extract SHALL write the selected transactions in ascending card number order to a new generation of the daily transaction file (AWS.M2.CARDDEMO.TRANSACT.DALY(+1)) with the same record layout as the backup, keeping it when the step ends normally and deleting it if the step fails.
  • Selected transaction 1 card number: 4111111111111111; Selected transaction 2 card number: 4000000000000002 → The extract lists card 4000000000000002 before card 4111111111111111.
  • Sort step outcome: fails → The new daily extract generation is deleted, not kept.
samples/jcl/SORTTEST.jcl:19-35

Acceptance criteria

IDCriterionChecks
AC-01Given transaction master records: 1,200; copy step result: ends normally
When Transaction Reporting Run runs
Then A new backup generation with 1,200 records is cataloged.
REQ-F-074
Back up the transaction master
worked example 1 of the rule
AC-02Given copy step result: fails
When Transaction Reporting Run runs
Then The new backup generation is deleted.
REQ-F-074
Back up the transaction master
worked example 2 of the rule
AC-03Given processing date: 2022-03-15; date range: 2022-01-01 to 2022-07-06
When the transaction backup for the run has been created
Then The transaction is written to the extract, in card number order.
REQ-F-075
Extract date-range transactions sorted by card
worked example 1 of the rule
AC-04Given processing date: 2022-07-07; date range: 2022-01-01 to 2022-07-06
When the transaction backup for the run has been created
Then The transaction is left out of the extract.
REQ-F-075
Extract date-range transactions sorted by card
worked example 2 of the rule
AC-05Given submitted by: standalone TRANREPT job
When the run is submitted as the standalone transaction report job
Then Only transactions processed from 2022-01-01 through 2022-07-06 are reported.
REQ-F-076
Extract date-range transactions sorted by card
worked example 1 of the rule
AC-06Given start date entered: 2022-05-01; end date entered: 2022-05-31
When the run is requested from the online report screen
Then Only transactions processed in May 2022 go to the extract.
REQ-F-077
Extract date-range transactions sorted by card
worked example 1 of the rule
AC-07Given sort step result: fails
When the sort step fails
Then The new AWS.M2.CARDDEMO.TRANSACT.DALY generation is deleted.
REQ-N-011
Extract date-range transactions sorted by card
worked example 1 of the rule
AC-08Given Transaction processing date (TRAN-PROC-DT): 2022-06-02
When the sort test job is run
Then The transaction is written to the daily extract.
REQ-F-078
Extract one day's transactions by card
worked example 1 of the rule
AC-09Given Transaction processing date (TRAN-PROC-DT): 2022-06-03
When the sort test job is run
Then The transaction is left out of the daily extract.
REQ-F-078
Extract one day's transactions by card
worked example 2 of the rule
AC-10Given Selected transaction 1 card number: 4111111111111111; Selected transaction 2 card number: 4000000000000002
When Daily Transaction Extract runs
Then The extract lists card 4000000000000002 before card 4111111111111111.
REQ-F-079
Extract one day's transactions by card
worked example 1 of the rule
AC-11Given Sort step outcome: fails
When Daily Transaction Extract runs
Then The new daily extract generation is deleted, not kept.
REQ-F-079
Extract one day's transactions by card
worked example 2 of the rule

Screens

  • Transaction reports S-REPORT-REQUEST · design · replaces CORPT0A (1 kept, 3 dropped, 16 merged)
    • **primary button** Submit report checks: The dialog offers only Submit or Cancel, replacing the typed confirmation and its messages 'Please confirm to print the <report name> report...' and '"<value>" is not a valid value to confirm...'. If the job cannot be queued, the message says the report was not submitted and to try again.

Data contracts

None found in the source.

Decision tables

Date range used for the transaction extract

How the run is startedDate range used to select transactionsRule
Standalone transaction report jobFixed range '2022-01-01' to '2022-07-06'rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-f4a043d91b/2
Online report screen requestStart and end dates of that requestrec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-f4a043d91b/3
Sort test jobOnly processing date equal to fixed date '2022-06-02'rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-945fc34dbe/1
Any other way of starting the runGap: No rule says which date range applies if the run is started other than as the standalone job, from the online report screen, or as the sort test job.

Open questions

  • SME-043 The transaction report extract selects transactions using fixed dates (2022-01-01 to 2022-07-06), but the report itself takes its start and end dates from the run's date parameter. Should the extract period come from the same run parameter, and what should happen if the two periods differ? (Reporting owner)
  • SME-044 When the transaction report meets a transaction outside the reporting period, the program stops reading entirely, so later in-range transactions and the grand total are lost (the input is sorted by card, not date). Should out-of-range transactions just be skipped instead? Is it acceptable to rely only on the earlier sort step's date filter? (Reporting owner / batch operations lead)
  • SME-045 At the end of the transaction report, the last transaction's amount is added to the page, account and grand totals a second time, which overstates them. Is this double-counting intended, or should it be corrected? How critical are these totals? (Finance reporting owner)
  • SME-046 Should the transaction report print an 'Account Total' line for the last card at the end of the report? (Reporting owner)
  • SME-047 What page size does the transaction report need? Is 20 lines per page a business requirement, and should a page break happen whenever that size is reached, rather than only on exact multiples? (Reporting owner)
  • SME-280 The one-day transaction extract uses a fixed run date of 2022-06-02. Should the run date come from a run parameter or from the business date? (Batch operations team)
  • SME-281 What should the one-day transaction extract do when no current version of the transaction backup file exists? (Batch operations team)
  • DEF-104 Confirm this is deliberate: The selection date is hard-coded as '2022-06-02' rather than taken from the run date, so every run extracts the same day's transactions. (Subject-matter expert)
  • DEF-107 Confirm this is deliberate: The standalone job and the cataloged procedure have the date range hard-coded to 2022-01-01 through 2022-07-06, so a scheduled run never reports current transactions unless someone edits the JCL. (Subject-matter expert)

Design notes

  • Start each reporting run by copying every transaction record into a new numbered backup version, a point-in-time snapshot. Keep the version only if the copy completes, and discard it on failure so later steps never read a partial backup. Back up the transaction master
  • The sort test job needs a sorted extract: the selected transactions, in ascending card number order and with the same record layout as the backup, written as a new numbered version of the daily transaction file. Keep the version when the step succeeds and delete it when the step fails. Extract one day's transactions by card
16. Run the transaction report jobfinal · scheduled job · 3 requirements · 3 rules · 3 criteria · 1 screen

Runs the transaction report over the period extract, looking up each card's account and the transaction type and category descriptions, and produces a new version of the formatted transaction report. When the analyst requests the report online, the dates they entered must be used instead of the stored date parameters. A failed run must never leave a partial report in place.

As a card operations analyst, I want the transaction report produced from the period extract, using the dates I entered when I request it online, so that I receive a formatted report for the period I asked for.

Final: signed off by Pat (acceptance), 2026-11-25 Risk high; touches card_data, money, reporting_only. rec/CustomerAccountSelf-Service/DailyTransactionProcessingandReporting#16

Requirements

CodeClassRequirementCriteria
REQ-F-080design noteWhen the daily transaction extract for the run has been created, the system shall run the report program (CBTRN03C) against that extract and the card cross-reference, transaction type, transaction category and report date parameter files, and write a new generation of the transaction report (AWS.M2.CARDDEMO.TRANREPT) of 133-byte lines.AC-01
REQ-F-081business ruleWhen the report is requested from the online report screen, the system shall take the report date parameters from the dates entered on that request instead of the stored date parameter file.AC-03
REQ-N-012error handlingIf the report step fails, then the system shall discard the new transaction report generation instead of cataloging it.AC-02

Business rules

RuleClassText, worked examples and evidence
Produce the formatted transaction report
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-34c77e21e5/1
design note
technical, medium
WHEN the daily transaction extract for the run has been created, THE Transaction Reporting Run SHALL run the report program (CBTRN03C) against that extract, the card cross-reference, transaction type, transaction category and report date parameter files, and write a new generation of the transaction report (AWS.M2.CARDDEMO.TRANREPT) of 133-byte lines.
  • daily extract generation: created by the sort step; report step result: ends normally → A new generation of AWS.M2.CARDDEMO.TRANREPT is cataloged.
app/jcl/TRANREPT.jcl:59-80, app/proc/TRANREPT.prc:57-78, app/cbl/CORPT00C.cbl:84-125
Produce the formatted transaction report
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-34c77e21e5/3
business rule
business, medium
WHEN the report is requested from the online report screen, THE Transaction Reporting Run SHALL take the report date parameters from the dates entered on that request instead of the stored date parameter file.
app/jcl/TRANREPT.jcl:59-80, app/proc/TRANREPT.prc:57-78, app/cbl/CORPT00C.cbl:84-125
Produce the formatted transaction report
rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-34c77e21e5/2
error handling
error_handling, medium
WHEN the report step fails, THE Transaction Reporting Run SHALL discard the new transaction report generation instead of cataloging it.
  • report step result: abends → The new AWS.M2.CARDDEMO.TRANREPT generation is deleted.
app/jcl/TRANREPT.jcl:59-80, app/proc/TRANREPT.prc:57-78, app/cbl/CORPT00C.cbl:84-125

Acceptance criteria

IDCriterionChecks
AC-01Given daily extract generation: created by the sort step; report step result: ends normally
When the daily transaction extract for the run has been created
Then A new generation of AWS.M2.CARDDEMO.TRANREPT is cataloged.
REQ-F-080
Produce the formatted transaction report
worked example 1 of the rule
AC-02Given report step result: abends
When the report step fails
Then The new AWS.M2.CARDDEMO.TRANREPT generation is deleted.
REQ-N-012
Produce the formatted transaction report
worked example 1 of the rule
AC-03Given the stored report date parameters hold 2022-01-01 to 2022-07-06, and an analyst enters start date 2022-05-01 and end date 2022-05-31 on the online report screen
When the report is requested from the online report screen
Then the report runs with the date parameters 2022-05-01 to 2022-05-31 taken from that request, not the stored 2022-01-01 to 2022-07-06
REQ-F-081
Produce the formatted transaction report
written from the rule

Screens

  • Transaction reports S-REPORT-REQUEST · design · replaces CORPT0A (1 kept, 3 dropped, 16 merged)
    • **primary button** Submit report checks: The dialog offers only Submit or Cancel, replacing the typed confirmation and its messages 'Please confirm to print the <report name> report...' and '"<value>" is not a valid value to confirm...'. If the job cannot be queued, the message says the report was not submitted and to try again.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-043 The transaction report extract selects transactions using fixed dates (2022-01-01 to 2022-07-06), but the report itself takes its start and end dates from the run's date parameter. Should the extract period come from the same run parameter, and what should happen if the two periods differ? (Reporting owner)
  • SME-044 When the transaction report meets a transaction outside the reporting period, the program stops reading entirely, so later in-range transactions and the grand total are lost (the input is sorted by card, not date). Should out-of-range transactions just be skipped instead? Is it acceptable to rely only on the earlier sort step's date filter? (Reporting owner / batch operations lead)
  • SME-045 At the end of the transaction report, the last transaction's amount is added to the page, account and grand totals a second time, which overstates them. Is this double-counting intended, or should it be corrected? How critical are these totals? (Finance reporting owner)
  • SME-046 Should the transaction report print an 'Account Total' line for the last card at the end of the report? (Reporting owner)
  • SME-047 What page size does the transaction report need? Is 20 lines per page a business requirement, and should a page break happen whenever that size is reached, rather than only on exact multiples? (Reporting owner)

Design notes

  • Run the report as a job step that starts only after the period extract exists. It reads the extract and does keyed lookups on the card cross-reference (card to account), transaction types and transaction categories, plus the report date parameters. It writes a new numbered version of the transaction report as 133-character print lines. Produce the formatted transaction report
17. Print the daily transaction report with totalsfinal · scheduled job · 6 requirements · 6 rules · 7 criteria · 1 gap

Prints the daily transaction report for card operations analysts. Each in-period transaction gets a line with its ID, account, type, category, source and signed amount, followed by page totals, account totals and a grand total for reconciliation. The totals must add up exactly as the rules state, including the last transaction being counted a second time at end of file. Reporting must stop without any final totals as soon as a transaction outside the period is read.

As a card operations analyst, I want each in-period transaction listed with its account, type, category, source and amount, with page, account and grand totals, so that I can review and reconcile the period's activity.

Final: signed off by Pat (acceptance), 2026-11-25 Risk high; touches card_data, money, reporting_only. rec/CustomerAccountSelf-Service/DailyTransactionProcessingandReporting#17

Requirements

CodeClassRequirementCriteria
REQ-F-082business ruleThe system shall take the reporting period from the date parameter record, with the start date in positions 1-10 and the end date in positions 12-21 (YYYY-MM-DD), and treat a transaction as in range when the date part of its processing timestamp is between them inclusive, compared as text.AC-01, AC-02
REQ-F-083business ruleWhen an in-range transaction is reported, the system shall add its amount to the current page total and the current card's account total before printing its detail line.AC-03
REQ-F-084formattingThe system shall print each detail line with the transaction ID, the account ID from the card cross-reference, the type code and description joined by '-', the category code and description joined by '-', the source, and the amount, with a minus sign shown only for negatives.AC-04
REQ-F-085business ruleWhen a page is closed, either at a page break or at the end of the transaction file, the system shall print a 'Page Total' line with the page's signed amount (e.g. +1,000.00), add that amount to the grand total, reset the page total to zero and print a dashed separator line.AC-05
REQ-F-086business ruleWhen the end of the transaction file is reached, the system shall add the amount of the last transaction read to the page and account totals a second time, print the final 'Page Total' line, then print a 'Grand Total' line showing the sum of all page totals.AC-06
REQ-F-087business ruleIf a transaction read has a processing date outside the reporting period, then the system shall stop processing at once, skipping that and all later transactions, and close its files without printing the final page total, account total or grand total.AC-07

Business rules

RuleClassText, worked examples and evidence
Filter transactions by reporting period
rec/group:claude/RULE-084/1
business rule
business, high
THE Daily Transaction Report SHALL take its reporting period from the date parameter record, with the start date in positions 1-10 and the end date in positions 12-21 (YYYY-MM-DD), and SHALL treat a transaction as in range when the date part of its processing timestamp is between them inclusive, compared as text.
  • date parameters: 2022-01-01 2022-07-06; processing timestamp: 2022-03-15-10.22.33.000000 → 2022-03-15 is in range, so the transaction is reported.
  • date parameters: 2022-01-01 2022-07-06; processing timestamp: 2022-07-06-23.59.59.000000 → 2022-07-06 equals the end date, so the transaction is reported.
app/cbl/CBTRN03C.cbl:122-125, app/cbl/CBTRN03C.cbl:170-178, app/cbl/CBTRN03C.cbl:206-213, app/cpy/CVTRA05Y.cpy:4-19, app/jcl/TRANREPT.jcl:37-48
Write transaction detail line
rec/group:claude/RULE-244/1
business rule
business, high
WHEN an in-range transaction is reported, THE Daily Transaction Report SHALL add its amount to the current page total and the current card's account total before printing its detail line.
  • page total so far: 100.00; account total so far: 20.00; transaction amount: 50.00 → The page total becomes 150.00, the account total becomes 70.00 and the detail line is printed.
app/cbl/CBTRN03C.cbl:181-196, app/cbl/CBTRN03C.cbl:287-289, app/cbl/CBTRN03C.cbl:361-374, app/cpy/CVTRA07Y.cpy:15-31
Write transaction detail line
rec/group:claude/RULE-244/2
formatting
display, high
THE Daily Transaction Report SHALL print each detail line with the transaction ID, the account ID from the card cross-reference, the type code and description joined by '-', the category code and description joined by '-', the source, and the amount (a minus sign shows only for negatives).
  • amount: -25.00 → The amount column shows -25.00.
app/cbl/CBTRN03C.cbl:181-196, app/cbl/CBTRN03C.cbl:287-289, app/cbl/CBTRN03C.cbl:361-374, app/cpy/CVTRA07Y.cpy:15-31
Print page total and roll into grand total
rec/group:claude/RULE-022/1
business rule
business, high
WHEN a page is closed, either at a page break or at the end of the transaction file, THE Daily Transaction Report SHALL print a 'Page Total' line with the page's amount (signed, e.g. +1,000.00), add that amount to the grand total, reset the page total to zero and print a dashed separator line.
  • detail amounts printed on page 1: 600.00, 400.00; event: page break before the next detail → A 'Page Total' line showing +1,000.00 is printed, followed by a dashed line; the grand total becomes 1,000.00 and the page total restarts at 0.
app/cbl/CBTRN03C.cbl:197-204, app/cbl/CBTRN03C.cbl:282-289, app/cbl/CBTRN03C.cbl:293-304, app/cbl/CBTRN03C.cbl:318-322, app/cbl/CBTRN03C.cbl:248-264, app/cpy/CVTRA07Y.cpy:48-66
Print final page and grand totals
rec/group:claude/RULE-022/2
business rule
business, high
WHEN the end of the transaction file is reached, THE Daily Transaction Report SHALL add the amount of the last transaction read to the page and account totals a second time, print the final 'Page Total' line, then print a 'Grand Total' line showing the sum of all page totals.
  • page 1 total: 1,000.00; page 2 details: 200.00, 50.00 (50.00 is the last transaction in the file) → The final 'Page Total' shows +300.00 (250.00 plus 50.00 counted again) and the 'Grand Total' shows +1,300.00, not +1,250.00.
app/cbl/CBTRN03C.cbl:197-204, app/cbl/CBTRN03C.cbl:282-289, app/cbl/CBTRN03C.cbl:293-304, app/cbl/CBTRN03C.cbl:318-322, app/cbl/CBTRN03C.cbl:248-264, app/cpy/CVTRA07Y.cpy:48-66
Filter transactions by reporting period
rec/group:claude/RULE-084/2
business rule
business, high
WHEN a transaction read has a processing date outside the reporting period, THE Daily Transaction Report SHALL stop processing at once, skipping that and all later transactions, and SHALL close its files without printing the final page total, account total or grand total.
app/cbl/CBTRN03C.cbl:122-125, app/cbl/CBTRN03C.cbl:170-178, app/cbl/CBTRN03C.cbl:206-213, app/cpy/CVTRA05Y.cpy:4-19, app/jcl/TRANREPT.jcl:37-48

Acceptance criteria

IDCriterionChecks
AC-01Given date parameters: 2022-01-01 2022-07-06; processing timestamp: 2022-03-15-10.22.33.000000
When Daily Transaction Report runs
Then 2022-03-15 is in range, so the transaction is reported.
REQ-F-082
Filter transactions by reporting period
worked example 1 of the rule
AC-02Given date parameters: 2022-01-01 2022-07-06; processing timestamp: 2022-07-06-23.59.59.000000
When Daily Transaction Report runs
Then 2022-07-06 equals the end date, so the transaction is reported.
REQ-F-082
Filter transactions by reporting period
worked example 2 of the rule
AC-03Given page total so far: 100.00; account total so far: 20.00; transaction amount: 50.00
When an in-range transaction is reported
Then The page total becomes 150.00, the account total becomes 70.00 and the detail line is printed.
REQ-F-083
Write transaction detail line
worked example 1 of the rule
AC-04Given amount: -25.00
When Daily Transaction Report runs
Then The amount column shows -25.00.
REQ-F-084
Write transaction detail line
worked example 1 of the rule
AC-05Given detail amounts printed on page 1: 600.00, 400.00; event: page break before the next detail
When a page is closed, either at a page break or at the end of the transaction file
Then A 'Page Total' line showing +1,000.00 is printed, followed by a dashed line; the grand total becomes 1,000.00 and the page total restarts at 0.
REQ-F-085
Print page total and roll into grand total
worked example 1 of the rule
AC-06Given page 1 total: 1,000.00; page 2 details: 200.00, 50.00 (50.00 is the last transaction in the file)
When the end of the transaction file is reached
Then The final 'Page Total' shows +300.00 (250.00 plus 50.00 counted again) and the 'Grand Total' shows +1,300.00, not +1,250.00.
REQ-F-086
Print final page and grand totals
worked example 1 of the rule
AC-07Given the date parameter record is '2022-01-01 2022-07-06', and the transaction file holds a transaction processed 2022-03-15-10.22.33.000000, then one processed 2022-07-07-09.00.00.000000, then one processed 2022-04-01-08.00.00.000000
When the daily transaction report reads the 2022-07-07 transaction
Then processing stops at once: the 2022-03-15 transaction has its detail line, neither the 2022-07-07 transaction nor the later 2022-04-01 transaction is printed, the files are closed, and no final 'Page Total', account total or 'Grand Total' line is printed
REQ-F-087
Filter transactions by reporting period
written from the rule

Screens

None: scheduled job.

Data contracts

CVACT03Y (file record; CBTRN03C), CVTRA03Y (file record; CBTRN03C), CVTRA04Y (file record; CBTRN03C), CVTRA05Y (file record; CBTRN03C), CVTRA07Y (working storage; CBTRN03C)

Decision tables

Report handling of each read

Read resultProcessing date within reporting periodReport actionRule
Transaction readYesAdd amount to page total and account total, then print detail linerec/group:claude/RULE-244/1
Transaction readNoStop at once, skip this and all later transactions, close files without final page, account or grand totalsrec/group:claude/RULE-084/2
End of transaction fileNot applicableAdd last transaction's amount to page and account totals a second time, print final 'Page Total', then 'Grand Total'rec/group:claude/RULE-022/2
End of transaction fileNo transaction read at allGap: No rule says what amount is added a second time, or what totals print, when the file is empty.

Open questions

  • SME-043 The transaction report extract selects transactions using fixed dates (2022-01-01 to 2022-07-06), but the report itself takes its start and end dates from the run's date parameter. Should the extract period come from the same run parameter, and what should happen if the two periods differ? (Reporting owner)
  • SME-044 When the transaction report meets a transaction outside the reporting period, the program stops reading entirely, so later in-range transactions and the grand total are lost (the input is sorted by card, not date). Should out-of-range transactions just be skipped instead? Is it acceptable to rely only on the earlier sort step's date filter? (Reporting owner / batch operations lead)
  • SME-045 At the end of the transaction report, the last transaction's amount is added to the page, account and grand totals a second time, which overstates them. Is this double-counting intended, or should it be corrected? How critical are these totals? (Finance reporting owner)
  • SME-046 Should the transaction report print an 'Account Total' line for the last card at the end of the report? (Reporting owner)
  • SME-047 What page size does the transaction report need? Is 20 lines per page a business requirement, and should a page break happen whenever that size is reached, rather than only on exact multiples? (Reporting owner)
  • DEF-010 Is this intended? At end of file the last transaction's amount is added to the page and account totals a second time. The end-of-file read leaves the previous record in place, so the final page total and the grand total are overstated by that amount. The last card's account total is never printed at end of file. If the file is empty, the totals are printed without any heading. (Subject-matter expert)
  • DEF-035 Is this intended? An out-of-range transaction ends the whole report run without totals, when the IF/CONTINUE structure shows the intent was only to skip it. In practice the preceding SORT step filters by the same dates, so this only happens when the DATEPARM record and the SORT dates differ. That can happen in the standalone TRANREPT job, which hard-codes the SORT dates. (Subject-matter expert)

Design notes

None.

Online Account and Transaction Management

1. Find the account to updatefinal · online · 14 requirements · 14 rules · 14 criteria · 2 screens · 1 gap

Lets an operator enter an account number and brings up that account with its linked card and customer, so they can review and update the right records. The account is found through the card cross-reference, which gives the customer and card for the session. After that the account and customer records are read. It must never show or update a customer who is not linked to the account entered. When a lookup fails, it must stop and say which record was missing or could not be read.

As an operator, I want to enter an account id and have the system fetch the linked card, account and customer records, so that I can review and update the right account and customer details.

Final: signed off by Sam (acceptance), 2026-11-25 Risk medium; touches card_data, personal_data. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#1

Requirements

CodeClassRequirementCriteria
REQ-F-001formattingWhen the account update screen is shown on first entry to the function, the system shall set the information message to 'Enter or update id of account to update'.AC-01
REQ-F-002formattingWhen the account update screen is shown, it is not a first entry, and no account details have been fetched yet, the system shall set the information message to 'Enter or update id of account to update'.AC-02
REQ-F-003historical artifactIf no update stage matches and the information message is blank, then the system shall default the information message to 'Enter or update id of account to update'.AC-03
REQ-F-004design noteWhen the account is found in the card cross-reference by account ID, the system shall take the customer ID and card number from it for the session and go on to read the account and customer.AC-04
REQ-F-005business ruleIf the account is not in the card cross-reference, then the system shall flag the account as invalid, stop the lookup and show 'Account:<account> not found in Cross ref file. Resp:<resp> Reas:<reason>'.AC-09
REQ-F-006error handlingIf the card cross-reference read fails for any other reason, then the system shall flag the account as invalid, stop the lookup and show 'File Error: READ on CXACAIX returned RESP <resp>,RESP2 <reason>'.AC-10
REQ-F-007design noteWhen the account master read succeeds, the system shall mark the account as found.AC-05
REQ-F-008error handlingIf the account is not on the account master, then the system shall flag an input error, mark the account search invalid and, if no message is already set, report 'Account:<id> not found in Acct Master file.Resp:<resp> Reas:<reason>'.AC-11
REQ-F-009error handlingIf the account master read fails for any other reason, then the system shall flag an input error, mark the account search invalid and report 'File Error: READ on ACCTDAT returned RESP <resp>...'.AC-12
REQ-F-010design noteWhen the customer master read for the account's customer succeeds, the system shall mark the customer as found.AC-06
REQ-F-011error handlingIf the customer is not on the customer master, then the system shall flag an input error, mark the customer search invalid and, if no message is already set, report 'CustId:<id> not found in customer master.Resp: <resp> REAS:<reason>'.AC-13
REQ-F-012error handlingIf the customer master read fails for any other reason, then the system shall flag an input error, mark the customer search invalid and report 'File Error: READ on CUSTDAT returned RESP <resp>...'.AC-14
REQ-F-013design noteWhen the account is found in the card cross-reference, the system shall save the account id, customer id, customer names, account status and card number as the session context.AC-07
REQ-F-014design noteWhen the account is found in the card cross-reference, the system shall copy the fetched account and customer values into the original snapshot, splitting the open, expiry, reissue and birth dates (YYYY-MM-DD) into year, month and day.AC-08

Business rules

RuleClassText, worked examples and evidence
Prompt for account id on first entry
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-8cc6eb22da/1
formatting
display, medium
WHEN the account update screen is shown on first entry to the function, THE Account Update messaging SHALL set the information message to 'Enter or update id of account to update'.
  • entry: first entry from the main menu → Message 'Enter or update id of account to update'
app/cbl/COACTUPC.cbl:2955-2959, app/cbl/COACTUPC.cbl:468-469
Prompt for account id when details missing
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-9076a7917f/1
formatting
display, medium
WHEN the account update screen is shown, it is not a first entry, and no account details have been fetched yet, THE Account Update messaging SHALL set the information message to 'Enter or update id of account to update'.
  • account id entered: 00000000099 (not found); update stage: not fetched → Message 'Enter or update id of account to update'
app/cbl/COACTUPC.cbl:2955-2961, app/cbl/COACTUPC.cbl:656-658
Default to search prompt and show messages
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-354aff1fd5/2
historical artifact
leftover, medium
WHEN no update stage matches and the information message is blank, THE Account Update messaging SHALL default it to 'Enter or update id of account to update'; every valid stage is matched earlier, so this fallback does not normally apply.
  • update stage: unrecognised value; information message: blank → Message 'Enter or update id of account to update'
app/cbl/COACTUPC.cbl:2955-2982, app/cbl/COACTUPC.cbl:656-668
Resolve customer from card cross-reference
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-08e7dcbdee/1
design note
technical, medium
WHEN the account is found in the card cross-reference (by account ID), THE account update SHALL take the customer ID and card number from it for the session and go on to read the account and customer.
  • Account ID: 00000000011; Cross-reference: found, customer 000000011 → Customer 000000011 and its card number become the session customer and card.
app/cbl/COACTUPC.cbl:3608-3626, app/cbl/COACTUPC.cbl:3650-3696, app/cbl/COACTUPC.cbl:389-404, app/cbl/COACTUPC.cbl:581
Resolve customer from card cross-reference
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-08e7dcbdee/2
business rule
validation, medium
WHEN the account is not in the card cross-reference, THE account update SHALL flag the account as invalid, stop the lookup and show 'Account:<account> not found in Cross ref file. Resp:<resp> Reas:<reason>'.
app/cbl/COACTUPC.cbl:3608-3626, app/cbl/COACTUPC.cbl:3650-3696, app/cbl/COACTUPC.cbl:389-404, app/cbl/COACTUPC.cbl:581
Resolve customer from card cross-reference
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-08e7dcbdee/3
error handling
error_handling, medium
WHEN the cross-reference read fails for any other reason, THE account update SHALL flag the account as invalid, stop the lookup and show 'File Error: READ on CXACAIX returned RESP <resp>,RESP2 <reason>'.
app/cbl/COACTUPC.cbl:3608-3626, app/cbl/COACTUPC.cbl:3650-3696, app/cbl/COACTUPC.cbl:389-404, app/cbl/COACTUPC.cbl:581
Read account master record
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-13f3573186/1
design note
technical, medium
WHEN the account master read (ACCTDAT) succeeds, THE Account Update retrieval SHALL mark the account as found.
  • account id: 00000000001; account master: record exists → Account marked found
app/cbl/COACTUPC.cbl:3701-3748, app/cbl/COACTUPC.cbl:389-400
Read account master record
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-13f3573186/2
error handling
error_handling, medium
WHEN the account is not on the account master, THE Account Update retrieval SHALL flag an input error, mark the account search invalid and, if no message is already set, report 'Account:<id> not found in Acct Master file.Resp:<resp> Reas:<reason>'.
app/cbl/COACTUPC.cbl:3701-3748, app/cbl/COACTUPC.cbl:389-400
Read account master record
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-13f3573186/3
error handling
error_handling, medium
WHEN the account master read fails for any other reason, THE Account Update retrieval SHALL flag an input error, mark the account search invalid and report 'File Error: READ on ACCTDAT returned RESP <resp>...'.
app/cbl/COACTUPC.cbl:3701-3748, app/cbl/COACTUPC.cbl:389-400
Read customer master record
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-80f808be41/1
design note
technical, medium
WHEN the customer master read (CUSTDAT) for the account's customer succeeds, THE Account Update retrieval SHALL mark the customer as found.
  • customer id from cross-reference: 000000001; customer master: record exists → Customer marked found
app/cbl/COACTUPC.cbl:3752-3797, app/cbl/COACTUPC.cbl:3631-3634
Read customer master record
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-80f808be41/2
error handling
error_handling, medium
WHEN the customer is not on the customer master, THE Account Update retrieval SHALL flag an input error, mark the customer search invalid and, if no message is already set, report 'CustId:<id> not found in customer master.Resp: <resp> REAS:<reason>'.
app/cbl/COACTUPC.cbl:3752-3797, app/cbl/COACTUPC.cbl:3631-3634
Read customer master record
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-80f808be41/3
error handling
error_handling, medium
WHEN the customer master read fails for any other reason, THE Account Update retrieval SHALL flag an input error, mark the customer search invalid and report 'File Error: READ on CUSTDAT returned RESP <resp>...'.
app/cbl/COACTUPC.cbl:3752-3797, app/cbl/COACTUPC.cbl:3631-3634
Store fetched details as original snapshot
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-71cc32e928/1
design note
technical, medium
WHEN the account is found in the card cross-reference, THE Account Update retrieval SHALL save the account id, customer id, customer names, account status and card number as the session context.
  • account id: 00000000001; cross-reference: found → The session context holds the account, customer and card number for later screens
app/cbl/COACTUPC.cbl:3801-3885, app/cbl/COACTUPC.cbl:3608-3647
Store fetched details as original snapshot
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-71cc32e928/2
design note
technical, medium
WHEN the account is found in the card cross-reference, THE Account Update retrieval SHALL copy the fetched account and customer values into the original snapshot, splitting the open, expiry, reissue and birth dates (YYYY-MM-DD) into year, month and day.
  • stored expiry date: 2027-08-31 → Snapshot expiry year 2027, month 08, day 31
app/cbl/COACTUPC.cbl:3801-3885, app/cbl/COACTUPC.cbl:3608-3647

Acceptance criteria

IDCriterionChecks
AC-01Given entry: first entry from the main menu
When the account update screen is shown on first entry to the function
Then Message 'Enter or update id of account to update'
REQ-F-001
Prompt for account id on first entry
worked example 1 of the rule
AC-02Given account id entered: 00000000099 (not found); update stage: not fetched
When the account update screen is shown, it is not a first entry, and no account details have been fetched yet
Then Message 'Enter or update id of account to update'
REQ-F-002
Prompt for account id when details missing
worked example 1 of the rule
AC-03Given update stage: unrecognised value; information message: blank
When no update stage matches and the information message is blank
Then Message 'Enter or update id of account to update'
REQ-F-003
Default to search prompt and show messages
worked example 1 of the rule
AC-04Given Account ID: 00000000011; Cross-reference: found, customer 000000011
When the account is found in the card cross-reference (by account ID)
Then Customer 000000011 and its card number become the session customer and card.
REQ-F-004
Resolve customer from card cross-reference
worked example 1 of the rule
AC-05Given account id: 00000000001; account master: record exists
When the account master read (ACCTDAT) succeeds
Then Account marked found
REQ-F-007
Read account master record
worked example 1 of the rule
AC-06Given customer id from cross-reference: 000000001; customer master: record exists
When the customer master read (CUSTDAT) for the account's customer succeeds
Then Customer marked found
REQ-F-010
Read customer master record
worked example 1 of the rule
AC-07Given account id: 00000000001; cross-reference: found
When the account is found in the card cross-reference
Then The session context holds the account, customer and card number for later screens
REQ-F-013
Store fetched details as original snapshot
worked example 1 of the rule
AC-08Given stored expiry date: 2027-08-31
When the account is found in the card cross-reference
Then Snapshot expiry year 2027, month 08, day 31
REQ-F-014
Store fetched details as original snapshot
worked example 1 of the rule
AC-09Given no card cross-reference entry exists for account 00000000099
When the operator enters account 00000000099 on the Update account screen and submits
Then the account is flagged invalid, the account and customer are not read, and the screen shows 'Account:00000000099 not found in Cross ref file. Resp:<resp> Reas:<reason>' with the lookup's response and reason codes filled in
REQ-F-005
Resolve customer from card cross-reference
written from the rule
AC-10Given the card cross-reference lookup for a valid account number fails for a reason other than not found (for example, the store is unavailable)
When the operator submits the account number
Then the account is flagged invalid, the lookup stops, and the screen shows 'File Error: READ on CXACAIX returned RESP <resp>,RESP2 <reason>' with the returned codes
REQ-F-006
Resolve customer from card cross-reference
written from the rule
AC-11Given account 00000000099 is in the card cross-reference but has no account master record, and no message is set yet
When the operator submits the account number
Then an input error is flagged, the account search is marked invalid, and the screen shows 'Account:00000000099 not found in Acct Master file.Resp:<resp> Reas:<reason>'; if a message was already set, that earlier message stays
REQ-F-008
Read account master record
written from the rule
AC-12Given the account master read for a cross-referenced account fails for a reason other than not found
When the operator submits the account number
Then an input error is flagged, the account search is marked invalid, and the message starts 'File Error: READ on ACCTDAT returned RESP <resp>' with the returned code
REQ-F-009
Read account master record
written from the rule
AC-13Given the cross-reference for the account names customer 000000123 and no customer master record exists for it, and no message is set yet
When the operator submits the account number
Then an input error is flagged, the customer search is marked invalid, and the screen shows 'CustId:000000123 not found in customer master.Resp: <resp> REAS:<reason>'; if a message was already set, that earlier message stays
REQ-F-011
Read customer master record
written from the rule
AC-14Given the customer master read for the account's customer fails for a reason other than not found
When the operator submits the account number
Then an input error is flagged, the customer search is marked invalid, and the message starts 'File Error: READ on CUSTDAT returned RESP <resp>' with the returned code
REQ-F-012
Read customer master record
written from the rule

Screens

  • Account S-ACCOUNT-VIEW · design · replaces CACTVWA (4 kept, 3 dropped, 33 merged)
  • Update account S-ACCOUNT-EDIT · design · replaces CACTUPA (3 kept, 3 dropped, 53 merged)
    • **lookup field** Account number checks: Blank: 'No input received' - enter an account number. Not 11 digits or all zeros: 'Account Number if supplied must be a 11 digit Non-Zero Number'. Not in the card cross-reference: 'Account:<account> not found in Cross ref file.' - check the number with the caller. Only the account number is checked until an account is fetched.

Data contracts

CSMSG02Y (file record; COACTUPC), CVACT01Y (file record; COACTUPC), CVACT03Y (file record; COACTUPC), CVCUS01Y (file record; COACTUPC), COCOM01Y (working storage; COACTUPC), COTTL01Y (working storage; COACTUPC), CSDAT01Y (working storage; COACTUPC), CSLKPCDY (working storage; COACTUPC), CSMSG01Y (working storage; COACTUPC), CSSETATY (working storage; COACTUPC), CSSTRPFY (working storage; COACTUPC), CSUSR01Y (working storage; COACTUPC), CSUTLDPY (working storage; COACTUPC), CSUTLDWY (working storage; COACTUPC), CVCRD01Y (working storage; COACTUPC)

Decision tables

Outcome of each record read during account lookup

Record readRead resultLookup outcomeRule
Card cross-referenceFoundTake customer ID and card number for the session; go on to read account and customerrec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-08e7dcbdee/1
Card cross-referenceNot foundFlag account invalid, stop lookup, show 'Account:<account> not found in Cross ref file. Resp:<resp> Reas:<reason>'rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-08e7dcbdee/2
Card cross-referenceOther failureFlag account invalid, stop lookup, show 'File Error: READ on CXACAIX returned RESP <resp>,RESP2 <reason>'rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-08e7dcbdee/3
Account masterFoundMark account as foundrec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-13f3573186/1
Account masterNot foundFlag input error, mark account search invalid, report 'Account:<id> not found in Acct Master file...' if no message already setrec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-13f3573186/2
Account masterOther failureFlag input error, mark account search invalid, report 'File Error: READ on ACCTDAT returned RESP <resp>...'rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-13f3573186/3
Customer masterFoundMark customer as foundrec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-80f808be41/1
Customer masterNot foundFlag input error, mark customer search invalid, report 'CustId:<id> not found in customer master...' if no message already setrec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-80f808be41/2
Customer masterOther failureFlag input error, mark customer search invalid, report 'File Error: READ on CUSTDAT returned RESP <resp>...'rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-80f808be41/3
Account masterNot found / Other failureGap: No rule says whether the customer master is still read after the account master read fails, or whether the screen then shows details.

Information message before account details are shown

First entryAccount details fetchedUpdate stage matchedInformation messageRule
Yes--'Enter or update id of account to update'rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-8cc6eb22da/1
NoNo-'Enter or update id of account to update'rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-9076a7917f/1
--No stage matches (message blank)Default to 'Enter or update id of account to update'rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-354aff1fd5/2

Open questions

  • SME-055 When the customer for an account cannot be found during account update, a 'not found' message is shown but the customer is not marked as not found. Should the new system explicitly mark the customer as not found? (Account servicing business owner)
  • DEF-116 Is this intended? When the account is not on the account master, the 'not found' state is never set (that line is commented out), so the check at 3627 never stops processing. The program goes on to read the customer, stores account data it never read, and can show the screen as if details were found. (Subject-matter expert)
  • DEF-117 Is this intended? The 'customer not found' state is never set (that line is commented out), so the program still stores the unread customer record as the original snapshot and in the shared context. The screen stays in 'not fetched' because the customer was not found. (Subject-matter expert)

Design notes

  • Look up the card-to-account cross-reference by account ID (a secondary index on account ID, not the card number). The result gives the customer ID and card number, and the following account and customer reads use them. Keep them in the operator's update session. Resolve customer from card cross-reference
  • Read the account record by its primary key, the 11-digit account ID, and mark the account as found when it exists. Keep 'not found' separate from other read failures: each has its own message. Read account master record
  • Read the customer record by its primary key, using the customer ID taken from the cross-reference, and mark the customer as found when it exists. Keep 'not found' separate from other read failures. Read customer master record
  • Keep the account ID, customer ID, customer names, account status and card number in the operator's update session (server-side state or a signed token). This context must survive across requests until the update is saved or cancelled. Store fetched details as original snapshot
  • Keep a snapshot of the account and customer values as fetched. Change detection and the 'changed by someone else' check on save both compare against it. Hold dates as real dates; the screen may still show and edit the open, expiry, reissue and birth dates as separate year, month and day parts. A version number or timestamp on each record can replace the field-by-field snapshot comparison. Store fetched details as original snapshot
2. View account and customer details for updatefinal · online · 12 requirements · 11 rules · 15 criteria · 2 screens · 1 gap

Shows the operator the stored account and customer details, or the values they have entered, with the right fields open for editing at each stage of the update. Only editable fields may be opened. Account number, customer number and country stay protected while editing, and every field is locked once changes are waiting for confirmation or saved. The screen must always show the current information and error messages.

As an operator, I want the fetched or entered account and customer values shown with the right fields open for editing, so that I can see what is stored and change only what may be changed.

Final: signed off by Sam (acceptance), 2026-11-25 Risk high; touches card_data, money, personal_data. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#2

Requirements

CodeClassRequirementCriteria
REQ-F-015formattingThe system shall always show the current information message and the current error or return message in their message lines.AC-01
REQ-F-016formattingWhen the account update screen shows the original values, the system shall clear all field-error flags and set the information message to 'Update account details presented above.'AC-02
REQ-F-017formattingWhen the account update screen is shown after details were fetched and the stage is details shown ('S') or changes not OK ('E'), the system shall set the information message to 'Update account details presented above.'AC-03, AC-04
REQ-F-018formattingWhen the original values are shown and either the account or the customer was found, the system shall show the stored account status, the current balance, credit limit, cash credit limit and cycle credit and debit as formatted amounts, the open, expiry and reissue dates as year, month and day, and the account group.AC-05
REQ-F-019formattingWhen the original values are shown and the customer was found, the system shall show the stored customer details, with the SSN split into 3-2-4 digits, both phone numbers split into area code, prefix and line number, and the date of birth split into year, month and day.AC-06
REQ-F-020formattingWhen the account update screen is shown on re-entry, the system shall show the entered account id, but leave it blank when the id is zero and the account search is valid.AC-07
REQ-F-021formattingWhen the screen is shown on re-entry and either no details have been fetched or the account id is zero, the system shall show all account and customer fields blank.AC-08
REQ-F-022formattingWhen the screen is shown on re-entry with details shown ('S'), the system shall show the original fetched values, and when changes have been made ('E', 'N', 'C', 'L', 'F'), the system shall show the values the operator entered.AC-09, AC-10
REQ-F-023formattingWhile account details are shown for editing (state 'S') or shown again with input errors (state 'E'), the system shall let the operator change status, credit and cash limits, balance, cycle credit and debit, open, expiry and reissue dates, group, SSN, FICO score, date of birth, names, address lines, city, state, ZIP, both phones, government ID, EFT account and primary-holder flag.AC-11
REQ-N-001formattingWhile account details are shown for editing (state 'S' or 'E'), the system shall keep the account number, customer number and country protected so they cannot be changed.AC-12, AC-13
REQ-N-002formattingWhile changes are waiting for confirmation (state 'N') or have been saved (state 'C'), the system shall protect every field.AC-14, AC-15
REQ-F-024formattingWhile no account is fetched yet or the save failed, the system shall leave only the account number open for entry.AC-14, AC-15

Business rules

RuleClassText, worked examples and evidence
Default to search prompt and show messages
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-354aff1fd5/1
formatting
display, medium
THE Account Update screen SHALL always show the current information message and the current error or return message in their message lines.
  • information message: 'Update account details presented above.'; return message: 'No change detected with respect to values fetched.' → Both messages appear on the screen
app/cbl/COACTUPC.cbl:2955-2982, app/cbl/COACTUPC.cbl:656-668
Display fetched original values
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-34d2853310/1
formatting
display, medium
WHEN the account update screen shows the original values, THE Account Update screen SHALL clear all field-error flags (WS-NON-KEY-FLAGS) and set the information message to 'Update account details presented above.'
  • update stage: 'S' (details shown) → Error highlights are cleared and the message reads 'Update account details presented above.'
app/cbl/COACTUPC.cbl:2785-2864, app/cbl/COACTUPC.cbl:2698-2725
Prompt operator to edit shown details
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-4e6e891582/1
formatting
display, medium
WHEN the account update screen is shown after details were fetched and the stage is details shown ('S') or changes not OK ('E'), THE Account Update messaging SHALL set the information message to 'Update account details presented above.'
  • update stage: 'S' → Message 'Update account details presented above.'
  • update stage: 'E' → Message 'Update account details presented above.'
app/cbl/COACTUPC.cbl:2962-2965, app/cbl/COACTUPC.cbl:470-471
Display fetched original values
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-34d2853310/2
formatting
display, medium
WHEN the original values are shown and either the account or the customer was found, THE Account Update screen SHALL show the stored account status, the current balance, credit limit, cash credit limit and cycle credit and debit as formatted amounts, the open, expiry and reissue dates as year, month and day, and the account group.
  • account found: yes; stored credit limit: 5000.00; stored open date: 2015-03-14 → Credit limit shows as a formatted 5,000.00 and the open date shows as year 2015, month 03, day 14
app/cbl/COACTUPC.cbl:2785-2864, app/cbl/COACTUPC.cbl:2698-2725
Display fetched original values
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-34d2853310/3
formatting
display, medium
WHEN the original values are shown and the customer was found, THE Account Update screen SHALL show the stored customer details, with the SSN split into 3-2-4 digits, both phone numbers split into area code, prefix and line number, and the date of birth split into year, month and day.
  • customer found: yes; stored SSN: 123456789; stored phone 1: (212)555-1234 → SSN shows as 123 / 45 / 6789 and phone 1 shows as 212 / 555 / 1234
app/cbl/COACTUPC.cbl:2785-2864, app/cbl/COACTUPC.cbl:2698-2725
Choose which account values to display
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-377dcc0a54/1
formatting
display, medium
WHEN the account update screen is shown on re-entry, THE Account Update screen SHALL show the entered account id, but leave it blank when the id is zero and the account search is valid.
  • account id: 00000000001 → Account id 00000000001 is shown
app/cbl/COACTUPC.cbl:2698-2725, app/cbl/COACTUPC.cbl:656-668
Choose which account values to display
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-377dcc0a54/2
formatting
display, medium
WHEN the screen is shown on re-entry and either no details have been fetched or the account id is zero, THE Account Update screen SHALL show all account and customer fields blank.
  • update stage: not fetched → All detail fields are blank
app/cbl/COACTUPC.cbl:2698-2725, app/cbl/COACTUPC.cbl:656-668
Choose which account values to display
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-377dcc0a54/3
formatting
display, medium
WHEN the screen is shown on re-entry with details shown ('S'), THE Account Update screen SHALL show the original fetched values; WHEN changes have been made ('E','N','C','L','F'), it SHALL show the values the operator entered.
  • update stage: 'S' → Original stored values are shown
  • update stage: 'E'; entered credit limit: 7000.00 → The entered 7000.00 is shown again, so the operator can correct it
app/cbl/COACTUPC.cbl:2698-2725, app/cbl/COACTUPC.cbl:656-668
Editable versus protected fields
rec/claude:claude/RULE-245/1
formatting
display, medium
WHEN account details are shown for editing (state 'S') or shown again with input errors (state 'E'), THE account update screen SHALL let the operator change status, credit and cash limits, balance, cycle credit and debit, open, expiry and reissue dates, group, SSN, FICO score, date of birth, names, address lines, city, state, ZIP, both phones, government ID, EFT account and primary-holder flag.
  • Screen state: 'S'; Field: Credit limit → The field can be typed in
app/cbl/COACTUPC.cbl:2986-3005, app/cbl/COACTUPC.cbl:3441-3495, app/cbl/COACTUPC.cbl:3500-3560, app/cbl/COACTUPC.cbl:654-668
Editable versus protected fields
rec/claude:claude/RULE-245/2
formatting
display, medium
WHEN account details are shown for editing (state 'S' or 'E'), THE account update screen SHALL keep the account number, customer number and country protected so they cannot be changed.
  • Screen state: 'E'; Field: Country → The field is protected
  • Screen state: 'S'; Field: Customer number → The field is protected
app/cbl/COACTUPC.cbl:2986-3005, app/cbl/COACTUPC.cbl:3441-3495, app/cbl/COACTUPC.cbl:3500-3560, app/cbl/COACTUPC.cbl:654-668
Editable versus protected fields
rec/claude:claude/RULE-245/3
formatting
display, medium
WHEN changes are waiting for confirmation (state 'N') or have been saved (state 'C'), THE account update screen SHALL protect every field; WHEN no account is fetched yet or the save failed, it SHALL leave only the account number open for entry.
  • Screen state: 'N' → All fields are protected while the operator decides whether to press F5 to save
  • Screen state: not fetched (blank) → Only the account number can be entered
app/cbl/COACTUPC.cbl:2986-3005, app/cbl/COACTUPC.cbl:3441-3495, app/cbl/COACTUPC.cbl:3500-3560, app/cbl/COACTUPC.cbl:654-668

Acceptance criteria

IDCriterionChecks
AC-01Given information message: 'Update account details presented above.'; return message: 'No change detected with respect to values fetched.'
When Account Update screen runs
Then Both messages appear on the screen
REQ-F-015
Default to search prompt and show messages
worked example 1 of the rule
AC-02Given update stage: 'S' (details shown)
When the account update screen shows the original values
Then Error highlights are cleared and the message reads 'Update account details presented above.'
REQ-F-016
Display fetched original values
worked example 1 of the rule
AC-03Given update stage: 'S'
When the account update screen is shown after details were fetched and the stage is details shown ('S') or changes not OK ('E')
Then Message 'Update account details presented above.'
REQ-F-017
Prompt operator to edit shown details
worked example 1 of the rule
AC-04Given update stage: 'E'
When the account update screen is shown after details were fetched and the stage is details shown ('S') or changes not OK ('E')
Then Message 'Update account details presented above.'
REQ-F-017
Prompt operator to edit shown details
worked example 2 of the rule
AC-05Given account found: yes; stored credit limit: 5000.00; stored open date: 2015-03-14
When the original values are shown and either the account or the customer was found
Then Credit limit shows as a formatted 5,000.00 and the open date shows as year 2015, month 03, day 14
REQ-F-018
Display fetched original values
worked example 1 of the rule
AC-06Given customer found: yes; stored SSN: 123456789; stored phone 1: (212)555-1234
When the original values are shown and the customer was found
Then SSN shows as 123 / 45 / 6789 and phone 1 shows as 212 / 555 / 1234
REQ-F-019
Display fetched original values
worked example 1 of the rule
AC-07Given account id: 00000000001
When the account update screen is shown on re-entry
Then Account id 00000000001 is shown
REQ-F-020
Choose which account values to display
worked example 1 of the rule
AC-08Given update stage: not fetched
When the screen is shown on re-entry and either no details have been fetched or the account id is zero
Then All detail fields are blank
REQ-F-021
Choose which account values to display
worked example 1 of the rule
AC-09Given update stage: 'S'
When the screen is shown on re-entry with details shown ('S')
Then Original stored values are shown
REQ-F-022
Choose which account values to display
worked example 1 of the rule
AC-10Given update stage: 'E'; entered credit limit: 7000.00
When the screen is shown on re-entry with details shown ('S')
Then The entered 7000.00 is shown again, so the operator can correct it
REQ-F-022
Choose which account values to display
worked example 2 of the rule
AC-11Given Screen state: 'S'; Field: Credit limit
When account details are shown for editing (state 'S') or shown again with input errors (state 'E')
Then The field can be typed in
REQ-F-023
Editable versus protected fields
worked example 1 of the rule
AC-12Given Screen state: 'E'; Field: Country
When account details are shown for editing (state 'S' or 'E')
Then The field is protected
REQ-N-001
Editable versus protected fields
worked example 1 of the rule
AC-13Given Screen state: 'S'; Field: Customer number
When account details are shown for editing (state 'S' or 'E')
Then The field is protected
REQ-N-001
Editable versus protected fields
worked example 2 of the rule
AC-14Given Screen state: 'N'
When changes are waiting for confirmation (state 'N') or have been saved (state 'C')
Then All fields are protected while the operator decides whether to press F5 to save
REQ-N-002, REQ-F-024
Editable versus protected fields
worked example 1 of the rule
AC-15Given Screen state: not fetched (blank)
When changes are waiting for confirmation (state 'N') or have been saved (state 'C')
Then Only the account number can be entered
REQ-N-002, REQ-F-024
Editable versus protected fields
worked example 2 of the rule

Screens

  • Account S-ACCOUNT-VIEW · design · replaces CACTVWA (4 kept, 3 dropped, 33 merged)
  • Update account S-ACCOUNT-EDIT · design · replaces CACTUPA (3 kept, 3 dropped, 53 merged)
    • **lookup field** Account number checks: Blank: 'No input received' - enter an account number. Not 11 digits or all zeros: 'Account Number if supplied must be a 11 digit Non-Zero Number'. Not in the card cross-reference: 'Account:<account> not found in Cross ref file.' - check the number with the caller. Only the account number is checked until an account is fetched.
    • **summary card** Status and group checks: Status is required: 'Account Status must be supplied.' and must be Active or Inactive ('Account Status must be Y or N.'). The choice offers only those two values.
    • **summary card** Fix these before saving
    • **primary button** Save changes checks: If no value differs: 'No change detected with respect to values fetched.' If the record was changed by someone else since it was fetched: 'Record changed by some one else. Please review' and the latest values are shown. If a lock or update fails: 'Changes unsuccessful. Please try again'; nothing is half-saved.

Data contracts

CSMSG02Y (file record; COACTUPC), CVACT01Y (file record; COACTUPC), CVACT03Y (file record; COACTUPC), CVCUS01Y (file record; COACTUPC), COCOM01Y (working storage; COACTUPC), COTTL01Y (working storage; COACTUPC), CSDAT01Y (working storage; COACTUPC), CSLKPCDY (working storage; COACTUPC), CSMSG01Y (working storage; COACTUPC), CSSETATY (working storage; COACTUPC), CSSTRPFY (working storage; COACTUPC), CSUSR01Y (working storage; COACTUPC), CSUTLDPY (working storage; COACTUPC), CSUTLDWY (working storage; COACTUPC), CVCRD01Y (working storage; COACTUPC)

Decision tables

Field protection by update stage

Update stageFields open for entryRule
Details shown ('S')Account and customer detail fields editable; account number, customer number and country protectedrec/claude:claude/RULE-245/1
Changes not OK ('E')Account and customer detail fields editable; account number, customer number and country protectedrec/claude:claude/RULE-245/2
Awaiting confirmation ('N')Every field protectedrec/claude:claude/RULE-245/3
Saved ('C')Every field protectedrec/claude:claude/RULE-245/3
No account fetched yetOnly account number openrec/claude:claude/RULE-245/3
Save failedOnly account number openrec/claude:claude/RULE-245/3
Stage 'L'Gap: R31 lists stage 'L' among change stages, but no rule says which fields are open or protected in that stage.

Which values are shown on re-entry

Details fetchedAccount id zeroUpdate stageValues shownRule
No--All account and customer fields blankrec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-377dcc0a54/2
-Yes-All account and customer fields blankrec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-377dcc0a54/2
YesNoDetails shown ('S')Original fetched valuesrec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-377dcc0a54/3
YesNoChanges made ('E','N','C','L','F')Values the operator enteredrec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-377dcc0a54/3

Open questions

None.

Design notes

None.

3. Capture entered changesfinal · online · 8 requirements · 8 rules · 15 criteria · 2 screens · 2 gaps

Takes what the operator typed on the update screen and turns it into proposed new values for the account and customer. A blank or '*' entry means 'not supplied', never a value to save. Amounts typed as currency (with '$', commas, sign or decimals) are converted to numbers with two decimal places. It must never confuse 'left blank' with a real value, and must never lose or round an entered amount wrongly.

As an operator, I want the values I type to be captured as proposed changes, with blank or '*' entries treated as not supplied, so that the system knows exactly what I intend to change.

Final: signed off by Sam (acceptance), 2026-11-25 Risk high; touches money, personal_data, updates_records. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#3

Requirements

CodeClassRequirementCriteria
REQ-F-025design noteWhen the operator submits changes and the account group entry is '*' or blank, the system shall treat the group as not supplied, and otherwise take the entered group as the proposed group.AC-01, AC-02
REQ-F-026design noteWhen the operator submits changes and the country code entry is '*' or blank, the system shall treat the country code as not supplied, and otherwise take the entered value as the proposed country code.AC-03, AC-04
REQ-F-027design noteWhen account details are already on the update screen and the operator submits the customer number field as '*' or blank, the system shall treat the customer number as not supplied, and otherwise take the entered customer number as the proposed value to compare with the stored one and write to the customer record on save.AC-05, AC-06, AC-07
REQ-F-028design noteWhen account details are already on the update screen and the operator submits the government-issued ID field as '*' or blank, the system shall treat the government ID as not supplied, and otherwise take the entered value as the proposed government ID to compare with the stored one and write to the customer record on save.AC-08
REQ-F-029design noteWhen the operator submits changes to a fetched account and any of the credit limit, cash credit limit, current balance, current cycle credit or current cycle debit is blank or '*', the system shall treat that amount as not supplied.AC-09, AC-10
REQ-F-030design noteWhen an entered amount reads as a valid currency number (an optional '$', thousands commas, a sign and decimals allowed), the system shall convert it to the proposed new numeric amount with two decimal places.AC-11, AC-12
REQ-F-031design noteWhen the operator submits the account update screen after the account details are shown, the system shall treat each year, month or day part of the open, expiry and reissue dates entered as '*' or left blank as not supplied, and take any other entry as typed.AC-13
REQ-F-032design noteWhen the operator enters a date of birth part (year, month or day) as '*' or leaves it blank, the system shall treat that part as not supplied, and otherwise take the entered part as the proposed value.AC-14, AC-15

Business rules

RuleClassText, worked examples and evidence
Stage entered account group
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-ad16065db1/1
design note
technical, medium
WHEN the operator submits changes and the account group entry is '*' or blank, THE Account Update entry capture SHALL treat the group as not supplied (ACUP-NEW-GROUP-ID set to low-values); otherwise it SHALL take the entered group as the proposed group.
  • account group: '*' → Proposed group is not supplied
  • account group: GOLD → Proposed group is GOLD
app/cbl/COACTUPC.cbl:1211-1218, app/cbl/COACTUPC.cbl:1056-1062
Stage country code entry
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-e5b4c36c1b/1
design note
technical, medium
WHEN the operator submits changes and the country code entry is '*' or blank, THE Account Update entry capture SHALL treat the country code as not supplied; otherwise it SHALL take the entered value as the proposed country code.
  • country code: (blank) → Country code not supplied, so the later required-field check fails
  • country code: USA → Proposed country code USA
app/cbl/COACTUPC.cbl:1343-1348
Stage customer identifier entry
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-b7c4210743/1
design note
technical, medium
WHEN account details are already on the update screen and the operator submits the customer number field as '*' or blank, THE account update screen SHALL treat the customer number as not supplied (low-values); otherwise it SHALL take the entered customer number as the proposed value, which is compared with the stored one and written to the customer record on save.
  • Account details shown: yes; Customer number entered: * → The proposed customer number is set to not supplied (low-values)
  • Account details shown: yes; Customer number entered: 000000123 → The proposed customer number is 000000123
  • Account details shown: no (only the account number was entered); Customer number entered: 000000123 → The customer number is not staged; only the account number is read
app/cbl/COACTUPC.cbl:1220-1229, app/cbl/COACTUPC.cbl:1060-1062, app/cbl/COACTUPC.cbl:1708-1711, app/cbl/COACTUPC.cbl:4009
Stage government identifier entry
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-d5025fc321/1
design note
technical, medium
WHEN account details are already on the update screen and the operator submits the government-issued ID field as '*' or blank, THE account update screen SHALL treat the government ID as not supplied (low-values); otherwise it SHALL take the entered value as the proposed government ID, which is compared with the stored one and written to the customer record on save.
  • Account details shown: yes; Government ID entered: (blank) → The proposed government ID is set to not supplied (low-values)
app/cbl/COACTUPC.cbl:1399-1406, app/cbl/COACTUPC.cbl:1060-1062, app/cbl/COACTUPC.cbl:1755-1758, app/cbl/COACTUPC.cbl:4045-4046
Stage entered credit limit amount
rec/group:claude/RULE-023/1
design note
technical, high
WHEN the operator submits changes to a fetched account and any of the five amount fields (credit limit, cash credit limit, current balance, current cycle credit, current cycle debit) is blank or '*', THE Account Update screen SHALL treat that amount as not supplied.
  • Credit limit entered: * → Credit limit is treated as not supplied
  • Cycle debit entered: (blank) → Cycle debit is treated as not supplied
app/cbl/COACTUPC.cbl:1072-1140, app/cbl/COACTUPC.cbl:1458-1470, app/cbl/COACTUPC.cbl:1472-1527, app/cbl/COACTUPC.cbl:2178-2224, app/cbl/COACTUPC.cbl:410-415, app/cbl/COACTUPC.cbl:663
Convert entered credit limit
rec/group:claude/RULE-023/2
design note
technical, high
WHEN an entered amount reads as a valid currency number (an optional '$', thousands commas, a sign and decimals allowed), THE Account Update screen SHALL convert it to the proposed new numeric amount, with two decimal places.
  • Credit limit entered: $5,000.00 → Proposed credit limit is 5000.00
  • Current balance entered: -250.5 → Proposed current balance is -250.50
app/cbl/COACTUPC.cbl:1072-1140, app/cbl/COACTUPC.cbl:1458-1470, app/cbl/COACTUPC.cbl:1472-1527, app/cbl/COACTUPC.cbl:2178-2224, app/cbl/COACTUPC.cbl:410-415, app/cbl/COACTUPC.cbl:663
Stage entered account open date
rec/group:claude/RULE-086/1
design note
technical, high
WHEN the operator submits the account update screen after the account details are shown, THE Account Update screen SHALL treat each year, month or day part of the open, expiry and reissue dates entered as '*' or left blank as not supplied, and take any other entry as typed.
  • Expiry month entry: 05 → The expiry month is taken as 05.
app/cbl/COACTUPC.cbl:1144-1209, app/cbl/COACTUPC.cbl:1460-1543, app/cpy/CSUTLDPY.cpy:18-331, app/cpy/CSUTLDWY.cpy:4-63
Stage date of birth parts
rec/group:claude/RULE-087/1
design note
technical, high
WHEN the operator enters a date of birth part as '*' or leaves it blank, THE account update screen SHALL treat that part (year, month or day) as not supplied; otherwise it SHALL take the entered part as the proposed value.
  • Date of birth year: * → The year is treated as not supplied and fails the date check.
  • Date of birth year: 1980; Month: 05; Day: 14 → 1980-05-14 is taken as the proposed date of birth.
app/cbl/COACTUPC.cbl:1254-1275, app/cbl/COACTUPC.cbl:1533-1543, app/cpy/CSUTLDPY.cpy:341-370

Acceptance criteria

IDCriterionChecks
AC-01Given account group: '*'
When the operator submits changes and the account group entry is '*' or blank
Then Proposed group is not supplied
REQ-F-025
Stage entered account group
worked example 1 of the rule
AC-02Given account group: GOLD
When the operator submits changes and the account group entry is '*' or blank
Then Proposed group is GOLD
REQ-F-025
Stage entered account group
worked example 2 of the rule
AC-03Given country code: (blank)
When the operator submits changes and the country code entry is '*' or blank
Then Country code not supplied, so the later required-field check fails
REQ-F-026
Stage country code entry
worked example 1 of the rule
AC-04Given country code: USA
When the operator submits changes and the country code entry is '*' or blank
Then Proposed country code USA
REQ-F-026
Stage country code entry
worked example 2 of the rule
AC-05Given Account details shown: yes; Customer number entered: *
When account details are already on the update screen and the operator submits the customer number field as '*' or blank
Then The proposed customer number is set to not supplied (low-values)
REQ-F-027
Stage customer identifier entry
worked example 1 of the rule
AC-06Given Account details shown: yes; Customer number entered: 000000123
When account details are already on the update screen and the operator submits the customer number field as '*' or blank
Then The proposed customer number is 000000123
REQ-F-027
Stage customer identifier entry
worked example 2 of the rule
AC-07Given Account details shown: no (only the account number was entered); Customer number entered: 000000123
When account details are already on the update screen and the operator submits the customer number field as '*' or blank
Then The customer number is not staged; only the account number is read
REQ-F-027
Stage customer identifier entry
worked example 3 of the rule
AC-08Given Account details shown: yes; Government ID entered: (blank)
When account details are already on the update screen and the operator submits the government-issued ID field as '*' or blank
Then The proposed government ID is set to not supplied (low-values)
REQ-F-028
Stage government identifier entry
worked example 1 of the rule
AC-09Given Credit limit entered: *
When the operator submits changes to a fetched account and any of the five amount fields (credit limit, cash credit limit, current balance, current cycle credit, current cycle debit) is blank or '*'
Then Credit limit is treated as not supplied
REQ-F-029
Stage entered credit limit amount
worked example 1 of the rule
AC-10Given Cycle debit entered: (blank)
When the operator submits changes to a fetched account and any of the five amount fields (credit limit, cash credit limit, current balance, current cycle credit, current cycle debit) is blank or '*'
Then Cycle debit is treated as not supplied
REQ-F-029
Stage entered credit limit amount
worked example 2 of the rule
AC-11Given Credit limit entered: $5,000.00
When an entered amount reads as a valid currency number (an optional '$', thousands commas, a sign and decimals allowed)
Then Proposed credit limit is 5000.00
REQ-F-030
Convert entered credit limit
worked example 1 of the rule
AC-12Given Current balance entered: -250.5
When an entered amount reads as a valid currency number (an optional '$', thousands commas, a sign and decimals allowed)
Then Proposed current balance is -250.50
REQ-F-030
Convert entered credit limit
worked example 2 of the rule
AC-13Given Expiry month entry: 05
When the operator submits the account update screen after the account details are shown
Then The expiry month is taken as 05.
REQ-F-031
Stage entered account open date
worked example 1 of the rule
AC-14Given Date of birth year: *
When the operator enters a date of birth part as '*' or leaves it blank
Then The year is treated as not supplied and fails the date check.
REQ-F-032
Stage date of birth parts
worked example 1 of the rule
AC-15Given Date of birth year: 1980; Month: 05; Day: 14
When the operator enters a date of birth part as '*' or leaves it blank
Then 1980-05-14 is taken as the proposed date of birth.
REQ-F-032
Stage date of birth parts
worked example 2 of the rule

Screens

  • Account S-ACCOUNT-VIEW · design · replaces CACTVWA (4 kept, 3 dropped, 33 merged)
  • Update account S-ACCOUNT-EDIT · design · replaces CACTUPA (3 kept, 3 dropped, 53 merged)
    • **summary card** Status and group checks: Status is required: 'Account Status must be supplied.' and must be Active or Inactive ('Account Status must be Y or N.'). The choice offers only those two values.
    • **summary card** Account dates checks: For each date, in the rule's words: '<date> : Year must be supplied.', '<date> must be 4 digit number.', '<date> : Century is not valid.' (year must start 19 or 20), '<date> : Month must be supplied.', '<date>: Month must be a number between 1 and 12.', '<date> : Day must be supplied.', '<date>:day must be a number between 1 and 31.', '<date>:Cannot have 31 days in this month.', '<date>:Cannot have 30 days in this month.', '<date>:Not a leap year.Cannot have 29 days in this month.', and a final calendar check '<date> validation error'. The message sits under the part to fix.
    • **summary card** Limits and balances checks: Each amount is required: '<field> must be supplied.' (e.g. 'Credit Limit must be supplied.'), and must be a currency number: '<field> is not valid' - enter an amount such as 1,250.00. Negative values and zero are accepted.
    • **summary card** Customer identity checks: SSN: 'SSN: First 3 chars must be supplied.', 'SSN: First 3 chars must be all numeric.', 'SSN: First 3 chars: should not be 000, 666, or between 900 and 999'; the 4th & 5th and last 4 characters must each be supplied, all numeric and non-zero. Date of birth: the date checks above, and 'Date of Birth:cannot be in the future '. FICO: 'FICO Score must be supplied.', 'FICO Score must be all numeric.', 'FICO Score must not be zero.', 'FICO Score: should be between 300 and 850'.
    • **summary card** Name and address checks: '<field> must be supplied.' for First Name, Last Name, City, State, Country and Address Line 1; '<field> can have alphabets only.' for names, city, state and country; 'Middle Name can have alphabets only.'; 'State: is not a valid state code'; ZIP: 'ZIP must be supplied.', must be all numeric, 5 digits and not zero; 'Invalid zip code for state' - check the state and ZIP together.

Data contracts

CSMSG02Y (file record; COACTUPC), CVACT01Y (file record; COACTUPC), CVACT03Y (file record; COACTUPC), CVCUS01Y (file record; COACTUPC), COCOM01Y (working storage; COACTUPC), COTTL01Y (working storage; COACTUPC), CSDAT01Y (working storage; COACTUPC), CSLKPCDY (working storage; COACTUPC), CSMSG01Y (working storage; COACTUPC), CSSETATY (working storage; COACTUPC), CSSTRPFY (working storage; COACTUPC), CSUSR01Y (working storage; COACTUPC), CSUTLDPY (working storage; COACTUPC), CSUTLDWY (working storage; COACTUPC), CVCRD01Y (working storage; COACTUPC)

Decision tables

Capture of each entered field

FieldEntry is '*' or blankCaptured valueRule
Account groupYesNot suppliedrec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-ad16065db1/1
Account groupNoEntered group is the proposed grouprec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-ad16065db1/1
Country codeYesNot suppliedrec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-e5b4c36c1b/1
Country codeNoEntered value is the proposed country coderec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-e5b4c36c1b/1
Customer numberYesNot suppliedrec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-b7c4210743/1
Customer numberNoEntered value is the proposed customer numberrec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-b7c4210743/1
Government IDYesNot suppliedrec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-d5025fc321/1
Government IDNoEntered value is the proposed government IDrec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-d5025fc321/1
Any of the five amountsYesNot suppliedrec/group:claude/RULE-023/1
Any of the five amountsNo (valid currency number)Converted to proposed amount with two decimal placesrec/group:claude/RULE-023/2
Open, expiry or reissue date partYesNot suppliedrec/group:claude/RULE-086/1
Open, expiry or reissue date partNoTaken as typedrec/group:claude/RULE-086/1
Date of birth partYesNot suppliedrec/group:claude/RULE-087/1
Date of birth partNoTaken as the proposed valuerec/group:claude/RULE-087/1
Status, SSN, FICO score, names, address lines, city, state, ZIP, phones, EFT account, primary-holder flagYes / NoGap: No rule says how '*' or blank entries are captured for these fields.
Any of the five amountsNo (not a valid currency number)Gap: No rule says what proposed amount is held when the entry is not a valid currency number (validation rejects it, see R43).

Open questions

  • SME-056 Can the customer identifier be changed on the account update screen, or should it be shown read-only? (Account servicing business owner)
  • DEF-011 Confirm this is deliberate: The amount check accepts any signed currency number, so a negative or zero credit limit, cash credit limit or cycle amount passes validation and can be saved. (Subject-matter expert)
  • DEF-036 Is this intended? When the date service returns a non-zero severity, the check jumps to the end of the final-check paragraph (EDIT-DATE-LE-EXIT). It then runs on into the statement that marks the whole date valid (WS-EDIT-DATE-IS-VALID). The rejected date's year, month and day flags are therefore reset to valid, the field is not marked as in error, and for Date of Birth the future-date check still runs. The input-error state and the message do stay set. (Subject-matter expert)
  • DEF-037 Is this intended? A date of birth equal to today is rejected with a message saying it is in the future, which it is not. (Subject-matter expert)

Design notes

  • Model the proposed account group as an optional value: blank or '*' input becomes 'absent' (null), not an empty string. Any other input becomes the proposed group. Stage entered account group
  • Treat blank or '*' country code input as absent (null). Otherwise take the entered value as the proposed country code. Stage country code entry
  • Treat a blank or '*' customer number as absent (null); otherwise it is the proposed value. Change detection compares it with the stored customer number, and it is written to the customer record on save. Stage customer identifier entry
  • Treat a blank or '*' government-issued ID as absent (null); otherwise it is the proposed value. Change detection compares it with the stored ID, and it is written to the customer record on save. Stage government identifier entry
  • Hold each of the five amounts as an optional input: credit limit, cash credit limit, current balance, current cycle credit and current cycle debit. Blank or '*' means absent, which validation then reports as 'must be supplied.'. Stage entered credit limit amount
  • Parse entered amounts with a currency parser that accepts an optional '$', thousands commas, a sign and decimals. Convert to an exact decimal with two places (a decimal type, never floating point). Input that does not parse stays as entered text so validation can report it as not valid. Convert entered credit limit
  • Capture the open, expiry and reissue dates as three separate optional parts (year, month, day). A blank or '*' part is absent; any other part is kept exactly as typed so date validation can check it. Stage entered account open date
  • Capture the date of birth as three separate optional parts (year, month, day). A blank or '*' part is absent; any other part is kept as typed for validation. Stage date of birth parts
4. Validate changed account and customer fieldsfinal · online · 13 requirements · 10 rules · 18 criteria · 2 screens · 1 gap

Checks every changed account and customer field before the operator may confirm the update: flags, dates, amounts, SSN, FICO score, names and address. Changes may be confirmed only when every check passes. Invalid details must never be saved, and only the first error found is shown.

As an operator, I want every changed account and customer field checked before I can confirm, so that only valid details are saved.

Final: signed off by Sam (acceptance), 2026-11-25 Risk high; touches money, personal_data. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#4

Requirements

CodeClassRequirementCriteria
REQ-F-033business ruleWhen account details have been fetched and the entered values differ from the fetched ones, and the changes are not already validated or saved, the system shall check every account and customer field and mark the changes not OK ('E') until all checks pass.AC-01, AC-02, AC-03
REQ-F-034business ruleThe system shall require the account status and the primary card holder flag to be Y or N.AC-02, AC-03, AC-04, AC-05
REQ-F-035business ruleThe system shall require the open, expiry, reissue and birth dates to be valid dates, with the birth date passing an extra date-of-birth check.AC-02, AC-03, AC-04, AC-05
REQ-F-036business ruleThe system shall require the credit limit, cash credit limit, current balance, cycle credit and cycle debit to be valid signed currency numbers.AC-02, AC-03, AC-04, AC-05
REQ-F-037business ruleIf an amount is not supplied (blank or '*'), then the system shall reject it with the message '<field> must be supplied.' (for example 'Credit Limit must be supplied.').AC-15, AC-16
REQ-F-038business ruleIf a supplied amount is not a valid currency number, then the system shall reject it with the message '<field> is not valid', using the names 'Credit Limit', 'Cash Credit Limit', 'Current Balance', 'Current Cycle Credit Limit' or 'Current Cycle Debit Limit'.AC-17, AC-18
REQ-F-039business ruleThe system shall accept any valid currency number for the five amounts, including negative values and zero, without a range or sign check.AC-06, AC-07
REQ-F-040business ruleIf the first 3 digits of the SSN are 000, 666 or 900-999, then the system shall reject the SSN with ': should not be 000, 666, or between 900 and 999'.AC-08, AC-09
REQ-F-041business ruleThe system shall require the FICO score to be 3 digits between 300 and 850, rejecting it otherwise with ': should be between 300 and 850'.AC-08, AC-09
REQ-F-042business ruleThe system shall require the first and last names (25 characters), city (50) and country (3) to be letters only, allow the middle name (25) to be blank but letters only, and require address line 1 (50).AC-10, AC-11
REQ-F-043business ruleThe system shall require the state to be a valid 2-letter US state code (': is not a valid state code'), the ZIP to be 5 digits, the state and ZIP to match each other, both phone numbers to be valid US numbers, and the EFT account id to be 10 digits.AC-12, AC-13
REQ-N-003business ruleThe system shall show only the first error message found on the screen.AC-06, AC-07
REQ-F-044business ruleWhen all field checks pass, the system shall set the stage to changes validated but not confirmed ('N').AC-14

Business rules

RuleClassText, worked examples and evidence
Validate each changed account field
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-d19f8c8d13/1
business rule
validation, medium
WHEN account details have been fetched and the entered values differ from the fetched ones, and the changes are not already validated or saved, THE Account Update validation SHALL check every account and customer field and mark the changes not OK ('E') until all checks pass.
  • changed field: credit limit 5000.00 to 7000.00 → All fields are checked; if any fail, the stage becomes 'E' and the screen asks for corrections
app/cbl/COACTUPC.cbl:1429-1475, app/cbl/COACTUPC.cbl:1476-1676, app/cbl/COACTUPC.cbl:2431-2531
Validate account status, dates and amounts
rec/group:claude/RULE-023/3
business rule
validation, high
WHEN the operator has changed a fetched account and the changes are not yet confirmed, THE Account Update validation SHALL mark the changes as not OK ('E') and check the account status as Y/N, the open, expiry and reissue dates as calendar dates, and the five amounts as signed currency numbers.
  • Changes made: credit limit changed from 5000.00 to 6000.00 → Status, open/expiry/reissue dates and all five amounts are checked before the change can be confirmed
  • Changes made: none → No field checks run
app/cbl/COACTUPC.cbl:1072-1140, app/cbl/COACTUPC.cbl:1458-1470, app/cbl/COACTUPC.cbl:1472-1527, app/cbl/COACTUPC.cbl:2178-2224, app/cbl/COACTUPC.cbl:410-415, app/cbl/COACTUPC.cbl:663
Validate each changed account field
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-d19f8c8d13/2
business rule
validation, medium
THE Account Update validation SHALL require the account status and the primary card holder flag to be Y or N; the open, expiry, reissue and birth dates to be valid dates, with the birth date passing an extra date-of-birth check; and the credit limit, cash credit limit, current balance, cycle credit and cycle debit to be valid signed amounts.
  • account status: X → Rejected; the account status must be Y or N
  • expiry date: 2025-13-01 → Rejected as an invalid date
app/cbl/COACTUPC.cbl:1429-1475, app/cbl/COACTUPC.cbl:1476-1676, app/cbl/COACTUPC.cbl:2431-2531
Validate signed monetary amount
rec/group:claude/RULE-023/4
business rule
validation, high
WHEN an amount is not supplied (blank or '*'), THE Account Update validation SHALL reject it with the message '<field> must be supplied.' (for example 'Credit Limit must be supplied.').
app/cbl/COACTUPC.cbl:1072-1140, app/cbl/COACTUPC.cbl:1458-1470, app/cbl/COACTUPC.cbl:1472-1527, app/cbl/COACTUPC.cbl:2178-2224, app/cbl/COACTUPC.cbl:410-415, app/cbl/COACTUPC.cbl:663
Validate signed monetary amount
rec/group:claude/RULE-023/5
business rule
validation, high
WHEN a supplied amount is not a valid currency number, THE Account Update validation SHALL reject it with the message '<field> is not valid', using the names 'Credit Limit', 'Cash Credit Limit', 'Current Balance', 'Current Cycle Credit Limit' or 'Current Cycle Debit Limit'.
app/cbl/COACTUPC.cbl:1072-1140, app/cbl/COACTUPC.cbl:1458-1470, app/cbl/COACTUPC.cbl:1472-1527, app/cbl/COACTUPC.cbl:2178-2224, app/cbl/COACTUPC.cbl:410-415, app/cbl/COACTUPC.cbl:663
Validate signed monetary amount
rec/group:claude/RULE-023/6
business rule
validation, high
THE Account Update validation SHALL accept any valid currency number for the five amounts, including negative values and zero, without a range or sign check, and SHALL show only the first error message found on the screen.
  • Cash credit limit entered: -100 → Accepted as -100.00
  • Credit limit entered: 12a; Current balance entered: (blank) → Only 'Credit Limit is not valid' is shown
app/cbl/COACTUPC.cbl:1072-1140, app/cbl/COACTUPC.cbl:1458-1470, app/cbl/COACTUPC.cbl:1472-1527, app/cbl/COACTUPC.cbl:2178-2224, app/cbl/COACTUPC.cbl:410-415, app/cbl/COACTUPC.cbl:663
Validate each changed account field
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-d19f8c8d13/3
business rule
validation, medium
THE Account Update validation SHALL reject an SSN whose first 3 digits are 000, 666 or 900-999 (': should not be 000, 666, or between 900 and 999'), and SHALL require the FICO score to be 3 digits between 300 and 850 (': should be between 300 and 850').
  • SSN: 666-12-3456 → Rejected with ': should not be 000, 666, or between 900 and 999'
  • FICO score: 900 → Rejected with ': should be between 300 and 850'
app/cbl/COACTUPC.cbl:1429-1475, app/cbl/COACTUPC.cbl:1476-1676, app/cbl/COACTUPC.cbl:2431-2531
Validate each changed account field
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-d19f8c8d13/4
business rule
validation, medium
THE Account Update validation SHALL require the first and last names (25 characters), city (50) and country (3) to be letters only; allow the middle name (25) to be blank but letters only; and require address line 1 (50).
  • first name: J0hn → Rejected because the name contains a digit
  • middle name: (blank) → Accepted
app/cbl/COACTUPC.cbl:1429-1475, app/cbl/COACTUPC.cbl:1476-1676, app/cbl/COACTUPC.cbl:2431-2531
Validate each changed account field
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-d19f8c8d13/5
business rule
validation, medium
THE Account Update validation SHALL require the state to be a valid 2-letter US state code (': is not a valid state code'), the ZIP to be 5 digits, the state and ZIP to match each other, both phone numbers to be valid US numbers, and the EFT account id to be 10 digits.
  • state: ZZ → Rejected with ': is not a valid state code'
  • EFT account id: 12345 → Rejected because 10 digits are required
app/cbl/COACTUPC.cbl:1429-1475, app/cbl/COACTUPC.cbl:1476-1676, app/cbl/COACTUPC.cbl:2431-2531
Validate each changed account field
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-d19f8c8d13/6
business rule
business, medium
WHEN all field checks pass, THE Account Update validation SHALL set the stage to changes validated but not confirmed ('N').
  • all changed fields: valid → Stage 'N'; the screen prompts 'Changes validated.Press F5 to save'
app/cbl/COACTUPC.cbl:1429-1475, app/cbl/COACTUPC.cbl:1476-1676, app/cbl/COACTUPC.cbl:2431-2531

Acceptance criteria

IDCriterionChecks
AC-01Given changed field: credit limit 5000.00 to 7000.00
When account details have been fetched and the entered values differ from the fetched ones, and the changes are not already validated or saved
Then All fields are checked; if any fail, the stage becomes 'E' and the screen asks for corrections
REQ-F-033
Validate each changed account field
worked example 1 of the rule
AC-02Given Changes made: credit limit changed from 5000.00 to 6000.00
When the operator has changed a fetched account and the changes are not yet confirmed
Then Status, open/expiry/reissue dates and all five amounts are checked before the change can be confirmed
REQ-F-033, REQ-F-034, REQ-F-035, REQ-F-036
Validate account status, dates and amounts
worked example 1 of the rule
AC-03Given Changes made: none
When the operator has changed a fetched account and the changes are not yet confirmed
Then No field checks run
REQ-F-033, REQ-F-034, REQ-F-035, REQ-F-036
Validate account status, dates and amounts
worked example 2 of the rule
AC-04Given account status: X
When Account Update validation runs
Then Rejected; the account status must be Y or N
REQ-F-034, REQ-F-035, REQ-F-036
Validate each changed account field
worked example 1 of the rule
AC-05Given expiry date: 2025-13-01
When Account Update validation runs
Then Rejected as an invalid date
REQ-F-034, REQ-F-035, REQ-F-036
Validate each changed account field
worked example 2 of the rule
AC-06Given Cash credit limit entered: -100
When Account Update validation runs
Then Accepted as -100.00
REQ-F-039, REQ-N-003
Validate signed monetary amount
worked example 1 of the rule
AC-07Given Credit limit entered: 12a; Current balance entered: (blank)
When Account Update validation runs
Then Only 'Credit Limit is not valid' is shown
REQ-F-039, REQ-N-003
Validate signed monetary amount
worked example 2 of the rule
AC-08Given SSN: 666-12-3456
When Account Update validation runs
Then Rejected with ': should not be 000, 666, or between 900 and 999'
REQ-F-040, REQ-F-041
Validate each changed account field
worked example 1 of the rule
AC-09Given FICO score: 900
When Account Update validation runs
Then Rejected with ': should be between 300 and 850'
REQ-F-040, REQ-F-041
Validate each changed account field
worked example 2 of the rule
AC-10Given first name: J0hn
When Account Update validation runs
Then Rejected because the name contains a digit
REQ-F-042
Validate each changed account field
worked example 1 of the rule
AC-11Given middle name: (blank)
When Account Update validation runs
Then Accepted
REQ-F-042
Validate each changed account field
worked example 2 of the rule
AC-12Given state: ZZ
When Account Update validation runs
Then Rejected with ': is not a valid state code'
REQ-F-043
Validate each changed account field
worked example 1 of the rule
AC-13Given EFT account id: 12345
When Account Update validation runs
Then Rejected because 10 digits are required
REQ-F-043
Validate each changed account field
worked example 2 of the rule
AC-14Given all changed fields: valid
When all field checks pass
Then Stage 'N'; the screen prompts 'Changes validated.Press F5 to save'
REQ-F-044
Validate each changed account field
worked example 1 of the rule
AC-15Given an account is shown for update and the operator has changed a field
When the operator clears the Credit Limit (or enters '*') and submits
Then the change is rejected with 'Credit Limit must be supplied.' and the update does not move to awaiting confirmation
REQ-F-037
Validate signed monetary amount
written from the rule
AC-16Given an account is shown for update and the operator has changed a field
When the operator leaves the Cash Credit Limit blank and submits
Then the change is rejected with 'Cash Credit Limit must be supplied.'
REQ-F-037
Validate signed monetary amount
written from the rule
AC-17Given an account is shown for update
When the operator enters 'ABC' as the Current Balance and submits
Then the change is rejected with 'Current Balance is not valid'
REQ-F-038
Validate signed monetary amount
written from the rule
AC-18Given an account is shown for update
When the operator enters '12x.50' as the current cycle credit and submits
Then the change is rejected with 'Current Cycle Credit Limit is not valid'; an invalid current cycle debit is rejected the same way with 'Current Cycle Debit Limit is not valid'
REQ-F-038
Validate signed monetary amount
written from the rule

Screens

  • Account S-ACCOUNT-VIEW · design · replaces CACTVWA (4 kept, 3 dropped, 33 merged)
  • Update account S-ACCOUNT-EDIT · design · replaces CACTUPA (3 kept, 3 dropped, 53 merged)
    • **summary card** Status and group checks: Status is required: 'Account Status must be supplied.' and must be Active or Inactive ('Account Status must be Y or N.'). The choice offers only those two values.
    • **summary card** Account dates checks: For each date, in the rule's words: '<date> : Year must be supplied.', '<date> must be 4 digit number.', '<date> : Century is not valid.' (year must start 19 or 20), '<date> : Month must be supplied.', '<date>: Month must be a number between 1 and 12.', '<date> : Day must be supplied.', '<date>:day must be a number between 1 and 31.', '<date>:Cannot have 31 days in this month.', '<date>:Cannot have 30 days in this month.', '<date>:Not a leap year.Cannot have 29 days in this month.', and a final calendar check '<date> validation error'. The message sits under the part to fix.
    • **summary card** Limits and balances checks: Each amount is required: '<field> must be supplied.' (e.g. 'Credit Limit must be supplied.'), and must be a currency number: '<field> is not valid' - enter an amount such as 1,250.00. Negative values and zero are accepted.
    • **summary card** Customer identity checks: SSN: 'SSN: First 3 chars must be supplied.', 'SSN: First 3 chars must be all numeric.', 'SSN: First 3 chars: should not be 000, 666, or between 900 and 999'; the 4th & 5th and last 4 characters must each be supplied, all numeric and non-zero. Date of birth: the date checks above, and 'Date of Birth:cannot be in the future '. FICO: 'FICO Score must be supplied.', 'FICO Score must be all numeric.', 'FICO Score must not be zero.', 'FICO Score: should be between 300 and 850'.
    • **summary card** Name and address checks: '<field> must be supplied.' for First Name, Last Name, City, State, Country and Address Line 1; '<field> can have alphabets only.' for names, city, state and country; 'Middle Name can have alphabets only.'; 'State: is not a valid state code'; ZIP: 'ZIP must be supplied.', must be all numeric, 5 digits and not zero; 'Invalid zip code for state' - check the state and ZIP together.
    • **summary card** Fix these before saving

Data contracts

CSMSG02Y (file record; COACTUPC), CVACT01Y (file record; COACTUPC), CVACT03Y (file record; COACTUPC), CVCUS01Y (file record; COACTUPC), COCOM01Y (working storage; COACTUPC), COTTL01Y (working storage; COACTUPC), CSDAT01Y (working storage; COACTUPC), CSLKPCDY (working storage; COACTUPC), CSMSG01Y (working storage; COACTUPC), CSSETATY (working storage; COACTUPC), CSSTRPFY (working storage; COACTUPC), CSUSR01Y (working storage; COACTUPC), CSUTLDPY (working storage; COACTUPC), CSUTLDWY (working storage; COACTUPC), CVCRD01Y (working storage; COACTUPC)

Decision tables

Amount field validation

Amount entryValidation resultRule
Not supplied (blank or '*')Reject with '<field> must be supplied.'rec/group:claude/RULE-023/4
Supplied, not a valid currency numberReject with '<field> is not valid'rec/group:claude/RULE-023/5
Valid currency number (including negative or zero)Accept, no range or sign checkrec/group:claude/RULE-023/6

Validation stage

Entered values differ from fetchedChanges already validated or savedAll field checks passUpdate stageRule
YesNoNoChanges not OK ('E')rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-d19f8c8d13/1
YesNo-Mark not OK ('E') and check status, dates and five amountsrec/group:claude/RULE-023/3
YesNoYesChanges validated but not confirmed ('N')rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-d19f8c8d13/6
NoNo-Gap: No rule says what happens when the operator submits without changing any value.

Open questions

  • SME-057 Please supply the complete, authoritative list of valid general-purpose phone area codes. Today it is described only as running from '201' to '989'. (Data governance team)
  • SME-063 At present, a phone number counts as 'not supplied' when the area code and exchange are blank, even if a line number was entered. Is that intended, or should a phone count as not supplied only when all three parts are blank? (Business analyst)
  • SME-064 Should the second and third parts of a social security number be validated only when the first part is valid, or always? (Business analyst)
  • DEF-011 Confirm this is deliberate: The amount check accepts any signed currency number, so a negative or zero credit limit, cash credit limit or cycle amount passes validation and can be saved. (Subject-matter expert)
  • DEF-113 Confirm this is deliberate: The SSN middle and last parts, the government id and address line 2 get no content check beyond the SSN edit, and address line 2 is deliberately left optional. (Subject-matter expert)

Design notes

None.

5. Validate account and customer datesfinal · online · 14 requirements · 14 rules · 15 criteria · 2 screens · 2 gaps

Checks the account open, expiry and reissue dates and the customer's date of birth, part by part and then as real calendar dates, whenever the operator changes account or customer details. Impossible dates (such as 31 April, 30 February or 29 February in a non-leap year) and years outside 19xx/20xx must never be saved. Each problem is reported with the date's name in the message.

As an operator, I want the open, expiry, reissue and birth dates checked part by part and as real calendar dates, so that impossible dates are never saved.

Final: signed off by Sam (acceptance), 2026-11-25 Risk medium; touches personal_data. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#5

Requirements

CodeClassRequirementCriteria
REQ-F-045business ruleWhen the entered values differ from the stored account and are not awaiting or past confirmation, the system shall check the 'Open Date', 'Expiry Date', 'Reissue Date' and 'Date of Birth' in that order with the same date check, prefix each message with the date's name, and show only the first error message found.AC-01
REQ-F-046business ruleIf the year of a date is blank, then the system shall reject the date with '<date name> : Year must be supplied.' and still go on to check the month and day.AC-08
REQ-F-047business ruleIf the year of a date is not a four-digit number, then the system shall reject the date with '<date name> must be 4 digit number.'AC-09
REQ-F-048business ruleIf a numeric year does not start with 19 or 20, then the system shall reject the date with '<date name> : Century is not valid.'AC-02
REQ-F-049business ruleIf the month of a date is blank, then the system shall reject the date with '<date name> : Month must be supplied.'AC-10
REQ-F-050business ruleIf the month of a date is not a number from 1 to 12, then the system shall reject the date with '<date name>: Month must be a number between 1 and 12.'AC-11
REQ-F-051business ruleIf the day of a date is blank, then the system shall reject the date with '<date name> : Day must be supplied.'AC-12
REQ-F-052business ruleIf the day of a date is not a number or is outside 1 to 31, then the system shall reject the date with '<date name>:day must be a number between 1 and 31.'AC-13
REQ-F-053business ruleIf the day is 31 and the month is not 1, 3, 5, 7, 8, 10 or 12, then the system shall reject the date with '<date name>:Cannot have 31 days in this month.' and stop checking that date.AC-14
REQ-F-054business ruleIf the date is 30 February, then the system shall reject it with '<date name>:Cannot have 30 days in this month.' and stop checking that date.AC-15
REQ-F-055business ruleIf the date is 29 February and the year is not a leap year (a year ending in 00 must divide by 400, any other year by 4), then the system shall reject it with '<date name>:Not a leap year.Cannot have 29 days in this month.'AC-03, AC-04
REQ-F-056business ruleIf any of the year, month or day of a date has failed its check, then the system shall stop checking that date without the final date-service check.AC-05
REQ-F-057business ruleWhen a date passes all the earlier checks, the system shall confirm it with the date service (CSUTLDTC) in format 'YYYYMMDD' and reject it with '<date name> validation error Sev code: <severity> Message code: <message number>' if the service returns a non-zero severity.AC-06
REQ-F-058error handlingWhen the date service rejects a date, the system shall still mark the date's year, month and day as valid, so that only the error message and the screen's input-error state record the failure.AC-07

Business rules

RuleClassText, worked examples and evidence
Validate the four account and customer dates
rec/group:claude/RULE-086/2
business rule
validation, high
WHEN the entered values differ from the stored account and are not awaiting or past confirmation, THE Account Update validation SHALL check the 'Open Date', 'Expiry Date', 'Reissue Date' and 'Date of Birth' in that order with the same date check, prefix each message with the date's name, and show only the first error message found.
  • Changes: none compared with stored data → No date is checked.
app/cbl/COACTUPC.cbl:1144-1209, app/cbl/COACTUPC.cbl:1460-1543, app/cpy/CSUTLDPY.cpy:18-331, app/cpy/CSUTLDWY.cpy:4-63
Reject missing date year
rec/group:claude/RULE-086/3
business rule
validation, high
WHEN the year of a date is blank, THE Date Validation SHALL reject the date with '<date name> : Year must be supplied.' and still go on to check the month and day.
app/cbl/COACTUPC.cbl:1144-1209, app/cbl/COACTUPC.cbl:1460-1543, app/cpy/CSUTLDPY.cpy:18-331, app/cpy/CSUTLDWY.cpy:4-63
Reject non-numeric date year
rec/group:claude/RULE-086/4
business rule
validation, high
WHEN the year of a date is not a four-digit number, THE Date Validation SHALL reject the date with '<date name> must be 4 digit number.'
app/cbl/COACTUPC.cbl:1144-1209, app/cbl/COACTUPC.cbl:1460-1543, app/cpy/CSUTLDPY.cpy:18-331, app/cpy/CSUTLDWY.cpy:4-63
Restrict date century to 19 or 20
rec/group:claude/RULE-086/5
business rule
validation, high
WHEN a numeric year does not start with 19 or 20, THE Date Validation SHALL reject the date with '<date name> : Century is not valid.'
  • Expiry Date: 1999-12-31 → The year passes.
app/cbl/COACTUPC.cbl:1144-1209, app/cbl/COACTUPC.cbl:1460-1543, app/cpy/CSUTLDPY.cpy:18-331, app/cpy/CSUTLDWY.cpy:4-63
Reject missing date month
rec/group:claude/RULE-086/6
business rule
validation, high
WHEN the month of a date is blank, THE Date Validation SHALL reject the date with '<date name> : Month must be supplied.'
app/cbl/COACTUPC.cbl:1144-1209, app/cbl/COACTUPC.cbl:1460-1543, app/cpy/CSUTLDPY.cpy:18-331, app/cpy/CSUTLDWY.cpy:4-63
Reject month outside 1 to 12
rec/group:claude/RULE-086/7
business rule
validation, high
WHEN the month of a date is not a number from 1 to 12, THE Date Validation SHALL reject the date with '<date name>: Month must be a number between 1 and 12.'
app/cbl/COACTUPC.cbl:1144-1209, app/cbl/COACTUPC.cbl:1460-1543, app/cpy/CSUTLDPY.cpy:18-331, app/cpy/CSUTLDWY.cpy:4-63
Reject missing date day
rec/group:claude/RULE-086/8
business rule
validation, high
WHEN the day of a date is blank, THE Date Validation SHALL reject the date with '<date name> : Day must be supplied.'
app/cbl/COACTUPC.cbl:1144-1209, app/cbl/COACTUPC.cbl:1460-1543, app/cpy/CSUTLDPY.cpy:18-331, app/cpy/CSUTLDWY.cpy:4-63
Reject non-numeric date day
rec/group:claude/RULE-086/9
business rule
validation, high
WHEN the day of a date is not a number or is outside 1 to 31, THE Date Validation SHALL reject the date with '<date name>:day must be a number between 1 and 31.'
app/cbl/COACTUPC.cbl:1144-1209, app/cbl/COACTUPC.cbl:1460-1543, app/cpy/CSUTLDPY.cpy:18-331, app/cpy/CSUTLDWY.cpy:4-63
Reject day 31 in short months
rec/group:claude/RULE-086/10
business rule
validation, high
WHEN the day is 31 and the month is not 1, 3, 5, 7, 8, 10 or 12, THE Date Validation SHALL reject the date with '<date name>:Cannot have 31 days in this month.' and stop checking that date.
app/cbl/COACTUPC.cbl:1144-1209, app/cbl/COACTUPC.cbl:1460-1543, app/cpy/CSUTLDPY.cpy:18-331, app/cpy/CSUTLDWY.cpy:4-63
Reject day 30 in February
rec/group:claude/RULE-086/11
business rule
validation, high
WHEN the date is 30 February, THE Date Validation SHALL reject it with '<date name>:Cannot have 30 days in this month.' and stop checking that date.
app/cbl/COACTUPC.cbl:1144-1209, app/cbl/COACTUPC.cbl:1460-1543, app/cpy/CSUTLDPY.cpy:18-331, app/cpy/CSUTLDWY.cpy:4-63
Reject February 29 in non-leap years
rec/group:claude/RULE-086/12
business rule
validation, high
WHEN the date is 29 February and the year is not a leap year (a year ending in 00 must divide by 400, any other year by 4), THE Date Validation SHALL reject it with '<date name>:Not a leap year.Cannot have 29 days in this month.'
  • Open Date: 2024-02-29 → Accepted.
  • Open Date: 1900-02-29 → Rejected as not a leap year; 2000-02-29 is accepted.
app/cbl/COACTUPC.cbl:1144-1209, app/cbl/COACTUPC.cbl:1460-1543, app/cpy/CSUTLDPY.cpy:18-331, app/cpy/CSUTLDWY.cpy:4-63
Stop date check on prior failures
rec/group:claude/RULE-086/13
business rule
validation, high
WHEN any of the year, month or day of a date has failed its check, THE Date Validation SHALL stop checking that date without the final date-service check.
  • Expiry Date: 2024-13-01 → The month error is raised and the date service is not called.
app/cbl/COACTUPC.cbl:1144-1209, app/cbl/COACTUPC.cbl:1460-1543, app/cpy/CSUTLDPY.cpy:18-331, app/cpy/CSUTLDWY.cpy:4-63
Verify date with date utility
rec/group:claude/RULE-086/14
business rule
validation, high
WHEN a date passes all the earlier checks, THE Date Validation SHALL confirm it with the date service (CSUTLDTC) in format 'YYYYMMDD', and SHALL reject it with '<date name> validation error Sev code: <severity> Message code: <message number>' if the service returns a non-zero severity.
  • Open Date: 2024-02-29; Date service severity: 0 → The date is accepted.
app/cbl/COACTUPC.cbl:1144-1209, app/cbl/COACTUPC.cbl:1460-1543, app/cpy/CSUTLDPY.cpy:18-331, app/cpy/CSUTLDWY.cpy:4-63
Confirm date with date utility
rec/group:claude/RULE-086/15
error handling
error_handling, high
WHEN the date service rejects a date, THE Date Validation SHALL still mark the date's year, month and day as valid afterwards, so only the error message and the screen's input-error state record the failure.
  • Date of Birth: a date the date service rejects → The error message is set, but the date counts as valid, so the future-birth-date check still runs on it.
app/cbl/COACTUPC.cbl:1144-1209, app/cbl/COACTUPC.cbl:1460-1543, app/cpy/CSUTLDPY.cpy:18-331, app/cpy/CSUTLDWY.cpy:4-63

Acceptance criteria

IDCriterionChecks
AC-01Given Changes: none compared with stored data
When the entered values differ from the stored account and are not awaiting or past confirmation
Then No date is checked.
REQ-F-045
Validate the four account and customer dates
worked example 1 of the rule
AC-02Given Expiry Date: 1999-12-31
When a numeric year does not start with 19 or 20
Then The year passes.
REQ-F-048
Restrict date century to 19 or 20
worked example 1 of the rule
AC-03Given Open Date: 2024-02-29
When the date is 29 February and the year is not a leap year (a year ending in 00 must divide by 400, any other year by 4)
Then Accepted.
REQ-F-055
Reject February 29 in non-leap years
worked example 1 of the rule
AC-04Given Open Date: 1900-02-29
When the date is 29 February and the year is not a leap year (a year ending in 00 must divide by 400, any other year by 4)
Then Rejected as not a leap year; 2000-02-29 is accepted.
REQ-F-055
Reject February 29 in non-leap years
worked example 2 of the rule
AC-05Given Expiry Date: 2024-13-01
When any of the year, month or day of a date has failed its check
Then The month error is raised and the date service is not called.
REQ-F-056
Stop date check on prior failures
worked example 1 of the rule
AC-06Given Open Date: 2024-02-29; Date service severity: 0
When a date passes all the earlier checks
Then The date is accepted.
REQ-F-057
Verify date with date utility
worked example 1 of the rule
AC-07Given Date of Birth: a date the date service rejects
When the date service rejects a date
Then The error message is set, but the date counts as valid, so the future-birth-date check still runs on it.
REQ-F-058
Confirm date with date utility
worked example 1 of the rule
AC-08Given an account is shown for update with changes
When the operator leaves the Open Date year blank, enters month '13' and day '05', and submits
Then the date is rejected with 'Open Date : Year must be supplied.', and the month and day are still checked, so the month is also flagged in error
REQ-F-046
Reject missing date year
written from the rule
AC-09Given an account is shown for update with changes
When the operator enters Expiry Date year '25' and submits
Then the date is rejected with 'Expiry Date must be 4 digit number.'
REQ-F-047
Reject non-numeric date year
written from the rule
AC-10Given an account is shown for update with changes
When the operator enters Reissue Date year '2024', leaves the month blank, and submits
Then the date is rejected with 'Reissue Date : Month must be supplied.'
REQ-F-049
Reject missing date month
written from the rule
AC-11Given an account is shown for update with changes
When the operator enters Open Date 2024 / 13 / 01 and submits
Then the date is rejected with 'Open Date: Month must be a number between 1 and 12.'
REQ-F-050
Reject month outside 1 to 12
written from the rule
AC-12Given an account is shown for update with changes
When the operator enters Expiry Date 2026 / 05 with the day blank and submits
Then the date is rejected with 'Expiry Date : Day must be supplied.'
REQ-F-051
Reject missing date day
written from the rule
AC-13Given an account is shown for update with changes
When the operator enters Open Date 2024 / 05 / 32 and submits (or day 'AB')
Then the date is rejected with 'Open Date:day must be a number between 1 and 31.'
REQ-F-052
Reject non-numeric date day
written from the rule
AC-14Given an account is shown for update with changes
When the operator enters Reissue Date 2024 / 04 / 31 and submits
Then the date is rejected with 'Reissue Date:Cannot have 31 days in this month.' and no further check is made on that date
REQ-F-053
Reject day 31 in short months
written from the rule
AC-15Given an account is shown for update with changes
When the operator enters Open Date 2024 / 02 / 30 and submits
Then the date is rejected with 'Open Date:Cannot have 30 days in this month.' and no further check is made on that date
REQ-F-054
Reject day 30 in February
written from the rule

Screens

  • Account S-ACCOUNT-VIEW · design · replaces CACTVWA (4 kept, 3 dropped, 33 merged)
  • Update account S-ACCOUNT-EDIT · design · replaces CACTUPA (3 kept, 3 dropped, 53 merged)
    • **summary card** Account dates checks: For each date, in the rule's words: '<date> : Year must be supplied.', '<date> must be 4 digit number.', '<date> : Century is not valid.' (year must start 19 or 20), '<date> : Month must be supplied.', '<date>: Month must be a number between 1 and 12.', '<date> : Day must be supplied.', '<date>:day must be a number between 1 and 31.', '<date>:Cannot have 31 days in this month.', '<date>:Cannot have 30 days in this month.', '<date>:Not a leap year.Cannot have 29 days in this month.', and a final calendar check '<date> validation error'. The message sits under the part to fix.
    • **summary card** Customer identity checks: SSN: 'SSN: First 3 chars must be supplied.', 'SSN: First 3 chars must be all numeric.', 'SSN: First 3 chars: should not be 000, 666, or between 900 and 999'; the 4th & 5th and last 4 characters must each be supplied, all numeric and non-zero. Date of birth: the date checks above, and 'Date of Birth:cannot be in the future '. FICO: 'FICO Score must be supplied.', 'FICO Score must be all numeric.', 'FICO Score must not be zero.', 'FICO Score: should be between 300 and 850'.

Data contracts

CSMSG02Y (file record; COACTUPC), CVACT01Y (file record; COACTUPC), CVACT03Y (file record; COACTUPC), CVCUS01Y (file record; COACTUPC), COCOM01Y (working storage; COACTUPC), COTTL01Y (working storage; COACTUPC), CSDAT01Y (working storage; COACTUPC), CSLKPCDY (working storage; COACTUPC), CSMSG01Y (working storage; COACTUPC), CSSETATY (working storage; COACTUPC), CSSTRPFY (working storage; COACTUPC), CSUSR01Y (working storage; COACTUPC), CSUTLDPY (working storage; COACTUPC), CSUTLDWY (working storage; COACTUPC), CVCRD01Y (working storage; COACTUPC)

Decision tables

Date part checks

YearMonthDayDate check resultRule
Blank--Reject '<date name> : Year must be supplied.'; continue checking month and dayrec/group:claude/RULE-086/3
Not a four-digit number--Reject '<date name> must be 4 digit number.'rec/group:claude/RULE-086/4
Numeric, not starting 19 or 20--Reject '<date name> : Century is not valid.'rec/group:claude/RULE-086/5
-Blank-Reject '<date name> : Month must be supplied.'rec/group:claude/RULE-086/6
-Not a number 1 to 12-Reject '<date name>: Month must be a number between 1 and 12.'rec/group:claude/RULE-086/7
--BlankReject '<date name> : Day must be supplied.'rec/group:claude/RULE-086/8
--Not a number or outside 1 to 31Reject '<date name>:day must be a number between 1 and 31.'rec/group:claude/RULE-086/9
-Not 1, 3, 5, 7, 8, 10 or 1231Reject '<date name>:Cannot have 31 days in this month.'; stoprec/group:claude/RULE-086/10
-230Reject '<date name>:Cannot have 30 days in this month.'; stoprec/group:claude/RULE-086/11
Not a leap year229Reject '<date name>:Not a leap year.Cannot have 29 days in this month.'rec/group:claude/RULE-086/12
Any part failedAny part failedAny part failedStop checking; no date-service checkrec/group:claude/RULE-086/13
ValidValidValidConfirm with date service (CSUTLDTC); reject on non-zero severityrec/group:claude/RULE-086/14
Not a four-digit number / not 19 or 20--Gap: R53 says checking continues after a blank year; no rule says whether month and day are still checked after the other year, month or day failures.
---Gap: The extra date-of-birth check named in R10 is not described by any rule.

Open questions

  • SME-059 When the date-checking utility rejects a date, the date is still marked valid even though an input error is raised. Should a rejected date stay invalid, including for later checks such as 'date of birth cannot be in the future'? (Account servicing business owner)
  • SME-060 Should date validation check that the month is numeric before checking that it is between 1 and 12? (Account servicing business owner)
  • SME-061 Only years in the 1900s and 2000s are accepted for all four account and customer dates. Should this restriction still apply to card expiry and reissue dates? (Account servicing business owner)
  • SME-065 When a date's year fails validation, should the whole date check stop, or should the month and day still be checked? (Business analyst)
  • DEF-036 Is this intended? When the date service returns a non-zero severity, the check jumps to the end of the final-check paragraph (EDIT-DATE-LE-EXIT). It then runs on into the statement that marks the whole date valid (WS-EDIT-DATE-IS-VALID). The rejected date's year, month and day flags are therefore reset to valid, the field is not marked as in error, and for Date of Birth the future-date check still runs. The input-error state and the message do stay set. (Subject-matter expert)

Design notes

None.

6. Confirm and save the account updatefinal · online · 3 requirements · 3 rules · 7 criteria · 2 screens

Lets the operator confirm validated changes and saves them to the account and customer records. The save goes through only if nobody else has changed those records since they were shown. It must never overwrite another user's update. Every confirmed value, including the account group, must be saved to its own field and never into another field.

As an operator, I want to confirm validated changes and have them saved only if nobody else has changed the record meanwhile, so that I do not overwrite another user's update.

Final: signed off by Sam (acceptance), 2026-11-25 Risk high; touches money, personal_data, updates_records. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#6

Requirements

CodeClassRequirementCriteria
REQ-F-059business ruleWhen the operator presses a key that is not Enter, not PF3, not PF5 while changes are pending confirmation ('N'), and not PF12 after the account details are fetched, the system shall reject the requested key operation and treat the request as Enter, while allowed keys keep their requested operation.AC-01, AC-02, AC-03
REQ-F-060error handlingIf any stored account or customer value differs from the value fetched when the details were shown, then the system shall flag 'Record changed by some one else. Please review' and stop the save.AC-04, AC-05, AC-06
REQ-F-061design noteWhen a confirmed account update is saved, the system shall rewrite the account record from a layout that has no ZIP field, so that the entered account group ID goes into the stored ZIP position (offsets 103-112) and the stored group-ID position is overwritten with whatever the unset filler area holds.AC-07

Business rules

RuleClassText, worked examples and evidence
Restrict permitted keys by update state
rec/agreed:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-65678dabdb/1
business rule
validation, medium
WHEN the operator presses a key that is not Enter, not PF3, not PF5 while changes are pending confirmation (`'N'`), and not PF12 after the account details are fetched, THE Account Update Key Permission SHALL reject the requested key operation and treat the request as Enter; allowed keys are marked valid and keep their requested operation
  • key pressed: PF5; update state: changes not yet validated (not 'N') → PF5 is not allowed; the request is treated as Enter and the screen is processed again
  • key pressed: PF5; update state: 'N' (changes OK, awaiting confirmation) → PF5 is valid and the save goes ahead
  • key pressed: PF12; account details: not yet fetched → PF12 is not allowed; the request is treated as Enter
app/cbl/COACTUPC.cbl:898-899,905-912,914-916, app/cbl/COACTUPC.cbl:905-959
Detect changes made by another user
rec/agreed:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-f26e2e830c/1
error handling
error_handling, medium
IF any stored account or customer value differs from the value fetched when the details were shown, THEN THE Account Update Concurrency Check SHALL flag 'Record changed by some one else. Please review' and stop the save
  • credit limit when details were shown: 5000.00; credit limit in file at save (PF5): 7000.00 → Save stops, nothing is rewritten, the details are shown again with 'Record changed by some one else. Please review'
  • customer last name when shown: SMITH; customer last name in file at save: smith → Treated as unchanged (case is ignored) and the save continues
  • all account and customer values: same as when shown → Save continues to rewrite the account and customer records
app/cbl/COACTUPC.cbl:4109,4115,4117,4119,4121,4123,4125,4127-4129,4131-4133,4135-4137,4139-4145,4152-4179,4181-4191, app/cbl/COACTUPC.cbl:4109-4192
Persisted record formatting and account record layout
rec/claude:claude/RULE-005/1
design note
technical, medium
WHEN a confirmed account update is saved, THE account update program SHALL rewrite the account record from a layout that has no ZIP field, so the account group ID entered goes into the stored ZIP position (offsets 103-112), and the stored group-ID position is overwritten with whatever the unset filler area holds.
app/cbl/COACTUPC.cbl:418-433, app/cpy/CVACT01Y.cpy:4-16, app/cbl/COACTUPC.cbl:3956, app/cbl/COACTUPC.cbl:4002, app/cbl/COACTUPC.cbl:4065-4071, app/cbl/COACTUPC.cbl:3847

Acceptance criteria

IDCriterionChecks
AC-01Given key pressed: PF5; update state: changes not yet validated (not 'N')
When the operator presses a key that is not Enter, not PF3, not PF5 while changes are pending confirmation (`'N'`), and not PF12 after the account details are fetched
Then PF5 is not allowed; the request is treated as Enter and the screen is processed again
REQ-F-059
Restrict permitted keys by update state
worked example 1 of the rule
AC-02Given key pressed: PF5; update state: 'N' (changes OK, awaiting confirmation)
When the operator presses a key that is not Enter, not PF3, not PF5 while changes are pending confirmation (`'N'`), and not PF12 after the account details are fetched
Then PF5 is valid and the save goes ahead
REQ-F-059
Restrict permitted keys by update state
worked example 2 of the rule
AC-03Given key pressed: PF12; account details: not yet fetched
When the operator presses a key that is not Enter, not PF3, not PF5 while changes are pending confirmation (`'N'`), and not PF12 after the account details are fetched
Then PF12 is not allowed; the request is treated as Enter
REQ-F-059
Restrict permitted keys by update state
worked example 3 of the rule
AC-04Given credit limit when details were shown: 5000.00; credit limit in file at save (PF5): 7000.00
When any stored account or customer value differs from the value fetched when the details were shown
Then Save stops, nothing is rewritten, the details are shown again with 'Record changed by some one else. Please review'
REQ-F-060
Detect changes made by another user
worked example 1 of the rule
AC-05Given customer last name when shown: SMITH; customer last name in file at save: smith
When any stored account or customer value differs from the value fetched when the details were shown
Then Treated as unchanged (case is ignored) and the save continues
REQ-F-060
Detect changes made by another user
worked example 2 of the rule
AC-06Given all account and customer values: same as when shown
When any stored account or customer value differs from the value fetched when the details were shown
Then Save continues to rewrite the account and customer records
REQ-F-060
Detect changes made by another user
worked example 3 of the rule
AC-07Given account 00000000099 has stored ZIP and account group values, and the operator has changed the account group to 'GOLDGROUP1' and confirmed the update
When the update is saved
Then legacy behaviour to reconcile against: the stored ZIP position (offsets 103-112) holds 'GOLDGROUP1', and the stored group-ID position holds the content of the unset filler area instead of the entered group
REQ-F-061
Persisted record formatting and account record layout
written from the rule

Screens

  • Account S-ACCOUNT-VIEW · design · replaces CACTVWA (4 kept, 3 dropped, 33 merged)
  • Update account S-ACCOUNT-EDIT · design · replaces CACTUPA (3 kept, 3 dropped, 53 merged)
    • **primary button** Save changes checks: If no value differs: 'No change detected with respect to values fetched.' If the record was changed by someone else since it was fetched: 'Record changed by some one else. Please review' and the latest values are shown. If a lock or update fails: 'Changes unsuccessful. Please try again'; nothing is half-saved.

Data contracts

CSMSG02Y (file record; COACTUPC), CVACT01Y (file record; COACTUPC), CVACT03Y (file record; COACTUPC), CVCUS01Y (file record; COACTUPC), COCOM01Y (working storage; COACTUPC), COTTL01Y (working storage; COACTUPC), CSDAT01Y (working storage; COACTUPC), CSLKPCDY (working storage; COACTUPC), CSMSG01Y (working storage; COACTUPC), CSSETATY (working storage; COACTUPC), CSSTRPFY (working storage; COACTUPC), CSUSR01Y (working storage; COACTUPC), CSUTLDPY (working storage; COACTUPC), CSUTLDWY (working storage; COACTUPC), CVCRD01Y (working storage; COACTUPC)

Decision tables

None.

Open questions

  • SME-062 What should the account update screen do in each of these cases: exit (PF3), first entry before any details are fetched, arriving from the menu, a completed save, a failed save, cancel (PF12), details shown, and answering 'N' to confirmation (PF5)? (Business analyst)
  • SME-066 When account update saves changes, the account record is written before the customer record. Must both be saved together, so that if the customer save fails the account change is rolled back? How critical is this, given it changes balances, limits and regulated customer data? (Account servicing SME / architecture team)
  • DEF-159 Is this intended? The account update record layout leaves out the account ZIP field, so every save shifts the group ID into the ZIP position and overwrites the real group ID with filler. The next read then shows a wrong group ID, and the account ZIP is lost. (Subject-matter expert)

Design notes

  • This is a layout defect in the legacy program: it writes the account through a layout that has no ZIP field, so the account group lands in the ZIP position and the group field gets filler. The new account record must keep ZIP and account group as separate named fields and save each confirmed value to its own field. The acceptance criterion above only records the legacy result for reconciliation. The business owner must decide whether to keep it before anyone treats it as required. Data migration should expect ZIP values on rewritten accounts that are really group IDs. Persisted record formatting and account record layout
7. Select an account to updatefinal · online · 6 requirements · 6 rules · 11 criteria · 2 screens · 1 gap

Lets the operator choose which account to update by entering its account number. Before any details are fetched, only the account number is checked. It must be an 11-digit non-zero number. It must never look up an account from a missing, non-numeric or all-zero number, and it ignores every other field until an account is shown.

As an operator, I want to enter an account number and see the account and customer details, so that I can review and update them.

Final: signed off by Sam (acceptance), 2026-11-25 Risk medium; touches card_data, personal_data. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#7

Requirements

CodeClassRequirementCriteria
REQ-F-062design noteWhen the operator submits the account update screen, the system shall treat an account number of '*' or blank as not supplied and otherwise take the entered value as the account to search for.AC-01, AC-02
REQ-F-063business ruleWhile no account details have been fetched yet, the system shall check only the account number and ignore every other field on the screen.AC-03
REQ-F-064business ruleIf no account details have been fetched yet and the account number is blank or '*', then the system shall show the error 'No input received', set the current account number to zeros and read no account.AC-04, AC-05
REQ-F-065business ruleIf no account details have been fetched yet and the account number supplied is not numeric or is all zeros, then the system shall show 'Account Number if supplied must be a 11 digit Non-Zero Number', set the current account number to zeros and read no account.AC-10, AC-11
REQ-F-066business ruleWhile no account details have been fetched yet, when the account number is an 11-digit non-zero number, the system shall accept it as the current account and go on to look the account up.AC-06
REQ-F-067business ruleWhen account details are not yet fetched, or the operator presses PF12 to cancel changes, and the account number entered is valid, the system shall look up the card cross-reference, then the account, then the customer, stopping at the first one not found, and shall show the details (state 'S') only when all three are found.AC-07, AC-08, AC-09

Business rules

RuleClassText, worked examples and evidence
Capture account id entry
rec/group:claude/RULE-091/1
design note
technical, high
WHEN the operator submits the account update screen, THE account update screen SHALL treat an account number of '*' or blank as not supplied and otherwise take the entered value as the account to search for.
  • Account number entered: '*' → The account number is treated as not supplied
  • Account number entered: 00000012345 → 00000012345 is used as the account to search for
app/cbl/COACTUPC.cbl:1051-1062, app/cbl/COACTUPC.cbl:1429-1449, app/cbl/COACTUPC.cbl:1783-1818, app/cbl/COACTUPC.cbl:480-490, app/cbl/COACTUPC.cbl:2562-2580, app/cbl/COACTUPC.cbl:2955-2980
Skip edits when details not fetched
rec/group:claude/RULE-091/2
business rule
validation, high
WHEN no account details have been fetched yet, THE account update screen SHALL check only the account number and ignore every other field on the screen.
  • Account details fetched: No; Account number entered: 00000012345; Active status entered: X → Only the account number is checked; the active status is not checked
app/cbl/COACTUPC.cbl:1051-1062, app/cbl/COACTUPC.cbl:1429-1449, app/cbl/COACTUPC.cbl:1783-1818, app/cbl/COACTUPC.cbl:480-490, app/cbl/COACTUPC.cbl:2562-2580, app/cbl/COACTUPC.cbl:2955-2980
Reject missing account number
rec/group:claude/RULE-091/3
business rule
validation, high
WHEN no account details have been fetched yet and the account number is blank or '*', THE account update screen SHALL show the error 'No input received', set the current account number to zeros and read no account.
  • Account number entered: (blank) → Error 'No input received' is shown and no account is read
  • Account number entered: '*' → Error 'No input received' is shown and no account is read
app/cbl/COACTUPC.cbl:1051-1062, app/cbl/COACTUPC.cbl:1429-1449, app/cbl/COACTUPC.cbl:1783-1818, app/cbl/COACTUPC.cbl:480-490, app/cbl/COACTUPC.cbl:2562-2580, app/cbl/COACTUPC.cbl:2955-2980
Require 11-digit non-zero account number
rec/group:claude/RULE-091/4
business rule
validation, high
WHEN no account details have been fetched yet and the account number supplied is not numeric or is all zeros, THE account update screen SHALL show 'Account Number if supplied must be a 11 digit Non-Zero Number', set the current account number to zeros and read no account.
app/cbl/COACTUPC.cbl:1051-1062, app/cbl/COACTUPC.cbl:1429-1449, app/cbl/COACTUPC.cbl:1783-1818, app/cbl/COACTUPC.cbl:480-490, app/cbl/COACTUPC.cbl:2562-2580, app/cbl/COACTUPC.cbl:2955-2980
Require 11-digit non-zero account number
rec/group:claude/RULE-091/5
business rule
validation, high
WHEN no account details have been fetched yet and the account number is an 11-digit non-zero number, THE account update screen SHALL accept it as the current account and go on to look the account up.
  • Account number entered: 00000012345 → 00000012345 becomes the current account and its details are looked up
app/cbl/COACTUPC.cbl:1051-1062, app/cbl/COACTUPC.cbl:1429-1449, app/cbl/COACTUPC.cbl:1783-1818, app/cbl/COACTUPC.cbl:480-490, app/cbl/COACTUPC.cbl:2562-2580, app/cbl/COACTUPC.cbl:2955-2980
Retrieve account and customer details for update
rec/group:claude/RULE-166/4
business rule
business, high
WHEN account details are not yet fetched, or the operator presses PF12 to cancel changes, and the account number entered is valid, THE account update screen SHALL look up the card cross-reference, then the account, then the customer, stopping at the first one not found, and SHALL show the details (state 'S') only when all three are found.
  • account number: 00000000001; cross-reference, account and customer: all exist → Details are shown and state becomes 'S'
  • account number: 00000000099; account master record: missing → Lookup stops with 'Did not find this account in account master file'; details are not shown
  • key: PF12; update state: 'E' → Account is re-read, pending edits are discarded and state returns to 'S'
app/cbl/COACTUPC.cbl:654-668, app/cbl/COACTUPC.cbl:879-891, app/cbl/COACTUPC.cbl:904-915, app/cbl/COACTUPC.cbl:964-1002, app/cbl/COACTUPC.cbl:1428-1470, app/cbl/COACTUPC.cbl:1671-1675

Acceptance criteria

IDCriterionChecks
AC-01Given Account number entered: '*'
When the operator submits the account update screen
Then The account number is treated as not supplied
REQ-F-062
Capture account id entry
worked example 1 of the rule
AC-02Given Account number entered: 00000012345
When the operator submits the account update screen
Then 00000012345 is used as the account to search for
REQ-F-062
Capture account id entry
worked example 2 of the rule
AC-03Given Account details fetched: No; Account number entered: 00000012345; Active status entered: X
When no account details have been fetched yet
Then Only the account number is checked; the active status is not checked
REQ-F-063
Skip edits when details not fetched
worked example 1 of the rule
AC-04Given Account number entered: (blank)
When no account details have been fetched yet and the account number is blank or '*'
Then Error 'No input received' is shown and no account is read
REQ-F-064
Reject missing account number
worked example 1 of the rule
AC-05Given Account number entered: '*'
When no account details have been fetched yet and the account number is blank or '*'
Then Error 'No input received' is shown and no account is read
REQ-F-064
Reject missing account number
worked example 2 of the rule
AC-06Given Account number entered: 00000012345
When no account details have been fetched yet and the account number is an 11-digit non-zero number
Then 00000012345 becomes the current account and its details are looked up
REQ-F-066
Require 11-digit non-zero account number
worked example 1 of the rule
AC-07Given account number: 00000000001; cross-reference, account and customer: all exist
When account details are not yet fetched, or the operator presses PF12 to cancel changes, and the account number entered is valid
Then Details are shown and state becomes 'S'
REQ-F-067
Retrieve account and customer details for update
worked example 1 of the rule
AC-08Given account number: 00000000099; account master record: missing
When account details are not yet fetched, or the operator presses PF12 to cancel changes, and the account number entered is valid
Then Lookup stops with 'Did not find this account in account master file'; details are not shown
REQ-F-067
Retrieve account and customer details for update
worked example 2 of the rule
AC-09Given key: PF12; update state: 'E'
When account details are not yet fetched, or the operator presses PF12 to cancel changes, and the account number entered is valid
Then Account is re-read, pending edits are discarded and state returns to 'S'
REQ-F-067
Retrieve account and customer details for update
worked example 3 of the rule
AC-10Given no account details have been fetched yet
When the operator enters account number '1234ABC' and submits
Then the screen shows 'Account Number if supplied must be a 11 digit Non-Zero Number', the current account number is set to zeros, and no account is read
REQ-F-065
Require 11-digit non-zero account number
written from the rule
AC-11Given no account details have been fetched yet
When the operator enters account number '00000000000' and submits
Then the screen shows 'Account Number if supplied must be a 11 digit Non-Zero Number', the current account number is set to zeros, and no account is read
REQ-F-065
Require 11-digit non-zero account number
written from the rule

Screens

  • Account S-ACCOUNT-VIEW · design · replaces CACTVWA (4 kept, 3 dropped, 33 merged)
  • Update account S-ACCOUNT-EDIT · design · replaces CACTUPA (3 kept, 3 dropped, 53 merged)
    • **lookup field** Account number checks: Blank: 'No input received' - enter an account number. Not 11 digits or all zeros: 'Account Number if supplied must be a 11 digit Non-Zero Number'. Not in the card cross-reference: 'Account:<account> not found in Cross ref file.' - check the number with the caller. Only the account number is checked until an account is fetched.

Data contracts

CSMSG02Y (file record; COACTUPC), CVACT01Y (file record; COACTUPC), CVACT03Y (file record; COACTUPC), CVCUS01Y (file record; COACTUPC), COCOM01Y (working storage; COACTUPC), COTTL01Y (working storage; COACTUPC), CSDAT01Y (working storage; COACTUPC), CSLKPCDY (working storage; COACTUPC), CSMSG01Y (working storage; COACTUPC), CSSETATY (working storage; COACTUPC), CSSTRPFY (working storage; COACTUPC), CSUSR01Y (working storage; COACTUPC), CSUTLDPY (working storage; COACTUPC), CSUTLDWY (working storage; COACTUPC), CVCRD01Y (working storage; COACTUPC)

Decision tables

Account number check before details are fetched

Account details fetchedAccount number entryScreen responseRule
NoBlank or '*'Show 'No input received', set account number to zeros, read no accountrec/group:claude/RULE-091/3
NoNot numeric or all zerosShow 'Account Number if supplied must be a 11 digit Non-Zero Number', set account number to zeros, read no accountrec/group:claude/RULE-091/4
No11-digit non-zero numberAccept as current account and look the account uprec/group:claude/RULE-091/5
NoNumeric, non-zero, fewer than 11 digits enteredGap: No rule states whether a shorter numeric entry is accepted (e.g. padded) or rejected with the 11-digit message.

Open questions

  • SME-054 When saving an account update, a failure to lock the customer record is reported as a successful save. Is that intended, or should it be reported as a lock error? (Account servicing business owner)
  • SME-055 When the customer for an account cannot be found during account update, a 'not found' message is shown but the customer is not marked as not found. Should the new system explicitly mark the customer as not found? (Account servicing business owner)
  • SME-056 Can the customer identifier be changed on the account update screen, or should it be shown read-only? (Account servicing business owner)
  • DEF-040 Is this intended? For a blank account number, the 'Account number not provided' message set in 1210-EDIT-ACCOUNT is always overwritten by 'No input received' in 1200-EDIT-MAP-INPUTS, so the more specific message is never shown on this path. (Subject-matter expert)
  • DEF-074 Is this intended? The decision step has a branch that turns a committed save ('C') back into 'details shown' and clears the account and card number when there is no calling transaction, but it can never run: the main dispatch catches state 'C' first on the next interaction and resets the screen itself. The field edits also skip the 'C' state check for the same reason. (Subject-matter expert)

Design notes

  • Treat a blank or '*' account number as absent (null); otherwise use it as the search key. Validation then decides between 'No input received' and the 11-digit check. Capture account id entry
8. Detect changes before validatingfinal · online · 5 requirements · 7 rules · 8 criteria · 2 screens

Compares what the operator entered with the values fetched for the account, ignoring upper or lower case, and runs the field checks only when something has actually changed. If nothing changed, it says 'No change detected with respect to values fetched.' and does not validate or save anything. It must never save or re-validate unchanged details. When several fields fail, it flags all of them but shows only the first message.

As an operator, I want the system to check my entries only when I have actually changed something, so that unchanged details are not re-validated or saved.

Final: signed off by Sam (acceptance), 2026-11-25 Risk medium; touches personal_data. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#8

Requirements

CodeClassRequirementCriteria
REQ-F-068business ruleWhen the operator presses Enter on an account already shown, the system shall compare every entered value with the value fetched, ignoring upper/lower case and surrounding spaces for text fields (status, group, names, address, state, country, ZIP, government ID, primary-holder flag) and comparing amounts, dates, phone parts, SSN, EFT account and FICO exactly, counting any difference as a change.AC-01, AC-02, AC-03
REQ-F-069business ruleWhen no entered value differs from the fetched values, the system shall show 'No change detected with respect to values fetched.', run no field checks, save nothing and leave the details on screen without asking for confirmation.AC-04
REQ-F-070business ruleWhile the update is neither awaiting confirmation ('N') nor completed ('C'), when a change is detected, the system shall mark the changes as not yet accepted ('E'), run every field check, and move the update to awaiting confirmation ('N') if all checks pass.AC-05, AC-06, AC-07
REQ-F-071design noteWhen no change is detected, or the update is awaiting confirmation ('N') or completed ('C'), the system shall clear all field error flags and skip every field check, including the date checks.AC-08
REQ-F-072business ruleWhen several fields fail validation, the system shall flag every invalid field but show only the message of the first failing field.AC-07

Business rules

RuleClassText, worked examples and evidence
Detect changes between old and new details
rec/group:claude/RULE-090/1
business rule
business, high
WHEN the operator presses Enter on an account already shown, THE account update SHALL compare every entered value with the value fetched, ignoring upper/lower case and surrounding spaces for text fields (status, group, names, address, state, country, ZIP, government ID, primary-holder flag) and comparing amounts, dates, phone parts, SSN, EFT account and FICO exactly; any difference counts as a change.
  • Fetched last name: SMITH; Entered last name: smith → No change is counted
  • Fetched last name: SMITH; Entered last name: SMYTH → A change is counted
  • Fetched credit limit: 5000.00; Entered credit limit: 5500.00 → A change is counted
app/cbl/COACTUPC.cbl:1429-1470, app/cbl/COACTUPC.cbl:1670-1675, app/cbl/COACTUPC.cbl:1681-1779, app/cbl/COACTUPC.cbl:165-170, app/cbl/COACTUPC.cbl:488-492, app/cbl/COACTUPC.cbl:654-668
Detect changes against fetched values
rec/group:claude/RULE-090/2
business rule
validation, high
WHEN no entered value differs from the fetched values, THE account update SHALL show 'No change detected with respect to values fetched.', run no field checks, save nothing and leave the details on screen without asking for confirmation.
  • Fetched status: Y; Entered status: y; Other fields: unchanged → Message 'No change detected with respect to values fetched.'; nothing validated or saved
app/cbl/COACTUPC.cbl:1429-1470, app/cbl/COACTUPC.cbl:1670-1675, app/cbl/COACTUPC.cbl:1681-1779, app/cbl/COACTUPC.cbl:165-170, app/cbl/COACTUPC.cbl:488-492, app/cbl/COACTUPC.cbl:654-668
Gate validation on detected changes
rec/group:claude/RULE-090/3
business rule
business, high
WHEN a change is detected and the update is neither awaiting confirmation ('N') nor completed ('C'), THE account update SHALL mark the changes as not yet accepted ('E') and run every field check; if all checks pass it SHALL move the update to awaiting confirmation ('N').
  • Change detected: yes; Update state: details shown ('S'); All fields valid: yes → State becomes 'N' and the operator is asked to confirm
  • Change detected: yes; Update state: details shown ('S'); FICO entered: 900 → State stays 'E' and the field error is shown
app/cbl/COACTUPC.cbl:1429-1470, app/cbl/COACTUPC.cbl:1670-1675, app/cbl/COACTUPC.cbl:1681-1779, app/cbl/COACTUPC.cbl:165-170, app/cbl/COACTUPC.cbl:488-492, app/cbl/COACTUPC.cbl:654-668
Require mandatory text present
rec/group:claude/RULE-089/9
business rule
validation, high
WHEN the account update checks the operator's changes, THE account update SHALL show only the first error message found, while still flagging every invalid field, and it SHALL run these checks only when the operator has changed something that is not yet awaiting confirmation.
app/cbl/COACTUPC.cbl:1288-1334, app/cbl/COACTUPC.cbl:1410-1415, app/cbl/COACTUPC.cbl:1462-1471, app/cbl/COACTUPC.cbl:1560-1675, app/cbl/COACTUPC.cbl:1824-1851, app/cbl/COACTUPC.cbl:1855-1895
Yes/No flags: account active status and primary cardholder
rec/group:claude/RULE-092/4
business rule
validation, high
WHEN several fields fail validation, THE Account Update screen SHALL show only the message of the first failing field, and SHALL run these Y/N checks only after the account has been fetched and the operator has changed at least one value.
  • Changes made: none → No Y/N check is made
app/cbl/COACTUPC.cbl:1064-1070, app/cbl/COACTUPC.cbl:1419-1424, app/cbl/COACTUPC.cbl:1458-1476, app/cbl/COACTUPC.cbl:1657-1662, app/cbl/COACTUPC.cbl:1856-1895, app/cbl/COACTUPC.cbl:76-80
Skip edits when nothing changed
rec/group:claude/RULE-090/4
design note
technical, high
WHEN no change is detected, or the update is awaiting confirmation ('N') or completed ('C'), THE account update SHALL clear all field error flags and skip every field check, including the date checks.
  • Update state: 'N' (awaiting confirmation); Key pressed: Enter → No field is re-checked and no field is highlighted as in error
app/cbl/COACTUPC.cbl:1429-1470, app/cbl/COACTUPC.cbl:1670-1675, app/cbl/COACTUPC.cbl:1681-1779, app/cbl/COACTUPC.cbl:165-170, app/cbl/COACTUPC.cbl:488-492, app/cbl/COACTUPC.cbl:654-668
Validate phone area code
rec/group:claude/RULE-093/13
formatting
display, high
WHEN more than one phone number part fails its checks, THE Account Update SHALL flag every failing part in error but show only the first message raised on the screen (no later message replaces one already set).
app/cbl/COACTUPC.cbl:1357-1397, app/cbl/COACTUPC.cbl:1632-1646, app/cbl/COACTUPC.cbl:2225-2429, app/cbl/COACTUPC.cbl:82-100, app/cpy/CSLKPCDY.cpy:521-930

Acceptance criteria

IDCriterionChecks
AC-01Given Fetched last name: SMITH; Entered last name: smith
When the operator presses Enter on an account already shown
Then No change is counted
REQ-F-068
Detect changes between old and new details
worked example 1 of the rule
AC-02Given Fetched last name: SMITH; Entered last name: SMYTH
When the operator presses Enter on an account already shown
Then A change is counted
REQ-F-068
Detect changes between old and new details
worked example 2 of the rule
AC-03Given Fetched credit limit: 5000.00; Entered credit limit: 5500.00
When the operator presses Enter on an account already shown
Then A change is counted
REQ-F-068
Detect changes between old and new details
worked example 3 of the rule
AC-04Given Fetched status: Y; Entered status: y; Other fields: unchanged
When no entered value differs from the fetched values
Then Message 'No change detected with respect to values fetched.'; nothing validated or saved
REQ-F-069
Detect changes against fetched values
worked example 1 of the rule
AC-05Given Change detected: yes; Update state: details shown ('S'); All fields valid: yes
When a change is detected and the update is neither awaiting confirmation ('N') nor completed ('C')
Then State becomes 'N' and the operator is asked to confirm
REQ-F-070
Gate validation on detected changes
worked example 1 of the rule
AC-06Given Change detected: yes; Update state: details shown ('S'); FICO entered: 900
When a change is detected and the update is neither awaiting confirmation ('N') nor completed ('C')
Then State stays 'E' and the field error is shown
REQ-F-070
Gate validation on detected changes
worked example 2 of the rule
AC-07Given Changes made: none
When several fields fail validation
Then No Y/N check is made
REQ-F-070, REQ-F-072
Yes/No flags: account active status and primary cardholder
worked example 1 of the rule
AC-08Given Update state: 'N' (awaiting confirmation); Key pressed: Enter
When no change is detected, or the update is awaiting confirmation ('N') or completed ('C')
Then No field is re-checked and no field is highlighted as in error
REQ-F-071
Skip edits when nothing changed
worked example 1 of the rule

Screens

  • Account S-ACCOUNT-VIEW · design · replaces CACTVWA (4 kept, 3 dropped, 33 merged)
  • Update account S-ACCOUNT-EDIT · design · replaces CACTUPA (3 kept, 3 dropped, 53 merged)
    • **summary card** Status and group checks: Status is required: 'Account Status must be supplied.' and must be Active or Inactive ('Account Status must be Y or N.'). The choice offers only those two values.
    • **summary card** Phone and payments checks: A phone may be left wholly blank; otherwise '<Phone Number 1 or 2>: Area code must be supplied.', ': Area code must be A 3 digit number.', ': Area code cannot be zero', ': Not valid North America general purpose area code' (from the list of general-purpose codes), ': Prefix code must be supplied.', ': Prefix code must be A 3 digit number.', ': Prefix code cannot be zero', ': Line number code must be supplied.', ': Line number code must be A 4 digit number.', ': Line number code cannot be zero'. EFT account ID: 'EFT Account Id must be supplied.', all numeric, 10 digits, not zero. Primary card holder: 'Primary Card Holder must be supplied.' and must be Yes or No ('must be Y or N.').
    • **summary card** Fix these before saving
    • **primary button** Save changes checks: If no value differs: 'No change detected with respect to values fetched.' If the record was changed by someone else since it was fetched: 'Record changed by some one else. Please review' and the latest values are shown. If a lock or update fails: 'Changes unsuccessful. Please try again'; nothing is half-saved.

Data contracts

CSMSG02Y (file record; COACTUPC), CVACT01Y (file record; COACTUPC), CVACT03Y (file record; COACTUPC), CVCUS01Y (file record; COACTUPC), COCOM01Y (working storage; COACTUPC), COTTL01Y (working storage; COACTUPC), CSDAT01Y (working storage; COACTUPC), CSLKPCDY (working storage; COACTUPC), CSMSG01Y (working storage; COACTUPC), CSSETATY (working storage; COACTUPC), CSSTRPFY (working storage; COACTUPC), CSUSR01Y (working storage; COACTUPC), CSUTLDPY (working storage; COACTUPC), CSUTLDWY (working storage; COACTUPC), CVCRD01Y (working storage; COACTUPC)

Decision tables

Change detection and validation gating

Change detectedUpdate stateValidation actionRule
NoAnyShow 'No change detected with respect to values fetched.', clear error flags, run no checks, save nothingrec/group:claude/RULE-090/2
YesNot 'N' and not 'C'Mark changes 'E', run every field check; move to 'N' if all passrec/group:claude/RULE-090/3
YesAwaiting confirmation ('N')Clear error flags and skip every field checkrec/group:claude/RULE-090/4
YesCompleted ('C')Clear error flags and skip every field checkrec/group:claude/RULE-090/4

Open questions

  • SME-057 Please supply the complete, authoritative list of valid general-purpose phone area codes. Today it is described only as running from '201' to '989'. (Data governance team)
  • SME-063 At present, a phone number counts as 'not supplied' when the area code and exchange are blank, even if a line number was entered. Is that intended, or should a phone count as not supplied only when all three parts are blank? (Business analyst)
  • SME-064 Should the second and third parts of a social security number be validated only when the first part is valid, or always? (Business analyst)
  • DEF-038 Confirm this is deliberate: The name, city, state and country fields accept only the letters A-Z and a-z and spaces. Real names and places with apostrophes, hyphens or periods ('O'Brien', 'St. Louis') are rejected. Separately, the blank-phone check tests the area-code part twice where it should test the line-number part. (Subject-matter expert)
  • DEF-039 Confirm this is deliberate: Text fields are compared ignoring case and surrounding spaces, so a correction that only changes capitalisation (for example 'smith' to 'Smith') counts as no change and cannot be saved. (Subject-matter expert)
  • DEF-041 Is this intended? The 'phone not supplied' test checks the area code twice and never checks that the line number is blank-spaces (third condition tests area code = spaces OR line number = low-values). Because the screen input turns blanks into low-values first, this has no visible effect today, but a number arriving with a spaces area code and prefix would be accepted as omitted even with a line number entered. (Subject-matter expert)

Design notes

  • Before validating, decide from the update stage and the change-detection result: if nothing changed, or the update is awaiting confirmation or already completed, clear all field-error flags and skip every field and date check. Validation is a step the server runs only when a change is detected while editing. Skip edits when nothing changed
9. Validate customer name and addressfinal · online · 9 requirements · 11 rules · 16 criteria · 2 screens

Checks customer names and address when the operator changes account or customer details. First name, last name, city, state and country are required and may contain letters and spaces only. Address line 1 is required. The state must be a valid US state code, the ZIP must be 5 non-zero digits, and the two must go together. A missing, malformed or inconsistent name or address must never be saved.

As an operator, I want customer names and address details checked when I change them, so that only well-formed and consistent names and addresses are saved.

Final: signed off by Sam (acceptance), 2026-11-25 Risk medium; touches personal_data. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#9

Requirements

CodeClassRequirementCriteria
REQ-F-073design noteWhen the operator enters '*' or leaves blank the first, middle or last name, address line 1 or 2, city, state, ZIP code or EFT account id, the system shall treat that entry as not supplied, and otherwise take the entered value as the proposed new value, holding the city as address line 3.AC-01, AC-02
REQ-F-074business ruleIf the first name, last name, city, state or country is not supplied after the operator changes account or customer details, then the system shall reject the input with '<field> must be supplied.' (for example 'First Name must be supplied.') and mark the field blank ('B').AC-12, AC-13
REQ-F-075business ruleIf a supplied first name, last name, city, state or country contains any character other than the letters A-Z or a-z and spaces, then the system shall reject it with '<field> can have alphabets only.' and mark the field invalid ('0').AC-03
REQ-F-076business ruleIf a supplied middle name contains anything other than letters and spaces, then the system shall reject it with 'Middle Name can have alphabets only.', and the system shall accept a blank middle name.AC-04
REQ-F-077business ruleIf address line 1 is not supplied, then the system shall reject the input with 'Address Line 1 must be supplied.' and mark it blank ('B'), accepting any other content and not checking address line 2 at all.AC-05
REQ-F-078business ruleIf the state is present and passes the letters-only check but is not one of the valid US state codes, then the system shall reject the change, flag the state as in error, and show 'State: is not a valid state code' if no earlier error message has been set.AC-06, AC-07, AC-08
REQ-F-079business ruleIf the ZIP code (5 positions) is blank, not all digits, or zero, then the system shall reject it with 'ZIP must be supplied.' (flag 'B'), '<field> must be all numeric.' (flag '0') or '<field> must not be zero.' (flag '0') respectively.AC-14, AC-15, AC-16
REQ-F-080business ruleWhen both the state and the ZIP code have passed their own edits, the system shall check that the state together with the first two digits of the ZIP code is a known valid state/ZIP-prefix combination.AC-09, AC-10
REQ-F-081business ruleIf the state and first two ZIP digits are not a valid combination, then the system shall reject the change, flag both the state and the ZIP code as in error, and show 'Invalid zip code for state' if no earlier error message has been set.AC-11

Business rules

RuleClassText, worked examples and evidence
Stage electronic funds transfer account
rec/group:claude/RULE-089/1
design note
technical, high
WHEN the operator enters '*' or leaves blank the first, middle or last name, address line 1 or 2, city, or EFT account id on the account update screen, THE account update SHALL treat that entry as not supplied; otherwise it SHALL take the entered value as the proposed new value (the city is held as address line 3).
  • Middle name entry: * → The middle name is treated as not supplied
app/cbl/COACTUPC.cbl:1288-1334, app/cbl/COACTUPC.cbl:1410-1415, app/cbl/COACTUPC.cbl:1462-1471, app/cbl/COACTUPC.cbl:1560-1675, app/cbl/COACTUPC.cbl:1824-1851, app/cbl/COACTUPC.cbl:1855-1895
Stage state code entry
rec/group:claude/RULE-095/1
design note
technical, high
WHEN the operator enters '*' or leaves the state or the ZIP code blank on the account update screen, THE account update SHALL treat that field as not supplied (empty); otherwise it SHALL take the value entered for editing.
  • ZIP entered: 10001 → ZIP 10001 is taken for editing
app/cbl/COACTUPC.cbl:1336-1341, app/cbl/COACTUPC.cbl:1350-1355, app/cbl/COACTUPC.cbl:1592-1609, app/cbl/COACTUPC.cbl:1664-1669, app/cbl/COACTUPC.cbl:2493-2513, app/cbl/COACTUPC.cbl:2535-2560
Validate required alphabetic text
rec/group:claude/RULE-089/2
business rule
validation, high
WHEN the first name, last name, city, state or country is not supplied after the operator changes account or customer details, THE account update SHALL reject the input with '<field> must be supplied.' (for example 'First Name must be supplied.') and mark the field blank ('B').
app/cbl/COACTUPC.cbl:1288-1334, app/cbl/COACTUPC.cbl:1410-1415, app/cbl/COACTUPC.cbl:1462-1471, app/cbl/COACTUPC.cbl:1560-1675, app/cbl/COACTUPC.cbl:1824-1851, app/cbl/COACTUPC.cbl:1855-1895
Validate required alphabetic text
rec/group:claude/RULE-089/3
business rule
validation, high
WHEN a supplied first name, last name, city, state or country contains any character other than the letters A-Z or a-z and spaces, THE account update SHALL reject it with '<field> can have alphabets only.' and mark the field invalid ('0').
  • Last name: Van Dyke → Accepted
app/cbl/COACTUPC.cbl:1288-1334, app/cbl/COACTUPC.cbl:1410-1415, app/cbl/COACTUPC.cbl:1462-1471, app/cbl/COACTUPC.cbl:1560-1675, app/cbl/COACTUPC.cbl:1824-1851, app/cbl/COACTUPC.cbl:1855-1895
Validate optional alphabetic text
rec/group:claude/RULE-089/4
business rule
validation, high
WHEN the middle name is left blank, THE account update SHALL accept it; WHEN a supplied middle name contains anything other than letters and spaces, THE account update SHALL reject it with 'Middle Name can have alphabets only.'
  • Middle name: (blank) → Accepted
app/cbl/COACTUPC.cbl:1288-1334, app/cbl/COACTUPC.cbl:1410-1415, app/cbl/COACTUPC.cbl:1462-1471, app/cbl/COACTUPC.cbl:1560-1675, app/cbl/COACTUPC.cbl:1824-1851, app/cbl/COACTUPC.cbl:1855-1895
Require mandatory text present
rec/group:claude/RULE-089/5
business rule
validation, high
WHEN address line 1 is not supplied, THE account update SHALL reject the input with 'Address Line 1 must be supplied.' and mark it blank ('B'); any other content is accepted, and address line 2 is not checked at all.
  • Address line 1: 12-B Main St. → Accepted
app/cbl/COACTUPC.cbl:1288-1334, app/cbl/COACTUPC.cbl:1410-1415, app/cbl/COACTUPC.cbl:1462-1471, app/cbl/COACTUPC.cbl:1560-1675, app/cbl/COACTUPC.cbl:1824-1851, app/cbl/COACTUPC.cbl:1855-1895
Validate customer names and address
rec/group:claude/RULE-089/6
business rule
validation, high
WHEN the state passes the letters-only check but is not a valid US state code, THE account update SHALL reject it.
  • State: XX → Rejected as an invalid state
  • State: TX → Accepted
app/cbl/COACTUPC.cbl:1288-1334, app/cbl/COACTUPC.cbl:1410-1415, app/cbl/COACTUPC.cbl:1462-1471, app/cbl/COACTUPC.cbl:1560-1675, app/cbl/COACTUPC.cbl:1824-1851, app/cbl/COACTUPC.cbl:1855-1895
Validate US state code
rec/group:claude/RULE-095/2
business rule
validation, high
WHEN the state entered is present and alphabetic but is not one of the valid US state codes, THE account update SHALL reject the change, flag the state as in error, and show 'State: is not a valid state code' if no earlier error message has been set.
  • State: NY → State accepted by this check
app/cbl/COACTUPC.cbl:1336-1341, app/cbl/COACTUPC.cbl:1350-1355, app/cbl/COACTUPC.cbl:1592-1609, app/cbl/COACTUPC.cbl:1664-1669, app/cbl/COACTUPC.cbl:2493-2513, app/cbl/COACTUPC.cbl:2535-2560
Validate required non-zero numeric value
rec/group:claude/RULE-089/7
business rule
validation, high
WHEN the ZIP code (5 positions) or the EFT account id (10 positions) is checked, THE account update SHALL reject a blank value with '<field> must be supplied.' (flag 'B'), a value that is not all digits with '<field> must be all numeric.' (flag '0'), and a zero value with '<field> must not be zero.' (flag '0').
app/cbl/COACTUPC.cbl:1288-1334, app/cbl/COACTUPC.cbl:1410-1415, app/cbl/COACTUPC.cbl:1462-1471, app/cbl/COACTUPC.cbl:1560-1675, app/cbl/COACTUPC.cbl:1824-1851, app/cbl/COACTUPC.cbl:1855-1895
Cross-check state against ZIP
rec/group:claude/RULE-095/3
business rule
validation, high
WHEN both the state and the ZIP code have passed their own edits, THE account update SHALL check that the state together with the first two digits of the ZIP code is a known valid state/ZIP-prefix combination.
  • State: NY; ZIP: 10001 → 'NY10' is a valid combination; the address passes the cross-check
  • State: XX; ZIP: 90210 → Cross-check is not performed because the state already failed its own edit
app/cbl/COACTUPC.cbl:1336-1341, app/cbl/COACTUPC.cbl:1350-1355, app/cbl/COACTUPC.cbl:1592-1609, app/cbl/COACTUPC.cbl:1664-1669, app/cbl/COACTUPC.cbl:2493-2513, app/cbl/COACTUPC.cbl:2535-2560
Validate state and ZIP consistency
rec/group:claude/RULE-095/4
business rule
validation, high
WHEN the state and first two ZIP digits are not a valid combination, THE account update SHALL reject the change, flag both the state and the ZIP code as in error, and show 'Invalid zip code for state' if no earlier error message has been set.
  • State: NY; ZIP: 90210 → Change rejected with 'Invalid zip code for state'; state and ZIP both flagged
app/cbl/COACTUPC.cbl:1336-1341, app/cbl/COACTUPC.cbl:1350-1355, app/cbl/COACTUPC.cbl:1592-1609, app/cbl/COACTUPC.cbl:1664-1669, app/cbl/COACTUPC.cbl:2493-2513, app/cbl/COACTUPC.cbl:2535-2560

Acceptance criteria

IDCriterionChecks
AC-01Given Middle name entry: *
When the operator enters '*' or leaves blank the first, middle or last name, address line 1 or 2, city, or EFT account id on the account update screen
Then The middle name is treated as not supplied
REQ-F-073
Stage electronic funds transfer account
worked example 1 of the rule
AC-02Given ZIP entered: 10001
When the operator enters '*' or leaves the state or the ZIP code blank on the account update screen
Then ZIP 10001 is taken for editing
REQ-F-073
Stage state code entry
worked example 1 of the rule
AC-03Given Last name: Van Dyke
When a supplied first name, last name, city, state or country contains any character other than the letters A-Z or a-z and spaces
Then Accepted
REQ-F-075
Validate required alphabetic text
worked example 1 of the rule
AC-04Given Middle name: (blank)
When the middle name is left blank
Then Accepted
REQ-F-076
Validate optional alphabetic text
worked example 1 of the rule
AC-05Given Address line 1: 12-B Main St.
When address line 1 is not supplied
Then Accepted
REQ-F-077
Require mandatory text present
worked example 1 of the rule
AC-06Given State: XX
When the state passes the letters-only check but is not a valid US state code
Then Rejected as an invalid state
REQ-F-078
Validate customer names and address
worked example 1 of the rule
AC-07Given State: TX
When the state passes the letters-only check but is not a valid US state code
Then Accepted
REQ-F-078
Validate customer names and address
worked example 2 of the rule
AC-08Given State: NY
When the state entered is present and alphabetic but is not one of the valid US state codes
Then State accepted by this check
REQ-F-078
Validate US state code
worked example 1 of the rule
AC-09Given State: NY; ZIP: 10001
When both the state and the ZIP code have passed their own edits
Then 'NY10' is a valid combination; the address passes the cross-check
REQ-F-080
Cross-check state against ZIP
worked example 1 of the rule
AC-10Given State: XX; ZIP: 90210
When both the state and the ZIP code have passed their own edits
Then Cross-check is not performed because the state already failed its own edit
REQ-F-080
Cross-check state against ZIP
worked example 2 of the rule
AC-11Given State: NY; ZIP: 90210
When the state and first two ZIP digits are not a valid combination
Then Change rejected with 'Invalid zip code for state'; state and ZIP both flagged
REQ-F-081
Validate state and ZIP consistency
worked example 1 of the rule
AC-12Given an account is shown for update and the operator has changed a field
When the operator clears the First Name (or enters '*') and submits
Then the input is rejected with 'First Name must be supplied.' and the first name is flagged blank ('B')
REQ-F-074
Validate required alphabetic text
written from the rule
AC-13Given an account is shown for update and the operator has changed a field
When the operator leaves the City blank and submits
Then the input is rejected with 'City must be supplied.' and the city is flagged blank ('B')
REQ-F-074
Validate required alphabetic text
written from the rule
AC-14Given an account is shown for update with changes
When the operator leaves the ZIP blank and submits
Then the input is rejected with 'ZIP must be supplied.' and the ZIP is flagged 'B'
REQ-F-079
Validate required non-zero numeric value
written from the rule
AC-15Given an account is shown for update with changes
When the operator enters ZIP '12A45' and submits
Then the input is rejected with 'ZIP must be all numeric.' and the ZIP is flagged '0'
REQ-F-079
Validate required non-zero numeric value
written from the rule
AC-16Given an account is shown for update with changes
When the operator enters ZIP '00000' and submits
Then the input is rejected with 'ZIP must not be zero.' and the ZIP is flagged '0'
REQ-F-079
Validate required non-zero numeric value
written from the rule

Screens

  • Account S-ACCOUNT-VIEW · design · replaces CACTVWA (4 kept, 3 dropped, 33 merged)
  • Update account S-ACCOUNT-EDIT · design · replaces CACTUPA (3 kept, 3 dropped, 53 merged)
    • **summary card** Name and address checks: '<field> must be supplied.' for First Name, Last Name, City, State, Country and Address Line 1; '<field> can have alphabets only.' for names, city, state and country; 'Middle Name can have alphabets only.'; 'State: is not a valid state code'; ZIP: 'ZIP must be supplied.', must be all numeric, 5 digits and not zero; 'Invalid zip code for state' - check the state and ZIP together.
    • **summary card** Phone and payments checks: A phone may be left wholly blank; otherwise '<Phone Number 1 or 2>: Area code must be supplied.', ': Area code must be A 3 digit number.', ': Area code cannot be zero', ': Not valid North America general purpose area code' (from the list of general-purpose codes), ': Prefix code must be supplied.', ': Prefix code must be A 3 digit number.', ': Prefix code cannot be zero', ': Line number code must be supplied.', ': Line number code must be A 4 digit number.', ': Line number code cannot be zero'. EFT account ID: 'EFT Account Id must be supplied.', all numeric, 10 digits, not zero. Primary card holder: 'Primary Card Holder must be supplied.' and must be Yes or No ('must be Y or N.').

Data contracts

CSMSG02Y (file record; COACTUPC), CVACT01Y (file record; COACTUPC), CVACT03Y (file record; COACTUPC), CVCUS01Y (file record; COACTUPC), COCOM01Y (working storage; COACTUPC), COTTL01Y (working storage; COACTUPC), CSDAT01Y (working storage; COACTUPC), CSLKPCDY (working storage; COACTUPC), CSMSG01Y (working storage; COACTUPC), CSSETATY (working storage; COACTUPC), CSSTRPFY (working storage; COACTUPC), CSUSR01Y (working storage; COACTUPC), CSUTLDPY (working storage; COACTUPC), CSUTLDWY (working storage; COACTUPC), CVCRD01Y (working storage; COACTUPC)

Decision tables

Required alphabetic fields (first name, last name, city, state, country)

Field suppliedLetters and spaces onlyValid US state code (state only)Validation resultRule
No--Reject with '<field> must be supplied.', flag 'B'rec/group:claude/RULE-089/2
YesNo-Reject with '<field> can have alphabets only.', flag '0'rec/group:claude/RULE-089/3
YesYesNoReject state, flag it, show 'State: is not a valid state code' if no earlier messagerec/group:claude/RULE-095/2

Open questions

  • SME-056 Can the customer identifier be changed on the account update screen, or should it be shown read-only? (Account servicing business owner)
  • SME-057 Please supply the complete, authoritative list of valid general-purpose phone area codes. Today it is described only as running from '201' to '989'. (Data governance team)
  • SME-058 Please supply the complete, authoritative list of valid state and ZIP-prefix combinations. Is this rough check enough, or is a finer-grained address check required? (Data governance team)
  • SME-063 At present, a phone number counts as 'not supplied' when the area code and exchange are blank, even if a line number was entered. Is that intended, or should a phone count as not supplied only when all three parts are blank? (Business analyst)
  • SME-064 Should the second and third parts of a social security number be validated only when the first part is valid, or always? (Business analyst)
  • DEF-038 Confirm this is deliberate: The name, city, state and country fields accept only the letters A-Z and a-z and spaces. Real names and places with apostrophes, hyphens or periods ('O'Brien', 'St. Louis') are rejected. Separately, the blank-phone check tests the area-code part twice where it should test the line-number part. (Subject-matter expert)
  • DEF-043 Confirm this is deliberate: The ZIP check only compares the first two ZIP digits with the state, so a ZIP in the wrong area of a valid prefix is accepted; the code comment calls it a crude edit, so this looks intended. (Subject-matter expert)

Design notes

  • Treat blank or '*' entries for first, middle and last name, address lines 1 and 2, city and EFT account id as absent (null); otherwise they are the proposed values. The city goes into the customer's third address line, so map the City field to that address field. Stage electronic funds transfer account
  • Treat blank or '*' state and ZIP entries as absent (empty); otherwise keep the entered value for the state-code, ZIP and state/ZIP-prefix checks. Those checks need reference tables of valid US state codes and of valid state plus two-digit ZIP prefix combinations. Stage state code entry
10. Validate customer phone numbersfinal · online · 13 requirements · 14 rules · 13 criteria · 2 screens

Checks each customer phone number the operator enters as a North American number. The area code must be a listed general-purpose code, the prefix 3 non-zero digits and the line number 4 non-zero digits. A phone number left fully blank is optional and accepted. A partly entered or malformed number must never be saved. Each part is checked and flagged, but only the first message is shown.

As an operator, I want any phone number I enter checked as a North American number, so that only valid contact numbers are saved while phones stay optional.

Final: signed off by Sam (acceptance), 2026-11-25 Risk medium; touches personal_data. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#10

Requirements

CodeClassRequirementCriteria
REQ-F-082design noteWhen the operator enters '*' or leaves blank any part of phone number 1 or phone number 2 (area code, prefix or line number), the system shall treat that part as not supplied before validating it.AC-01
REQ-F-083business ruleWhen the area code, prefix and line number of a phone number are all not supplied, the system shall accept the phone number as omitted and skip all further checks on it.AC-02, AC-03
REQ-F-084business ruleIf any part of a phone number is supplied but its area code is not, then the system shall flag an input error with '<Phone Number 1 or 2>: Area code must be supplied.' and go on to check the prefix.AC-03
REQ-F-085business ruleIf a supplied area code is not all digits, then the system shall flag an input error with '<Phone Number 1 or 2>: Area code must be A 3 digit number.' and go on to check the prefix.AC-07
REQ-F-086business ruleIf a supplied area code is 000, then the system shall flag an input error with '<Phone Number 1 or 2>: Area code cannot be zero' and go on to check the prefix.AC-08
REQ-F-087business ruleIf a supplied numeric, non-zero area code is not one of the listed North American general-purpose area codes (410 codes between '201' and '989', not every number in that range), then the system shall flag an input error with '<Phone Number 1 or 2>: Not valid North America general purpose area code'.AC-04
REQ-F-088business ruleIf the prefix of a phone number being checked is not supplied, then the system shall flag an input error with '<Phone Number 1 or 2>: Prefix code must be supplied.' and go on to check the line number.AC-09
REQ-F-089business ruleIf a supplied prefix is not all digits, then the system shall flag an input error with '<Phone Number 1 or 2>: Prefix code must be A 3 digit number.' and go on to check the line number.AC-10
REQ-F-090business ruleIf a supplied prefix is 000, then the system shall flag an input error with '<Phone Number 1 or 2>: Prefix code cannot be zero' and go on to check the line number, accepting any other three-digit prefix (for example 555).AC-05
REQ-F-091business ruleIf the line number of a phone number being checked is not supplied, then the system shall flag an input error with '<Phone Number 1 or 2>: Line number code must be supplied.'.AC-11
REQ-F-092business ruleIf a supplied line number is not all digits, then the system shall flag an input error with '<Phone Number 1 or 2>: Line number code must be A 4 digit number.'.AC-12
REQ-F-093business ruleIf a supplied line number is 0000, then the system shall flag an input error with '<Phone Number 1 or 2>: Line number code cannot be zero', accepting any other four-digit line number.AC-06
REQ-F-094formattingWhen more than one phone number part fails its checks, the system shall flag every failing part in error but show only the first message raised, with no later message replacing one already set.AC-13

Business rules

RuleClassText, worked examples and evidence
Stage customer phone number parts
rec/group:claude/RULE-093/1
design note
technical, high
WHEN the operator enters '*' or leaves blank any part of phone number 1 or phone number 2 (area code, prefix or line number) on the account update screen, THE Account Update SHALL treat that part as not supplied before validating it.
  • Phone 1 area code: '*'; Phone 1 prefix: (blank) → Both parts are treated as not supplied
app/cbl/COACTUPC.cbl:1357-1397, app/cbl/COACTUPC.cbl:1632-1646, app/cbl/COACTUPC.cbl:2225-2429, app/cbl/COACTUPC.cbl:82-100, app/cpy/CSLKPCDY.cpy:521-930
Accept a fully blank phone number
rec/group:claude/RULE-093/2
business rule
validation, high
WHEN the area code, prefix and line number of a phone number are all not supplied, THE Account Update SHALL accept the phone number as omitted and skip all further checks on it, since a phone number is not mandatory.
  • Phone 2 area code: (blank); Phone 2 prefix: (blank); Phone 2 line number: (blank) → Phone number 2 is accepted; no error
app/cbl/COACTUPC.cbl:1357-1397, app/cbl/COACTUPC.cbl:1632-1646, app/cbl/COACTUPC.cbl:2225-2429, app/cbl/COACTUPC.cbl:82-100, app/cpy/CSLKPCDY.cpy:521-930
Validate phones, EFT id and holder flag
rec/group:claude/RULE-089/8
business rule
validation, high
THE account update SHALL accept blank phone numbers 1 and 2, edit any phone number that is entered as a North American number, and require the primary card holder indicator, rejecting a blank with 'Primary Card Holder must be supplied.' and any value other than 'Y' or 'N' with 'Primary Card Holder must be Y or N.'
  • Phone number 2: (blank) → Accepted
app/cbl/COACTUPC.cbl:1288-1334, app/cbl/COACTUPC.cbl:1410-1415, app/cbl/COACTUPC.cbl:1462-1471, app/cbl/COACTUPC.cbl:1560-1675, app/cbl/COACTUPC.cbl:1824-1851, app/cbl/COACTUPC.cbl:1855-1895
Reject missing phone area code
rec/group:claude/RULE-093/3
business rule
validation, high
WHEN any part of a phone number is supplied but its area code is not, THE Account Update SHALL flag an input error with '<Phone Number 1 or 2>: Area code must be supplied.' and go on to check the prefix.
app/cbl/COACTUPC.cbl:1357-1397, app/cbl/COACTUPC.cbl:1632-1646, app/cbl/COACTUPC.cbl:2225-2429, app/cbl/COACTUPC.cbl:82-100, app/cpy/CSLKPCDY.cpy:521-930
Reject non-numeric phone area code
rec/group:claude/RULE-093/4
business rule
validation, high
WHEN a supplied area code is not all digits, THE Account Update SHALL flag an input error with '<Phone Number 1 or 2>: Area code must be A 3 digit number.' and go on to check the prefix.
app/cbl/COACTUPC.cbl:1357-1397, app/cbl/COACTUPC.cbl:1632-1646, app/cbl/COACTUPC.cbl:2225-2429, app/cbl/COACTUPC.cbl:82-100, app/cpy/CSLKPCDY.cpy:521-930
Reject zero phone area code
rec/group:claude/RULE-093/5
business rule
validation, high
WHEN a supplied area code is 000, THE Account Update SHALL flag an input error with '<Phone Number 1 or 2>: Area code cannot be zero' and go on to check the prefix.
app/cbl/COACTUPC.cbl:1357-1397, app/cbl/COACTUPC.cbl:1632-1646, app/cbl/COACTUPC.cbl:2225-2429, app/cbl/COACTUPC.cbl:82-100, app/cpy/CSLKPCDY.cpy:521-930
Require recognised general-purpose area code
rec/group:claude/RULE-093/6
business rule
validation, high
WHEN a supplied numeric, non-zero area code is not one of the listed North American general-purpose area codes (410 codes between '201' and '989', not every number in that range), THE Account Update SHALL flag an input error with '<Phone Number 1 or 2>: Not valid North America general purpose area code'; otherwise it SHALL accept the area code.
  • Phone 1: (212) 555-1234 → Area code accepted
app/cbl/COACTUPC.cbl:1357-1397, app/cbl/COACTUPC.cbl:1632-1646, app/cbl/COACTUPC.cbl:2225-2429, app/cbl/COACTUPC.cbl:82-100, app/cpy/CSLKPCDY.cpy:521-930
Reject missing phone prefix
rec/group:claude/RULE-093/7
business rule
validation, high
WHEN the prefix of a phone number being checked is not supplied, THE Account Update SHALL flag an input error with '<Phone Number 1 or 2>: Prefix code must be supplied.' and go on to check the line number.
app/cbl/COACTUPC.cbl:1357-1397, app/cbl/COACTUPC.cbl:1632-1646, app/cbl/COACTUPC.cbl:2225-2429, app/cbl/COACTUPC.cbl:82-100, app/cpy/CSLKPCDY.cpy:521-930
Reject non-numeric phone prefix
rec/group:claude/RULE-093/8
business rule
validation, high
WHEN a supplied prefix is not all digits, THE Account Update SHALL flag an input error with '<Phone Number 1 or 2>: Prefix code must be A 3 digit number.' and go on to check the line number.
app/cbl/COACTUPC.cbl:1357-1397, app/cbl/COACTUPC.cbl:1632-1646, app/cbl/COACTUPC.cbl:2225-2429, app/cbl/COACTUPC.cbl:82-100, app/cpy/CSLKPCDY.cpy:521-930
Reject zero phone prefix
rec/group:claude/RULE-093/9
business rule
validation, high
WHEN a supplied prefix is 000, THE Account Update SHALL flag an input error with '<Phone Number 1 or 2>: Prefix code cannot be zero' and go on to check the line number; any other three-digit prefix (for example 555) SHALL be accepted.
  • Phone 1: (212) 555-1234 → Prefix accepted
app/cbl/COACTUPC.cbl:1357-1397, app/cbl/COACTUPC.cbl:1632-1646, app/cbl/COACTUPC.cbl:2225-2429, app/cbl/COACTUPC.cbl:82-100, app/cpy/CSLKPCDY.cpy:521-930
Reject missing phone line number
rec/group:claude/RULE-093/10
business rule
validation, high
WHEN the line number of a phone number being checked is not supplied, THE Account Update SHALL flag an input error with '<Phone Number 1 or 2>: Line number code must be supplied.'.
app/cbl/COACTUPC.cbl:1357-1397, app/cbl/COACTUPC.cbl:1632-1646, app/cbl/COACTUPC.cbl:2225-2429, app/cbl/COACTUPC.cbl:82-100, app/cpy/CSLKPCDY.cpy:521-930
Reject non-numeric phone line number
rec/group:claude/RULE-093/11
business rule
validation, high
WHEN a supplied line number is not all digits, THE Account Update SHALL flag an input error with '<Phone Number 1 or 2>: Line number code must be A 4 digit number.'.
app/cbl/COACTUPC.cbl:1357-1397, app/cbl/COACTUPC.cbl:1632-1646, app/cbl/COACTUPC.cbl:2225-2429, app/cbl/COACTUPC.cbl:82-100, app/cpy/CSLKPCDY.cpy:521-930
Reject zero phone line number
rec/group:claude/RULE-093/12
business rule
validation, high
WHEN a supplied line number is 0000, THE Account Update SHALL flag an input error with '<Phone Number 1 or 2>: Line number code cannot be zero'; any other four-digit line number SHALL be accepted.
  • Phone 1: (212) 555-1234 → Phone number 1 accepted
app/cbl/COACTUPC.cbl:1357-1397, app/cbl/COACTUPC.cbl:1632-1646, app/cbl/COACTUPC.cbl:2225-2429, app/cbl/COACTUPC.cbl:82-100, app/cpy/CSLKPCDY.cpy:521-930
Validate phone area code
rec/group:claude/RULE-093/13
formatting
display, high
WHEN more than one phone number part fails its checks, THE Account Update SHALL flag every failing part in error but show only the first message raised on the screen (no later message replaces one already set).
app/cbl/COACTUPC.cbl:1357-1397, app/cbl/COACTUPC.cbl:1632-1646, app/cbl/COACTUPC.cbl:2225-2429, app/cbl/COACTUPC.cbl:82-100, app/cpy/CSLKPCDY.cpy:521-930

Acceptance criteria

IDCriterionChecks
AC-01Given Phone 1 area code: '*'; Phone 1 prefix: (blank)
When the operator enters '*' or leaves blank any part of phone number 1 or phone number 2 (area code, prefix or line number) on the account update screen
Then Both parts are treated as not supplied
REQ-F-082
Stage customer phone number parts
worked example 1 of the rule
AC-02Given Phone 2 area code: (blank); Phone 2 prefix: (blank); Phone 2 line number: (blank)
When the area code, prefix and line number of a phone number are all not supplied
Then Phone number 2 is accepted; no error
REQ-F-083
Accept a fully blank phone number
worked example 1 of the rule
AC-03Given Phone number 2: (blank)
When account update runs
Then Accepted
REQ-F-083, REQ-F-084
Validate phones, EFT id and holder flag
worked example 1 of the rule
AC-04Given Phone 1: (212) 555-1234
When a supplied numeric, non-zero area code is not one of the listed North American general-purpose area codes (410 codes between '201' and '989', not every number in that range)
Then Area code accepted
REQ-F-087
Require recognised general-purpose area code
worked example 1 of the rule
AC-05Given Phone 1: (212) 555-1234
When a supplied prefix is 000
Then Prefix accepted
REQ-F-090
Reject zero phone prefix
worked example 1 of the rule
AC-06Given Phone 1: (212) 555-1234
When a supplied line number is 0000
Then Phone number 1 accepted
REQ-F-093
Reject zero phone line number
worked example 1 of the rule
AC-07Given an account is shown for update with changes
When the operator enters Phone Number 1 as area code '2A1', prefix '555', line '1234' and submits
Then an input error is flagged with 'Phone Number 1: Area code must be A 3 digit number.' and the prefix is still checked
REQ-F-085
Reject non-numeric phone area code
written from the rule
AC-08Given an account is shown for update with changes
When the operator enters Phone Number 2 as area code '000', prefix '555', line '1234' and submits
Then an input error is flagged with 'Phone Number 2: Area code cannot be zero' and the prefix is still checked
REQ-F-086
Reject zero phone area code
written from the rule
AC-09Given an account is shown for update with changes
When the operator enters Phone Number 1 with area code '212', the prefix blank and line '1234', and submits
Then an input error is flagged with 'Phone Number 1: Prefix code must be supplied.' and the line number is still checked
REQ-F-088
Reject missing phone prefix
written from the rule
AC-10Given an account is shown for update with changes
When the operator enters Phone Number 1 as area code '212', prefix '5X5', line '1234' and submits
Then an input error is flagged with 'Phone Number 1: Prefix code must be A 3 digit number.' and the line number is still checked
REQ-F-089
Reject non-numeric phone prefix
written from the rule
AC-11Given an account is shown for update with changes
When the operator enters Phone Number 2 as area code '212', prefix '555' with the line number blank, and submits
Then an input error is flagged with 'Phone Number 2: Line number code must be supplied.'
REQ-F-091
Reject missing phone line number
written from the rule
AC-12Given an account is shown for update with changes
When the operator enters Phone Number 1 as area code '212', prefix '555', line '12B4' and submits
Then an input error is flagged with 'Phone Number 1: Line number code must be A 4 digit number.'
REQ-F-092
Reject non-numeric phone line number
written from the rule
AC-13Given an account is shown for update with changes
When the operator enters Phone Number 1 as area code '000', prefix '5X5', line '12B4' and submits
Then the area code, prefix and line number are all flagged in error, but the screen shows only 'Phone Number 1: Area code cannot be zero'
REQ-F-094
Validate phone area code
written from the rule

Screens

  • Account S-ACCOUNT-VIEW · design · replaces CACTVWA (4 kept, 3 dropped, 33 merged)
  • Update account S-ACCOUNT-EDIT · design · replaces CACTUPA (3 kept, 3 dropped, 53 merged)
    • **summary card** Phone and payments checks: A phone may be left wholly blank; otherwise '<Phone Number 1 or 2>: Area code must be supplied.', ': Area code must be A 3 digit number.', ': Area code cannot be zero', ': Not valid North America general purpose area code' (from the list of general-purpose codes), ': Prefix code must be supplied.', ': Prefix code must be A 3 digit number.', ': Prefix code cannot be zero', ': Line number code must be supplied.', ': Line number code must be A 4 digit number.', ': Line number code cannot be zero'. EFT account ID: 'EFT Account Id must be supplied.', all numeric, 10 digits, not zero. Primary card holder: 'Primary Card Holder must be supplied.' and must be Yes or No ('must be Y or N.').

Data contracts

CSMSG02Y (file record; COACTUPC), CVACT01Y (file record; COACTUPC), CVACT03Y (file record; COACTUPC), CVCUS01Y (file record; COACTUPC), COCOM01Y (working storage; COACTUPC), COTTL01Y (working storage; COACTUPC), CSDAT01Y (working storage; COACTUPC), CSLKPCDY (working storage; COACTUPC), CSMSG01Y (working storage; COACTUPC), CSSETATY (working storage; COACTUPC), CSSTRPFY (working storage; COACTUPC), CSUSR01Y (working storage; COACTUPC), CSUTLDPY (working storage; COACTUPC), CSUTLDWY (working storage; COACTUPC), CVCRD01Y (working storage; COACTUPC)

Decision tables

Phone number part checks

Phone partAny part of the phone suppliedPart suppliedAll digitsZeroListed general-purpose area codeValidation resultRule
All partsNo----Accept phone as omitted, skip further checksrec/group:claude/RULE-093/2
Area codeYesNo---'Area code must be supplied.', go on to prefixrec/group:claude/RULE-093/3
Area codeYesYesNo--'Area code must be A 3 digit number.', go on to prefixrec/group:claude/RULE-093/4
Area codeYesYesYesYes-'Area code cannot be zero', go on to prefixrec/group:claude/RULE-093/5
Area codeYesYesYesNoNo'Not valid North America general purpose area code'rec/group:claude/RULE-093/6
Area codeYesYesYesNoYesAccept area coderec/group:claude/RULE-093/6
PrefixYesNo---'Prefix code must be supplied.', go on to line numberrec/group:claude/RULE-093/7
PrefixYesYesNo--'Prefix code must be A 3 digit number.', go on to line numberrec/group:claude/RULE-093/8
PrefixYesYesYesYes-'Prefix code cannot be zero', go on to line numberrec/group:claude/RULE-093/9
PrefixYesYesYesNo-Accept prefixrec/group:claude/RULE-093/9
Line numberYesNo---'Line number code must be supplied.'rec/group:claude/RULE-093/10
Line numberYesYesNo--'Line number code must be A 4 digit number.'rec/group:claude/RULE-093/11
Line numberYesYesYesYes-'Line number code cannot be zero'rec/group:claude/RULE-093/12
Line numberYesYesYesNo-Accept line numberrec/group:claude/RULE-093/12

Open questions

  • SME-056 Can the customer identifier be changed on the account update screen, or should it be shown read-only? (Account servicing business owner)
  • SME-057 Please supply the complete, authoritative list of valid general-purpose phone area codes. Today it is described only as running from '201' to '989'. (Data governance team)
  • SME-063 At present, a phone number counts as 'not supplied' when the area code and exchange are blank, even if a line number was entered. Is that intended, or should a phone count as not supplied only when all three parts are blank? (Business analyst)
  • SME-064 Should the second and third parts of a social security number be validated only when the first part is valid, or always? (Business analyst)
  • DEF-038 Confirm this is deliberate: The name, city, state and country fields accept only the letters A-Z and a-z and spaces. Real names and places with apostrophes, hyphens or periods ('O'Brien', 'St. Louis') are rejected. Separately, the blank-phone check tests the area-code part twice where it should test the line-number part. (Subject-matter expert)
  • DEF-041 Is this intended? The 'phone not supplied' test checks the area code twice and never checks that the line number is blank-spaces (third condition tests area code = spaces OR line number = low-values). Because the screen input turns blanks into low-values first, this has no visible effect today, but a number arriving with a spaces area code and prefix would be accepted as omitted even with a line number entered. (Subject-matter expert)

Design notes

  • Capture phone numbers 1 and 2 as three optional parts each (area code, prefix, line number). Blank or '*' parts are absent before validation, so a phone with all parts absent counts as omitted. Area-code validation needs a reference list of the North American general-purpose area codes. Stage customer phone number parts
11. Validate identity and credit detailsfinal · online · 8 requirements · 9 rules · 12 criteria · 2 screens · 1 gap

Checks the customer's Social Security Number, date of birth and FICO credit score when the operator changes customer details. The SSN must have valid, non-zero parts and must not start with 000, 666 or 900-999. The date of birth must be in the past. The FICO score must be three digits between 300 and 850. Implausible identity or credit data must never be saved.

As an operator, I want the SSN, date of birth and FICO score checked when I change customer details, so that only plausible identity and credit data is saved.

Final: signed off by Sam (acceptance), 2026-11-25 Risk medium; touches personal_data. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#11

Requirements

CodeClassRequirementCriteria
REQ-F-095design noteWhen the operator enters a Social Security Number part as '*' or leaves it blank, the system shall treat that part as not supplied, and otherwise take the entered part as the proposed value.AC-06
REQ-F-096business ruleIf the first three SSN characters are blank, not all numeric or zero, then the system shall reject them with 'SSN: First 3 chars must be supplied.', 'SSN: First 3 chars must be all numeric.' or 'SSN: First 3 chars must not be zero.' respectively, and shall not check the other two SSN parts.AC-01
REQ-F-097business ruleIf the first three SSN characters are numeric and equal 666 or fall between 900 and 999, then the system shall reject them with 'SSN: First 3 chars: should not be 000, 666, or between 900 and 999'.AC-02, AC-03
REQ-F-098business ruleWhen the first three SSN characters are numeric and non-zero, the system shall require the 4th-5th characters and the last 4 characters each to be supplied, all numeric and non-zero, giving 'SSN 4th & 5th chars …' or 'SSN Last 4 chars …' with 'must be supplied.', 'must be all numeric.' or 'must not be zero.'.AC-07, AC-08, AC-09
REQ-F-099business ruleIf a valid calendar date of birth is today or later, then the system shall reject it, flag the day, month and year fields, and show 'Date of Birth:cannot be in the future ' if no earlier error message is already set.AC-01, AC-04
REQ-F-100business ruleIf the FICO score is entered as blank or '*', then the system shall treat it as not supplied and reject it with 'FICO Score must be supplied.'.AC-10
REQ-F-101business ruleIf the FICO score is not all three digits, then the system shall reject it with 'FICO Score must be all numeric.', and if it is zero, the system shall reject it with 'FICO Score must not be zero.'.AC-11, AC-12
REQ-F-102business ruleIf a numeric, non-zero FICO score is below 300 or above 850, then the system shall mark the FICO score in error and reject the input with 'FICO Score: should be between 300 and 850', accepting 300 and 850 themselves.AC-05

Business rules

RuleClassText, worked examples and evidence
Stage social security number parts
rec/group:claude/RULE-094/1
design note
technical, high
WHEN the operator enters a Social Security Number part as '*' or leaves it blank, THE account update screen SHALL treat that part as not supplied; otherwise it SHALL take the entered part as the proposed value.
app/cbl/COACTUPC.cbl:1231-1252, app/cbl/COACTUPC.cbl:1529-1531, app/cbl/COACTUPC.cbl:2431-2491, app/cbl/COACTUPC.cbl:118-123, app/cbl/COACTUPC.cbl:2109-2175
Validate social security number
rec/group:claude/RULE-094/2
business rule
validation, high
WHEN the first three SSN characters are blank, not all numeric or zero, THE account update validation SHALL reject them with 'SSN: First 3 chars must be supplied.', 'SSN: First 3 chars must be all numeric.' or 'SSN: First 3 chars must not be zero.' respectively, and SHALL not check the other two SSN parts.
app/cbl/COACTUPC.cbl:1231-1252, app/cbl/COACTUPC.cbl:1529-1531, app/cbl/COACTUPC.cbl:2431-2491, app/cbl/COACTUPC.cbl:118-123, app/cbl/COACTUPC.cbl:2109-2175
Validate SSN, birth date and FICO
rec/group:claude/RULE-088/4
business rule
validation, high
WHEN changed details are checked, THE account update SHALL also check the SSN and require the date of birth to be a valid date earlier than today, rejecting a later date or today with 'Date of Birth:cannot be in the future '.
  • Date of birth: 1985-04-12 → Accepted
app/cbl/COACTUPC.cbl:1277-1284, app/cbl/COACTUPC.cbl:1529-1556, app/cbl/COACTUPC.cbl:845-849, app/cbl/COACTUPC.cbl:2109-2176, app/cbl/COACTUPC.cbl:2514-2533, app/cpy/CSUTLDPY.cpy:341-372
Validate social security number
rec/group:claude/RULE-094/3
business rule
validation, high
WHEN the first three SSN characters are numeric and equal 666 or fall between 900 and 999, THE account update validation SHALL reject them with 'SSN: First 3 chars: should not be 000, 666, or between 900 and 999'.
  • SSN: 912-12-3456 → Rejected with the same message.
  • SSN: 123-45-6789 → Accepted.
app/cbl/COACTUPC.cbl:1231-1252, app/cbl/COACTUPC.cbl:1529-1531, app/cbl/COACTUPC.cbl:2431-2491, app/cbl/COACTUPC.cbl:118-123, app/cbl/COACTUPC.cbl:2109-2175
Validate social security number
rec/group:claude/RULE-094/4
business rule
validation, high
WHEN the first three SSN characters are numeric and non-zero, THE account update validation SHALL require the 4th-5th characters and the last 4 characters each to be supplied, all numeric and non-zero, giving 'SSN 4th & 5th chars …' or 'SSN Last 4 chars …' with 'must be supplied.', 'must be all numeric.' or 'must not be zero.'.
app/cbl/COACTUPC.cbl:1231-1252, app/cbl/COACTUPC.cbl:1529-1531, app/cbl/COACTUPC.cbl:2431-2491, app/cbl/COACTUPC.cbl:118-123, app/cbl/COACTUPC.cbl:2109-2175
Reject future date of birth
rec/group:claude/RULE-087/2
business rule
validation, high
WHEN a valid calendar date of birth is today or later, THE account update validation SHALL reject it, flag the day, month and year fields, and show 'Date of Birth:cannot be in the future ' if no earlier error message is already set.
  • Today: 2026-11-23; Date of birth: 1980-05-14 → Accepted.
app/cbl/COACTUPC.cbl:1254-1275, app/cbl/COACTUPC.cbl:1533-1543, app/cpy/CSUTLDPY.cpy:341-370
Stage credit score entry
rec/group:claude/RULE-088/1
business rule
validation, high
WHEN the FICO score is entered as blank or '*', THE account update SHALL treat it as not supplied and reject it with 'FICO Score must be supplied.'
app/cbl/COACTUPC.cbl:1277-1284, app/cbl/COACTUPC.cbl:1529-1556, app/cbl/COACTUPC.cbl:845-849, app/cbl/COACTUPC.cbl:2109-2176, app/cbl/COACTUPC.cbl:2514-2533, app/cpy/CSUTLDPY.cpy:341-372
Validate SSN, birth date and FICO
rec/group:claude/RULE-088/2
business rule
validation, high
WHEN the FICO score is not all three digits, THE account update SHALL reject it with 'FICO Score must be all numeric.', and WHEN it is zero, SHALL reject it with 'FICO Score must not be zero.'
app/cbl/COACTUPC.cbl:1277-1284, app/cbl/COACTUPC.cbl:1529-1556, app/cbl/COACTUPC.cbl:845-849, app/cbl/COACTUPC.cbl:2109-2176, app/cbl/COACTUPC.cbl:2514-2533, app/cpy/CSUTLDPY.cpy:341-372
Validate FICO score range
rec/group:claude/RULE-088/3
business rule
validation, high
WHEN a numeric, non-zero FICO score is below 300 or above 850, THE account update SHALL mark the FICO score in error and reject the input with 'FICO Score: should be between 300 and 850'; 300 and 850 themselves are accepted.
  • FICO score: 300 → Accepted
app/cbl/COACTUPC.cbl:1277-1284, app/cbl/COACTUPC.cbl:1529-1556, app/cbl/COACTUPC.cbl:845-849, app/cbl/COACTUPC.cbl:2109-2176, app/cbl/COACTUPC.cbl:2514-2533, app/cpy/CSUTLDPY.cpy:341-372

Acceptance criteria

IDCriterionChecks
AC-01Given Date of birth: 1985-04-12
When changed details are checked
Then Accepted
REQ-F-096, REQ-F-099
Validate SSN, birth date and FICO
worked example 1 of the rule
AC-02Given SSN: 912-12-3456
When the first three SSN characters are numeric and equal 666 or fall between 900 and 999
Then Rejected with the same message.
REQ-F-097
Validate social security number
worked example 1 of the rule
AC-03Given SSN: 123-45-6789
When the first three SSN characters are numeric and equal 666 or fall between 900 and 999
Then Accepted.
REQ-F-097
Validate social security number
worked example 2 of the rule
AC-04Given Today: 2026-11-23; Date of birth: 1980-05-14
When a valid calendar date of birth is today or later
Then Accepted.
REQ-F-099
Reject future date of birth
worked example 1 of the rule
AC-05Given FICO score: 300
When a numeric, non-zero FICO score is below 300 or above 850
Then Accepted
REQ-F-102
Validate FICO score range
worked example 1 of the rule
AC-06Given an account is shown for update with the stored SSN 123-45-6789
When the operator enters '*' in the first SSN part, leaves the 4th-5th part blank, enters '6789' as the last part, and submits
Then the first and 4th-5th parts are treated as not supplied and the last part '6789' is taken as the proposed value
REQ-F-095
Stage social security number parts
written from the rule
AC-07Given an account is shown for update with changes and the first three SSN characters are '123'
When the operator leaves the SSN 4th and 5th characters blank and submits
Then the input is rejected with a message that starts 'SSN 4th & 5th chars' and ends 'must be supplied.'
REQ-F-098
Validate social security number
written from the rule
AC-08Given an account is shown for update with changes and the first three SSN characters are '123'
When the operator enters '45' as the 4th-5th characters and '12A4' as the last 4 characters, and submits
Then the input is rejected with a message that starts 'SSN Last 4 chars' and ends 'must be all numeric.'
REQ-F-098
Validate social security number
written from the rule
AC-09Given an account is shown for update with changes and the first three SSN characters are '123'
When the operator enters '00' as the 4th-5th characters and submits
Then the input is rejected with a message that starts 'SSN 4th & 5th chars' and ends 'must not be zero.'
REQ-F-098
Validate social security number
written from the rule
AC-10Given an account is shown for update with changes
When the operator clears the FICO score (or enters '*') and submits
Then the FICO score is treated as not supplied and the input is rejected with 'FICO Score must be supplied.'
REQ-F-100
Stage credit score entry
written from the rule
AC-11Given an account is shown for update with changes
When the operator enters FICO score '7A0' and submits
Then the input is rejected with 'FICO Score must be all numeric.'
REQ-F-101
Validate SSN, birth date and FICO
written from the rule
AC-12Given an account is shown for update with changes
When the operator enters FICO score '000' and submits
Then the input is rejected with 'FICO Score must not be zero.'
REQ-F-101
Validate SSN, birth date and FICO
written from the rule

Screens

  • Account S-ACCOUNT-VIEW · design · replaces CACTVWA (4 kept, 3 dropped, 33 merged)
  • Update account S-ACCOUNT-EDIT · design · replaces CACTUPA (3 kept, 3 dropped, 53 merged)
    • **summary card** Customer identity checks: SSN: 'SSN: First 3 chars must be supplied.', 'SSN: First 3 chars must be all numeric.', 'SSN: First 3 chars: should not be 000, 666, or between 900 and 999'; the 4th & 5th and last 4 characters must each be supplied, all numeric and non-zero. Date of birth: the date checks above, and 'Date of Birth:cannot be in the future '. FICO: 'FICO Score must be supplied.', 'FICO Score must be all numeric.', 'FICO Score must not be zero.', 'FICO Score: should be between 300 and 850'.

Data contracts

CSMSG02Y (file record; COACTUPC), CVACT01Y (file record; COACTUPC), CVACT03Y (file record; COACTUPC), CVCUS01Y (file record; COACTUPC), COCOM01Y (working storage; COACTUPC), COTTL01Y (working storage; COACTUPC), CSDAT01Y (working storage; COACTUPC), CSLKPCDY (working storage; COACTUPC), CSMSG01Y (working storage; COACTUPC), CSSETATY (working storage; COACTUPC), CSSTRPFY (working storage; COACTUPC), CSUSR01Y (working storage; COACTUPC), CSUTLDPY (working storage; COACTUPC), CSUTLDWY (working storage; COACTUPC), CVCRD01Y (working storage; COACTUPC)

Decision tables

FICO score checks

Supplied (not blank or '*')All three digitsZeroBetween 300 and 850 inclusiveValidation resultRule
No---Reject with 'FICO Score must be supplied.'rec/group:claude/RULE-088/1
YesNo--Reject with 'FICO Score must be all numeric.'rec/group:claude/RULE-088/2
YesYesYes-Reject with 'FICO Score must not be zero.'rec/group:claude/RULE-088/2
YesYesNoNoMark in error, reject with 'FICO Score: should be between 300 and 850'rec/group:claude/RULE-088/3
YesYesNoYesAcceptrec/group:claude/RULE-088/3

SSN first three characters checks

SuppliedAll numericZero666 or 900-999Validation resultRule
No---'SSN: First 3 chars must be supplied.'; other parts not checkedrec/group:claude/RULE-094/2
YesNo--'SSN: First 3 chars must be all numeric.'; other parts not checkedrec/group:claude/RULE-094/2
YesYesYes-'SSN: First 3 chars must not be zero.'; other parts not checkedrec/group:claude/RULE-094/2
YesYesNoYes'SSN: First 3 chars: should not be 000, 666, or between 900 and 999'rec/group:claude/RULE-094/3
YesYesNoNoGo on to check 4th-5th and last 4 charactersrec/group:claude/RULE-094/4
YesYesNoYesGap: No rule says whether the 4th-5th and last 4 characters are still checked when the first three are 666 or 900-999.

Open questions

  • SME-056 Can the customer identifier be changed on the account update screen, or should it be shown read-only? (Account servicing business owner)
  • SME-057 Please supply the complete, authoritative list of valid general-purpose phone area codes. Today it is described only as running from '201' to '989'. (Data governance team)
  • SME-058 Please supply the complete, authoritative list of valid state and ZIP-prefix combinations. Is this rough check enough, or is a finer-grained address check required? (Data governance team)
  • SME-059 When the date-checking utility rejects a date, the date is still marked valid even though an input error is raised. Should a rejected date stay invalid, including for later checks such as 'date of birth cannot be in the future'? (Account servicing business owner)
  • SME-060 Should date validation check that the month is numeric before checking that it is between 1 and 12? (Account servicing business owner)
  • SME-061 Only years in the 1900s and 2000s are accepted for all four account and customer dates. Should this restriction still apply to card expiry and reissue dates? (Account servicing business owner)
  • SME-063 At present, a phone number counts as 'not supplied' when the area code and exchange are blank, even if a line number was entered. Is that intended, or should a phone count as not supplied only when all three parts are blank? (Business analyst)
  • SME-064 Should the second and third parts of a social security number be validated only when the first part is valid, or always? (Business analyst)
  • DEF-037 Is this intended? A date of birth equal to today is rejected with a message saying it is in the future, which it is not. (Subject-matter expert)
  • DEF-042 Is this intended? The IF on part 1 being valid has no END-IF, so the SSN 4th-5th and last-4 checks are skipped whenever part 1 is blank, non-numeric or zero; the 000 branch of the forbidden-value message can never be shown. (Subject-matter expert)

Design notes

  • Capture the SSN as three optional parts (3, 2 and 4 characters). Blank or '*' parts are absent; others are kept as typed for the supplied, numeric, non-zero and forbidden-range checks. The SSN is sensitive personal data: mask it on screen and in logs, and protect it in storage. Stage social security number parts
12. Validate account flags and EFT accountfinal · online · 4 requirements · 6 rules · 5 criteria · 2 screens

Checks the account status and the primary card holder indicator, each of which must be Y or N. It also checks the electronic funds transfer (EFT) account id, which must be 10 non-zero digits. A blank or '*' entry is not supplied and is rejected. A flag other than Y or N, or a malformed transfer account, must never be saved.

As an operator, I want the account status, primary card holder indicator and EFT account id checked, so that only valid flags and a well-formed funds transfer account are saved.

Final: signed off by Sam (acceptance), 2026-11-25 Risk high; touches money, personal_data. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#12

Requirements

CodeClassRequirementCriteria
REQ-F-103design noteWhen the operator submits account changes and leaves the Account Status or Primary Card Holder entry blank or as '*', the system shall treat that entry as not supplied (low-values) rather than as a value to save.AC-01, AC-02
REQ-F-104business ruleIf changed account details are validated and the Account Status or Primary Card Holder value is not supplied (blank, low-values or '0'), then the system shall reject the input with '<field> must be supplied.' (e.g. 'Account Status must be supplied.', 'Primary Card Holder must be supplied.') and place the cursor on that field.AC-03
REQ-F-105business ruleIf changed account details are validated and a supplied Account Status or Primary Card Holder value is anything other than 'Y' or 'N', then the system shall reject the input with '<field> must be Y or N.' (e.g. 'Account Status must be Y or N.', 'Primary Card Holder must be Y or N.') and place the cursor on that field.AC-03, AC-04
REQ-F-106business ruleIf the EFT account id (10 positions) is blank, not all digits, or zero, then the system shall reject it with '<field> must be supplied.' (flag 'B'), '<field> must be all numeric.' (flag '0') or '<field> must not be zero.' (flag '0') respectively.AC-05

Business rules

RuleClassText, worked examples and evidence
Stage entered account active status
rec/group:claude/RULE-092/1
design note
technical, high
WHEN the operator submits account changes and leaves the Account Status or Primary Card Holder entry blank or as '*', THE Account Update screen SHALL treat that entry as not supplied (low-values) rather than as a value to save.
  • Account Status entry: '*' → Account Status is treated as not supplied
  • Primary Card Holder entry: 'Y' → 'Y' is taken as the proposed Primary Card Holder value
app/cbl/COACTUPC.cbl:1064-1070, app/cbl/COACTUPC.cbl:1419-1424, app/cbl/COACTUPC.cbl:1458-1476, app/cbl/COACTUPC.cbl:1657-1662, app/cbl/COACTUPC.cbl:1856-1895, app/cbl/COACTUPC.cbl:76-80
Validate yes or no indicator
rec/group:claude/RULE-092/2
business rule
validation, high
WHEN changed account details are validated and the Account Status or Primary Card Holder value is not supplied (blank, low-values or '0'), THE Account Update screen SHALL reject the input with '<field> must be supplied.' (e.g. 'Account Status must be supplied.') and place the cursor on that field.
app/cbl/COACTUPC.cbl:1064-1070, app/cbl/COACTUPC.cbl:1419-1424, app/cbl/COACTUPC.cbl:1458-1476, app/cbl/COACTUPC.cbl:1657-1662, app/cbl/COACTUPC.cbl:1856-1895, app/cbl/COACTUPC.cbl:76-80
Validate phones, EFT id and holder flag
rec/group:claude/RULE-089/8
business rule
validation, high
THE account update SHALL accept blank phone numbers 1 and 2, edit any phone number that is entered as a North American number, and require the primary card holder indicator, rejecting a blank with 'Primary Card Holder must be supplied.' and any value other than 'Y' or 'N' with 'Primary Card Holder must be Y or N.'
  • Phone number 2: (blank) → Accepted
app/cbl/COACTUPC.cbl:1288-1334, app/cbl/COACTUPC.cbl:1410-1415, app/cbl/COACTUPC.cbl:1462-1471, app/cbl/COACTUPC.cbl:1560-1675, app/cbl/COACTUPC.cbl:1824-1851, app/cbl/COACTUPC.cbl:1855-1895
Validate yes or no indicator
rec/group:claude/RULE-092/3
business rule
validation, high
WHEN changed account details are validated and a supplied Account Status or Primary Card Holder value is anything other than 'Y' or 'N', THE Account Update screen SHALL reject the input with '<field> must be Y or N.' (e.g. 'Account Status must be Y or N.') and place the cursor on that field.
  • Account Status: 'N' → Accepted
app/cbl/COACTUPC.cbl:1064-1070, app/cbl/COACTUPC.cbl:1419-1424, app/cbl/COACTUPC.cbl:1458-1476, app/cbl/COACTUPC.cbl:1657-1662, app/cbl/COACTUPC.cbl:1856-1895, app/cbl/COACTUPC.cbl:76-80
Validate required non-zero numeric value
rec/group:claude/RULE-089/7
business rule
validation, high
WHEN the ZIP code (5 positions) or the EFT account id (10 positions) is checked, THE account update SHALL reject a blank value with '<field> must be supplied.' (flag 'B'), a value that is not all digits with '<field> must be all numeric.' (flag '0'), and a zero value with '<field> must not be zero.' (flag '0').
app/cbl/COACTUPC.cbl:1288-1334, app/cbl/COACTUPC.cbl:1410-1415, app/cbl/COACTUPC.cbl:1462-1471, app/cbl/COACTUPC.cbl:1560-1675, app/cbl/COACTUPC.cbl:1824-1851, app/cbl/COACTUPC.cbl:1855-1895
Stage electronic funds transfer account
rec/group:claude/RULE-089/1
design note
technical, high
WHEN the operator enters '*' or leaves blank the first, middle or last name, address line 1 or 2, city, or EFT account id on the account update screen, THE account update SHALL treat that entry as not supplied; otherwise it SHALL take the entered value as the proposed new value (the city is held as address line 3).
  • Middle name entry: * → The middle name is treated as not supplied
app/cbl/COACTUPC.cbl:1288-1334, app/cbl/COACTUPC.cbl:1410-1415, app/cbl/COACTUPC.cbl:1462-1471, app/cbl/COACTUPC.cbl:1560-1675, app/cbl/COACTUPC.cbl:1824-1851, app/cbl/COACTUPC.cbl:1855-1895

Acceptance criteria

IDCriterionChecks
AC-01Given Account Status entry: '*'
When the operator submits account changes and leaves the Account Status or Primary Card Holder entry blank or as '*'
Then Account Status is treated as not supplied
REQ-F-103
Stage entered account active status
worked example 1 of the rule
AC-02Given Primary Card Holder entry: 'Y'
When the operator submits account changes and leaves the Account Status or Primary Card Holder entry blank or as '*'
Then 'Y' is taken as the proposed Primary Card Holder value
REQ-F-103
Stage entered account active status
worked example 2 of the rule
AC-03Given Phone number 2: (blank)
When account update runs
Then Accepted
REQ-F-104, REQ-F-105
Validate phones, EFT id and holder flag
worked example 1 of the rule
AC-04Given Account Status: 'N'
When changed account details are validated and a supplied Account Status or Primary Card Holder value is anything other than 'Y' or 'N'
Then Accepted
REQ-F-105
Validate yes or no indicator
worked example 1 of the rule
AC-05Given Middle name entry: *
When the operator enters '*' or leaves blank the first, middle or last name, address line 1 or 2, city, or EFT account id on the account update screen
Then The middle name is treated as not supplied
REQ-F-106
Stage electronic funds transfer account
worked example 1 of the rule

Screens

  • Account S-ACCOUNT-VIEW · design · replaces CACTVWA (4 kept, 3 dropped, 33 merged)
  • Update account S-ACCOUNT-EDIT · design · replaces CACTUPA (3 kept, 3 dropped, 53 merged)
    • **summary card** Status and group checks: Status is required: 'Account Status must be supplied.' and must be Active or Inactive ('Account Status must be Y or N.'). The choice offers only those two values.
    • **summary card** Name and address checks: '<field> must be supplied.' for First Name, Last Name, City, State, Country and Address Line 1; '<field> can have alphabets only.' for names, city, state and country; 'Middle Name can have alphabets only.'; 'State: is not a valid state code'; ZIP: 'ZIP must be supplied.', must be all numeric, 5 digits and not zero; 'Invalid zip code for state' - check the state and ZIP together.
    • **summary card** Phone and payments checks: A phone may be left wholly blank; otherwise '<Phone Number 1 or 2>: Area code must be supplied.', ': Area code must be A 3 digit number.', ': Area code cannot be zero', ': Not valid North America general purpose area code' (from the list of general-purpose codes), ': Prefix code must be supplied.', ': Prefix code must be A 3 digit number.', ': Prefix code cannot be zero', ': Line number code must be supplied.', ': Line number code must be A 4 digit number.', ': Line number code cannot be zero'. EFT account ID: 'EFT Account Id must be supplied.', all numeric, 10 digits, not zero. Primary card holder: 'Primary Card Holder must be supplied.' and must be Yes or No ('must be Y or N.').

Data contracts

CSMSG02Y (file record; COACTUPC), CVACT01Y (file record; COACTUPC), CVACT03Y (file record; COACTUPC), CVCUS01Y (file record; COACTUPC), COCOM01Y (working storage; COACTUPC), COTTL01Y (working storage; COACTUPC), CSDAT01Y (working storage; COACTUPC), CSLKPCDY (working storage; COACTUPC), CSMSG01Y (working storage; COACTUPC), CSSETATY (working storage; COACTUPC), CSSTRPFY (working storage; COACTUPC), CSUSR01Y (working storage; COACTUPC), CSUTLDPY (working storage; COACTUPC), CSUTLDWY (working storage; COACTUPC), CVCRD01Y (working storage; COACTUPC)

Decision tables

Account Status and Primary Card Holder checks

Value suppliedValue is 'Y' or 'N'Validation resultRule
No (blank, low-values or '0')-Reject with '<field> must be supplied.', cursor on fieldrec/group:claude/RULE-092/2
YesNoReject with '<field> must be Y or N.', cursor on fieldrec/group:claude/RULE-092/3
No (blank)-Reject with 'Primary Card Holder must be supplied.'rec/group:claude/RULE-089/8

Open questions

  • SME-056 Can the customer identifier be changed on the account update screen, or should it be shown read-only? (Account servicing business owner)
  • SME-057 Please supply the complete, authoritative list of valid general-purpose phone area codes. Today it is described only as running from '201' to '989'. (Data governance team)
  • SME-063 At present, a phone number counts as 'not supplied' when the area code and exchange are blank, even if a line number was entered. Is that intended, or should a phone count as not supplied only when all three parts are blank? (Business analyst)
  • SME-064 Should the second and third parts of a social security number be validated only when the first part is valid, or always? (Business analyst)
  • DEF-038 Confirm this is deliberate: The name, city, state and country fields accept only the letters A-Z and a-z and spaces. Real names and places with apostrophes, hyphens or periods ('O'Brien', 'St. Louis') are rejected. Separately, the blank-phone check tests the area-code part twice where it should test the line-number part. (Subject-matter expert)

Design notes

  • Treat blank or '*' entries for Account Status and Primary Card Holder as absent (null), never as a value to save. Validation then rejects an absent or non-Y/N value. Store each flag as a two-valued field (Y/N or boolean). Stage entered account active status
  • Treat a blank or '*' EFT account id as absent (null); otherwise it is the proposed value for the 10-digit supplied, numeric and non-zero checks. Store it as a 10-character digit string so leading zeros are kept. Stage electronic funds transfer account
13. Save confirmed account and customer changesfinal · online · 8 requirements · 7 rules · 8 criteria · 2 screens · 1 gap

Saves an operator's confirmed changes to an account and its customer as one unit of work: first the account record, then the customer record. It must never leave the two out of step. If either record cannot be locked, if someone else changed either one since it was shown, or if either save fails, nothing may be kept, and the operator must be told the update did not go through.

As an operator, I want my confirmed changes saved to both the account and customer records together, so that the two records never end up out of step.

Final: signed off by Sam (acceptance), 2026-11-25 Risk high; touches money, personal_data, updates_records. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#13

Requirements

CodeClassRequirementCriteria
REQ-F-107error handlingWhen the operator presses PF5 to confirm validated changes, the system shall read the account record and then the customer record for update.AC-01, AC-02
REQ-F-108error handlingIf the account or customer record cannot be locked, then the system shall stop without saving and show 'Could not lock account record for update' or 'Could not lock customer record for update'.AC-01, AC-02
REQ-F-109business ruleWhen both records are locked and neither was changed by someone else since it was shown, the system shall rewrite the account master (ACCTDAT) with the new status, balance, limits, cycle credit and debit, group and the open, expiry and reissue dates as YYYY-MM-DD.AC-07
REQ-F-110error handlingIf the account rewrite fails, then the system shall not update the customer and shall show 'Update of record failed'.AC-03
REQ-F-111business ruleWhen the account rewrite succeeds, the system shall rewrite the customer master (CUSTDAT) with the new name, address, phones formatted as '(aaa)bbb-cccc', SSN, government ID, date of birth as YYYY-MM-DD, EFT account, primary holder indicator and FICO score.AC-08
REQ-N-004error handlingIf the customer rewrite fails, then the system shall roll back the account rewrite (SYNCPOINT ROLLBACK) and show 'Update of record failed'.AC-04
REQ-F-112formattingWhen both rewrites succeed, the system shall mark the change as done and tell the operator the update succeeded.AC-05
REQ-F-113error handlingIf a save fails because the account could not be locked ('L') or the update failed ('F'), then the system shall show the message 'Changes unsuccessful. Please try again'.AC-06

Business rules

RuleClassText, worked examples and evidence
Atomic two-record update with locking and rollback
rec/group:claude/RULE-134/1
error handling
error_handling, high
WHEN the operator presses PF5 to confirm validated changes, THE account update SHALL read the account record and then the customer record for update, and stop without saving if either cannot be locked, showing 'Could not lock account record for update' or 'Could not lock customer record for update'.
  • Key: PF5; Account record: held by another user → Nothing is saved; 'Could not lock account record for update' is shown and the screen reports a failure.
  • Key: PF5; Customer record: cannot be read for update → Nothing is saved; 'Could not lock customer record for update' is shown.
app/cbl/COACTUPC.cbl:2602-2615, app/cbl/COACTUPC.cbl:3888-3953, app/cbl/COACTUPC.cbl:3954-4062, app/cbl/COACTUPC.cbl:4065-4104, app/cbl/COACTUPC.cbl:517-524, app/cbl/COACTUPC.cbl:2960-2975
Rewrite account master with new values
rec/group:claude/RULE-134/2
business rule
business, high
WHEN both records are locked and neither was changed by someone else since it was shown, THE account update SHALL rewrite the account master (ACCTDAT) with the new status, balance, limits, cycle credit and debit, group and the open, expiry and reissue dates as YYYY-MM-DD.
app/cbl/COACTUPC.cbl:2602-2615, app/cbl/COACTUPC.cbl:3888-3953, app/cbl/COACTUPC.cbl:3954-4062, app/cbl/COACTUPC.cbl:4065-4104, app/cbl/COACTUPC.cbl:517-524, app/cbl/COACTUPC.cbl:2960-2975
Rewrite account master with new values
rec/group:claude/RULE-134/3
error handling
error_handling, high
WHEN the account rewrite fails, THE account update SHALL not update the customer and SHALL show 'Update of record failed'.
  • Account rewrite: fails → 'Update of record failed'; the customer record is not rewritten.
app/cbl/COACTUPC.cbl:2602-2615, app/cbl/COACTUPC.cbl:3888-3953, app/cbl/COACTUPC.cbl:3954-4062, app/cbl/COACTUPC.cbl:4065-4104, app/cbl/COACTUPC.cbl:517-524, app/cbl/COACTUPC.cbl:2960-2975
Rewrite customer master with new values
rec/group:claude/RULE-134/4
business rule
business, high
WHEN the account rewrite succeeds, THE account update SHALL rewrite the customer master (CUSTDAT) with the new name, address, phones formatted as '(aaa)bbb-cccc', SSN, government ID, date of birth as YYYY-MM-DD, EFT account, primary holder indicator and FICO score.
app/cbl/COACTUPC.cbl:2602-2615, app/cbl/COACTUPC.cbl:3888-3953, app/cbl/COACTUPC.cbl:3954-4062, app/cbl/COACTUPC.cbl:4065-4104, app/cbl/COACTUPC.cbl:517-524, app/cbl/COACTUPC.cbl:2960-2975
Rewrite customer master with new values
rec/group:claude/RULE-134/5
error handling
error_handling, high
WHEN the customer rewrite fails, THE account update SHALL roll back the account rewrite (SYNCPOINT ROLLBACK) and show 'Update of record failed'.
  • Account rewrite: succeeds; Customer rewrite: fails → Account change is rolled back; 'Update of record failed' is shown.
app/cbl/COACTUPC.cbl:2602-2615, app/cbl/COACTUPC.cbl:3888-3953, app/cbl/COACTUPC.cbl:3954-4062, app/cbl/COACTUPC.cbl:4065-4104, app/cbl/COACTUPC.cbl:517-524, app/cbl/COACTUPC.cbl:2960-2975
Atomic two-record update with locking and rollback
rec/group:claude/RULE-134/6
formatting
display, high
WHEN both rewrites succeed, THE account update SHALL mark the change as done and tell the operator the update succeeded.
  • Account rewrite: succeeds; Customer rewrite: succeeds → Update confirmed as successful.
app/cbl/COACTUPC.cbl:2602-2615, app/cbl/COACTUPC.cbl:3888-3953, app/cbl/COACTUPC.cbl:3954-4062, app/cbl/COACTUPC.cbl:4065-4104, app/cbl/COACTUPC.cbl:517-524, app/cbl/COACTUPC.cbl:2960-2975
Inform operator of failed update
rec/group:claude/RULE-166/10
error handling
error_handling, high
WHEN a save fails because the account could not be locked ('L') or the update failed ('F'), THE account update screen SHALL show the message 'Changes unsuccessful. Please try again'.
  • save outcome: account locked by another task → State 'L'; message 'Changes unsuccessful. Please try again'
app/cbl/COACTUPC.cbl:654-668, app/cbl/COACTUPC.cbl:879-891, app/cbl/COACTUPC.cbl:904-915, app/cbl/COACTUPC.cbl:964-1002, app/cbl/COACTUPC.cbl:1428-1470, app/cbl/COACTUPC.cbl:1671-1675

Acceptance criteria

IDCriterionChecks
AC-01Given Key: PF5; Account record: held by another user
When the operator presses PF5 to confirm validated changes
Then Nothing is saved; 'Could not lock account record for update' is shown and the screen reports a failure.
REQ-F-107, REQ-F-108
Atomic two-record update with locking and rollback
worked example 1 of the rule
AC-02Given Key: PF5; Customer record: cannot be read for update
When the operator presses PF5 to confirm validated changes
Then Nothing is saved; 'Could not lock customer record for update' is shown.
REQ-F-107, REQ-F-108
Atomic two-record update with locking and rollback
worked example 2 of the rule
AC-03Given Account rewrite: fails
When the account rewrite fails
Then 'Update of record failed'; the customer record is not rewritten.
REQ-F-110
Rewrite account master with new values
worked example 1 of the rule
AC-04Given Account rewrite: succeeds; Customer rewrite: fails
When the customer rewrite fails
Then Account change is rolled back; 'Update of record failed' is shown.
REQ-N-004
Rewrite customer master with new values
worked example 1 of the rule
AC-05Given Account rewrite: succeeds; Customer rewrite: succeeds
When both rewrites succeed
Then Update confirmed as successful.
REQ-F-112
Atomic two-record update with locking and rollback
worked example 1 of the rule
AC-06Given save outcome: account locked by another task
When a save fails because the account could not be locked ('L') or the update failed ('F')
Then State 'L'; message 'Changes unsuccessful. Please try again'
REQ-F-113
Inform operator of failed update
worked example 1 of the rule
AC-07Given An operator has validated changes to account 00000012345 (status, current balance, credit limit, cash credit limit, cycle credit and debit, group, and open, expiry and reissue dates entered as year, month and day). Both the account and customer records are locked and neither has changed since they were shown
When The operator confirms with PF5
Then The account record is saved with the new status, balance, limits, cycle credit and debit, group, and with the open, expiry and reissue dates stored as YYYY-MM-DD (for example 2025-03-01)
REQ-F-109
Rewrite account master with new values
written from the rule
AC-08Given The account record of a confirmed update has just been saved, and the operator entered phone number 1 as area 212, prefix 555 and line 0100 and date of birth as 1980, 07, 15
When The system saves the customer record
Then The customer record holds the new name, address, SSN, government ID, EFT account, primary holder indicator and FICO score, phone number 1 is stored as '(212)555-0100' and date of birth as '1980-07-15'
REQ-F-111
Rewrite customer master with new values
written from the rule

Screens

  • Account S-ACCOUNT-VIEW · design · replaces CACTVWA (4 kept, 3 dropped, 33 merged)
  • Update account S-ACCOUNT-EDIT · design · replaces CACTUPA (3 kept, 3 dropped, 53 merged)
    • **primary button** Save changes checks: If no value differs: 'No change detected with respect to values fetched.' If the record was changed by someone else since it was fetched: 'Record changed by some one else. Please review' and the latest values are shown. If a lock or update fails: 'Changes unsuccessful. Please try again'; nothing is half-saved.

Data contracts

CSMSG02Y (file record; COACTUPC), CVACT01Y (file record; COACTUPC), CVACT03Y (file record; COACTUPC), CVCUS01Y (file record; COACTUPC), COCOM01Y (working storage; COACTUPC), COTTL01Y (working storage; COACTUPC), CSDAT01Y (working storage; COACTUPC), CSLKPCDY (working storage; COACTUPC), CSMSG01Y (working storage; COACTUPC), CSSETATY (working storage; COACTUPC), CSSTRPFY (working storage; COACTUPC), CSUSR01Y (working storage; COACTUPC), CSUTLDPY (working storage; COACTUPC), CSUTLDWY (working storage; COACTUPC), CVCRD01Y (working storage; COACTUPC)

Decision tables

Two-record save outcome

Both records lockedChanged by someone else since shownAccount rewrite succeedsCustomer rewrite succeedsSave resultRule
No---Stop without saving; show lock failure messagerec/group:claude/RULE-134/1
YesNoNo-Customer not updated; show 'Update of record failed'rec/group:claude/RULE-134/3
YesNoYesNoRoll back account rewrite; show 'Update of record failed'rec/group:claude/RULE-134/5
YesNoYesYesMark done; tell operator the update succeededrec/group:claude/RULE-134/6
YesYes--Gap: No rule states what the operator sees or what happens when a record was changed by someone else since it was shown.

Open questions

  • SME-066 When account update saves changes, the account record is written before the customer record. Must both be saved together, so that if the customer save fails the account change is rolled back? How critical is this, given it changes balances, limits and regulated customer data? (Account servicing SME / architecture team)
  • DEF-057 Is this intended? A customer lock failure is not handled in the outcome EVALUATE, so it falls to WHEN OTHER and the change is marked done ('C') with an update-success prompt although nothing was saved; likewise if a message was already set, the lock-failure flag is never set and the outcome also falls to 'C'. (Subject-matter expert)
  • DEF-074 Is this intended? The decision step has a branch that turns a committed save ('C') back into 'details shown' and clears the account and card number when there is no calling transaction, but it can never run: the main dispatch catches state 'C' first on the next interaction and resets the screen itself. The field edits also skip the 'C' state check for the same reason. (Subject-matter expert)

Design notes

None.

14. Navigate the account update screenfinal · online · 4 requirements · 4 rules · 6 criteria · 3 screens

Controls the steps of the account update screen for operators: ask for an account, show its details, check the changes, ask for confirmation, then save. Each key press must lead to exactly one well-defined next step. Confirm (PF5) must only work while validated changes are waiting to be confirmed, and after any save, successful or not, the screen must start afresh rather than carry stale data into the next update.

As an operator, I want the account update screen to respond predictably to my keys and to start afresh when appropriate, so that I always know which step of the update I am in.

Final: signed off by Sam (acceptance), 2026-11-25 Risk low. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#14

Requirements

CodeClassRequirementCriteria
REQ-F-114formattingWhen the operator arrives with no saved context, or comes from the main menu ('COMEN01C') for the first time, the system shall clear any previous update data and show an empty screen asking 'Enter or update id of account to update'.AC-01
REQ-F-115business ruleWhen the operator submits the screen with any key other than PF3 after a committed ('C') or failed ('L', 'F') save, the system shall clear the update data and account number and show an empty screen asking for a new account number.AC-02, AC-03
REQ-F-116business ruleWhen the operator submits the screen with any key other than PF3, and it is not a first arrival and not the interaction after a committed or failed save, the system shall read and check the entries, decide the next step from the update state, and show the screen again.AC-04
REQ-F-117business ruleThe system shall accept PF5 only while validated changes await confirmation ('N') and PF12 only once account details have been fetched, and shall treat any other key, or PF5/PF12 outside those states, as Enter.AC-05, AC-06

Business rules

RuleClassText, worked examples and evidence
Show blank search screen on first entry
rec/group:claude/RULE-166/1
formatting
display, high
WHEN the operator arrives with no saved context, or comes from the main menu ('COMEN01C') for the first time, THE account update screen SHALL clear any previous update data and show an empty screen asking 'Enter or update id of account to update'.
  • previous program: COMEN01C; first arrival: yes → Empty account update screen with 'Enter or update id of account to update'
app/cbl/COACTUPC.cbl:654-668, app/cbl/COACTUPC.cbl:879-891, app/cbl/COACTUPC.cbl:904-915, app/cbl/COACTUPC.cbl:964-1002, app/cbl/COACTUPC.cbl:1428-1470, app/cbl/COACTUPC.cbl:1671-1675
Restart after completed or failed save
rec/group:claude/RULE-166/11
business rule
business, high
WHEN the operator submits the screen with any key other than PF3 after a committed ('C') or failed ('L', 'F') save, THE account update screen SHALL clear the update data and account number and show an empty screen asking for a new account number.
  • update state: 'C'; key: Enter → Screen cleared; prompt 'Enter or update id of account to update'
  • update state: 'F'; key: Enter → Screen cleared; a new account number must be entered
app/cbl/COACTUPC.cbl:654-668, app/cbl/COACTUPC.cbl:879-891, app/cbl/COACTUPC.cbl:904-915, app/cbl/COACTUPC.cbl:964-1002, app/cbl/COACTUPC.cbl:1428-1470, app/cbl/COACTUPC.cbl:1671-1675
Route other requests to input processing
rec/group:claude/RULE-166/2
business rule
business, high
WHEN the operator submits the screen with any key other than PF3, and it is not a first arrival and not the interaction after a committed or failed save, THE account update screen SHALL read and check the entries, decide the next step from the update state, and show the screen again.
  • key: Enter; update state: 'S' (details shown) → Entries are checked and the screen is shown again with the outcome
app/cbl/COACTUPC.cbl:654-668, app/cbl/COACTUPC.cbl:879-891, app/cbl/COACTUPC.cbl:904-915, app/cbl/COACTUPC.cbl:964-1002, app/cbl/COACTUPC.cbl:1428-1470, app/cbl/COACTUPC.cbl:1671-1675
Account update screen lifecycle (change-action state machine)
rec/group:claude/RULE-166/3
business rule
validation, high
THE account update screen SHALL accept PF5 only while validated changes await confirmation ('N') and PF12 only once account details have been fetched, and SHALL treat any other key, or PF5/PF12 outside those states, as Enter.
  • key: PF5; update state: 'S' → Treated as Enter; nothing is saved
  • key: PF12; update state: not fetched → Treated as Enter
app/cbl/COACTUPC.cbl:654-668, app/cbl/COACTUPC.cbl:879-891, app/cbl/COACTUPC.cbl:904-915, app/cbl/COACTUPC.cbl:964-1002, app/cbl/COACTUPC.cbl:1428-1470, app/cbl/COACTUPC.cbl:1671-1675

Acceptance criteria

IDCriterionChecks
AC-01Given previous program: COMEN01C; first arrival: yes
When the operator arrives with no saved context, or comes from the main menu ('COMEN01C') for the first time
Then Empty account update screen with 'Enter or update id of account to update'
REQ-F-114
Show blank search screen on first entry
worked example 1 of the rule
AC-02Given update state: 'C'; key: Enter
When the operator submits the screen with any key other than PF3 after a committed ('C') or failed ('L', 'F') save
Then Screen cleared; prompt 'Enter or update id of account to update'
REQ-F-115
Restart after completed or failed save
worked example 1 of the rule
AC-03Given update state: 'F'; key: Enter
When the operator submits the screen with any key other than PF3 after a committed ('C') or failed ('L', 'F') save
Then Screen cleared; a new account number must be entered
REQ-F-115
Restart after completed or failed save
worked example 2 of the rule
AC-04Given key: Enter; update state: 'S' (details shown)
When the operator submits the screen with any key other than PF3, and it is not a first arrival and not the interaction after a committed or failed save
Then Entries are checked and the screen is shown again with the outcome
REQ-F-116
Route other requests to input processing
worked example 1 of the rule
AC-05Given key: PF5; update state: 'S'
When account update screen runs
Then Treated as Enter; nothing is saved
REQ-F-117
Account update screen lifecycle (change-action state machine)
worked example 1 of the rule
AC-06Given key: PF12; update state: not fetched
When account update screen runs
Then Treated as Enter
REQ-F-117
Account update screen lifecycle (change-action state machine)
worked example 2 of the rule

Screens

  • Account S-ACCOUNT-VIEW · design · replaces CACTVWA (4 kept, 3 dropped, 33 merged)
  • Update account S-ACCOUNT-EDIT · design · replaces CACTUPA (3 kept, 3 dropped, 53 merged)
    • **lookup field** Account number checks: Blank: 'No input received' - enter an account number. Not 11 digits or all zeros: 'Account Number if supplied must be a 11 digit Non-Zero Number'. Not in the card cross-reference: 'Account:<account> not found in Cross ref file.' - check the number with the caller. Only the account number is checked until an account is fetched.
    • **primary button** Save changes checks: If no value differs: 'No change detected with respect to values fetched.' If the record was changed by someone else since it was fetched: 'Record changed by some one else. Please review' and the latest values are shown. If a lock or update fails: 'Changes unsuccessful. Please try again'; nothing is half-saved.
  • Application header and navigation S-APP-SHELL · design
    • **primary button** Update account

Data contracts

CSMSG02Y (file record; COACTUPC), CVACT01Y (file record; COACTUPC), CVACT03Y (file record; COACTUPC), CVCUS01Y (file record; COACTUPC), COCOM01Y (working storage; COACTUPC), COTTL01Y (working storage; COACTUPC), CSDAT01Y (working storage; COACTUPC), CSLKPCDY (working storage; COACTUPC), CSMSG01Y (working storage; COACTUPC), CSSETATY (working storage; COACTUPC), CSSTRPFY (working storage; COACTUPC), CSUSR01Y (working storage; COACTUPC), CSUTLDPY (working storage; COACTUPC), CSUTLDWY (working storage; COACTUPC), CVCRD01Y (working storage; COACTUPC)

Decision tables

None.

Open questions

  • SME-054 When saving an account update, a failure to lock the customer record is reported as a successful save. Is that intended, or should it be reported as a lock error? (Account servicing business owner)
  • SME-062 What should the account update screen do in each of these cases: exit (PF3), first entry before any details are fetched, arriving from the menu, a completed save, a failed save, cancel (PF12), details shown, and answering 'N' to confirmation (PF5)? (Business analyst)
  • DEF-074 Is this intended? The decision step has a branch that turns a committed save ('C') back into 'details shown' and clears the account and card number when there is no calling transaction, but it can never run: the main dispatch catches state 'C' first on the next interaction and resets the screen itself. The field edits also skip the 'C' state check for the same reason. (Subject-matter expert)

Design notes

None.

15. Update account details with validation and confirmationfinal · online · 5 requirements · 5 rules · 7 criteria · 2 screens · 1 gap

Lets an operator change an account's and its customer's details. Every changed value is checked, and a save happens only after the operator explicitly confirms with PF5. Changes that fail a check, or that are not confirmed, must never be saved. The operator must always be told whether there was nothing to change, whether the changes were validated, or whether the save was committed or failed.

As an operator, I want my changes to account details checked and then saved only when I confirm them with PF5, so that only validated changes reach the account record and I know whether the save succeeded.

Final: signed off by Sam (acceptance), 2026-11-25 Risk medium; touches updates_records. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#15

Requirements

CodeClassRequirementCriteria
REQ-F-118business ruleWhile details are shown, when the operator changes one or more values, the system shall check every field and set the state to 'N' with the message 'Changes validated.Press F5 to save' if no check fails, or to 'E' (changes not OK) if any check fails.AC-01, AC-02
REQ-F-119business ruleWhile details are shown, when the operator submits without changing any value, the system shall keep the details shown (state 'S') and report 'No change detected with respect to values fetched.'.AC-03
REQ-F-120business ruleWhen the state is changes not OK ('E'), or validated changes ('N') are submitted without PF5, the system shall save nothing and show the details again for correction or confirmation.AC-04
REQ-F-121business ruleWhen validated changes ('N') are confirmed with PF5, the system shall save them and set the state to 'L' if the account cannot be locked, 'F' if the locked update fails, 'S' (details shown again) if someone else changed the record since it was read, or 'C' otherwise.AC-05, AC-06
REQ-F-122formattingWhen a save completes ('C'), the system shall show the message 'Changes committed to database'.AC-07

Business rules

RuleClassText, worked examples and evidence
Cross-check state and ZIP, set verdict
rec/group:claude/RULE-166/5
business rule
business, high
WHEN details are shown and the operator changes one or more values, THE account update screen SHALL check every field and SHALL set the state to 'N' with the message 'Changes validated.Press F5 to save' if no check fails, or to 'E' (changes not OK) if any check fails.
  • credit limit: changed from 5000.00 to 7000.00; all other fields: valid → State 'N'; message 'Changes validated.Press F5 to save'
  • account status: changed to 'X' → State 'E'; an error message is shown and nothing can be saved
app/cbl/COACTUPC.cbl:654-668, app/cbl/COACTUPC.cbl:879-891, app/cbl/COACTUPC.cbl:904-915, app/cbl/COACTUPC.cbl:964-1002, app/cbl/COACTUPC.cbl:1428-1470, app/cbl/COACTUPC.cbl:1671-1675
Request confirmation for valid changes
rec/group:claude/RULE-166/6
business rule
validation, high
WHEN details are shown and the operator submits without changing any value, THE account update screen SHALL keep the details shown (state 'S') and report 'No change detected with respect to values fetched.'.
  • update state: 'S'; screen values: same as fetched → State stays 'S'; message 'No change detected with respect to values fetched.'
app/cbl/COACTUPC.cbl:654-668, app/cbl/COACTUPC.cbl:879-891, app/cbl/COACTUPC.cbl:904-915, app/cbl/COACTUPC.cbl:964-1002, app/cbl/COACTUPC.cbl:1428-1470, app/cbl/COACTUPC.cbl:1671-1675
Redisplay when edits fail or confirmation pending
rec/group:claude/RULE-166/7
business rule
business, high
WHEN the state is changes not OK ('E'), or validated changes ('N') are submitted without PF5, THE account update screen SHALL save nothing and show the details again for correction or confirmation.
  • update state: 'N'; key: Enter → Nothing saved; state stays 'N' with 'Changes validated.Press F5 to save'
app/cbl/COACTUPC.cbl:654-668, app/cbl/COACTUPC.cbl:879-891, app/cbl/COACTUPC.cbl:904-915, app/cbl/COACTUPC.cbl:964-1002, app/cbl/COACTUPC.cbl:1428-1470, app/cbl/COACTUPC.cbl:1671-1675
Save confirmed changes and record outcome
rec/group:claude/RULE-166/8
business rule
business, high
WHEN validated changes ('N') are confirmed with PF5, THE account update screen SHALL save them and set the state to 'L' if the account cannot be locked, 'F' if the locked update fails, 'S' (details shown again) if someone else changed the record since it was read, or 'C' otherwise.
  • update state: 'N'; key: PF5; record: unchanged by others, lock and update succeed → State 'C'
  • update state: 'N'; key: PF5; record: changed by another user since it was read → State 'S'; the details are shown again
app/cbl/COACTUPC.cbl:654-668, app/cbl/COACTUPC.cbl:879-891, app/cbl/COACTUPC.cbl:904-915, app/cbl/COACTUPC.cbl:964-1002, app/cbl/COACTUPC.cbl:1428-1470, app/cbl/COACTUPC.cbl:1671-1675
Confirm successful update commit
rec/group:claude/RULE-166/9
formatting
display, high
WHEN a save completes ('C'), THE account update screen SHALL show the message 'Changes committed to database'.
  • save outcome: success → Message 'Changes committed to database'
app/cbl/COACTUPC.cbl:654-668, app/cbl/COACTUPC.cbl:879-891, app/cbl/COACTUPC.cbl:904-915, app/cbl/COACTUPC.cbl:964-1002, app/cbl/COACTUPC.cbl:1428-1470, app/cbl/COACTUPC.cbl:1671-1675

Acceptance criteria

IDCriterionChecks
AC-01Given credit limit: changed from 5000.00 to 7000.00; all other fields: valid
When details are shown and the operator changes one or more values
Then State 'N'; message 'Changes validated.Press F5 to save'
REQ-F-118
Cross-check state and ZIP, set verdict
worked example 1 of the rule
AC-02Given account status: changed to 'X'
When details are shown and the operator changes one or more values
Then State 'E'; an error message is shown and nothing can be saved
REQ-F-118
Cross-check state and ZIP, set verdict
worked example 2 of the rule
AC-03Given update state: 'S'; screen values: same as fetched
When details are shown and the operator submits without changing any value
Then State stays 'S'; message 'No change detected with respect to values fetched.'
REQ-F-119
Request confirmation for valid changes
worked example 1 of the rule
AC-04Given update state: 'N'; key: Enter
When the state is changes not OK ('E'), or validated changes ('N') are submitted without PF5
Then Nothing saved; state stays 'N' with 'Changes validated.Press F5 to save'
REQ-F-120
Redisplay when edits fail or confirmation pending
worked example 1 of the rule
AC-05Given update state: 'N'; key: PF5; record: unchanged by others, lock and update succeed
When validated changes ('N') are confirmed with PF5
Then State 'C'
REQ-F-121
Save confirmed changes and record outcome
worked example 1 of the rule
AC-06Given update state: 'N'; key: PF5; record: changed by another user since it was read
When validated changes ('N') are confirmed with PF5
Then State 'S'; the details are shown again
REQ-F-121
Save confirmed changes and record outcome
worked example 2 of the rule
AC-07Given save outcome: success
When a save completes ('C')
Then Message 'Changes committed to database'
REQ-F-122
Confirm successful update commit
worked example 1 of the rule

Screens

  • Account S-ACCOUNT-VIEW · design · replaces CACTVWA (4 kept, 3 dropped, 33 merged)
  • Update account S-ACCOUNT-EDIT · design · replaces CACTUPA (3 kept, 3 dropped, 53 merged)
    • **summary card** Name and address checks: '<field> must be supplied.' for First Name, Last Name, City, State, Country and Address Line 1; '<field> can have alphabets only.' for names, city, state and country; 'Middle Name can have alphabets only.'; 'State: is not a valid state code'; ZIP: 'ZIP must be supplied.', must be all numeric, 5 digits and not zero; 'Invalid zip code for state' - check the state and ZIP together.
    • **summary card** Fix these before saving
    • **primary button** Save changes checks: If no value differs: 'No change detected with respect to values fetched.' If the record was changed by someone else since it was fetched: 'Record changed by some one else. Please review' and the latest values are shown. If a lock or update fails: 'Changes unsuccessful. Please try again'; nothing is half-saved.

Data contracts

CSMSG02Y (file record; COACTUPC), CVACT01Y (file record; COACTUPC), CVACT03Y (file record; COACTUPC), CVCUS01Y (file record; COACTUPC), COCOM01Y (working storage; COACTUPC), COTTL01Y (working storage; COACTUPC), CSDAT01Y (working storage; COACTUPC), CSLKPCDY (working storage; COACTUPC), CSMSG01Y (working storage; COACTUPC), CSSETATY (working storage; COACTUPC), CSSTRPFY (working storage; COACTUPC), CSUSR01Y (working storage; COACTUPC), CSUTLDPY (working storage; COACTUPC), CSUTLDWY (working storage; COACTUPC), CVCRD01Y (working storage; COACTUPC)

Decision tables

Account update outcome by state, key and save result

StateKey pressedSave resultResulting action and stateRule
Details shown, values changedAnyAll checks passState 'N', message 'Changes validated.Press F5 to save'rec/group:claude/RULE-166/5
Details shown, values changedAnyAny check failsState 'E' (changes not OK)rec/group:claude/RULE-166/5
Details shown, no value changedAny—State 'S', message 'No change detected with respect to values fetched.'rec/group:claude/RULE-166/6
'E'Any—Save nothing; show details again for correctionrec/group:claude/RULE-166/7
'N'Not PF5—Save nothing; show details again for confirmationrec/group:claude/RULE-166/7
'N'PF5Account cannot be lockedState 'L'rec/group:claude/RULE-166/8
'N'PF5Locked update failsState 'F'rec/group:claude/RULE-166/8
'N'PF5Record changed by someone else since readState 'S' (details shown again)rec/group:claude/RULE-166/8
'N'PF5SavedState 'C', message 'Changes committed to database'rec/group:claude/RULE-166/9
'L', 'F' or 'C'Any—Gap: No rule says what happens on the next submission after a failed lock ('L'), failed update ('F') or completed save ('C').

Open questions

  • SME-054 When saving an account update, a failure to lock the customer record is reported as a successful save. Is that intended, or should it be reported as a lock error? (Account servicing business owner)
  • SME-062 What should the account update screen do in each of these cases: exit (PF3), first entry before any details are fetched, arriving from the menu, a completed save, a failed save, cancel (PF12), details shown, and answering 'N' to confirmation (PF5)? (Business analyst)
  • DEF-074 Is this intended? The decision step has a branch that turns a committed save ('C') back into 'details shown' and clears the account and card number when there is no calling transaction, but it can never run: the main dispatch catches state 'C' first on the next interaction and resets the screen itself. The field edits also skip the 'C' state check for the same reason. (Subject-matter expert)

Design notes

None.

16. Validate and look up an account for viewingfinal · online · 14 requirements · 14 rules · 18 criteria · 2 screens · 1 gap

Checks the 11-digit account number a user enters on the Account View screen. It then finds the account's linked card and customer, the account itself and the customer's profile. It must never show details for an invalid or unknown number, and every lookup that fails must give a clear message naming which record could not be found or read.

As a user, I want the account number I enter to be checked and the account and its customer looked up, so that I see the right account or a clear reason why it could not be shown.

Final: signed off by Sam (acceptance), 2026-11-25 Risk medium; touches card_data. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#16

Requirements

CodeClassRequirementCriteria
REQ-F-123business ruleWhen the account number entered on the Account View screen is '*' or blank, the system shall treat the account number as not supplied.AC-01
REQ-F-124business ruleIf no account number is supplied, then the system shall reject the request as an input error without reading any file, set the session account to zero, show 'No input received', and redisplay the account field as '*' in red.AC-02
REQ-F-125business ruleIf the account number supplied is not all digits (including one shorter than 11 digits) or is all zeros, then the system shall reject it as an input error without reading any file, set the session account to zero, show the account field in red and show 'Account Filter must be a non-zero 11 digit number'.AC-03, AC-04
REQ-F-126business ruleWhen the account number is 11 digits and not all zeros, the system shall accept it as the session account and go on to the account lookup.AC-05
REQ-F-127design noteWhen an account number passes validation, the system shall look the account up in the card cross-reference by account number (CXACAIX) and, when it is found, keep that account's customer number and card number for the rest of the session.AC-06
REQ-F-128business ruleIf the account is not in the card cross-reference, then the system shall stop the lookup, treat it as an input error, show the account number in red and show 'Account:<account number> not found in Cross ref file. Resp:<code> Reas:<code>'.AC-12
REQ-F-129error handlingIf reading the card cross-reference fails for any reason other than 'not found', then the system shall stop the lookup, treat it as an input error and show 'File Error: READ on CXACAIX returned RESP <code>,RESP2 <code>'.AC-13
REQ-F-130design noteWhen the account is found in the cross-reference, the system shall read the account master (ACCTDAT) by account number and, on success, mark the account as found so that its details are displayed.AC-07
REQ-F-131error handlingIf the account is not in the account master, then the system shall treat it as an input error, show the account number in red and show 'Account:<account number> not found in Acct Master file.Resp:<code> Reas:<code>', and for any other read failure show 'File Error: READ on ACCTDAT returned RESP <code>,RESP2 <code>'.AC-14, AC-15
REQ-F-132error handlingIf reading the account master does not succeed, then the system shall still go on to read the customer master, because the stop check after the account read never triggers.AC-08
REQ-F-133design noteThe system shall read the customer master (CUSTDAT) using the customer number taken from the card cross-reference and, on success, mark the customer as found so that the customer details are displayed.AC-09
REQ-F-134error handlingIf the customer is not in the customer master, then the system shall treat it as an input error and show 'CustId:<customer number> not found in customer master.Resp: <code> REAS:<code>', unless an earlier message is already set.AC-16, AC-17
REQ-F-135error handlingIf reading the customer master fails for any reason other than 'not found', then the system shall treat it as an input error and show 'File Error: READ on CUSTDAT returned RESP <code>,RESP2 <code>', replacing any earlier message.AC-18
REQ-F-136business ruleWhile the program context is re-entry (1), when PF3 was not pressed, the system shall read and validate the entered account number, redisplay the screen with the error on an input error, and otherwise look up the card cross-reference, account master and customer master in turn (stopping at the first not found) and display the screen.AC-10, AC-11

Business rules

RuleClassText, worked examples and evidence
Treat asterisk or blank account as unsupplied
rec/group:claude/RULE-096/1
business rule
validation, high
WHEN the account number entered on the Account View screen is '*' or blank, THE account view SHALL treat the account number as not supplied.
  • Account number: '*' → Handled exactly like a blank account number
app/cbl/COACTVWC.cbl:622-643, app/cbl/COACTVWC.cbl:649-685, app/cbl/COACTVWC.cbl:117-124, app/cbl/COACTVWC.cbl:362-367, app/cbl/COACTVWC.cbl:532, app/cbl/COACTVWC.cbl:541-565
Reject missing account number
rec/group:claude/RULE-096/2
business rule
validation, high
WHEN no account number is supplied, THE account view SHALL reject the request as an input error without reading any file, set the session account to zero, show 'No input received', and redisplay the account field as '*' in red.
  • Account number: blank → Message 'No input received'; the account field shows '*' in red; no file is read
app/cbl/COACTVWC.cbl:622-643, app/cbl/COACTVWC.cbl:649-685, app/cbl/COACTVWC.cbl:117-124, app/cbl/COACTVWC.cbl:362-367, app/cbl/COACTVWC.cbl:532, app/cbl/COACTVWC.cbl:541-565
Validate account number is non-zero numeric
rec/group:claude/RULE-096/3
business rule
validation, high
WHEN the account number supplied is not all digits (including one shorter than 11 digits) or is all zeros, THE account view SHALL reject it as an input error without reading any file, set the session account to zero, show the account field in red and show 'Account Filter must be a non-zero 11 digit number'.
  • Account number: ABC12345678 → Message 'Account Filter must be a non-zero 11 digit number'
  • Account number: 00000000000 → Message 'Account Filter must be a non-zero 11 digit number'
app/cbl/COACTVWC.cbl:622-643, app/cbl/COACTVWC.cbl:649-685, app/cbl/COACTVWC.cbl:117-124, app/cbl/COACTVWC.cbl:362-367, app/cbl/COACTVWC.cbl:532, app/cbl/COACTVWC.cbl:541-565
Validate account number is non-zero numeric
rec/group:claude/RULE-096/4
business rule
validation, high
WHEN the account number is 11 digits and not all zeros, THE account view SHALL accept it as the session account and go on to the account lookup.
  • Account number: 00000012345 → Accepted; the card cross-reference is read for account 00000012345
app/cbl/COACTVWC.cbl:622-643, app/cbl/COACTVWC.cbl:649-685, app/cbl/COACTVWC.cbl:117-124, app/cbl/COACTVWC.cbl:362-367, app/cbl/COACTVWC.cbl:532, app/cbl/COACTVWC.cbl:541-565
Orchestrate account and customer retrieval
rec/group:claude/RULE-097/1
design note
technical, high
WHEN an account number passes validation on the Account View screen, THE account view SHALL look the account up in the card cross-reference by account number (CXACAIX) and, when it is found, keep that account's customer number and card number for the rest of the session.
  • Account number: 00000012345; Cross-reference entry: customer 000000123, card 4111111111111111 → Customer 000000123 and card 4111111111111111 are kept for the session and the account master is read next
app/cbl/COACTVWC.cbl:687-722, app/cbl/COACTVWC.cbl:723-773, app/cbl/COACTVWC.cbl:774-823, app/cbl/COACTVWC.cbl:825-872, app/cbl/COACTVWC.cbl:86-105, app/cbl/COACTVWC.cbl:129-134
Look up customer via card cross-reference
rec/group:claude/RULE-097/2
business rule
validation, high
WHEN the account is not in the card cross-reference, THE account view SHALL stop the lookup, treat it as an input error, show the account number in red and show 'Account:<account number> not found in Cross ref file. Resp:<code> Reas:<code>'.
app/cbl/COACTVWC.cbl:687-722, app/cbl/COACTVWC.cbl:723-773, app/cbl/COACTVWC.cbl:774-823, app/cbl/COACTVWC.cbl:825-872, app/cbl/COACTVWC.cbl:86-105, app/cbl/COACTVWC.cbl:129-134
Look up customer via card cross-reference
rec/group:claude/RULE-097/3
error handling
error_handling, high
WHEN reading the card cross-reference fails for any reason other than 'not found', THE account view SHALL stop the lookup, treat it as an input error and show 'File Error: READ on CXACAIX returned RESP <code>,RESP2 <code>'.
app/cbl/COACTVWC.cbl:687-722, app/cbl/COACTVWC.cbl:723-773, app/cbl/COACTVWC.cbl:774-823, app/cbl/COACTVWC.cbl:825-872, app/cbl/COACTVWC.cbl:86-105, app/cbl/COACTVWC.cbl:129-134
Orchestrate account and customer retrieval
rec/group:claude/RULE-097/4
design note
technical, high
WHEN the account is found in the cross-reference, THE account view SHALL read the account master (ACCTDAT) by account number and, on success, mark the account as found so that its details are displayed.
  • Account number: 00000012345; Account master: record exists → The account is marked as found and its status, balances, limits and dates are displayed
app/cbl/COACTVWC.cbl:687-722, app/cbl/COACTVWC.cbl:723-773, app/cbl/COACTVWC.cbl:774-823, app/cbl/COACTVWC.cbl:825-872, app/cbl/COACTVWC.cbl:86-105, app/cbl/COACTVWC.cbl:129-134
Read account master record
rec/group:claude/RULE-097/5
error handling
error_handling, high
WHEN the account is not in the account master, THE account view SHALL treat it as an input error, show the account number in red and show 'Account:<account number> not found in Acct Master file.Resp:<code> Reas:<code>'; any other read failure SHALL show 'File Error: READ on ACCTDAT returned RESP <code>,RESP2 <code>'.
app/cbl/COACTVWC.cbl:687-722, app/cbl/COACTVWC.cbl:723-773, app/cbl/COACTVWC.cbl:774-823, app/cbl/COACTVWC.cbl:825-872, app/cbl/COACTVWC.cbl:86-105, app/cbl/COACTVWC.cbl:129-134
Orchestrate account and customer retrieval
rec/group:claude/RULE-097/6
error handling
error_handling, high
WHEN reading the account master does not succeed, THE account view SHALL still go on to read the customer master, because the stop check after the account read never triggers (the 'not found' flag is never set).
  • Account master: no record for 00000012345; Customer master: customer 000000123 exists → The customer is still read and shown, the account fields are shown from an empty record, and the account 'not found' message is still shown
app/cbl/COACTVWC.cbl:687-722, app/cbl/COACTVWC.cbl:723-773, app/cbl/COACTVWC.cbl:774-823, app/cbl/COACTVWC.cbl:825-872, app/cbl/COACTVWC.cbl:86-105, app/cbl/COACTVWC.cbl:129-134
Orchestrate account and customer retrieval
rec/group:claude/RULE-097/7
design note
technical, high
THE account view SHALL read the customer master (CUSTDAT) using the customer number taken from the card cross-reference and, on success, mark the customer as found so that the customer details are displayed.
  • Cross-reference customer: 000000123; Customer master: record exists → The customer's name, address, phones, SSN and FICO score are displayed
app/cbl/COACTVWC.cbl:687-722, app/cbl/COACTVWC.cbl:723-773, app/cbl/COACTVWC.cbl:774-823, app/cbl/COACTVWC.cbl:825-872, app/cbl/COACTVWC.cbl:86-105, app/cbl/COACTVWC.cbl:129-134
Read customer master record
rec/group:claude/RULE-097/8
error handling
error_handling, high
WHEN the customer is not in the customer master, THE account view SHALL treat it as an input error and show 'CustId:<customer number> not found in customer master.Resp: <code> REAS:<code>', unless an earlier message is already set.
app/cbl/COACTVWC.cbl:687-722, app/cbl/COACTVWC.cbl:723-773, app/cbl/COACTVWC.cbl:774-823, app/cbl/COACTVWC.cbl:825-872, app/cbl/COACTVWC.cbl:86-105, app/cbl/COACTVWC.cbl:129-134
Read customer master record
rec/group:claude/RULE-097/9
error handling
error_handling, high
WHEN reading the customer master fails for any reason other than 'not found', THE account view SHALL treat it as an input error and show 'File Error: READ on CUSTDAT returned RESP <code>,RESP2 <code>', replacing any earlier message.
app/cbl/COACTVWC.cbl:687-722, app/cbl/COACTVWC.cbl:723-773, app/cbl/COACTVWC.cbl:774-823, app/cbl/COACTVWC.cbl:825-872, app/cbl/COACTVWC.cbl:86-105, app/cbl/COACTVWC.cbl:129-134
Process entered account on re-entry
rec/group:claude/RULE-167/4
business rule
business, high
WHEN PF3 was not pressed and the program context is re-entry (1), THE Account View Screen Flow SHALL read and validate the entered account number; on an input error it SHALL redisplay the screen with the error, otherwise it SHALL look up the card cross-reference, account master and customer master in turn (stopping at the first not found) and display the screen.
  • program context: 1; account number: 00000000000 → Screen redisplayed with 'Account number must be a non zero 11 digit number'
  • program context: 1; account number: 00000012345; cross-reference, account, customer: all found → Screen shows account and customer details
app/cbl/COACTVWC.cbl:282-292, app/cbl/COACTVWC.cbl:353-383, app/cbl/COACTVWC.cbl:395-406, app/cbl/COACTVWC.cbl:578-581, app/cbl/COACTVWC.cbl:596-605, app/cbl/COACTVWC.cbl:687-718

Acceptance criteria

IDCriterionChecks
AC-01Given Account number: '*'
When the account number entered on the Account View screen is '*' or blank
Then Handled exactly like a blank account number
REQ-F-123
Treat asterisk or blank account as unsupplied
worked example 1 of the rule
AC-02Given Account number: blank
When no account number is supplied
Then Message 'No input received'; the account field shows '*' in red; no file is read
REQ-F-124
Reject missing account number
worked example 1 of the rule
AC-03Given Account number: ABC12345678
When the account number supplied is not all digits (including one shorter than 11 digits) or is all zeros
Then Message 'Account Filter must be a non-zero 11 digit number'
REQ-F-125
Validate account number is non-zero numeric
worked example 1 of the rule
AC-04Given Account number: 00000000000
When the account number supplied is not all digits (including one shorter than 11 digits) or is all zeros
Then Message 'Account Filter must be a non-zero 11 digit number'
REQ-F-125
Validate account number is non-zero numeric
worked example 2 of the rule
AC-05Given Account number: 00000012345
When the account number is 11 digits and not all zeros
Then Accepted; the card cross-reference is read for account 00000012345
REQ-F-126
Validate account number is non-zero numeric
worked example 1 of the rule
AC-06Given Account number: 00000012345; Cross-reference entry: customer 000000123, card 4111111111111111
When an account number passes validation on the Account View screen
Then Customer 000000123 and card 4111111111111111 are kept for the session and the account master is read next
REQ-F-127
Orchestrate account and customer retrieval
worked example 1 of the rule
AC-07Given Account number: 00000012345; Account master: record exists
When the account is found in the cross-reference
Then The account is marked as found and its status, balances, limits and dates are displayed
REQ-F-130
Orchestrate account and customer retrieval
worked example 1 of the rule
AC-08Given Account master: no record for 00000012345; Customer master: customer 000000123 exists
When reading the account master does not succeed
Then The customer is still read and shown, the account fields are shown from an empty record, and the account 'not found' message is still shown
REQ-F-132
Orchestrate account and customer retrieval
worked example 1 of the rule
AC-09Given Cross-reference customer: 000000123; Customer master: record exists
When account view runs
Then The customer's name, address, phones, SSN and FICO score are displayed
REQ-F-133
Orchestrate account and customer retrieval
worked example 1 of the rule
AC-10Given program context: 1; account number: 00000000000
When PF3 was not pressed and the program context is re-entry (1)
Then Screen redisplayed with 'Account number must be a non zero 11 digit number'
REQ-F-136
Process entered account on re-entry
worked example 1 of the rule
AC-11Given program context: 1; account number: 00000012345; cross-reference, account, customer: all found
When PF3 was not pressed and the program context is re-entry (1)
Then Screen shows account and customer details
REQ-F-136
Process entered account on re-entry
worked example 2 of the rule
AC-12Given Account number 00000012345 passes validation but has no entry in the card cross-reference by account
When The user submits the Account View screen
Then The lookup stops without reading the account or customer, the request is treated as an input error, the account number is shown in red, and the message 'Account:00000012345 not found in Cross ref file. Resp:<code> Reas:<code>' is shown with the response and reason codes from the failed read
REQ-F-128
Look up customer via card cross-reference
written from the rule
AC-13Given Account number 00000012345 passes validation and reading the card cross-reference fails for a reason other than not found
When The user submits the Account View screen
Then The lookup stops, the request is treated as an input error, and the message 'File Error: READ on CXACAIX returned RESP <code>,RESP2 <code>' is shown with the codes from the failed read
REQ-F-129
Look up customer via card cross-reference
written from the rule
AC-14Given Account 00000012345 is found in the card cross-reference but is not in the account master
When The user submits the Account View screen
Then The request is treated as an input error, the account number is shown in red and the message 'Account:00000012345 not found in Acct Master file.Resp:<code> Reas:<code>' is shown
REQ-F-131
Read account master record
written from the rule
AC-15Given Account 00000012345 is found in the card cross-reference and reading the account master fails for a reason other than not found
When The user submits the Account View screen
Then The message 'File Error: READ on ACCTDAT returned RESP <code>,RESP2 <code>' is shown with the codes from the failed read
REQ-F-131
Read account master record
written from the rule
AC-16Given Account 00000012345 is found in the cross-reference and the account master, its cross-reference gives customer number 000000099, no message has been set yet, and that customer is not in the customer master
When The user submits the Account View screen
Then The request is treated as an input error and the message 'CustId:000000099 not found in customer master.Resp: <code> REAS:<code>' is shown
REQ-F-134
Read customer master record
written from the rule
AC-17Given An earlier lookup step has already set a message, and the customer is then not found in the customer master
When The user submits the Account View screen
Then The earlier message is kept and the customer-not-found message is not shown
REQ-F-134
Read customer master record
written from the rule
AC-18Given An earlier message is already set, and reading the customer master fails for a reason other than not found
When The user submits the Account View screen
Then The request is treated as an input error and the earlier message is replaced by 'File Error: READ on CUSTDAT returned RESP <code>,RESP2 <code>'
REQ-F-135
Read customer master record
written from the rule

Screens

  • Account S-ACCOUNT-VIEW · design · replaces CACTVWA (4 kept, 3 dropped, 33 merged)
    • **lookup field** Account or card number checks: Blank: 'No input received' - enter an account number (11 digits) or a card number (16 digits). Not digits, wrong length or all zeros: 'Account Number if supplied must be a 11 digit Non-Zero Number' (or a 16-digit card number). Not in the card cross-reference: 'Account:<number> not found in Cross ref file.' - check the number with the caller. The error shows under the field.
  • Application header and navigation S-APP-SHELL · design
    • **lookup field** Find account (account or card number) checks: Same checks as the account search on S-ACCOUNT-VIEW; an empty search says 'No input received' - enter an account number (11 digits) or a card number (16 digits).

Data contracts

CSMSG02Y (file record; COACTVWC), CVACT01Y (file record; COACTVWC), CVACT03Y (file record; COACTVWC), CVCUS01Y (file record; COACTVWC), COCOM01Y (working storage; COACTVWC), COTTL01Y (working storage; COACTVWC), CSDAT01Y (working storage; COACTVWC), CSMSG01Y (working storage; COACTVWC), CSSTRPFY (working storage; COACTVWC), CSUSR01Y (working storage; COACTVWC), CVACT02Y (working storage; COACTVWC), CVCRD01Y (working storage; COACTVWC)

Decision tables

Account number validation

Account number enteredResultRule
'*' or blankNot supplied: input error, no file read, session account zero, 'No input received', field shown as '*' in redrec/group:claude/RULE-096/2
Not all digits (including shorter than 11 digits)Input error, no file read, session account zero, field in red, 'Account Filter must be a non-zero 11 digit number'rec/group:claude/RULE-096/3
All zerosInput error, no file read, session account zero, field in red, 'Account Filter must be a non-zero 11 digit number'rec/group:claude/RULE-096/3
11 digits, not all zerosAccepted as session account; go on to account lookuprec/group:claude/RULE-096/4

Account and customer lookup outcome

Card cross-reference readAccount master readCustomer master readResultRule
Not found——Stop; input error; account number in red; 'Account:<account number> not found in Cross ref file. Resp:<code> Reas:<code>'rec/group:claude/RULE-097/2
Other failure——Stop; input error; 'File Error: READ on CXACAIX returned RESP <code>,RESP2 <code>'rec/group:claude/RULE-097/3
FoundFound—Account marked found; details displayedrec/group:claude/RULE-097/4
FoundNot found—Input error; account number in red; 'Account:<account number> not found in Acct Master file.Resp:<code> Reas:<code>'; customer master still readrec/group:claude/RULE-097/5
FoundOther failure—'File Error: READ on ACCTDAT returned RESP <code>,RESP2 <code>'; customer master still readrec/group:claude/RULE-097/6
FoundAnyFoundCustomer marked found; customer details displayedrec/group:claude/RULE-097/7
FoundAnyNot foundInput error; 'CustId:<customer number> not found in customer master.Resp: <code> REAS:<code>' unless an earlier message is already setrec/group:claude/RULE-097/8
FoundAnyOther failureInput error; 'File Error: READ on CUSTDAT returned RESP <code>,RESP2 <code>', replacing any earlier messagerec/group:claude/RULE-097/9
FoundNot found or other failureAnyGap: R26 says lookup stops at the first not found, but R17 says the customer master is still read after an account master failure; which behaviour the business wants is not settled.

Open questions

  • SME-067 When an account number is entered on the account view screen and the account is not found, or the file cannot be read, should the lookup stop at that point? (Currently it stops only on one exact message, 'Did not find this account in account master file', and the real not-found path produces a different message.) (Business analyst)
  • SME-068 On the account view screen, if the account number is left blank, which message should the operator see: 'Account number not provided' or 'No input received'? (Business analyst)
  • SME-069 On the account view screen, the error message says the account number must be 'a non-zero 11 digit number', but only 'numeric and non-zero' is checked. Should exactly 11 digits be required? Should the message keep its current double space? (Business analyst)
  • SME-070 On the account view screen, if the customer record is found but the account record is not, should the account's financial details still be shown? After a successful lookup, should the screen show a success message ('Displaying details of given Account') instead of the input prompt? (Customer service operations lead)
  • SME-071 Please confirm the priority of the account view lookup chain (card cross-reference, then account master, then customer master). Is it critical to the system's core purpose, or a rule that would be costly if it were wrong? (Account servicing subject-matter expert)
  • DEF-044 Is this intended? A blank account number first sets the message 'Account number not provided', which is then replaced at once with 'No input received', so the more specific message can never be shown. The 'only if no message yet' guard in front of it has no effect. (Subject-matter expert)
  • DEF-045 Is this intended? When the account is missing from the account master, or the read fails, the lookup does not stop: the stop check tests a message flag that is never set, so the customer master is still read. If the customer is found, the account fields are filled from an empty account record next to the account 'not found' message. (Subject-matter expert)

Design notes

  • Needs a lookup of the card-to-account link by account number (a secondary index or query on account ID). When a link is found, the customer number and card number it holds are kept in the user's session for the rest of the interaction and used by the later customer lookup. Orchestrate account and customer retrieval
  • Needs a read of the account by its 11-digit account number, which is the primary key. A successful read sets an 'account found' flag that tells the view to show the account's financial details. Orchestrate account and customer retrieval
  • Needs a read of the customer by the customer number taken from the card-to-account link, not from anything the user typed. A successful read sets a 'customer found' flag that tells the view to show the customer details. Orchestrate account and customer retrieval
17. Display account and customer detailsfinal · online · 7 requirements · 8 rules · 11 criteria · 1 screen

Shows a user an account's financial details (status, balances, limits, cycle totals, dates and group) next to the linked customer's profile on one screen. It must show only what was actually found: account details only when the account was found, customer details only when the customer was found. The current error must always be visible. Under the current rules the full SSN is shown unmasked as NNN-NN-NNNN, so access to this screen needs care.

As a user, I want to see an account's financial details and its customer's profile on one screen, so that I can review the account and the cardholder.

Final: signed off by Sam (acceptance), 2026-11-25 Risk high; touches money, personal_data. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#17

Requirements

CodeClassRequirementCriteria
REQ-F-137formattingWhen the account was found in the account master file, the system shall show the account status, current balance, credit limit, cash credit limit, current cycle credit, current cycle debit, open date, expiration date, reissue date and group id.AC-01
REQ-F-138formattingWhen the account's customer was found in the customer master file, the system shall show the customer id, FICO score, date of birth, first, middle and last name, address lines, city, state, zip, country, both phone numbers, government-issued id, EFT account id and primary card holder indicator.AC-02, AC-03, AC-04
REQ-N-005business ruleWhen the customer is found, the system shall show the customer's full Social Security number, unmasked, in the form NNN-NN-NNNN.AC-02, AC-05
REQ-F-139formattingWhen the account view screen is shown with no session data passed (started directly), the system shall show no account or customer details and show the information line 'Enter or update id of account to display'.AC-06
REQ-F-140formattingWhile session data exists, the system shall show the account number the user entered in the account number field, or leave the field empty when no account number was entered.AC-07, AC-08
REQ-F-141formattingThe system shall show 'Enter or update id of account to display' on the information line when no information message has been set, and always show the current error message, if there is one, on the error line.AC-09
REQ-F-142formattingThe system shall place the cursor on the account number field every time the account view screen is shown, whether or not the input had an error.AC-10, AC-11

Business rules

RuleClassText, worked examples and evidence
Display account financial details
rec/group:claude/RULE-220/3
formatting
display, high
WHEN the account was found in the account master file, THE Account View Screen SHALL show the account status, current balance, credit limit, cash credit limit, current cycle credit, current cycle debit, open date, expiration date, reissue date and group id.
  • account number: 00000012345; account master: found, status Y, balance 1500.00, credit limit 5000.00 → Screen shows status Y, balance 1500.00, credit limit 5000.00 and the other account fields
app/cbl/COACTVWC.cbl:460-535, app/cbl/COACTVWC.cbl:687-718, app/cbl/COACTVWC.cbl:110-116
Display customer profile with formatted SSN
rec/agreed:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-778ff45a3c/1
formatting
display, medium
WHEN the customer was found in the customer master, THE Account View Screen Display SHALL display the customer identity, contact, credit score and indicators, with the SSN formatted as NNN-NN-NNNN
  • Account number entered: 00000000002; Customer found in master: no (record not found) → No customer identity, contact or SSN fields are filled in on the screen.
app/cbl/COACTVWC.cbl:493-494,496-523,525, app/cbl/COACTVWC.cbl:493-507
Account and customer details displayed only when found in master files
rec/group:claude/RULE-220/4
formatting
display, high
WHEN the account's customer was found in the customer master file, THE Account View Screen SHALL show the customer id, FICO score, date of birth, first, middle and last name, address lines, city, state, zip, country, both phone numbers, government-issued id, EFT account id and primary card holder indicator.
  • customer number: 000000001; customer master: found → All customer fields shown with the account details
  • account master: found; customer master: not found → Account fields shown, customer fields empty, error 'Did not find associated customer in master file'
app/cbl/COACTVWC.cbl:460-535, app/cbl/COACTVWC.cbl:687-718, app/cbl/COACTVWC.cbl:110-116
Account and customer details displayed only when found in master files
rec/group:claude/RULE-220/5
business rule
compliance, high
WHEN the customer is found, THE Account View Screen SHALL show the customer's full Social Security number, unmasked, in the form NNN-NN-NNNN.
  • customer SSN: 123456789 → Screen shows 123-45-6789
app/cbl/COACTVWC.cbl:460-535, app/cbl/COACTVWC.cbl:687-718, app/cbl/COACTVWC.cbl:110-116
Show prompt or entered account number
rec/group:claude/RULE-220/1
formatting
display, high
WHEN the account view screen is shown with no session data passed (started directly), THE Account View Screen SHALL show no account or customer details and SHALL show the information line 'Enter or update id of account to display'.
  • session data passed: none (transaction CAVW typed directly) → Empty screen with info line 'Enter or update id of account to display'
app/cbl/COACTVWC.cbl:460-535, app/cbl/COACTVWC.cbl:687-718, app/cbl/COACTVWC.cbl:110-116
Show prompt or entered account number
rec/group:claude/RULE-220/2
formatting
display, high
WHEN session data exists, THE Account View Screen SHALL show the account number the user entered in the account number field, or leave the field empty when no account number was entered.
  • entered account number: 00000012345 → Account number field shows 00000012345
  • entered account number: (blank) → Account number field is empty
app/cbl/COACTVWC.cbl:460-535, app/cbl/COACTVWC.cbl:687-718, app/cbl/COACTVWC.cbl:110-116
Set default prompt and screen messages
rec/group:claude/RULE-220/6
formatting
display, high
WHEN no information message has been set, THE Account View Screen SHALL show 'Enter or update id of account to display' on the information line, and SHALL always show the current error message, if there is one, on the error line.
  • information message: (none); error message: 'Did not find this account in account master file' → Info line 'Enter or update id of account to display', error line 'Did not find this account in account master file'
app/cbl/COACTVWC.cbl:460-535, app/cbl/COACTVWC.cbl:687-718, app/cbl/COACTVWC.cbl:110-116
Account ID search key must be a non-zero 11-digit number
rec/group:claude/RULE-096/5
formatting
display, high
THE account view SHALL place the cursor on the account number field every time the screen is shown, whether or not the input had an error.
  • Account number: ABC12345678 → The cursor is on the account number field
  • Account number: 00000012345 (valid) → The cursor is also on the account number field
app/cbl/COACTVWC.cbl:622-643, app/cbl/COACTVWC.cbl:649-685, app/cbl/COACTVWC.cbl:117-124, app/cbl/COACTVWC.cbl:362-367, app/cbl/COACTVWC.cbl:532, app/cbl/COACTVWC.cbl:541-565

Acceptance criteria

IDCriterionChecks
AC-01Given account number: 00000012345; account master: found, status Y, balance 1500.00, credit limit 5000.00
When the account was found in the account master file
Then Screen shows status Y, balance 1500.00, credit limit 5000.00 and the other account fields
REQ-F-137
Display account financial details
worked example 1 of the rule
AC-02Given Account number entered: 00000000002; Customer found in master: no (record not found)
When the customer was found in the customer master
Then No customer identity, contact or SSN fields are filled in on the screen.
REQ-F-138, REQ-N-005
Display customer profile with formatted SSN
worked example 1 of the rule
AC-03Given customer number: 000000001; customer master: found
When the account's customer was found in the customer master file
Then All customer fields shown with the account details
REQ-F-138
Account and customer details displayed only when found in master files
worked example 1 of the rule
AC-04Given account master: found; customer master: not found
When the account's customer was found in the customer master file
Then Account fields shown, customer fields empty, error 'Did not find associated customer in master file'
REQ-F-138
Account and customer details displayed only when found in master files
worked example 2 of the rule
AC-05Given customer SSN: 123456789
When the customer is found
Then Screen shows 123-45-6789
REQ-N-005
Account and customer details displayed only when found in master files
worked example 1 of the rule
AC-06Given session data passed: none (transaction CAVW typed directly)
When the account view screen is shown with no session data passed (started directly)
Then Empty screen with info line 'Enter or update id of account to display'
REQ-F-139
Show prompt or entered account number
worked example 1 of the rule
AC-07Given entered account number: 00000012345
When session data exists
Then Account number field shows 00000012345
REQ-F-140
Show prompt or entered account number
worked example 1 of the rule
AC-08Given entered account number: (blank)
When session data exists
Then Account number field is empty
REQ-F-140
Show prompt or entered account number
worked example 2 of the rule
AC-09Given information message: (none); error message: 'Did not find this account in account master file'
When no information message has been set
Then Info line 'Enter or update id of account to display', error line 'Did not find this account in account master file'
REQ-F-141
Set default prompt and screen messages
worked example 1 of the rule
AC-10Given Account number: ABC12345678
When account view runs
Then The cursor is on the account number field
REQ-F-142
Account ID search key must be a non-zero 11-digit number
worked example 1 of the rule
AC-11Given Account number: 00000012345 (valid)
When account view runs
Then The cursor is also on the account number field
REQ-F-142
Account ID search key must be a non-zero 11-digit number
worked example 2 of the rule

Screens

  • Account S-ACCOUNT-VIEW · design · replaces CACTVWA (4 kept, 3 dropped, 33 merged)
    • **lookup field** Account or card number checks: Blank: 'No input received' - enter an account number (11 digits) or a card number (16 digits). Not digits, wrong length or all zeros: 'Account Number if supplied must be a 11 digit Non-Zero Number' (or a 16-digit card number). Not in the card cross-reference: 'Account:<number> not found in Cross ref file.' - check the number with the caller. The error shows under the field.
    • **status badge** Account status
    • **summary card** Account
    • **summary card** Customer
    • **summary card** Address and phone

Data contracts

CSMSG02Y (file record; COACTVWC), CVACT01Y (file record; COACTVWC), CVACT03Y (file record; COACTVWC), CVCUS01Y (file record; COACTVWC), COCOM01Y (working storage; COACTVWC), COTTL01Y (working storage; COACTVWC), CSDAT01Y (working storage; COACTVWC), CSMSG01Y (working storage; COACTVWC), CSSTRPFY (working storage; COACTVWC), CSUSR01Y (working storage; COACTVWC), CVACT02Y (working storage; COACTVWC), CVCRD01Y (working storage; COACTVWC)

Decision tables

None.

Open questions

  • SME-067 When an account number is entered on the account view screen and the account is not found, or the file cannot be read, should the lookup stop at that point? (Currently it stops only on one exact message, 'Did not find this account in account master file', and the real not-found path produces a different message.) (Business analyst)
  • SME-068 On the account view screen, if the account number is left blank, which message should the operator see: 'Account number not provided' or 'No input received'? (Business analyst)
  • SME-069 On the account view screen, the error message says the account number must be 'a non-zero 11 digit number', but only 'numeric and non-zero' is checked. Should exactly 11 digits be required? Should the message keep its current double space? (Business analyst)
  • SME-070 On the account view screen, if the customer record is found but the account record is not, should the account's financial details still be shown? After a successful lookup, should the screen show a success message ('Displaying details of given Account') instead of the input prompt? (Customer service operations lead)
  • SME-072 The account view shows every user the customer's full, unmasked Social Security number. Is that acceptable under privacy policy, or should the new system show only the last 4 digits or limit the full number to certain roles? (Privacy and compliance officer)
  • DEF-044 Is this intended? A blank account number first sets the message 'Account number not provided', which is then replaced at once with 'No input received', so the more specific message can never be shown. The 'only if no message yet' guard in front of it has no effect. (Subject-matter expert)
  • DEF-091 Is this intended? The success message 'Displaying details of given Account' is defined but never set, and the account read clears the information message. As a result, the info line still says 'Enter or update id of account to display' after an account is shown successfully. (Subject-matter expert)

Design notes

None.

18. Navigate the account view screenfinal · online · 6 requirements · 6 rules · 8 criteria · 2 screens

Controls how a user moves on and off the Account View screen. Arriving from the main menu starts a fresh view. Enter, and any unsupported key, runs the lookup. PF3 (or PF15) returns the user to where they came from, or to the main menu if no caller is known. The view must never carry data over from a previous visit, and an unexpected session state must stop processing rather than guess.

As a user, I want the account view screen to start fresh, accept my input and return me to where I came from with PF3, so that I can move through the application predictably.

Final: signed off by Sam (acceptance), 2026-11-25 Risk low. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#18

Requirements

CodeClassRequirementCriteria
REQ-F-143business ruleWhen the user presses any key other than Enter or PF3 (PF15 counts as PF3), such as PF7, Clear or PA1, the system shall treat it as Enter.AC-01, AC-02
REQ-F-144business ruleWhen the user presses PF3, the system shall transfer control, with the session data and the program context reset to first entry, to the calling program and transaction, or to the main menu ('COMEN01C', transaction 'CM00') when no caller is recorded.AC-03, AC-04
REQ-F-145design noteWhen the program starts with no session data, or is entered from the main menu ('COMEN01C') other than as a re-entry, the system shall start a fresh session context, discarding any passed data.AC-05
REQ-F-146business ruleWhile the program context is first entry (0), when PF3 was not pressed, the system shall show the empty account search screen and wait for input.AC-06
REQ-F-147design noteWhen the account view screen is sent, the system shall set the program context to re-entry (1) and end the task, keeping the session data, so that the next input from the user starts transaction 'CAVW'.AC-07
REQ-F-148error handlingIf the program context is neither first entry nor re-entry, then the system shall send the plain text 'UNEXPECTED DATA SCENARIO' and end.AC-08

Business rules

RuleClassText, worked examples and evidence
Only Enter and PF3 are valid actions; other keys treated as Enter
rec/group:claude/RULE-128/1
business rule
business, high
WHEN the user presses any key other than Enter or PF3 (PF15 counts as PF3), such as PF7, Clear or PA1, THE Account View Navigation SHALL treat it as Enter.
  • key pressed: PF7 → Processed as Enter: the account number is validated and looked up
  • key pressed: PF15 → Treated as PF3: exit
app/cbl/COACTVWC.cbl:299-314, app/cbl/COACTVWC.cbl:323-352, app/cpy/CSSTRPFY.cpy:34-35, app/cpy/CSSTRPFY.cpy:58-59, app/cbl/COACTVWC.cbl:168-171
Exit to destination program on PF3
rec/group:claude/RULE-128/2
business rule
business, high
WHEN the user presses PF3, THE Account View Navigation SHALL transfer control, with the session data and the program context reset to first entry, to the calling program and transaction, or to the main menu ('COMEN01C', transaction 'CM00') when no caller is recorded.
  • key pressed: PF3; calling program: COMEN01C → Control returns to COMEN01C
  • key pressed: PF3; calling program: (blank) → Control goes to main menu COMEN01C under transaction CM00
app/cbl/COACTVWC.cbl:299-314, app/cbl/COACTVWC.cbl:323-352, app/cpy/CSSTRPFY.cpy:34-35, app/cpy/CSSTRPFY.cpy:58-59, app/cbl/COACTVWC.cbl:168-171
Screen conversation state: first entry vs re-entry
rec/group:claude/RULE-167/1
design note
technical, high
WHEN the program starts with no session data, or is entered from the main menu ('COMEN01C') other than as a re-entry, THE Account View Screen Flow SHALL start a fresh session context, discarding any passed data.
  • calling program: COMEN01C; program context: 0 (first entry) → Session data is cleared and the flow starts fresh
app/cbl/COACTVWC.cbl:282-292, app/cbl/COACTVWC.cbl:353-383, app/cbl/COACTVWC.cbl:395-406, app/cbl/COACTVWC.cbl:578-581, app/cbl/COACTVWC.cbl:596-605, app/cbl/COACTVWC.cbl:687-718
Show account screen on first entry
rec/group:claude/RULE-167/2
business rule
business, high
WHEN PF3 was not pressed and the program context is first entry (0), THE Account View Screen Flow SHALL show the empty account search screen and wait for input.
  • key: Enter; program context: 0 → Empty account view screen shown
app/cbl/COACTVWC.cbl:282-292, app/cbl/COACTVWC.cbl:353-383, app/cbl/COACTVWC.cbl:395-406, app/cbl/COACTVWC.cbl:578-581, app/cbl/COACTVWC.cbl:596-605, app/cbl/COACTVWC.cbl:687-718
Screen conversation state: first entry vs re-entry
rec/group:claude/RULE-167/3
design note
technical, high
WHENEVER the account view screen is sent, THE Account View Screen Flow SHALL set the program context to re-entry (1) and end the task, keeping the session data, so that the next input from the user starts transaction 'CAVW'.
  • screen sent: yes → Context becomes 1 and the next input starts transaction CAVW
app/cbl/COACTVWC.cbl:282-292, app/cbl/COACTVWC.cbl:353-383, app/cbl/COACTVWC.cbl:395-406, app/cbl/COACTVWC.cbl:578-581, app/cbl/COACTVWC.cbl:596-605, app/cbl/COACTVWC.cbl:687-718
Screen conversation state: first entry vs re-entry
rec/group:claude/RULE-167/5
error handling
error_handling, high
WHEN the program context is neither first entry nor re-entry, THE Account View Screen Flow SHALL send the plain text 'UNEXPECTED DATA SCENARIO' and end.
  • program context: 5 → Plain text 'UNEXPECTED DATA SCENARIO' shown, task ends
app/cbl/COACTVWC.cbl:282-292, app/cbl/COACTVWC.cbl:353-383, app/cbl/COACTVWC.cbl:395-406, app/cbl/COACTVWC.cbl:578-581, app/cbl/COACTVWC.cbl:596-605, app/cbl/COACTVWC.cbl:687-718

Acceptance criteria

IDCriterionChecks
AC-01Given key pressed: PF7
When the user presses any key other than Enter or PF3 (PF15 counts as PF3), such as PF7, Clear or PA1
Then Processed as Enter: the account number is validated and looked up
REQ-F-143
Only Enter and PF3 are valid actions; other keys treated as Enter
worked example 1 of the rule
AC-02Given key pressed: PF15
When the user presses any key other than Enter or PF3 (PF15 counts as PF3), such as PF7, Clear or PA1
Then Treated as PF3: exit
REQ-F-143
Only Enter and PF3 are valid actions; other keys treated as Enter
worked example 2 of the rule
AC-03Given key pressed: PF3; calling program: COMEN01C
When the user presses PF3
Then Control returns to COMEN01C
REQ-F-144
Exit to destination program on PF3
worked example 1 of the rule
AC-04Given key pressed: PF3; calling program: (blank)
When the user presses PF3
Then Control goes to main menu COMEN01C under transaction CM00
REQ-F-144
Exit to destination program on PF3
worked example 2 of the rule
AC-05Given calling program: COMEN01C; program context: 0 (first entry)
When the program starts with no session data, or is entered from the main menu ('COMEN01C') other than as a re-entry
Then Session data is cleared and the flow starts fresh
REQ-F-145
Screen conversation state: first entry vs re-entry
worked example 1 of the rule
AC-06Given key: Enter; program context: 0
When PF3 was not pressed and the program context is first entry (0)
Then Empty account view screen shown
REQ-F-146
Show account screen on first entry
worked example 1 of the rule
AC-07Given screen sent: yes
When Screen conversation state: first entry vs re-entry applies
Then Context becomes 1 and the next input starts transaction CAVW
REQ-F-147
Screen conversation state: first entry vs re-entry
worked example 1 of the rule
AC-08Given program context: 5
When the program context is neither first entry nor re-entry
Then Plain text 'UNEXPECTED DATA SCENARIO' shown, task ends
REQ-F-148
Screen conversation state: first entry vs re-entry
worked example 1 of the rule

Screens

  • Account S-ACCOUNT-VIEW · design · replaces CACTVWA (4 kept, 3 dropped, 33 merged)
    • **lookup field** Account or card number checks: Blank: 'No input received' - enter an account number (11 digits) or a card number (16 digits). Not digits, wrong length or all zeros: 'Account Number if supplied must be a 11 digit Non-Zero Number' (or a 16-digit card number). Not in the card cross-reference: 'Account:<number> not found in Cross ref file.' - check the number with the caller. The error shows under the field.
  • Application header and navigation S-APP-SHELL · design
    • **primary button** Account

Data contracts

CSMSG02Y (file record; COACTVWC), CVACT01Y (file record; COACTVWC), CVACT03Y (file record; COACTVWC), CVCUS01Y (file record; COACTVWC), COCOM01Y (working storage; COACTVWC), COTTL01Y (working storage; COACTVWC), CSDAT01Y (working storage; COACTVWC), CSMSG01Y (working storage; COACTVWC), CSSTRPFY (working storage; COACTVWC), CSUSR01Y (working storage; COACTVWC), CVACT02Y (working storage; COACTVWC), CVCRD01Y (working storage; COACTVWC)

Decision tables

None.

Open questions

  • SME-067 When an account number is entered on the account view screen and the account is not found, or the file cannot be read, should the lookup stop at that point? (Currently it stops only on one exact message, 'Did not find this account in account master file', and the real not-found path produces a different message.) (Business analyst)
  • SME-068 On the account view screen, if the account number is left blank, which message should the operator see: 'Account number not provided' or 'No input received'? (Business analyst)
  • SME-069 On the account view screen, the error message says the account number must be 'a non-zero 11 digit number', but only 'numeric and non-zero' is checked. Should exactly 11 digits be required? Should the message keep its current double space? (Business analyst)
  • SME-070 On the account view screen, if the customer record is found but the account record is not, should the account's financial details still be shown? After a successful lookup, should the screen show a success message ('Displaying details of given Account') instead of the input prompt? (Customer service operations lead)

Design notes

  • When the view is opened with no session state, or opened from the main menu as a new visit, the application must create a new, empty view state and discard any data handed over by the previous screen. Only an explicit re-entry from the same view may reuse existing state. Screen conversation state: first entry vs re-entry
  • The view is a request/response interaction that keeps its state between requests. Every time the screen is returned, the session must be marked as 're-entry' and the entered account number and lookup results kept, so that the user's next submission is handled as a continuation of the same Account View interaction. Screen conversation state: first entry vs re-entry
19. Request a bill paymentfinal · online · 12 requirements · 12 rules · 16 criteria · 3 screens

Lets a signed-on cardholder enter an account, see the balance owed and then confirm (Y) or decline (N) paying it in full. It must never post a payment without an explicit 'Y'. It must also never post one when the account ID is blank, the account cannot be found, or there is nothing to pay (balance zero or less).

As a cardholder, I want to enter my account, see the balance owed and confirm or decline paying it, so that I only pay when I mean to and there is something to pay.

Final: signed off by Sam (acceptance), 2026-11-25 Risk high; touches money, security. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#19

Requirements

CodeClassRequirementCriteria
REQ-N-006business ruleWhen the Bill Payment transaction is started with no session data, the system shall transfer to the sign-on program (COSGN00C).AC-01
REQ-F-149formattingWhen the Bill Payment screen is entered for the first time from another screen, the system shall mark the session as re-entered, start with a blank screen with the cursor on the account ID, and display it.AC-02
REQ-F-150business ruleWhen the Bill Payment screen is first entered and an account was already selected, the system shall fill in that account ID and process it as if Enter were pressed, before showing the screen.AC-03
REQ-F-151formattingWhen the user presses PF3 on the Bill Payment screen, the system shall return to the screen it was called from, or to the main menu (COMEN01C) when no caller is recorded.AC-04
REQ-F-152formattingWhen the user presses Enter the system shall process the payment request, when PF4 it shall clear all fields, and when any other key it shall show 'Invalid key pressed. Please see below...'.AC-05, AC-06
REQ-F-153business ruleIf the account ID is blank, then the system shall show 'Acct ID can NOT be empty...', place the cursor on the account ID and make no payment.AC-07
REQ-F-154business ruleIf the account is looked up (confirmation 'Y', 'y' or blank) and does not exist, then the system shall show 'Account ID NOT found...' and make no payment, and on any other lookup failure show 'Unable to lookup Account...' and make no payment.AC-08, AC-09
REQ-F-155business ruleWhile no error has been flagged, when the account balance is zero or less and an account ID was entered, the system shall flag an error and show 'You have nothing to pay...'.AC-10, AC-11, AC-12
REQ-F-156business ruleWhen an account ID is entered and the confirmation is blank, the system shall look up the account, show its current balance and the message 'Confirm to make a bill payment...', and post nothing (provided the balance is above zero).AC-13
REQ-F-157business ruleWhen an account ID is entered and the confirmation is 'Y' or 'y', the system shall look up the account for update, show its balance and go on to post a payment for the full current balance.AC-14
REQ-F-158business ruleWhen the confirmation is 'N' or 'n', the system shall clear the account ID, balance and confirmation fields, redisplay the empty screen and post nothing.AC-15
REQ-F-159business ruleIf the confirmation is anything other than 'Y', 'y', 'N', 'n' or blank, then the system shall show 'Invalid value. Valid values are (Y/N)...', place the cursor on the confirmation field and post nothing.AC-16

Business rules

RuleClassText, worked examples and evidence
Bill-pay screen navigation and session entry
rec/claude:claude/RULE-247/1
business rule
compliance, medium
WHEN the Bill Payment transaction is started with no session data, THE Bill Payment screen SHALL transfer to the sign-on program (COSGN00C).
  • Session data: none → The user is sent to the sign-on screen.
app/cbl/COBIL00C.cbl:107-144, app/cbl/COBIL00C.cbl:273-284, app/cbl/COBIL00C.cbl:552-566, app/cpy/CSMSG01Y.cpy:20-21
Start bill payment on first entry
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-34e47d431f/1
formatting
display, medium
WHEN the Bill Payment screen is entered for the first time from another screen, THE Bill Payment screen SHALL mark the session as re-entered, start with a blank screen with the cursor on the account ID, and display it.
  • First entry: yes; Selected account passed: none → An empty bill payment screen is shown with the cursor on the account ID.
app/cbl/COBIL00C.cbl:107-122, app/cbl/COBIL00C.cbl:154-244
Start bill payment on first entry
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-34e47d431f/2
business rule
business, medium
WHEN the Bill Payment screen is first entered and an account was already selected (CDEMO-CB00-TRN-SELECTED), THE Bill Payment screen SHALL fill in that account ID and process it as if Enter were pressed, before showing the screen.
  • Selected account passed: 00000000011; Current balance: $1,250.75 → The account ID 00000000011 and balance are shown with the message 'Confirm to make a bill payment...'.
app/cbl/COBIL00C.cbl:107-122, app/cbl/COBIL00C.cbl:154-244
Bill-pay screen navigation and session entry
rec/claude:claude/RULE-247/2
formatting
display, medium
WHEN the user presses PF3 on the Bill Payment screen, THE Bill Payment screen SHALL return to the screen it was called from, or to the main menu (COMEN01C) when no caller is recorded.
  • Key: PF3; Calling program: blank → The main menu COMEN01C is shown.
app/cbl/COBIL00C.cbl:107-144, app/cbl/COBIL00C.cbl:273-284, app/cbl/COBIL00C.cbl:552-566, app/cpy/CSMSG01Y.cpy:20-21
Bill-pay screen navigation and session entry
rec/claude:claude/RULE-247/3
formatting
display, medium
WHEN the user presses Enter the screen SHALL process the payment request, WHEN PF4 it SHALL clear all fields, and WHEN any other key it SHALL show 'Invalid key pressed. Please see below...'.
  • Key: PF7 → The message 'Invalid key pressed. Please see below...' is shown.
  • Key: PF4 → Account ID, balance and confirmation are cleared.
app/cbl/COBIL00C.cbl:107-144, app/cbl/COBIL00C.cbl:273-284, app/cbl/COBIL00C.cbl:552-566, app/cpy/CSMSG01Y.cpy:20-21
Require account ID for payment
rec/group:claude/RULE-098/1
business rule
validation, high
WHEN the account ID is blank, THE Bill Payment screen SHALL show 'Acct ID can NOT be empty...', place the cursor on the account ID and make no payment.
  • Account ID: (blank) → 'Acct ID can NOT be empty...' is shown; no payment is made.
app/cbl/COBIL00C.cbl:158-167, app/cbl/COBIL00C.cbl:173-184, app/cbl/COBIL00C.cbl:343-372, app/cbl/COBIL00C.cbl:208-235, app/cbl/COBIL00C.cbl:408-436
Retrieve account for payment
rec/group:claude/RULE-098/2
business rule
validation, high
WHEN the account is looked up (confirmation 'Y', 'y' or blank) and does not exist, THE Bill Payment screen SHALL show 'Account ID NOT found...' and make no payment; on any other lookup failure it SHALL show 'Unable to lookup Account...' and make no payment.
  • Account ID: 99999999999; Account on file: no → 'Account ID NOT found...' is shown; no payment is made.
  • Account ID: 00000000011; Account file: unavailable → 'Unable to lookup Account...' is shown; no payment is made.
app/cbl/COBIL00C.cbl:158-167, app/cbl/COBIL00C.cbl:173-184, app/cbl/COBIL00C.cbl:343-372, app/cbl/COBIL00C.cbl:208-235, app/cbl/COBIL00C.cbl:408-436
Reject payment when nothing owed
rec/agreed:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-140f759ad5/1
business rule
validation, medium
WHILE no error has been flagged, WHEN the account balance (`ACCT-CURR-BAL`) is zero or less and an account ID was entered, THE Bill Payment Validation SHALL flag an error and show 'You have nothing to pay...'
  • Account ID: 00000000011; ACCT-CURR-BAL: 0.00 → Error flagged; screen shows 'You have nothing to pay...' with cursor on Account ID
  • Account ID: 00000000011; ACCT-CURR-BAL: -25.00 → Error flagged; screen shows 'You have nothing to pay...'
  • Account ID: 00000000011; ACCT-CURR-BAL: 150.00 → No error; the payment can proceed to confirmation
app/cbl/COBIL00C.cbl:197-206, app/cbl/COBIL00C.cbl:197-206
Look up account without confirmation
rec/group:claude/RULE-135/1
business rule
business, high
WHEN an account ID is entered and the confirmation is blank, THE Bill Payment screen SHALL look up the account, show its current balance and the message 'Confirm to make a bill payment...', and SHALL post nothing (provided the balance is above zero).
  • Account ID: 00000000011; Confirm: (blank); Current balance: $500.00 → Balance $500.00 is shown with 'Confirm to make a bill payment...'; no payment is posted.
app/cbl/COBIL00C.cbl:154-195, app/cbl/COBIL00C.cbl:197-206, app/cbl/COBIL00C.cbl:208-244, app/cbl/COBIL00C.cbl:552-566
Accept confirmed payment and show balance
rec/group:claude/RULE-135/2
business rule
business, high
WHEN an account ID is entered and the confirmation is 'Y' or 'y', THE Bill Payment screen SHALL look up the account for update, show its balance and go on to post a payment for the full current balance.
  • Account ID: 00000000011; Confirm: y; Current balance: $500.00 → A bill payment of $500.00 is posted to the account.
app/cbl/COBIL00C.cbl:154-195, app/cbl/COBIL00C.cbl:197-206, app/cbl/COBIL00C.cbl:208-244, app/cbl/COBIL00C.cbl:552-566
Cancel payment on declined confirmation
rec/group:claude/RULE-135/3
business rule
business, high
WHEN the confirmation is 'N' or 'n', THE Bill Payment screen SHALL clear the account ID, balance and confirmation fields, redisplay the empty screen and post nothing.
  • Account ID: 00000000011; Confirm: N → All fields are cleared; no payment is posted.
app/cbl/COBIL00C.cbl:154-195, app/cbl/COBIL00C.cbl:197-206, app/cbl/COBIL00C.cbl:208-244, app/cbl/COBIL00C.cbl:552-566
Reject invalid confirmation value
rec/group:claude/RULE-135/4
business rule
validation, high
WHEN the confirmation is anything other than 'Y', 'y', 'N', 'n' or blank, THE Bill Payment screen SHALL show 'Invalid value. Valid values are (Y/N)...', place the cursor on the confirmation field and post nothing.
  • Account ID: 00000000011; Confirm: X → 'Invalid value. Valid values are (Y/N)...' is shown; no payment is posted.
app/cbl/COBIL00C.cbl:154-195, app/cbl/COBIL00C.cbl:197-206, app/cbl/COBIL00C.cbl:208-244, app/cbl/COBIL00C.cbl:552-566

Acceptance criteria

IDCriterionChecks
AC-01Given Session data: none
When the Bill Payment transaction is started with no session data
Then The user is sent to the sign-on screen.
REQ-N-006
Bill-pay screen navigation and session entry
worked example 1 of the rule
AC-02Given First entry: yes; Selected account passed: none
When the Bill Payment screen is entered for the first time from another screen
Then An empty bill payment screen is shown with the cursor on the account ID.
REQ-F-149
Start bill payment on first entry
worked example 1 of the rule
AC-03Given Selected account passed: 00000000011; Current balance: $1,250.75
When the Bill Payment screen is first entered and an account was already selected (CDEMO-CB00-TRN-SELECTED)
Then The account ID 00000000011 and balance are shown with the message 'Confirm to make a bill payment...'.
REQ-F-150
Start bill payment on first entry
worked example 1 of the rule
AC-04Given Key: PF3; Calling program: blank
When the user presses PF3 on the Bill Payment screen
Then The main menu COMEN01C is shown.
REQ-F-151
Bill-pay screen navigation and session entry
worked example 1 of the rule
AC-05Given Key: PF7
When Bill-pay screen navigation and session entry applies
Then The message 'Invalid key pressed. Please see below...' is shown.
REQ-F-152
Bill-pay screen navigation and session entry
worked example 1 of the rule
AC-06Given Key: PF4
When Bill-pay screen navigation and session entry applies
Then Account ID, balance and confirmation are cleared.
REQ-F-152
Bill-pay screen navigation and session entry
worked example 2 of the rule
AC-07Given Account ID: (blank)
When the account ID is blank
Then 'Acct ID can NOT be empty...' is shown; no payment is made.
REQ-F-153
Require account ID for payment
worked example 1 of the rule
AC-08Given Account ID: 99999999999; Account on file: no
When the account is looked up (confirmation 'Y', 'y' or blank) and does not exist
Then 'Account ID NOT found...' is shown; no payment is made.
REQ-F-154
Retrieve account for payment
worked example 1 of the rule
AC-09Given Account ID: 00000000011; Account file: unavailable
When the account is looked up (confirmation 'Y', 'y' or blank) and does not exist
Then 'Unable to lookup Account...' is shown; no payment is made.
REQ-F-154
Retrieve account for payment
worked example 2 of the rule
AC-10Given Account ID: 00000000011; ACCT-CURR-BAL: 0.00
When no error has been flagged, WHEN the account balance (`ACCT-CURR-BAL`) is zero or less and an account ID was entered
Then Error flagged; screen shows 'You have nothing to pay...' with cursor on Account ID
REQ-F-155
Reject payment when nothing owed
worked example 1 of the rule
AC-11Given Account ID: 00000000011; ACCT-CURR-BAL: -25.00
When no error has been flagged, WHEN the account balance (`ACCT-CURR-BAL`) is zero or less and an account ID was entered
Then Error flagged; screen shows 'You have nothing to pay...'
REQ-F-155
Reject payment when nothing owed
worked example 2 of the rule
AC-12Given Account ID: 00000000011; ACCT-CURR-BAL: 150.00
When no error has been flagged, WHEN the account balance (`ACCT-CURR-BAL`) is zero or less and an account ID was entered
Then No error; the payment can proceed to confirmation
REQ-F-155
Reject payment when nothing owed
worked example 3 of the rule
AC-13Given Account ID: 00000000011; Confirm: (blank); Current balance: $500.00
When an account ID is entered and the confirmation is blank
Then Balance $500.00 is shown with 'Confirm to make a bill payment...'; no payment is posted.
REQ-F-156
Look up account without confirmation
worked example 1 of the rule
AC-14Given Account ID: 00000000011; Confirm: y; Current balance: $500.00
When an account ID is entered and the confirmation is 'Y' or 'y'
Then A bill payment of $500.00 is posted to the account.
REQ-F-157
Accept confirmed payment and show balance
worked example 1 of the rule
AC-15Given Account ID: 00000000011; Confirm: N
When the confirmation is 'N' or 'n'
Then All fields are cleared; no payment is posted.
REQ-F-158
Cancel payment on declined confirmation
worked example 1 of the rule
AC-16Given Account ID: 00000000011; Confirm: X
When the confirmation is anything other than 'Y', 'y', 'N', 'n' or blank
Then 'Invalid value. Valid values are (Y/N)...' is shown; no payment is posted.
REQ-F-159
Reject invalid confirmation value
worked example 1 of the rule

Screens

  • Account S-ACCOUNT-VIEW · design · replaces CACTVWA (4 kept, 3 dropped, 33 merged)
  • Pay balance S-BILL-PAY · design · replaces COBIL0A (3 kept, 3 dropped, 8 merged)
    • **lookup field** Account number checks: Blank: 'Acct ID can NOT be empty...' - enter the 11-digit account number. Not found: 'Account ID NOT found...' - check the number with the caller.
    • **summary card** Balance to pay checks: When the balance is zero or less: 'You have nothing to pay...' and Pay balance is unavailable.
    • **primary button** Pay balance checks: The dialog offers only Pay or Cancel, so no other value can be entered (legacy: 'Invalid value. Valid values are (Y/N)...'). If the card linked to the account is not found, nothing is paid and the message says so. The payment and the balance change are saved together or not at all.
  • Application header and navigation S-APP-SHELL · design
    • **summary card** CardDemo
    • **primary button** Pay balance

Data contracts

CVACT01Y (file record; COBIL00C), CVACT03Y (file record; COBIL00C), CVTRA05Y (file record; COBIL00C), COCOM01Y (working storage; COBIL00C), COTTL01Y (working storage; COBIL00C), CSDAT01Y (working storage; COBIL00C), CSMSG01Y (working storage; COBIL00C)

Decision tables

Bill payment request outcome

Account IDConfirmationCurrent balanceResultRule
Blank——'Acct ID can NOT be empty...', cursor on account ID, no paymentrec/group:claude/RULE-098/1
EnteredBlankAbove zeroShow current balance and 'Confirm to make a bill payment...'; post nothingrec/group:claude/RULE-135/1
EnteredBlankZero or lessError 'You have nothing to pay...'rec/agreed:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-140f759ad5/1
Entered'Y' or 'y'Above zeroLook up account for update, show balance, post payment for full current balancerec/group:claude/RULE-135/2
Entered'Y' or 'y'Zero or lessError 'You have nothing to pay...'rec/agreed:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-140f759ad5/1
Entered'N' or 'n'—Clear account ID, balance and confirmation; redisplay empty screen; post nothingrec/group:claude/RULE-135/3
EnteredAny other value—'Invalid value. Valid values are (Y/N)...', cursor on confirmation, post nothingrec/group:claude/RULE-135/4

Open questions

  • SME-080 What should the bill payment screen do when it is opened without any information from the screen that called it? (Business analyst)
  • SME-081 What format and length must a new bill payment transaction ID have? It is currently the last ID plus 1. (Data architect)
  • SME-082 The bill payment transaction is saved before the account balance is reduced. If the account update then fails, what should happen to the saved transaction? Should the two be one all-or-nothing step? (Business analyst / architecture team)
  • SME-083 How must the system make sure that two bill payments made at the same time never get the same transaction ID? (Architecture team)
  • SME-084 If saving the bill payment transaction fails, what message should the user see and how should the failure be handled? (Business analyst)
  • SME-085 During a bill payment, should a failed card cross-reference lookup or a failed account update stop the remaining payment steps? (Business analyst)
  • SME-086 Please confirm the full rule for checking the account ID on bill payment: it is required, it must exist, and which error message goes with each case. (Legacy application SME)
  • SME-087 If the user enters 'Y' on the first submission, the bill payment is posted straight away without first showing the balance. Should the balance always be shown before a payment can be confirmed? (Payments business owner)
  • DEF-046 Is this intended? A failed card cross-reference lookup sets an error message but does not stop the posting: the transaction is still written (with whatever card number is in the cross-reference record) and the balance is still reduced and saved. (Subject-matter expert)
  • DEF-112 Is this intended? When a selected account is passed on first entry, the Enter processing already sends the screen and the first-entry logic then sends it again, so the screen is sent twice in one interaction. (Subject-matter expert)

Design notes

None.

20. Post a full-balance bill paymentfinal · online · 11 requirements · 13 rules · 15 criteria · 2 screens · 1 gap

Posts a confirmed online bill payment. It records a type '02', category 2 transaction for the full current balance under the next transaction ID, clears the account balance to zero and gives the cardholder the transaction ID as proof. It must never charge a different amount than the balance or reuse a transaction ID. Note that the legacy system clears the balance even when the payment record cannot be written, so the team must decide whether to keep that or make the two steps all-or-nothing.

As a cardholder, I want my confirmed payment recorded as a transaction for the full balance and my account balance cleared, so that my account is paid off and I get a transaction ID as proof.

Final: signed off by Sam (acceptance), 2026-11-25 Risk high; touches card_data, money, updates_records. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#20

Requirements

CodeClassRequirementCriteria
REQ-F-160business ruleWhen the user confirms a bill payment with 'Y' or 'y' and the account has a balance to pay, the system shall look up the card linked to the account and number the new payment transaction as the highest existing transaction ID plus 1.AC-01
REQ-F-161design noteWhen a confirmed bill payment needs a new transaction number, the system shall position at the end of the transaction file, read the last transaction record and take its transaction ID as the latest existing number.AC-02
REQ-F-162business ruleWhen reading back from the end of the transaction file finds no transaction, the system shall treat the latest transaction ID as zero, so the payment is given transaction ID 1.AC-03
REQ-F-163error handlingIf a confirmed payment's lookup of the card linked to the account finds no card link, then the system shall show 'Account ID NOT found...', or 'Unable to lookup XREF AIX file...' on any other failure.AC-04
REQ-F-164business ruleWhen the user confirms a bill payment, the system shall record a payment for the full current account balance and reduce the account's current balance by that amount, leaving it at zero.AC-05, AC-06, AC-07
REQ-F-165business ruleThe system shall record each online payment with type '02', category 2, source 'POS TERM', description 'BILL PAYMENT - ONLINE', merchant ID 999999999, merchant name 'BILL PAYMENT', merchant city and ZIP 'N/A', the account's card number, and the current date and time as both origin and processing time.AC-05, AC-06, AC-08
REQ-F-166business ruleWhen a confirmed payment is posted, the system shall write a payment transaction for the full current balance, then subtract that amount from the account balance and save the account.AC-09, AC-10
REQ-F-167formattingWhen the bill payment transaction is written successfully, the system shall clear the account ID, balance and confirmation fields and show in green 'Payment successful. Your Transaction ID is <new ID>.'.AC-15
REQ-F-168error handlingIf the payment transaction ID already exists, then the system shall show 'Tran ID already exist...', and for any other write failure 'Unable to Add Bill pay Transaction...'.AC-11
REQ-F-169error handlingIf the payment transaction cannot be written or the card lookup fails, then the system shall still subtract the payment from the balance and save the account, so the balance is cleared without a payment on file.AC-12
REQ-F-170error handlingIf saving the updated account fails, then the system shall show 'Account ID NOT found...' if the account is not found, or 'Unable to Update Account...' for any other failure, with the cursor on the account ID.AC-13, AC-14

Business rules

RuleClassText, worked examples and evidence
Assign next payment transaction ID
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-cf8fbd361a/1
business rule
business, medium
WHEN the user confirms a bill payment with 'Y' or 'y' and the account has a balance to pay, THE Bill Payment screen SHALL look up the card linked to the account and number the new payment transaction as the highest existing transaction ID plus 1.
  • Confirm: Y; Highest transaction ID on file: 0000000000001234 → The payment transaction is given ID 0000000000001235.
app/cbl/COBIL00C.cbl:173-177, app/cbl/COBIL00C.cbl:197-219, app/cbl/COBIL00C.cbl:408-418
Retrieve latest existing transaction
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-91bf8dc497/1
design note
technical, medium
WHEN a confirmed bill payment needs a new transaction number, THE Bill Payment screen SHALL position at the end of the transaction file, read the last transaction record and take its transaction ID as the latest existing number.
  • Highest transaction ID on file: 0000000000001234; Confirm: Y → The latest existing transaction ID is taken as 0000000000001234.
app/cbl/COBIL00C.cbl:212-216, app/cbl/COBIL00C.cbl:441-449, app/cbl/COBIL00C.cbl:472-486
Default identifier when no transactions exist
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-da4755d866/1
business rule
business, medium
WHEN reading back from the end of the transaction file finds no transaction (end of file), THE Bill Payment screen SHALL treat the latest transaction ID as zero, so the payment is given transaction ID 1.
  • Transaction file: empty; Confirm: Y → The new payment transaction is numbered 0000000000000001.
app/cbl/COBIL00C.cbl:487-488, app/cbl/COBIL00C.cbl:216-219
Retrieve card linked to account
rec/group:claude/RULE-098/3
error handling
error_handling, high
WHEN a confirmed payment looks up the card linked to the account, THE Bill Payment screen SHALL show 'Account ID NOT found...' if no card link exists, or 'Unable to lookup XREF AIX file...' on any other failure (card cross-reference by account).
  • Account ID: 00000000011; Confirm: Y; Card link for account: missing → 'Account ID NOT found...' is shown (but see defect: posting still continues).
app/cbl/COBIL00C.cbl:158-167, app/cbl/COBIL00C.cbl:173-184, app/cbl/COBIL00C.cbl:343-372, app/cbl/COBIL00C.cbl:208-235, app/cbl/COBIL00C.cbl:408-436
Build bill payment transaction record
rec/agreed:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-34192e7986/1
business rule
business, medium
WHEN a confirmed bill payment is posted, THE Bill Payment Posting SHALL create a type '02', category 2 transaction for the full current balance with the fixed bill-payment merchant values and the current timestamp, and write it
  • Confirm: Y; ACCT-CURR-BAL: 150.00; last TRAN-ID: 0000000000000041 → Transaction 0000000000000042 written with type '02', category 2, source 'POS TERM', description 'BILL PAYMENT - ONLINE', amount 150.00, merchant 999999999 'BILL PAYMENT' 'N/A' 'N/A', current timestamp; balance then becomes 0.00
  • Confirm: (blank); ACCT-CURR-BAL: 150.00 → No transaction written; screen shows 'Confirm to make a bill payment...'
app/cbl/COBIL00C.cbl:218-233, app/cbl/COBIL00C.cbl:218-232
Bill payment pays the full current account balance
rec/claude:claude/RULE-006/1
business rule
business, medium
WHEN the user confirms a bill payment, THE Bill Payment screen SHALL record a payment for the full current account balance and reduce the account's current balance by that amount, leaving it at zero.
  • Account: 00000000011; Current balance: $1,250.75; Confirm: Y → A payment transaction of $1,250.75 is written and the account balance becomes $0.00.
app/cbl/COBIL00C.cbl:218-235, app/cbl/COBIL00C.cbl:249-267
Bill payment pays the full current account balance
rec/claude:claude/RULE-006/2
business rule
business, medium
THE Bill Payment screen SHALL record each online payment with type '02', category 2, source 'POS TERM', description 'BILL PAYMENT - ONLINE', merchant ID 999999999, merchant name 'BILL PAYMENT', merchant city and ZIP 'N/A', the account's card number, and the current date and time as both origin and processing time.
  • Account card number: 4111111111111111; Payment time: 2026-11-25 10:15:00 → The transaction has type '02', category 2, source 'POS TERM', description 'BILL PAYMENT - ONLINE' and timestamps 2026-11-25 10:15:00.
app/cbl/COBIL00C.cbl:218-235, app/cbl/COBIL00C.cbl:249-267
Reduce account balance by payment
rec/group:claude/RULE-136/1
business rule
business, high
WHEN a confirmed payment is posted, THE Bill Payment screen SHALL write a payment transaction for the full current balance, then subtract that amount from the account balance and save the account.
  • Current balance: $300.00; Confirm: Y → A transaction of $300.00 is written and the balance becomes $0.00.
app/cbl/COBIL00C.cbl:210-235, app/cbl/COBIL00C.cbl:510-547, app/cbl/COBIL00C.cbl:377-403
Save updated account balance
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-c64693b684/1
design note
technical, medium
WHEN the payment transaction has been written, THE Bill Payment screen SHALL save the account with its reduced current balance.
  • Balance before: $1,250.75; Payment: $1,250.75 → The account is saved with current balance $0.00.
app/cbl/COBIL00C.cbl:233-235, app/cbl/COBIL00C.cbl:377-403
Confirm successful payment to operator
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-0764ac3c65/1
formatting
display, medium
WHEN the bill payment transaction is written successfully, THE Bill Payment screen SHALL clear the account ID, balance and confirmation fields and show in green 'Payment successful. Your Transaction ID is <new ID>.'
app/cbl/COBIL00C.cbl:510-547, app/cbl/COBIL00C.cbl:560-566
Confirm successful payment to operator
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-0764ac3c65/2
error handling
error_handling, medium
WHEN the payment transaction ID already exists, THE Bill Payment screen SHALL show 'Tran ID already exist...', and for any other write failure 'Unable to Add Bill pay Transaction...'.
  • Write result: duplicate key → The message 'Tran ID already exist...' is shown.
app/cbl/COBIL00C.cbl:510-547, app/cbl/COBIL00C.cbl:560-566
Payment posting is not atomic: balance is cleared even if transaction write fails
rec/group:claude/RULE-136/2
error handling
error_handling, high
WHEN the payment transaction cannot be written (message 'Tran ID already exist...' or 'Unable to Add Bill pay Transaction...') or the card lookup fails, THE Bill Payment screen SHALL still subtract the payment from the balance and save the account, so the balance is cleared without a payment on file.
  • Current balance: $300.00; Confirm: Y; Transaction write: duplicate key → 'Tran ID already exist...' is shown, yet the balance is saved as $0.00 with no payment transaction.
app/cbl/COBIL00C.cbl:210-235, app/cbl/COBIL00C.cbl:510-547, app/cbl/COBIL00C.cbl:377-403
Save updated account balance
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-c64693b684/2
error handling
error_handling, medium
WHEN saving the updated account fails, THE Bill Payment screen SHALL show 'Account ID NOT found...' if the account is not found, or 'Unable to Update Account...' for any other failure, with the cursor on the account ID.
  • Account save result: not found → The message 'Account ID NOT found...' is shown.
  • Account save result: other error → The message 'Unable to Update Account...' is shown.
app/cbl/COBIL00C.cbl:233-235, app/cbl/COBIL00C.cbl:377-403

Acceptance criteria

IDCriterionChecks
AC-01Given Confirm: Y; Highest transaction ID on file: 0000000000001234
When the user confirms a bill payment with 'Y' or 'y' and the account has a balance to pay
Then The payment transaction is given ID 0000000000001235.
REQ-F-160
Assign next payment transaction ID
worked example 1 of the rule
AC-02Given Highest transaction ID on file: 0000000000001234; Confirm: Y
When a confirmed bill payment needs a new transaction number
Then The latest existing transaction ID is taken as 0000000000001234.
REQ-F-161
Retrieve latest existing transaction
worked example 1 of the rule
AC-03Given Transaction file: empty; Confirm: Y
When reading back from the end of the transaction file finds no transaction (end of file)
Then The new payment transaction is numbered 0000000000000001.
REQ-F-162
Default identifier when no transactions exist
worked example 1 of the rule
AC-04Given Account ID: 00000000011; Confirm: Y; Card link for account: missing
When a confirmed payment looks up the card linked to the account
Then 'Account ID NOT found...' is shown (but see defect: posting still continues).
REQ-F-163
Retrieve card linked to account
worked example 1 of the rule
AC-05Given Confirm: Y; ACCT-CURR-BAL: 150.00; last TRAN-ID: 0000000000000041
When a confirmed bill payment is posted
Then Transaction 0000000000000042 written with type '02', category 2, source 'POS TERM', description 'BILL PAYMENT - ONLINE', amount 150.00, merchant 999999999 'BILL PAYMENT' 'N/A' 'N/A', current timestamp; balance then becomes 0.00
REQ-F-164, REQ-F-165
Build bill payment transaction record
worked example 1 of the rule
AC-06Given Confirm: (blank); ACCT-CURR-BAL: 150.00
When a confirmed bill payment is posted
Then No transaction written; screen shows 'Confirm to make a bill payment...'
REQ-F-164, REQ-F-165
Build bill payment transaction record
worked example 2 of the rule
AC-07Given Account: 00000000011; Current balance: $1,250.75; Confirm: Y
When the user confirms a bill payment
Then A payment transaction of $1,250.75 is written and the account balance becomes $0.00.
REQ-F-164
Bill payment pays the full current account balance
worked example 1 of the rule
AC-08Given Account card number: 4111111111111111; Payment time: 2026-11-25 10:15:00
When Bill Payment screen runs
Then The transaction has type '02', category 2, source 'POS TERM', description 'BILL PAYMENT - ONLINE' and timestamps 2026-11-25 10:15:00.
REQ-F-165
Bill payment pays the full current account balance
worked example 1 of the rule
AC-09Given Current balance: $300.00; Confirm: Y
When a confirmed payment is posted
Then A transaction of $300.00 is written and the balance becomes $0.00.
REQ-F-166
Reduce account balance by payment
worked example 1 of the rule
AC-10Given Balance before: $1,250.75; Payment: $1,250.75
When the payment transaction has been written
Then The account is saved with current balance $0.00.
REQ-F-166
Save updated account balance
worked example 1 of the rule
AC-11Given Write result: duplicate key
When the payment transaction ID already exists
Then The message 'Tran ID already exist...' is shown.
REQ-F-168
Confirm successful payment to operator
worked example 1 of the rule
AC-12Given Current balance: $300.00; Confirm: Y; Transaction write: duplicate key
When the payment transaction cannot be written (message 'Tran ID already exist...' or 'Unable to Add Bill pay Transaction...') or the card lookup fails
Then 'Tran ID already exist...' is shown, yet the balance is saved as $0.00 with no payment transaction.
REQ-F-169
Payment posting is not atomic: balance is cleared even if transaction write fails
worked example 1 of the rule
AC-13Given Account save result: not found
When saving the updated account fails
Then The message 'Account ID NOT found...' is shown.
REQ-F-170
Save updated account balance
worked example 1 of the rule
AC-14Given Account save result: other error
When saving the updated account fails
Then The message 'Unable to Update Account...' is shown.
REQ-F-170
Save updated account balance
worked example 2 of the rule
AC-15Given A cardholder confirmed with 'Y' a payment on an account with a balance above zero, and the highest existing transaction ID is 0000000000000041
When The payment transaction 0000000000000042 is written successfully
Then The account ID, balance and confirmation fields are cleared and the message 'Payment successful. Your Transaction ID is 0000000000000042.' is shown in green
REQ-F-167
Confirm successful payment to operator
written from the rule

Screens

  • Account S-ACCOUNT-VIEW · design · replaces CACTVWA (4 kept, 3 dropped, 33 merged)
  • Pay balance S-BILL-PAY · design · replaces COBIL0A (3 kept, 3 dropped, 8 merged)
    • **summary card** Balance to pay checks: When the balance is zero or less: 'You have nothing to pay...' and Pay balance is unavailable.
    • **primary button** Pay balance checks: The dialog offers only Pay or Cancel, so no other value can be entered (legacy: 'Invalid value. Valid values are (Y/N)...'). If the card linked to the account is not found, nothing is paid and the message says so. The payment and the balance change are saved together or not at all.

Data contracts

CVACT01Y (file record; COBIL00C), CVACT03Y (file record; COBIL00C), CVTRA05Y (file record; COBIL00C), COCOM01Y (working storage; COBIL00C), COTTL01Y (working storage; COBIL00C), CSDAT01Y (working storage; COBIL00C), CSMSG01Y (working storage; COBIL00C)

Decision tables

Bill payment posting outcome

Card lookupTransaction writeAccount saveResultRule
FoundWrittenSavedBalance reduced to zero; fields cleared; green 'Payment successful. Your Transaction ID is <new ID>.'rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-0764ac3c65/1
FoundTransaction ID already existsSaved'Tran ID already exist...'; balance still cleared without a payment on filerec/group:claude/RULE-136/2
FoundOther write failureSaved'Unable to Add Bill pay Transaction...'; balance still cleared without a payment on filerec/group:claude/RULE-136/2
No card link—Saved'Account ID NOT found...'; balance still cleared without a payment on filerec/group:claude/RULE-136/2
Other failure—Saved'Unable to lookup XREF AIX file...'; balance still cleared without a payment on filerec/group:claude/RULE-136/2
AnyAnyAccount not found'Account ID NOT found...', cursor on account IDrec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-c64693b684/2
AnyAnyOther failure'Unable to Update Account...', cursor on account IDrec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-c64693b684/2
FoundWrittenAccount not found or other failureGap: No rule says whether the written payment transaction is kept or reversed when the account save fails, leaving a payment on file without a reduced balance.

Open questions

  • SME-080 What should the bill payment screen do when it is opened without any information from the screen that called it? (Business analyst)
  • SME-081 What format and length must a new bill payment transaction ID have? It is currently the last ID plus 1. (Data architect)
  • SME-082 The bill payment transaction is saved before the account balance is reduced. If the account update then fails, what should happen to the saved transaction? Should the two be one all-or-nothing step? (Business analyst / architecture team)
  • SME-083 How must the system make sure that two bill payments made at the same time never get the same transaction ID? (Architecture team)
  • SME-084 If saving the bill payment transaction fails, what message should the user see and how should the failure be handled? (Business analyst)
  • SME-085 During a bill payment, should a failed card cross-reference lookup or a failed account update stop the remaining payment steps? (Business analyst)
  • SME-086 Please confirm the full rule for checking the account ID on bill payment: it is required, it must exist, and which error message goes with each case. (Legacy application SME)
  • SME-088 Online bill payments are recorded as type '02', category 2. Does that match the payment type and category in the transaction-type reference data? Should payment amounts be stored as positive or negative compared with purchases? (Payments business owner)
  • DEF-046 Is this intended? A failed card cross-reference lookup sets an error message but does not stop the posting: the transaction is still written (with whatever card number is in the cross-reference record) and the balance is still reduced and saved. (Subject-matter expert)
  • DEF-058 Is this intended? The balance reduction and account rewrite are not conditional on the transaction write (or card lookup) succeeding, so a failed write leaves the account balance cleared with no payment transaction recorded. (Subject-matter expert)
  • DEF-111 Is this intended? After each step of the payment (card cross-reference lookup, transaction browse, transaction write) the error flag is set on failure but never checked before the next step, so a failed lookup still leads to writing a transaction, and a failed transaction write still reduces and rewrites the account balance. (Subject-matter expert)
  • DEF-115 Is this intended? Errors from the card cross-reference lookup or the transaction browse set the error flag but the payment steps continue anyway, so a transaction can be written with no card number. (Subject-matter expert)
  • DEF-118 Is this intended? The account is rewritten even when the payment transaction write failed, and a failed account rewrite does not undo the transaction already written, so the transaction file and account balance can disagree. (Subject-matter expert)

Design notes

  • Needs the highest existing transaction ID, taken as the last key in transaction-ID order (equivalent to a max query over transactions), so the new payment can be numbered one higher. Because two payments could otherwise get the same number, the new application should allocate IDs safely under concurrency, for example with a database sequence or a locked read of the max. It must still treat an empty transaction store as ID 0. Retrieve latest existing transaction
  • After the payment transaction is written, the account read earlier for update must be saved with its current balance reduced by the payment amount. This needs a locked or version-checked update of that account by account ID, so that no change made in between is overwritten. Save updated account balance
21. Set report period for transaction reportsfinal · online · 2 requirements · 2 rules · 3 criteria · 1 screen

Works out the date range of a Monthly or Yearly transaction report for the operator. Monthly runs from the first to the last day of the current month, and Yearly from January 1 to December 31 of the current year. It then submits the report job. The period must always be calculated from the current date, never typed in by hand or carried over from an earlier request.

As an operator, I want to pick a monthly or yearly report and have its date range set for me, so that the report job runs over the right period.

Final: signed off by Sam (acceptance), 2026-11-25 Risk low; touches reporting_only. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#21

Requirements

CodeClassRequirementCriteria
REQ-F-171business ruleWhen the monthly option is blank and the yearly option is marked, the system shall set the report period from January 1 to December 31 of the current year and submit the report job.AC-01, AC-02
REQ-F-172business ruleWhen the operator selects the monthly report option, the system shall set the report period from the first to the last day of the current month and submit the report job.AC-03

Business rules

RuleClassText, worked examples and evidence
Derive yearly report date range
rec/agreed:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-b33cb906be/1
business rule
business, medium
WHEN the monthly option is blank and the yearly option (`YEARLYI`) is marked, THE Report Period Derivation SHALL set the report period from January 1 to December 31 of the current year and submit the report job
  • Monthly: X; Yearly: X → Monthly takes precedence; the yearly range is not used.
  • Yearly: X; Confirm: N → No job is submitted and the screen fields are cleared.
app/cbl/CORPT00C.cbl:239-241,243-248,250-253,255, app/cbl/CORPT00C.cbl:239-255
Derive monthly report date range
rec/agreed:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-068b278049/1
business rule
business, medium
WHEN the operator selects the monthly report option (`MONTHLYI` not blank), THE Report Period Derivation SHALL set the report period from the first to the last day of the current month and submit the report job
  • Monthly: X; Today's date: 2026-12-10; Confirm: Y → Report period is 2026-12-01 to 2026-12-31.
app/cbl/CORPT00C.cbl:208,212-215,217-221,223-230,232-236,238, app/cbl/CORPT00C.cbl:213-238

Acceptance criteria

IDCriterionChecks
AC-01Given Monthly: X; Yearly: X
When the monthly option is blank and the yearly option (`YEARLYI`) is marked
Then Monthly takes precedence; the yearly range is not used.
REQ-F-171
Derive yearly report date range
worked example 1 of the rule
AC-02Given Yearly: X; Confirm: N
When the monthly option is blank and the yearly option (`YEARLYI`) is marked
Then No job is submitted and the screen fields are cleared.
REQ-F-171
Derive yearly report date range
worked example 2 of the rule
AC-03Given Monthly: X; Today's date: 2026-12-10; Confirm: Y
When the operator selects the monthly report option (`MONTHLYI` not blank)
Then Report period is 2026-12-01 to 2026-12-31.
REQ-F-172
Derive monthly report date range
worked example 1 of the rule

Screens

  • Transaction reports S-REPORT-REQUEST · design · replaces CORPT0A (1 kept, 3 dropped, 16 merged)
    • **summary card** Report type checks: None chosen: 'Select a report type to print report...' - choose Monthly, Yearly or Custom.

Data contracts

COCOM01Y (working storage; CORPT00C), COTTL01Y (working storage; CORPT00C), CSDAT01Y (working storage; CORPT00C), CSMSG01Y (working storage; CORPT00C), CVTRA05Y (working storage; CORPT00C)

Decision tables

None.

Open questions

  • SME-151 For custom report dates: (a) the date check currently accepts some dates it flags as outside the supported range (message 2513). What does that message mean, and should those dates still be accepted? (b) Should a custom report be rejected when its start date is after its end date? (Reporting business owner)
  • SME-152 Report date entry only checks that the day is no greater than 31, and leaves month-specific limits (for example, the 31st of a 30-day month) to the later calendar check. Please confirm that the calendar check is the intended control. (Business analyst)
  • SME-155 Should the Monthly report cover the current month, which is still open (current behavior), or the previous month, which has already closed? (Reporting business owner)

Design notes

None.

22. Reach and move around the transaction report screenfinal · online · 5 requirements · 5 rules · 5 criteria · 2 screens

Controls access to the transaction report screen and movement on it. Only a signed-on user may reach it, and a request without a session is sent to sign-on. PF3 returns to the main menu, Enter processes the request, and any other key is rejected with 'Invalid key pressed. Please see below...'. A report must never be requested outside a valid session.

As a signed-on user, I want to open the transaction report screen, leave it, and be told when I press a key it does not support, so that I can ask for reports only within a valid session.

Final: signed off by Sam (acceptance), 2026-11-25 Risk high; touches reporting_only, security. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#22

Requirements

CodeClassRequirementCriteria
REQ-N-007business ruleWhen the transaction report program (CR00) starts with no session data, the system shall send the user to the sign-on screen (COSGN00C).AC-01
REQ-F-173formattingWhen the user first arrives at the transaction report screen from another screen, the system shall show an empty report screen with the cursor on Monthly.AC-02
REQ-F-174formattingWhen the user presses PF3 on the transaction report screen, the system shall return to the main menu (COMEN01C).AC-03
REQ-F-175business ruleWhen the user presses Enter on the transaction report screen, the system shall process the report request.AC-04
REQ-F-176business ruleIf the user presses any key other than Enter or PF3 on the transaction report screen, then the system shall show 'Invalid key pressed. Please see below...' with the cursor on Monthly.AC-05

Business rules

RuleClassText, worked examples and evidence
Report screen navigation and session guard
rec/claude:claude/RULE-185/1
business rule
compliance, medium
WHEN the transaction report program (CR00) starts with no session data, THE transaction report screen SHALL send the user to the sign-on screen (COSGN00C).
  • Session data: none → User is transferred to sign-on program COSGN00C
app/cbl/CORPT00C.cbl:172-197, app/cbl/CORPT00C.cbl:540-551, app/cpy/CSMSG01Y.cpy:20-21
Report screen navigation and session guard
rec/claude:claude/RULE-185/2
formatting
display, medium
WHEN the user first arrives at the transaction report screen from another screen, THE transaction report screen SHALL show an empty report screen with the cursor on Monthly.
  • Arriving from: Main menu option 9 'Transaction Reports' → Empty report screen shown, cursor on Monthly
app/cbl/CORPT00C.cbl:172-197, app/cbl/CORPT00C.cbl:540-551, app/cpy/CSMSG01Y.cpy:20-21
Report screen navigation and session guard
rec/claude:claude/RULE-185/3
formatting
display, medium
WHEN the user presses PF3 on the transaction report screen, THE transaction report screen SHALL return to the main menu (COMEN01C).
  • Key pressed: PF3 → Main menu COMEN01C is shown
app/cbl/CORPT00C.cbl:172-197, app/cbl/CORPT00C.cbl:540-551, app/cpy/CSMSG01Y.cpy:20-21
Report screen navigation and session guard
rec/claude:claude/RULE-185/4
business rule
business, medium
WHEN the user presses Enter on the transaction report screen, THE transaction report screen SHALL process the report request.
  • Key pressed: Enter; Monthly: X → Monthly report request is processed
app/cbl/CORPT00C.cbl:172-197, app/cbl/CORPT00C.cbl:540-551, app/cpy/CSMSG01Y.cpy:20-21
Report screen navigation and session guard
rec/claude:claude/RULE-185/5
business rule
validation, medium
WHEN the user presses any key other than Enter or PF3, THE transaction report screen SHALL show 'Invalid key pressed. Please see below...' with the cursor on Monthly.
  • Key pressed: PF5 → Message 'Invalid key pressed. Please see below...' shown
app/cbl/CORPT00C.cbl:172-197, app/cbl/CORPT00C.cbl:540-551, app/cpy/CSMSG01Y.cpy:20-21

Acceptance criteria

IDCriterionChecks
AC-01Given Session data: none
When the transaction report program (CR00) starts with no session data
Then User is transferred to sign-on program COSGN00C
REQ-N-007
Report screen navigation and session guard
worked example 1 of the rule
AC-02Given Arriving from: Main menu option 9 'Transaction Reports'
When the user first arrives at the transaction report screen from another screen
Then Empty report screen shown, cursor on Monthly
REQ-F-173
Report screen navigation and session guard
worked example 1 of the rule
AC-03Given Key pressed: PF3
When the user presses PF3 on the transaction report screen
Then Main menu COMEN01C is shown
REQ-F-174
Report screen navigation and session guard
worked example 1 of the rule
AC-04Given Key pressed: Enter; Monthly: X
When the user presses Enter on the transaction report screen
Then Monthly report request is processed
REQ-F-175
Report screen navigation and session guard
worked example 1 of the rule
AC-05Given Key pressed: PF5
When the user presses any key other than Enter or PF3
Then Message 'Invalid key pressed. Please see below...' shown
REQ-F-176
Report screen navigation and session guard
worked example 1 of the rule

Screens

  • Transaction reports S-REPORT-REQUEST · design · replaces CORPT0A (1 kept, 3 dropped, 16 merged)
    • **primary button** Submit report checks: The dialog offers only Submit or Cancel, replacing the typed confirmation and its messages 'Please confirm to print the <report name> report...' and '"<value>" is not a valid value to confirm...'. If the job cannot be queued, the message says the report was not submitted and to try again.
  • Application header and navigation S-APP-SHELL · design
    • **summary card** CardDemo
    • **primary button** Transaction reports

Data contracts

COCOM01Y (working storage; CORPT00C), COTTL01Y (working storage; CORPT00C), CSDAT01Y (working storage; CORPT00C), CSMSG01Y (working storage; CORPT00C), CVTRA05Y (working storage; CORPT00C)

Decision tables

Transaction report screen key handling

Key pressedScreen actionRule
PF3Return to the main menu (COMEN01C)rec/claude:claude/RULE-185/3
EnterProcess the report requestrec/claude:claude/RULE-185/4
Any other keyShow 'Invalid key pressed. Please see below...' with the cursor on Monthlyrec/claude:claude/RULE-185/5

Open questions

None.

Design notes

None.

23. Choose a report type and a valid custom periodfinal · online · 10 requirements · 10 rules · 13 criteria · 1 screen · 4 gaps

Lets a user choose a Monthly, Yearly or Custom transaction report. If several are marked, the first in that order wins. For Custom, every part of the start and end dates is checked, and the first missing or invalid part is reported with the cursor placed on it. A custom report must never be submitted with a missing, non-numeric or impossible calendar date.

As a user requesting a transaction report, I want to pick Monthly, Yearly or Custom and have my custom start and end dates checked, so that only a report with a clear, valid period is submitted.

Final: signed off by Sam (acceptance), 2026-11-25 Risk low; touches reporting_only. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#23

Requirements

CodeClassRequirementCriteria
REQ-F-177business ruleWhen more than one report type is marked, the system shall process only the first in the order Monthly, Yearly, Custom and ignore the others.AC-01, AC-02
REQ-F-178business ruleIf none of Monthly, Yearly or Custom is marked, then the system shall show 'Select a report type to print report...' with the cursor on Monthly and submit nothing.AC-03
REQ-F-179business ruleIf a Custom report is requested and a start or end month, day or year is blank, then the system shall check the parts in the order start month, start day, start year, end month, end day, end year, show the message for the first blank part, put the cursor on that part and submit nothing.AC-04, AC-05
REQ-F-180design noteWhen all custom date parts are entered, the system shall convert each month and day to a two-digit number and each year to a four-digit number before checking them.AC-06
REQ-F-181business ruleIf a custom start or end month is above '12' or not numeric, then the system shall show 'Start Date - Not a valid Month...' or 'End Date - Not a valid Month...', put the cursor on that month and submit nothing.AC-07
REQ-F-182business ruleIf a custom start or end day is above '31' or not numeric, then the system shall show 'Start Date - Not a valid Day...' or 'End Date - Not a valid Day...', put the cursor on that day and submit nothing.AC-08
REQ-F-183business ruleIf a custom start or end year is not numeric, then the system shall show 'Start Date - Not a valid Year...' or 'End Date - Not a valid Year...', put the cursor on that year and submit nothing.AC-09
REQ-F-184business ruleIf the custom start date, checked as YYYY-MM-DD by the date utility (CSUTLDTC), is not a real calendar date, then the system shall show 'Start Date - Not a valid date...', put the cursor on the start month and submit nothing, while accepting a date the utility reports only as outside its supported range (message number '2513').AC-10, AC-11
REQ-F-185business ruleIf the custom end date, checked as YYYY-MM-DD by the date utility (CSUTLDTC), is not a real calendar date, then the system shall show 'End Date - Not a valid date...', put the cursor on the end month and submit nothing, while accepting a date reported only as outside the supported range (message number '2513').AC-12
REQ-F-186business ruleWhen a Custom report's dates pass every check, the system shall use the entered start and end dates as the report period, name the report 'Custom' and go on to submit the report job.AC-13

Business rules

RuleClassText, worked examples and evidence
Report type selection and precedence
rec/group:claude/RULE-226/1
business rule
business, high
WHEN more than one report type is marked, THE transaction report screen SHALL process only the first in the order Monthly, Yearly, Custom and ignore the others.
  • Monthly: X; Yearly: X; Custom: (blank) → Only the Monthly report is processed
  • Yearly: X; Custom: X → Only the Yearly report is processed
app/cbl/CORPT00C.cbl:212-214, app/cbl/CORPT00C.cbl:239-240, app/cbl/CORPT00C.cbl:256, app/cbl/CORPT00C.cbl:437-443
Require a report type selection
rec/group:claude/RULE-226/2
business rule
validation, high
WHEN none of Monthly, Yearly or Custom is marked, THE transaction report screen SHALL show 'Select a report type to print report...' with the cursor on Monthly and submit nothing.
  • Monthly: (blank); Yearly: (blank); Custom: (blank) → Message 'Select a report type to print report...' shown, cursor on Monthly
app/cbl/CORPT00C.cbl:212-214, app/cbl/CORPT00C.cbl:239-240, app/cbl/CORPT00C.cbl:256, app/cbl/CORPT00C.cbl:437-443
Require all custom date parts
rec/group:claude/RULE-110/1
business rule
validation, high
WHEN a Custom report is requested and a start or end month, day or year is blank, THE report request screen SHALL check the parts in the order start month, start day, start year, end month, end day, end year, show the message for the first blank part, put the cursor on that part and submit nothing.
  • Report type: Custom; Start month: (blank); End day: (blank) → Message 'Start Date - Month can NOT be empty...' is shown, cursor on start month, no job submitted
  • Report type: Custom; Start date: 03/01/2024; End year: (blank) → Message 'End Date - Year can NOT be empty...' is shown, cursor on end year
app/cbl/CORPT00C.cbl:256-303, app/cbl/CORPT00C.cbl:305-327, app/cbl/CORPT00C.cbl:329-379, app/cbl/CORPT00C.cbl:381-426, app/cbl/CORPT00C.cbl:556-591, app/cbl/CSUTLDTC.cbl:116-124
Normalize custom date entries numerically
rec/group:claude/RULE-110/2
design note
technical, high
WHEN all custom date parts are entered, THE report request screen SHALL convert each month and day to a two-digit number and each year to a four-digit number before checking them.
  • Start month: 3; Start day: 5 → The start month is treated as '03' and the start day as '05'
app/cbl/CORPT00C.cbl:256-303, app/cbl/CORPT00C.cbl:305-327, app/cbl/CORPT00C.cbl:329-379, app/cbl/CORPT00C.cbl:381-426, app/cbl/CORPT00C.cbl:556-591, app/cbl/CSUTLDTC.cbl:116-124
Validate custom date part ranges
rec/group:claude/RULE-110/3
business rule
validation, high
WHEN a custom start or end month is above '12' or not numeric, THE report request screen SHALL show 'Start Date - Not a valid Month...' or 'End Date - Not a valid Month...', put the cursor on that month and submit nothing.
  • Start month: 13; Start day: 01; Start year: 2024 → Message 'Start Date - Not a valid Month...' is shown, cursor on start month
app/cbl/CORPT00C.cbl:256-303, app/cbl/CORPT00C.cbl:305-327, app/cbl/CORPT00C.cbl:329-379, app/cbl/CORPT00C.cbl:381-426, app/cbl/CORPT00C.cbl:556-591, app/cbl/CSUTLDTC.cbl:116-124
Validate custom date part ranges
rec/group:claude/RULE-110/4
business rule
validation, high
WHEN a custom start or end day is above '31' or not numeric, THE report request screen SHALL show 'Start Date - Not a valid Day...' or 'End Date - Not a valid Day...', put the cursor on that day and submit nothing.
  • End month: 04; End day: 32; End year: 2024 → Message 'End Date - Not a valid Day...' is shown, cursor on end day
app/cbl/CORPT00C.cbl:256-303, app/cbl/CORPT00C.cbl:305-327, app/cbl/CORPT00C.cbl:329-379, app/cbl/CORPT00C.cbl:381-426, app/cbl/CORPT00C.cbl:556-591, app/cbl/CSUTLDTC.cbl:116-124
Validate custom date part ranges
rec/group:claude/RULE-110/5
business rule
validation, high
WHEN a custom start or end year is not numeric, THE report request screen SHALL show 'Start Date - Not a valid Year...' or 'End Date - Not a valid Year...', put the cursor on that year and submit nothing.
  • Start year: (not a number after conversion) → Message 'Start Date - Not a valid Year...' is shown, cursor on start year
app/cbl/CORPT00C.cbl:256-303, app/cbl/CORPT00C.cbl:305-327, app/cbl/CORPT00C.cbl:329-379, app/cbl/CORPT00C.cbl:381-426, app/cbl/CORPT00C.cbl:556-591, app/cbl/CSUTLDTC.cbl:116-124
Validate custom start date on calendar
rec/group:claude/RULE-110/6
business rule
validation, high
WHEN the custom start date, checked as YYYY-MM-DD by the date utility (CSUTLDTC), is not a real calendar date, THE report request screen SHALL show 'Start Date - Not a valid date...', put the cursor on the start month and submit nothing; a date the utility reports only as outside its supported range (message number '2513') is accepted.
  • Start date: 02/30/2024; End date: 03/15/2024 → Message 'Start Date - Not a valid date...' is shown, cursor on start month, no job submitted
  • Start date: 02/29/2024; End date: 03/15/2024 → Start date accepted; end date is checked next
app/cbl/CORPT00C.cbl:256-303, app/cbl/CORPT00C.cbl:305-327, app/cbl/CORPT00C.cbl:329-379, app/cbl/CORPT00C.cbl:381-426, app/cbl/CORPT00C.cbl:556-591, app/cbl/CSUTLDTC.cbl:116-124
Validate custom end date on calendar
rec/group:claude/RULE-110/7
business rule
validation, high
WHEN the custom end date, checked as YYYY-MM-DD by the date utility (CSUTLDTC), is not a real calendar date, THE report request screen SHALL show 'End Date - Not a valid date...', put the cursor on the end month and submit nothing; a date reported only as outside the supported range (message number '2513') is accepted.
  • Start date: 01/01/2023; End date: 02/29/2023 → Message 'End Date - Not a valid date...' is shown, cursor on end month, no job submitted
app/cbl/CORPT00C.cbl:256-303, app/cbl/CORPT00C.cbl:305-327, app/cbl/CORPT00C.cbl:329-379, app/cbl/CORPT00C.cbl:381-426, app/cbl/CORPT00C.cbl:556-591, app/cbl/CSUTLDTC.cbl:116-124
Submit validated custom report period
rec/group:claude/RULE-176/1
business rule
business, high
WHEN a Custom report's dates pass every check, THE report request screen SHALL use the entered start and end dates as the report period, name the report 'Custom' and go on to submit the report job.
  • Report type: Custom; Start date: 01/15/2024; End date: 02/15/2024 → Report period 2024-01-15 to 2024-02-15 is passed to the 'Custom' report job
app/cbl/CORPT00C.cbl:81-127, app/cbl/CORPT00C.cbl:429-436, app/cbl/CORPT00C.cbl:445-456, app/cbl/CORPT00C.cbl:462-510, app/cbl/CORPT00C.cbl:515-535, app/cbl/CORPT00C.cbl:633-646

Acceptance criteria

IDCriterionChecks
AC-01Given Monthly: X; Yearly: X; Custom: (blank)
When more than one report type is marked
Then Only the Monthly report is processed
REQ-F-177
Report type selection and precedence
worked example 1 of the rule
AC-02Given Yearly: X; Custom: X
When more than one report type is marked
Then Only the Yearly report is processed
REQ-F-177
Report type selection and precedence
worked example 2 of the rule
AC-03Given Monthly: (blank); Yearly: (blank); Custom: (blank)
When none of Monthly, Yearly or Custom is marked
Then Message 'Select a report type to print report...' shown, cursor on Monthly
REQ-F-178
Require a report type selection
worked example 1 of the rule
AC-04Given Report type: Custom; Start month: (blank); End day: (blank)
When a Custom report is requested and a start or end month, day or year is blank
Then Message 'Start Date - Month can NOT be empty...' is shown, cursor on start month, no job submitted
REQ-F-179
Require all custom date parts
worked example 1 of the rule
AC-05Given Report type: Custom; Start date: 03/01/2024; End year: (blank)
When a Custom report is requested and a start or end month, day or year is blank
Then Message 'End Date - Year can NOT be empty...' is shown, cursor on end year
REQ-F-179
Require all custom date parts
worked example 2 of the rule
AC-06Given Start month: 3; Start day: 5
When all custom date parts are entered
Then The start month is treated as '03' and the start day as '05'
REQ-F-180
Normalize custom date entries numerically
worked example 1 of the rule
AC-07Given Start month: 13; Start day: 01; Start year: 2024
When a custom start or end month is above '12' or not numeric
Then Message 'Start Date - Not a valid Month...' is shown, cursor on start month
REQ-F-181
Validate custom date part ranges
worked example 1 of the rule
AC-08Given End month: 04; End day: 32; End year: 2024
When a custom start or end day is above '31' or not numeric
Then Message 'End Date - Not a valid Day...' is shown, cursor on end day
REQ-F-182
Validate custom date part ranges
worked example 1 of the rule
AC-09Given Start year: (not a number after conversion)
When a custom start or end year is not numeric
Then Message 'Start Date - Not a valid Year...' is shown, cursor on start year
REQ-F-183
Validate custom date part ranges
worked example 1 of the rule
AC-10Given Start date: 02/30/2024; End date: 03/15/2024
When the custom start date, checked as YYYY-MM-DD by the date utility (CSUTLDTC), is not a real calendar date
Then Message 'Start Date - Not a valid date...' is shown, cursor on start month, no job submitted
REQ-F-184
Validate custom start date on calendar
worked example 1 of the rule
AC-11Given Start date: 02/29/2024; End date: 03/15/2024
When the custom start date, checked as YYYY-MM-DD by the date utility (CSUTLDTC), is not a real calendar date
Then Start date accepted; end date is checked next
REQ-F-184
Validate custom start date on calendar
worked example 2 of the rule
AC-12Given Start date: 01/01/2023; End date: 02/29/2023
When the custom end date, checked as YYYY-MM-DD by the date utility (CSUTLDTC), is not a real calendar date
Then Message 'End Date - Not a valid date...' is shown, cursor on end month, no job submitted
REQ-F-185
Validate custom end date on calendar
worked example 1 of the rule
AC-13Given Report type: Custom; Start date: 01/15/2024; End date: 02/15/2024
When a Custom report's dates pass every check
Then Report period 2024-01-15 to 2024-02-15 is passed to the 'Custom' report job
REQ-F-186
Submit validated custom report period
worked example 1 of the rule

Screens

  • Transaction reports S-REPORT-REQUEST · design · replaces CORPT0A (1 kept, 3 dropped, 16 merged)
    • **summary card** Report type checks: None chosen: 'Select a report type to print report...' - choose Monthly, Yearly or Custom.
    • **summary card** Custom period checks: Every part is required, checked start month, day, year then end month, day, year ('Start Date - Month can NOT be empty...' and so on). 'Start Date - Not a valid Month...' / 'End Date - Not a valid Month...' (1 to 12); 'Start Date - Not a valid Day...' / 'End Date - Not a valid Day...' (1 to 31); 'Start Date - Not a valid Year...' / 'End Date - Not a valid Year...'; 'Start Date - Not a valid date...' / 'End Date - Not a valid date...' for a date not on the calendar. The message sits under the part to fix.

Data contracts

COCOM01Y (working storage; CORPT00C), COTTL01Y (working storage; CORPT00C), CSDAT01Y (working storage; CORPT00C), CSMSG01Y (working storage; CORPT00C), CVTRA05Y (working storage; CORPT00C)

Decision tables

Report type selection

Monthly markedYearly markedCustom markedReport processedRule
NoNoNoShow 'Select a report type to print report...' with the cursor on Monthly and submit nothingrec/group:claude/RULE-226/2
YesAnyAnyProcess Monthly; ignore any other marked typerec/group:claude/RULE-226/1
NoYesAnyProcess Yearly; ignore Custom if markedrec/group:claude/RULE-226/1
NoNoYesProcess Custom using the entered start and end dates once they pass every checkrec/group:claude/RULE-176/1
YesAnyAnyGap: No rule states which start and end dates are used as the report period for a Monthly report.
NoYesAnyGap: No rule states which start and end dates are used as the report period for a Yearly report.

Custom report date checks

Date parts all enteredMonth, day and year in range and numericStart date is a real calendar date (or only out of supported range '2513')End date is a real calendar date (or only out of supported range '2513')Custom request resultRule
NoAnyAnyAnyShow message for first blank part, cursor on it, submit nothingrec/group:claude/RULE-110/1
YesNo - month above '12' or not numericAnyAnyShow 'Start/End Date - Not a valid Month...', cursor on that month, submit nothingrec/group:claude/RULE-110/3
YesNo - day above '31' or not numericAnyAnyShow 'Start/End Date - Not a valid Day...', cursor on that day, submit nothingrec/group:claude/RULE-110/4
YesNo - year not numericAnyAnyShow 'Start/End Date - Not a valid Year...', cursor on that year, submit nothingrec/group:claude/RULE-110/5
YesYesNoAnyShow 'Start Date - Not a valid date...', cursor on start month, submit nothingrec/group:claude/RULE-110/6
YesYesYesNoShow 'End Date - Not a valid date...', cursor on end month, submit nothingrec/group:claude/RULE-110/7
YesYesYesYesUse entered dates as the report period, name report 'Custom', go on to submitrec/group:claude/RULE-176/1
YesNo - more than one part invalidAnyAnyGap: No rule sets the order in which month, day and year range checks are applied across start and end dates when several parts are invalid (only blank parts have a stated order).
YesYesYesYesGap: No rule says whether a start date later than the end date is accepted or rejected.

Open questions

  • SME-151 For custom report dates: (a) the date check currently accepts some dates it flags as outside the supported range (message 2513). What does that message mean, and should those dates still be accepted? (b) Should a custom report be rejected when its start date is after its end date? (Reporting business owner)
  • SME-152 Report date entry only checks that the day is no greater than 31, and leaves month-specific limits (for example, the 31st of a 30-day month) to the later calendar check. Please confirm that the calendar check is the intended control. (Business analyst)
  • DEF-048 Is this intended? The 'not numeric' checks run after each part has already been converted to a number and moved back, so they can almost never fail (a year in particular is never rejected as non-numeric); there is no check that the start date is on or before the end date; and a date the utility reports as outside its supported range (2513) is accepted. (Subject-matter expert)
  • DEF-078 Is this intended? If writing a line to 'JOBS' fails part-way, the lines already written stay in the queue and nothing removes them, so an incomplete job stream can be left for the internal reader. (Subject-matter expert)
  • DEF-093 Is this intended? Marking more than one report type gives no warning; only the first (Monthly before Yearly before Custom) is run and the rest are silently ignored. (Subject-matter expert)

Design notes

  • Before validating, normalise the custom date inputs: pad month and day to two digits (for example '3' becomes '03') and year to four digits, so that the range checks and the calendar-date check see a consistent YYYY-MM-DD value. A typed date input or a date-parsing library in the new application can do this step. Normalize custom date entries numerically
24. Confirm and submit a transaction report for printingfinal · online · 8 requirements · 9 rules · 9 criteria · 1 screen

Asks the user to confirm a validated report request. Only on 'Y' or 'y' is the transaction report job sent to the batch queue with the chosen start and end dates. The user is then told in green that the report was submitted for printing. A job must never be submitted without explicit confirmation or with any dates other than the ones requested.

As a user requesting a transaction report, I want to confirm the request before it is sent to the batch job queue and be told it was submitted, so that reports are printed only when I mean them to be.

Final: signed off by Sam (acceptance), 2026-11-25 Risk low; touches reporting_only. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#24

Requirements

CodeClassRequirementCriteria
REQ-F-187business ruleWhen a report request has passed its checks and the Confirm field is blank, the system shall show 'Please confirm to print the <report name> report...' (for example Monthly, Yearly or Custom), put the cursor on Confirm and submit nothing.AC-05
REQ-F-188business ruleWhen the Confirm field is 'Y' or 'y', the system shall submit the report job (TRNRPT00) to the batch job queue, clear the screen and show '<report name> report submitted for printing ...' in green.AC-06
REQ-F-189business ruleWhen the Confirm field is 'N' or 'n', the system shall clear all entry fields, submit nothing, and show the screen again with no message and the cursor on Monthly.AC-01
REQ-F-190business ruleIf the Confirm field holds any value other than 'Y', 'y', 'N' or 'n', then the system shall show '"<value>" is not a valid value to confirm...', put the cursor on Confirm and submit nothing.AC-07
REQ-F-191design noteWhen the user confirms a report request with 'Y' or 'y', the system shall put the report start and end dates into the job's selection parameters (PARM-START-DATE, PARM-END-DATE) and date card (DATEPARM) as 'YYYY-MM-DD YYYY-MM-DD'.AC-08
REQ-F-192side effectWhen the request is confirmed, the system shall write the job stream to the job queue 'JOBS' one 80-character line at a time, from the first line up to and including the '/*EOF' line (or a blank line), and never more than 1000 lines.AC-02
REQ-F-193error handlingIf writing a line of the report job to the job queue 'JOBS' fails, then the system shall stop writing further lines and show 'Unable to Write TDQ (JOBS)...' with the cursor on the Monthly field.AC-03, AC-04
REQ-F-194formattingWhen a report job has been submitted without error, the system shall clear all entry fields and show in green '<report name> report submitted for printing ...' with the cursor on the Monthly field.AC-09

Business rules

RuleClassText, worked examples and evidence
Prompt for submission confirmation
rec/group:claude/RULE-111/1
business rule
validation, high
WHEN a report request has passed its checks and the Confirm field is blank, THE transaction report screen SHALL show 'Please confirm to print the <report name> report...' (for example Monthly, Yearly or Custom), put the cursor on Confirm and submit nothing.
app/cbl/CORPT00C.cbl:462-510, app/cbl/CORPT00C.cbl:515-535, app/cbl/CORPT00C.cbl:445-456, app/cbl/CORPT00C.cbl:556-591, app/cbl/CORPT00C.cbl:633-640
Evaluate confirmation response
rec/group:claude/RULE-111/2
business rule
business, high
WHEN the Confirm field is 'Y' or 'y', THE transaction report screen SHALL submit the report job (TRNRPT00) to the batch job queue, clear the screen and show '<report name> report submitted for printing ...' in green.
app/cbl/CORPT00C.cbl:462-510, app/cbl/CORPT00C.cbl:515-535, app/cbl/CORPT00C.cbl:445-456, app/cbl/CORPT00C.cbl:556-591, app/cbl/CORPT00C.cbl:633-640
Evaluate confirmation response
rec/group:claude/RULE-111/3
business rule
business, high
WHEN the Confirm field is 'N' or 'n', THE transaction report screen SHALL clear all entry fields, submit nothing, and show the screen again with no message and the cursor on Monthly.
  • Yearly: X; Confirm: N → All fields cleared, no job submitted, no message shown
app/cbl/CORPT00C.cbl:462-510, app/cbl/CORPT00C.cbl:515-535, app/cbl/CORPT00C.cbl:445-456, app/cbl/CORPT00C.cbl:556-591, app/cbl/CORPT00C.cbl:633-640
Evaluate confirmation response
rec/group:claude/RULE-111/4
business rule
validation, high
WHEN the Confirm field holds any value other than 'Y', 'y', 'N' or 'n', THE transaction report screen SHALL show '"<value>" is not a valid value to confirm...', put the cursor on Confirm and submit nothing.
app/cbl/CORPT00C.cbl:462-510, app/cbl/CORPT00C.cbl:515-535, app/cbl/CORPT00C.cbl:445-456, app/cbl/CORPT00C.cbl:556-591, app/cbl/CORPT00C.cbl:633-640
Submit validated custom report period
rec/group:claude/RULE-176/2
design note
technical, high
WHEN the user confirms a report request with 'Y' or 'y', THE report submission SHALL put the report start and end dates into the job's selection parameters (PARM-START-DATE, PARM-END-DATE) and date card (DATEPARM) as 'YYYY-MM-DD YYYY-MM-DD'.
app/cbl/CORPT00C.cbl:81-127, app/cbl/CORPT00C.cbl:429-436, app/cbl/CORPT00C.cbl:445-456, app/cbl/CORPT00C.cbl:462-510, app/cbl/CORPT00C.cbl:515-535, app/cbl/CORPT00C.cbl:633-646
Submit report job stream lines
rec/group:claude/RULE-176/3
side effect
side_effect, high
WHEN the request is confirmed, THE report submission SHALL write the job stream to the job queue 'JOBS' one 80-character line at a time, from the first line up to and including the '/*EOF' line (or a blank line), and never more than 1000 lines.
  • Report type: Yearly; Confirm: y → Every job line through '/*EOF' is written to queue 'JOBS', starting a TRANREPT run for the year
app/cbl/CORPT00C.cbl:81-127, app/cbl/CORPT00C.cbl:429-436, app/cbl/CORPT00C.cbl:445-456, app/cbl/CORPT00C.cbl:462-510, app/cbl/CORPT00C.cbl:515-535, app/cbl/CORPT00C.cbl:633-646
Explicit confirmation required before report job submission
rec/group:claude/RULE-111/5
error handling
error_handling, high
WHEN writing a line of the report job to the job queue (JOBS) fails, THE transaction report screen SHALL stop submitting and show 'Unable to Write TDQ (JOBS)...' with the cursor on Monthly.
  • Confirm: Y; JOBS queue write: fails → Message 'Unable to Write TDQ (JOBS)...' shown
app/cbl/CORPT00C.cbl:462-510, app/cbl/CORPT00C.cbl:515-535, app/cbl/CORPT00C.cbl:445-456, app/cbl/CORPT00C.cbl:556-591, app/cbl/CORPT00C.cbl:633-640
Submit report job stream lines
rec/group:claude/RULE-176/4
error handling
error_handling, high
WHEN writing a job line to queue 'JOBS' fails, THE report submission SHALL stop writing further lines and show 'Unable to Write TDQ (JOBS)...' with the cursor on the Monthly field.
  • Queue 'JOBS': unavailable; Confirm: Y → Message 'Unable to Write TDQ (JOBS)...' is shown and no success message appears
app/cbl/CORPT00C.cbl:81-127, app/cbl/CORPT00C.cbl:429-436, app/cbl/CORPT00C.cbl:445-456, app/cbl/CORPT00C.cbl:462-510, app/cbl/CORPT00C.cbl:515-535, app/cbl/CORPT00C.cbl:633-646
Confirm report submitted for printing
rec/group:claude/RULE-176/5
formatting
display, high
WHEN a report job has been submitted without error, THE report request screen SHALL clear all entry fields and show in green '<report name> report submitted for printing ...' with the cursor on the Monthly field.
app/cbl/CORPT00C.cbl:81-127, app/cbl/CORPT00C.cbl:429-436, app/cbl/CORPT00C.cbl:445-456, app/cbl/CORPT00C.cbl:462-510, app/cbl/CORPT00C.cbl:515-535, app/cbl/CORPT00C.cbl:633-646

Acceptance criteria

IDCriterionChecks
AC-01Given Yearly: X; Confirm: N
When the Confirm field is 'N' or 'n'
Then All fields cleared, no job submitted, no message shown
REQ-F-189
Evaluate confirmation response
worked example 1 of the rule
AC-02Given Report type: Yearly; Confirm: y
When the request is confirmed
Then Every job line through '/*EOF' is written to queue 'JOBS', starting a TRANREPT run for the year
REQ-F-192
Submit report job stream lines
worked example 1 of the rule
AC-03Given Confirm: Y; JOBS queue write: fails
When writing a line of the report job to the job queue (JOBS) fails
Then Message 'Unable to Write TDQ (JOBS)...' shown
REQ-F-193
Explicit confirmation required before report job submission
worked example 1 of the rule
AC-04Given Queue 'JOBS': unavailable; Confirm: Y
When writing a job line to queue 'JOBS' fails
Then Message 'Unable to Write TDQ (JOBS)...' is shown and no success message appears
REQ-F-193
Submit report job stream lines
worked example 1 of the rule
AC-05Given A Monthly report request has passed its checks and the Confirm field is blank
When The user presses Enter
Then The message 'Please confirm to print the Monthly report...' is shown, the cursor is on Confirm and no job is submitted
REQ-F-187
Prompt for submission confirmation
written from the rule
AC-06Given A Yearly report request has passed its checks and the Confirm field is 'y'
When The user presses Enter
Then The report job TRNRPT00 is submitted to the batch job queue, the screen is cleared and 'Yearly report submitted for printing ...' is shown in green
REQ-F-188
Evaluate confirmation response
written from the rule
AC-07Given A Custom report request has passed its checks and the Confirm field holds 'X'
When The user presses Enter
Then The message '"X" is not a valid value to confirm...' is shown, the cursor is on Confirm and no job is submitted
REQ-F-190
Evaluate confirmation response
written from the rule
AC-08Given A Custom report request has start date 2025-01-01 and end date 2025-03-31 and the Confirm field is 'Y'
When The user presses Enter
Then The submitted job's selection parameters carry start date 2025-01-01 and end date 2025-03-31, and its date card reads '2025-01-01 2025-03-31'
REQ-F-191
Submit validated custom report period
written from the rule
AC-09Given A Monthly report request has been confirmed with 'Y' and every line of the job was written to the job queue without error
When Submission completes
Then All entry fields are cleared, 'Monthly report submitted for printing ...' is shown in green and the cursor is on the Monthly field
REQ-F-194
Confirm report submitted for printing
written from the rule

Screens

  • Transaction reports S-REPORT-REQUEST · design · replaces CORPT0A (1 kept, 3 dropped, 16 merged)
    • **primary button** Submit report checks: The dialog offers only Submit or Cancel, replacing the typed confirmation and its messages 'Please confirm to print the <report name> report...' and '"<value>" is not a valid value to confirm...'. If the job cannot be queued, the message says the report was not submitted and to try again.

Data contracts

COCOM01Y (working storage; CORPT00C), COTTL01Y (working storage; CORPT00C), CSDAT01Y (working storage; CORPT00C), CSMSG01Y (working storage; CORPT00C), CVTRA05Y (working storage; CORPT00C)

Decision tables

Report confirmation response

Confirm field valueSubmission resultRule
BlankShow 'Please confirm to print the <report name> report...', cursor on Confirm, submit nothingrec/group:claude/RULE-111/1
'Y' or 'y'Submit report job (TRNRPT00), clear screen, show '<report name> report submitted for printing ...' in greenrec/group:claude/RULE-111/2
'N' or 'n'Clear entry fields, submit nothing, redisplay with no message and cursor on Monthlyrec/group:claude/RULE-111/3
Any other valueShow '"<value>" is not a valid value to confirm...', cursor on Confirm, submit nothingrec/group:claude/RULE-111/4

Open questions

  • SME-151 For custom report dates: (a) the date check currently accepts some dates it flags as outside the supported range (message 2513). What does that message mean, and should those dates still be accepted? (b) Should a custom report be rejected when its start date is after its end date? (Reporting business owner)
  • SME-152 Report date entry only checks that the day is no greater than 31, and leaves month-specific limits (for example, the 31st of a 30-day month) to the later calendar check. Please confirm that the calendar check is the intended control. (Business analyst)
  • SME-153 If writing the report job to the submission queue fails partway through, lines already written are not removed, so a partial job could still run. What should the operator see, how should partial jobs be handled, and how critical is this rule? (Batch operations lead)
  • SME-154 The 'report submitted' confirmation is shown in green. Must the new screen show success in a visually distinct way? (UX lead)
  • DEF-078 Is this intended? If writing a line to 'JOBS' fails part-way, the lines already written stay in the queue and nothing removes them, so an incomplete job stream can be left for the internal reader. (Subject-matter expert)

Design notes

  • The report job takes its period as two parameters, a start date and an end date, each in YYYY-MM-DD form. In the legacy job these are also passed together as the single string 'YYYY-MM-DD YYYY-MM-DD'. The new application should send these as typed parameters on the request it submits to the scheduled or queued transaction-report job, so that the batch run filters transactions to exactly that inclusive range. Submit validated custom report period
25. Browse and page through the transaction listfinal · online · 25 requirements · 25 rules · 32 criteria · 2 screens · 2 gaps

Lets any signed-on user browse the transaction list ten rows at a time, starting from the first transaction or from a transaction ID they type, and page forward (PF8) and backward (PF7). It must never skip or repeat a transaction between pages, must reject a non-numeric Tran ID filter, and must say clearly when the user is already at the top or bottom of the list.

As a signed-on user, I want to see transactions ten at a time, start from a transaction ID I choose, and page forward and backward, so that I can find the transaction I am looking for.

Final: signed off by Sam (acceptance), 2026-11-25 Risk high; touches card_data, money. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#25

Requirements

CodeClassRequirementCriteria
REQ-F-195business ruleWhen the transaction list is opened from another screen (not a re-entry), the system shall mark itself as re-entered, clear the screen, read the first page of up to 10 transactions from the start of the transaction file and display it.AC-01
REQ-F-196design noteThe system shall, at the start of every transaction list interaction, clear the message line, reset its error, end-of-file and next-page indicators, set the screen to be fully redrawn, and place the cursor on the transaction ID field.AC-02
REQ-F-197business ruleWhen the user presses a key on the redisplayed transaction list, the system shall read the screen input and then run search and selection for Enter, show the previous page for PF7, or show the next page for PF8.AC-03, AC-04
REQ-F-198business ruleWhen the Tran ID filter is blank and the user presses Enter, the system shall show the first page starting from the first transaction on file.AC-05
REQ-F-199business ruleWhen the Tran ID filter is numeric and the user presses Enter, the system shall start the list at that transaction ID, or at the next higher ID if it does not exist.AC-06
REQ-F-200business ruleIf the Tran ID filter is not entirely digits across all 16 positions, then the system shall show 'Tran ID must be Numeric ...', put the cursor on the filter, keep the entry, and not build a new page.AC-07, AC-08
REQ-F-201business ruleWhen the user presses Enter without selecting a row, the system shall reset the page number to 0, build the first page (shown as page 1 if any transaction is found), and clear the filter field when no error occurred.AC-09
REQ-F-202formattingWhen the numeric Tran ID filter is higher than every transaction ID on file, the system shall show 'You are at the top of the page...' with no rows and page number 0.AC-10
REQ-F-203business ruleWhen a page is built after Enter, PF3 (return from the transaction detail screen) or PF7, the system shall start with the transaction at the starting ID itself (or the next higher ID) without skipping it.AC-11
REQ-F-204formattingWhen a forward page is built, the system shall first blank all 10 rows, so that rows after the last transaction found stay empty.AC-12
REQ-F-205formattingWhen a transaction record has been retrieved for display on the list page, the system shall convert the transaction amount (TRAN-AMT) to the signed display amount (WS-TRAN-AMT) and derive the display date (WS-TRAN-DATE) as MM/DD/YY from the month, the day and the last two digits of the year of the origination timestamp (TRAN-ORIG-TS).AC-31, AC-32
REQ-F-206design noteThe system shall remember the transaction ID shown in row 1 as the page's first transaction ID (CDEMO-CT00-TRNID-FIRST), used as the starting point for the next PF7, and the ID in row 10 as the page's last transaction ID.AC-13
REQ-F-207design noteWhen a transaction is placed in the tenth row, the system shall remember its ID as the page's last transaction ID (CDEMO-CT00-TRNID-LAST), which the next PF8 starts from.AC-14
REQ-F-208business ruleWhen all 10 rows are filled, the system shall add 1 to the page number and read one transaction ahead, setting next page available to Y if another transaction exists and to N if not.AC-15, AC-16
REQ-F-209business ruleWhen the transactions run out before 10 rows are filled, the system shall set next page available to N and add 1 to the page number only if at least one transaction was placed on the page.AC-17
REQ-F-210formattingWhen the end of the transactions is reached while filling the page or in the look-ahead read, the system shall show the message 'You have reached the bottom of the page...'.AC-18
REQ-F-211error handlingIf positioning on or reading the transaction file fails for any reason other than not found or end of file, then the system shall stop filling the page and show 'Unable to lookup transaction...'.AC-19
REQ-F-212business ruleWhen the user presses PF8 and a next page is available, the system shall restart at the last transaction ID shown on the current page, skip that transaction so it is not repeated, and show up to the next 10 transactions in transaction ID order.AC-20
REQ-F-213formattingIf the user presses PF8 when no next page is available, then the system shall redisplay the current screen without erasing it and with the message 'You are already at the bottom of the page...'.AC-21, AC-22
REQ-F-214business ruleWhen the user presses PF7 on the transaction list and the current page number is greater than 1, the system shall start reading from the first transaction ID shown on the current page, mark a next page as available, and show the previous page.AC-23
REQ-F-215formattingWhen the user presses PF7 and the current page number is 1 or lower, the system shall redisplay the current screen without clearing it, with the message 'You are already at the top of the page...', and still mark a next page as available.AC-24, AC-25
REQ-F-216design noteWhen paging backward with PF7, the system shall first step back past the current page's first transaction, so that the previous page does not repeat it.AC-26
REQ-F-217formattingWhen paging backward, the system shall clear the ten rows and fill them from row 10 up to row 1 with the preceding transactions in descending ID order, stopping early if the start of the transaction file is reached or a read fails.AC-27
REQ-F-218business ruleWhen all ten rows have been filled while paging backward, the system shall check for one more earlier transaction and decrease the page number by 1 if one exists and the page number is above 1, otherwise set the page number to 1.AC-28, AC-29
REQ-F-219error handlingWhen the start of the transaction file is reached before all ten rows are filled while paging backward, the system shall show the message 'You have reached the top of the page...', leave the unfilled top rows blank and leave the page number unchanged.AC-30

Business rules

RuleClassText, worked examples and evidence
Show first transaction page on entry
rec/group:claude/RULE-179/2
business rule
business, high
WHEN the transaction list is opened from another screen (not a re-entry), THE transaction list SHALL mark itself as re-entered, clear the screen, read the first page of up to 10 transactions from the start of the transaction file and display it.
  • arrived from: Main menu option 6 'Transaction List' → Page 1 is shown with the first 10 transactions in transaction-ID order.
app/cbl/COTRN00C.cbl:95-141, app/cbl/COTRN00C.cbl:510-522, app/cpy/CSMSG01Y.cpy:20-21, app/cpy/COCOM01Y.cpy:29-31
Show first transaction page on entry
rec/group:claude/RULE-179/3
design note
technical, high
THE transaction list SHALL, at the start of every interaction, clear the message line, reset its error, end-of-file and next-page indicators, set the screen to be fully redrawn, and place the cursor on the transaction ID field.
  • previous message: 'Tran ID must be Numeric ...'; key: PF8 → The old message is cleared before the next page is shown.
app/cbl/COTRN00C.cbl:95-141, app/cbl/COTRN00C.cbl:510-522, app/cpy/CSMSG01Y.cpy:20-21, app/cpy/COCOM01Y.cpy:29-31
Route operator request by pressed key
rec/group:claude/RULE-179/4
business rule
business, high
WHEN the user presses a key on the redisplayed list, THE transaction list SHALL read the screen input and then run search and selection for Enter, show the previous page for PF7, or show the next page for PF8.
  • key: PF8; current page: 1 → Page 2 is shown.
  • key: Enter; selection on row 3: S → The selected transaction is opened in the transaction view.
app/cbl/COTRN00C.cbl:95-141, app/cbl/COTRN00C.cbl:510-522, app/cpy/CSMSG01Y.cpy:20-21, app/cpy/COCOM01Y.cpy:29-31
Set list start from transaction filter
rec/group:claude/RULE-114/1
business rule
business, high
WHEN the Tran ID filter is blank and the user presses Enter, THE Transaction List SHALL show the first page starting from the first transaction on file.
  • Tran ID filter: blank → The list shows the first 10 transactions on file as page 1.
app/cbl/COTRN00C.cbl:206-229, app/cbl/COTRN00C.cbl:279-328, app/cbl/COTRN00C.cbl:591-611, app/bms/COTRN00.bms:95-98, app/cpy/CVTRA05Y.cpy:5
Set list start from transaction filter
rec/group:claude/RULE-114/2
business rule
business, high
WHEN the Tran ID filter is numeric and the user presses Enter, THE Transaction List SHALL start the list at that transaction ID, or at the next higher ID if it does not exist.
  • Tran ID filter: 0000000000001234 → The list starts at transaction 0000000000001234 or the next higher ID.
app/cbl/COTRN00C.cbl:206-229, app/cbl/COTRN00C.cbl:279-328, app/cbl/COTRN00C.cbl:591-611, app/bms/COTRN00.bms:95-98, app/cpy/CVTRA05Y.cpy:5
Reject non-numeric transaction ID filter
rec/group:claude/RULE-114/3
business rule
validation, high
WHEN the Tran ID filter is not entirely digits across all 16 positions, THE Transaction List SHALL show 'Tran ID must be Numeric ...', put the cursor on the filter, keep the entry, and not build a new page.
  • Tran ID filter: ABC123 → The screen shows 'Tran ID must be Numeric ...'.
  • Tran ID filter: 1234 (without leading zeros) → The screen shows 'Tran ID must be Numeric ...' because the unused positions are blank.
app/cbl/COTRN00C.cbl:206-229, app/cbl/COTRN00C.cbl:279-328, app/cbl/COTRN00C.cbl:591-611, app/bms/COTRN00.bms:95-98, app/cpy/CVTRA05Y.cpy:5
Rebuild list from first page on Enter
rec/group:claude/RULE-114/4
business rule
business, high
WHEN the user presses Enter without selecting a row, THE Transaction List SHALL reset the page number to 0, build the first page (shown as page 1 if any transaction is found), and clear the filter field when no error occurred.
  • Current page: 3; Tran ID filter: 0000000000000050; Key pressed: Enter → Page 1 is shown starting at ID 0000000000000050 and the filter field is cleared.
app/cbl/COTRN00C.cbl:206-229, app/cbl/COTRN00C.cbl:279-328, app/cbl/COTRN00C.cbl:591-611, app/bms/COTRN00.bms:95-98, app/cpy/CVTRA05Y.cpy:5
Transaction ID search filter must be numeric
rec/group:claude/RULE-114/5
formatting
display, high
WHEN the numeric Tran ID filter is higher than every transaction ID on file, THE Transaction List SHALL show 'You are at the top of the page...' with no rows and page number 0.
  • Tran ID filter: 9999999999999999; Highest transaction ID on file: 0000000000000500 → The screen shows 'You are at the top of the page...', page 0 and no transactions.
app/cbl/COTRN00C.cbl:206-229, app/cbl/COTRN00C.cbl:279-328, app/cbl/COTRN00C.cbl:591-611, app/bms/COTRN00.bms:95-98, app/cpy/CVTRA05Y.cpy:5
Position forward browse and skip shown record
rec/group:claude/RULE-029/2
business rule
business, high
WHEN a page is built after Enter, PF3 (return from the transaction detail screen) or PF7, THE Transaction List SHALL start with the transaction at the starting ID itself (or the next higher ID) without skipping it.
  • Key pressed: Enter; Tran ID filter: blank → The page starts with the very first transaction on file.
app/cbl/COTRN00C.cbl:257-274, app/cbl/COTRN00C.cbl:279-328, app/cbl/COTRN00C.cbl:437-442, app/cbl/COTRN00C.cbl:591-619, app/cbl/COTRN00C.cbl:624-653
Fill up to ten transactions forward
rec/group:claude/RULE-029/3
formatting
display, high
WHEN a forward page is built, THE Transaction List SHALL first blank all 10 rows, so that rows after the last transaction found stay empty.
  • Transactions on file: 25; Page requested: page 3 (after IDs 1-20) → Rows 1-5 show IDs 21-25 and rows 6-10 are blank.
app/cbl/COTRN00C.cbl:257-274, app/cbl/COTRN00C.cbl:279-328, app/cbl/COTRN00C.cbl:437-442, app/cbl/COTRN00C.cbl:591-619, app/cbl/COTRN00C.cbl:624-653
Format transaction amount and date for display
rec/agreed:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-8bbd2c6eda/1
formatting
display, medium
WHEN a transaction record has been retrieved for display on the list page, THE Transaction List Row Formatting SHALL convert the transaction amount (`TRAN-AMT`) to the signed display amount (`WS-TRAN-AMT`), and derive the display date (`WS-TRAN-DATE`) as MM/DD/YY from the month, the day and the last two digits of the year of the origination timestamp (`TRAN-ORIG-TS`)
app/cbl/COTRN00C.cbl:381,383-388, app/cbl/COTRN00C.cbl:381-388
Place first row and record page start
rec/group:claude/RULE-028/7
design note
technical, high
THE Transaction List SHALL remember the transaction ID shown in row 1 as the page's first transaction ID (CDEMO-CT00-TRNID-FIRST), used as the starting point for the next PF7, and the ID in row 10 as the page's last transaction ID.
  • Row 1 transaction ID: 0000000000000011; Row 10 transaction ID: 0000000000000020 → The next PF7 starts from 0000000000000011 and the next PF8 from 0000000000000020.
app/cbl/COTRN00C.cbl:234-252, app/cbl/COTRN00C.cbl:333-376, app/cbl/COTRN00C.cbl:390-396, app/cbl/COTRN00C.cbl:437-439, app/cbl/COTRN00C.cbl:591-600, app/cbl/COTRN00C.cbl:658-687
Place last row and record page end
rec/group:claude/RULE-029/6
design note
technical, high
WHEN a transaction is placed in the tenth row, THE Transaction List SHALL remember its ID as the page's last transaction ID (CDEMO-CT00-TRNID-LAST), which the next PF8 starts from.
  • Tenth row: transaction ID 0000000000000020 → The next PF8 starts from ID 0000000000000020.
app/cbl/COTRN00C.cbl:257-274, app/cbl/COTRN00C.cbl:279-328, app/cbl/COTRN00C.cbl:437-442, app/cbl/COTRN00C.cbl:591-619, app/cbl/COTRN00C.cbl:624-653
Advance page number and check next page
rec/group:claude/RULE-029/4
business rule
business, high
WHEN all 10 rows are filled, THE Transaction List SHALL add 1 to the page number and read one transaction ahead, setting next page available to Y if another transaction exists and to N if not.
  • Transactions on file: 25; Page built: IDs 11-20 → Page number becomes 2 and next page available is Y because ID 21 exists.
  • Transactions on file: 20; Page built: IDs 11-20 → Page number becomes 2 and next page available is N.
app/cbl/COTRN00C.cbl:257-274, app/cbl/COTRN00C.cbl:279-328, app/cbl/COTRN00C.cbl:437-442, app/cbl/COTRN00C.cbl:591-619, app/cbl/COTRN00C.cbl:624-653
Advance page number and check next page
rec/group:claude/RULE-029/5
business rule
business, high
WHEN the transactions run out before 10 rows are filled, THE Transaction List SHALL set next page available to N and add 1 to the page number only if at least one transaction was placed on the page.
  • Transactions on file: 25; Current page: 2; Key pressed: PF8 → Page 3 shows IDs 21-25 and next page available is N.
app/cbl/COTRN00C.cbl:257-274, app/cbl/COTRN00C.cbl:279-328, app/cbl/COTRN00C.cbl:437-442, app/cbl/COTRN00C.cbl:591-619, app/cbl/COTRN00C.cbl:624-653
Fill up to ten transactions forward
rec/group:claude/RULE-029/7
formatting
display, high
WHEN the end of the transactions is reached while filling the page or in the look-ahead read, THE Transaction List SHALL show the message 'You have reached the bottom of the page...'.
  • Transactions on file: 20; Page built: IDs 11-20 → The page shows 'You have reached the bottom of the page...'.
app/cbl/COTRN00C.cbl:257-274, app/cbl/COTRN00C.cbl:279-328, app/cbl/COTRN00C.cbl:437-442, app/cbl/COTRN00C.cbl:591-619, app/cbl/COTRN00C.cbl:624-653
Position forward browse and skip shown record
rec/group:claude/RULE-029/8
error handling
error_handling, high
WHEN positioning on or reading the transaction file fails for any reason other than not found or end of file, THE Transaction List SHALL stop filling the page and show 'Unable to lookup transaction...'.
  • Transaction file: unavailable; Key pressed: PF8 → The screen shows 'Unable to lookup transaction...'.
app/cbl/COTRN00C.cbl:257-274, app/cbl/COTRN00C.cbl:279-328, app/cbl/COTRN00C.cbl:437-442, app/cbl/COTRN00C.cbl:591-619, app/cbl/COTRN00C.cbl:624-653
Page forward to next transactions
rec/group:claude/RULE-029/1
business rule
business, high
WHEN the user presses PF8 and a next page is available, THE Transaction List SHALL restart at the last transaction ID shown on the current page, skip that transaction so it is not repeated, and show up to the next 10 transactions in transaction ID order.
  • Page shown: page 1 with transaction IDs 1-10; Next page available: Y; Key pressed: PF8 → Page 2 shows transaction IDs 11-20; ID 10 is not repeated.
app/cbl/COTRN00C.cbl:257-274, app/cbl/COTRN00C.cbl:279-328, app/cbl/COTRN00C.cbl:437-442, app/cbl/COTRN00C.cbl:591-619, app/cbl/COTRN00C.cbl:624-653
Warn already at last page
rec/agreed:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-668b05841d/1
formatting
display, medium
IF the operator presses PF8 when no next page is available, THEN THE Transaction List Paging SHALL redisplay the current screen without erasing it and with the message 'You are already at the bottom of the page...'
  • Key pressed: PF8; Next page available (CDEMO-CT00-NEXT-PAGE-FLG): 'N' (the last page of transactions is already shown) → The current transaction list stays on screen (sent without ERASE) with the message 'You are already at the bottom of the page...'
  • Key pressed: PF8; Next page available (CDEMO-CT00-NEXT-PAGE-FLG): 'Y' → No warning; the next page of up to 10 transactions is shown
app/cbl/COTRN00C.cbl:269-274, app/cbl/COTRN00C.cbl:257-274
Page backward to previous transactions
rec/group:claude/RULE-028/1
business rule
business, high
WHEN the user presses PF7 on the transaction list and the current page number is greater than 1, THE Transaction List SHALL start reading from the first transaction ID shown on the current page, mark a next page as available, and show the previous page.
  • Key pressed: PF7; Current page number: 3; First transaction ID on page: 0000000000000021 → The list reads backward from transaction 0000000000000021, the next-page indicator is set to 'Y', and the previous page is shown.
app/cbl/COTRN00C.cbl:234-252, app/cbl/COTRN00C.cbl:333-376, app/cbl/COTRN00C.cbl:390-396, app/cbl/COTRN00C.cbl:437-439, app/cbl/COTRN00C.cbl:591-600, app/cbl/COTRN00C.cbl:658-687
Warn already at first page
rec/group:claude/RULE-028/2
formatting
display, high
WHEN the user presses PF7 and the current page number is 1 or lower, THE Transaction List SHALL redisplay the current screen without clearing it, with the message 'You are already at the top of the page...', and still mark a next page as available.
  • Key pressed: PF7; Current page number: 1 → The same rows stay on screen with the message 'You are already at the top of the page...'.
  • Key pressed: PF7; Current page number: 0 → The same rows stay on screen with the message 'You are already at the top of the page...'.
app/cbl/COTRN00C.cbl:234-252, app/cbl/COTRN00C.cbl:333-376, app/cbl/COTRN00C.cbl:390-396, app/cbl/COTRN00C.cbl:437-439, app/cbl/COTRN00C.cbl:591-600, app/cbl/COTRN00C.cbl:658-687
Position backward browse before current page
rec/group:claude/RULE-028/3
design note
technical, high
WHEN paging backward with PF7, THE Transaction List SHALL first step back past the current page's first transaction, so that the previous page does not repeat it.
  • First transaction ID on current page: 0000000000000021 → Transaction 0000000000000021 is skipped; the first transaction placed is 0000000000000020.
app/cbl/COTRN00C.cbl:234-252, app/cbl/COTRN00C.cbl:333-376, app/cbl/COTRN00C.cbl:390-396, app/cbl/COTRN00C.cbl:437-439, app/cbl/COTRN00C.cbl:591-600, app/cbl/COTRN00C.cbl:658-687
Fill previous page rows in reverse
rec/group:claude/RULE-028/4
formatting
display, high
WHEN paging backward, THE Transaction List SHALL clear the ten rows and fill them from row 10 up to row 1 with the preceding transactions in descending ID order, stopping early if the start of the transaction file is reached or a read fails.
  • First transaction ID on current page: 0000000000000021; Earlier transactions: 0000000000000001 to 0000000000000020 → Row 10 shows 0000000000000020, row 9 shows 0000000000000019, and row 1 shows 0000000000000011.
app/cbl/COTRN00C.cbl:234-252, app/cbl/COTRN00C.cbl:333-376, app/cbl/COTRN00C.cbl:390-396, app/cbl/COTRN00C.cbl:437-439, app/cbl/COTRN00C.cbl:591-600, app/cbl/COTRN00C.cbl:658-687
Adjust page number after backward paging
rec/group:claude/RULE-028/5
business rule
business, high
WHEN all ten rows have been filled while paging backward, THE Transaction List SHALL check for one more earlier transaction and decrease the page number by 1 if one exists and the page number is above 1, otherwise set the page number to 1.
  • Current page number: 3; Transactions before the new first row: 10 → Page number becomes 2.
  • Current page number: 2; Transactions before the new first row: none → Page number becomes 1.
app/cbl/COTRN00C.cbl:234-252, app/cbl/COTRN00C.cbl:333-376, app/cbl/COTRN00C.cbl:390-396, app/cbl/COTRN00C.cbl:437-439, app/cbl/COTRN00C.cbl:591-600, app/cbl/COTRN00C.cbl:658-687
Fill previous page rows in reverse
rec/group:claude/RULE-028/6
error handling
error_handling, high
WHEN the start of the transaction file is reached before all ten rows are filled while paging backward, THE Transaction List SHALL show the message 'You have reached the top of the page...', leave the unfilled top rows blank and leave the page number unchanged.
  • Current page number: 2; Earlier transactions: only 6 → Rows 5 to 10 show the 6 transactions, rows 1 to 4 are blank, 'You have reached the top of the page...' is shown, and the page number stays 2.
app/cbl/COTRN00C.cbl:234-252, app/cbl/COTRN00C.cbl:333-376, app/cbl/COTRN00C.cbl:390-396, app/cbl/COTRN00C.cbl:437-439, app/cbl/COTRN00C.cbl:591-600, app/cbl/COTRN00C.cbl:658-687

Acceptance criteria

IDCriterionChecks
AC-01Given arrived from: Main menu option 6 'Transaction List'
When the transaction list is opened from another screen (not a re-entry)
Then Page 1 is shown with the first 10 transactions in transaction-ID order.
REQ-F-195
Show first transaction page on entry
worked example 1 of the rule
AC-02Given previous message: 'Tran ID must be Numeric ...'; key: PF8
When transaction list runs
Then The old message is cleared before the next page is shown.
REQ-F-196
Show first transaction page on entry
worked example 1 of the rule
AC-03Given key: PF8; current page: 1
When the user presses a key on the redisplayed list
Then Page 2 is shown.
REQ-F-197
Route operator request by pressed key
worked example 1 of the rule
AC-04Given key: Enter; selection on row 3: S
When the user presses a key on the redisplayed list
Then The selected transaction is opened in the transaction view.
REQ-F-197
Route operator request by pressed key
worked example 2 of the rule
AC-05Given Tran ID filter: blank
When the Tran ID filter is blank and the user presses Enter
Then The list shows the first 10 transactions on file as page 1.
REQ-F-198
Set list start from transaction filter
worked example 1 of the rule
AC-06Given Tran ID filter: 0000000000001234
When the Tran ID filter is numeric and the user presses Enter
Then The list starts at transaction 0000000000001234 or the next higher ID.
REQ-F-199
Set list start from transaction filter
worked example 1 of the rule
AC-07Given Tran ID filter: ABC123
When the Tran ID filter is not entirely digits across all 16 positions
Then The screen shows 'Tran ID must be Numeric ...'.
REQ-F-200
Reject non-numeric transaction ID filter
worked example 1 of the rule
AC-08Given Tran ID filter: 1234 (without leading zeros)
When the Tran ID filter is not entirely digits across all 16 positions
Then The screen shows 'Tran ID must be Numeric ...' because the unused positions are blank.
REQ-F-200
Reject non-numeric transaction ID filter
worked example 2 of the rule
AC-09Given Current page: 3; Tran ID filter: 0000000000000050; Key pressed: Enter
When the user presses Enter without selecting a row
Then Page 1 is shown starting at ID 0000000000000050 and the filter field is cleared.
REQ-F-201
Rebuild list from first page on Enter
worked example 1 of the rule
AC-10Given Tran ID filter: 9999999999999999; Highest transaction ID on file: 0000000000000500
When the numeric Tran ID filter is higher than every transaction ID on file
Then The screen shows 'You are at the top of the page...', page 0 and no transactions.
REQ-F-202
Transaction ID search filter must be numeric
worked example 1 of the rule
AC-11Given Key pressed: Enter; Tran ID filter: blank
When a page is built after Enter, PF3 (return from the transaction detail screen) or PF7
Then The page starts with the very first transaction on file.
REQ-F-203
Position forward browse and skip shown record
worked example 1 of the rule
AC-12Given Transactions on file: 25; Page requested: page 3 (after IDs 1-20)
When a forward page is built
Then Rows 1-5 show IDs 21-25 and rows 6-10 are blank.
REQ-F-204
Fill up to ten transactions forward
worked example 1 of the rule
AC-13Given Row 1 transaction ID: 0000000000000011; Row 10 transaction ID: 0000000000000020
When Transaction List runs
Then The next PF7 starts from 0000000000000011 and the next PF8 from 0000000000000020.
REQ-F-206
Place first row and record page start
worked example 1 of the rule
AC-14Given Tenth row: transaction ID 0000000000000020
When a transaction is placed in the tenth row
Then The next PF8 starts from ID 0000000000000020.
REQ-F-207
Place last row and record page end
worked example 1 of the rule
AC-15Given Transactions on file: 25; Page built: IDs 11-20
When all 10 rows are filled
Then Page number becomes 2 and next page available is Y because ID 21 exists.
REQ-F-208
Advance page number and check next page
worked example 1 of the rule
AC-16Given Transactions on file: 20; Page built: IDs 11-20
When all 10 rows are filled
Then Page number becomes 2 and next page available is N.
REQ-F-208
Advance page number and check next page
worked example 2 of the rule
AC-17Given Transactions on file: 25; Current page: 2; Key pressed: PF8
When the transactions run out before 10 rows are filled
Then Page 3 shows IDs 21-25 and next page available is N.
REQ-F-209
Advance page number and check next page
worked example 1 of the rule
AC-18Given Transactions on file: 20; Page built: IDs 11-20
When the end of the transactions is reached while filling the page or in the look-ahead read
Then The page shows 'You have reached the bottom of the page...'.
REQ-F-210
Fill up to ten transactions forward
worked example 1 of the rule
AC-19Given Transaction file: unavailable; Key pressed: PF8
When positioning on or reading the transaction file fails for any reason other than not found or end of file
Then The screen shows 'Unable to lookup transaction...'.
REQ-F-211
Position forward browse and skip shown record
worked example 1 of the rule
AC-20Given Page shown: page 1 with transaction IDs 1-10; Next page available: Y; Key pressed: PF8
When the user presses PF8 and a next page is available
Then Page 2 shows transaction IDs 11-20; ID 10 is not repeated.
REQ-F-212
Page forward to next transactions
worked example 1 of the rule
AC-21Given Key pressed: PF8; Next page available (CDEMO-CT00-NEXT-PAGE-FLG): 'N' (the last page of transactions is already shown)
When the operator presses PF8 when no next page is available
Then The current transaction list stays on screen (sent without ERASE) with the message 'You are already at the bottom of the page...'
REQ-F-213
Warn already at last page
worked example 1 of the rule
AC-22Given Key pressed: PF8; Next page available (CDEMO-CT00-NEXT-PAGE-FLG): 'Y'
When the operator presses PF8 when no next page is available
Then No warning; the next page of up to 10 transactions is shown
REQ-F-213
Warn already at last page
worked example 2 of the rule
AC-23Given Key pressed: PF7; Current page number: 3; First transaction ID on page: 0000000000000021
When the user presses PF7 on the transaction list and the current page number is greater than 1
Then The list reads backward from transaction 0000000000000021, the next-page indicator is set to 'Y', and the previous page is shown.
REQ-F-214
Page backward to previous transactions
worked example 1 of the rule
AC-24Given Key pressed: PF7; Current page number: 1
When the user presses PF7 and the current page number is 1 or lower
Then The same rows stay on screen with the message 'You are already at the top of the page...'.
REQ-F-215
Warn already at first page
worked example 1 of the rule
AC-25Given Key pressed: PF7; Current page number: 0
When the user presses PF7 and the current page number is 1 or lower
Then The same rows stay on screen with the message 'You are already at the top of the page...'.
REQ-F-215
Warn already at first page
worked example 2 of the rule
AC-26Given First transaction ID on current page: 0000000000000021
When paging backward with PF7
Then Transaction 0000000000000021 is skipped; the first transaction placed is 0000000000000020.
REQ-F-216
Position backward browse before current page
worked example 1 of the rule
AC-27Given First transaction ID on current page: 0000000000000021; Earlier transactions: 0000000000000001 to 0000000000000020
When paging backward
Then Row 10 shows 0000000000000020, row 9 shows 0000000000000019, and row 1 shows 0000000000000011.
REQ-F-217
Fill previous page rows in reverse
worked example 1 of the rule
AC-28Given Current page number: 3; Transactions before the new first row: 10
When all ten rows have been filled while paging backward
Then Page number becomes 2.
REQ-F-218
Adjust page number after backward paging
worked example 1 of the rule
AC-29Given Current page number: 2; Transactions before the new first row: none
When all ten rows have been filled while paging backward
Then Page number becomes 1.
REQ-F-218
Adjust page number after backward paging
worked example 2 of the rule
AC-30Given Current page number: 2; Earlier transactions: only 6
When the start of the transaction file is reached before all ten rows are filled while paging backward
Then Rows 5 to 10 show the 6 transactions, rows 1 to 4 are blank, 'You have reached the top of the page...' is shown, and the page number stays 2.
REQ-F-219
Fill previous page rows in reverse
worked example 1 of the rule
AC-31Given a transaction on file with amount -125.50 and origination timestamp 2022-07-18 14:32:05.000000
When the transaction is placed on a row of the transaction list page
Then the row shows the amount as the signed value -00000125.50 and the date as 07/18/22 (month, day, last two digits of the year)
REQ-F-205
Format transaction amount and date for display
written from the rule
AC-32Given a transaction on file with amount 50.00 and origination timestamp 2023-01-05 09:00:00.000000
When the transaction is placed on a row of the transaction list page
Then the row shows the amount as +00000050.00 and the date as 01/05/23
REQ-F-205
Format transaction amount and date for display
written from the rule

Screens

  • Transactions S-TRANSACTION-LIST · design · replaces COTRN0A (2 kept, 3 dropped, 59 merged)
    • **lookup field** Start from transaction ID checks: Not all digits: 'Tran ID must be Numeric ...' - enter digits only. Higher than every ID on file: 'You are at the top of the page...'.
    • **data table** Transactions checks: Rows open on Enter or click, so there is no selection code to mistype (legacy: 'Invalid selection. Valid value is S'). At the first or last page the previous or next control is disabled and says 'You are already at the top of the page...' / 'You have reached the bottom of the page...'. Empty state: 'No transactions yet. Use Add transaction to record the first one.'
  • Transaction S-TRANSACTION-VIEW · design · replaces COTRN1A (3 kept, 2 dropped, 21 merged)

Data contracts

CVTRA05Y (file record; COTRN00C), COCOM01Y (working storage; COTRN00C), COTTL01Y (working storage; COTRN00C), CSDAT01Y (working storage; COTRN00C), CSMSG01Y (working storage; COTRN00C)

Decision tables

Transaction list paging keys

Key pressedCurrent page numberNext page availablePaging resultRule
PF7Greater than 1AnyRead from the page's first transaction ID, mark next page available, show previous pagerec/group:claude/RULE-028/1
PF71 or lowerAnyRedisplay current screen with 'You are already at the top of the page...', mark next page availablerec/group:claude/RULE-028/2
PF8AnyYesRestart after the page's last transaction ID and show up to the next 10 transactionsrec/group:claude/RULE-029/1
PF8AnyNoRedisplay current screen with 'You are already at the bottom of the page...'rec/agreed:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-668b05841d/1

Transaction ID filter on Enter

Tran ID filter contentTransaction at or above the filter ID on fileList resultRule
BlankAnyShow first page from the first transaction on filerec/group:claude/RULE-114/1
Numeric (all 16 digits)YesStart list at that ID or the next higher IDrec/group:claude/RULE-114/2
Numeric (all 16 digits)NoShow 'You are at the top of the page...' with no rows and page number 0rec/group:claude/RULE-114/5
Not entirely digitsAnyShow 'Tran ID must be Numeric ...', cursor on filter, keep entry, no new pagerec/group:claude/RULE-114/3
BlankNoGap: No rule states what is shown when the filter is blank and the transaction file holds no transactions.

Page completion and next-page indicator

DirectionAll 10 rows filledFurther transaction existsPage number and indicatorRule
ForwardYesYesAdd 1 to page number; next page available Yrec/group:claude/RULE-029/4
ForwardYesNoAdd 1 to page number; next page available N; show 'You have reached the bottom of the page...'rec/group:claude/RULE-029/4
ForwardNoNoNext page available N; add 1 to page number only if at least one transaction placedrec/group:claude/RULE-029/5
BackwardYesYesDecrease page number by 1 if above 1, otherwise set to 1rec/group:claude/RULE-028/5
BackwardYesNoSet page number to 1rec/group:claude/RULE-028/5
BackwardNoNoShow 'You have reached the top of the page...', leave top rows blank, page number unchangedrec/group:claude/RULE-028/6
BackwardNoAnyGap: No rule states the page number or message when backward paging stops early because a read fails rather than reaching the start of the file.

Open questions

  • SME-164 When the operator pages back through the transaction list, the page number is reset to 1 "otherwise". Which situation triggers that reset: when the look-back read failed or the page number is already 1 or less, when no next page is flagged as available, or both? (Business analyst)
  • SME-165 The transaction list only describes how transactions are placed in rows 1 and 10. How should transactions be placed in rows 2 through 9? (Business analyst)
  • SME-166 On the transaction list, how is the next screen chosen when the operator selects a transaction, what should PF3 do, and what should happen when the list is opened without any information from a calling screen? (Application owner)
  • SME-167 When the operator presses PF8 (next page) and no last transaction ID is held, the list currently starts after the highest possible key, which probably shows an empty page. Should the new system keep this behaviour? (Business analyst)
  • SME-169 When the operator searches the transaction list for a transaction ID that does not exist, should the list start at the next higher transaction, as it does today, or should the system report 'not found'? (Product owner)
  • SME-170 When the operator pages back and fewer than 10 earlier transactions exist, should the previous page start from the beginning of the file and fill all 10 rows from the top, rather than leaving the top rows blank? (Product owner)
  • SME-171 How important is the forward paging rule on the transaction list (10 transactions per page, with a check for whether another page follows)? Is it critical to the system's core purpose, or is it a rule that would be costly to get wrong? (Product owner)
  • DEF-014 Is this intended? If the start of the file is reached before ten rows are filled (possible only if transactions were added or removed between screens), the page number is not reduced, the top rows stay blank and the remembered first ID is not updated, so the screen shows a partial page with the old page number. (Subject-matter expert)
  • DEF-050 Is this intended? A filter beyond the last transaction gives a not-found browse that shows 'You are at the top of the page...' and page 0 instead of saying no transaction was found; and a short ID typed without leading zeros is rejected as non-numeric because the 16-character field keeps blanks. (Subject-matter expert)

Design notes

  • Each request to the list starts from a clean screen state: no leftover message, error, end-of-list or next-page flags, and focus on the Tran ID filter. In a modern UI this is just rendering the list view fresh per request rather than carrying flags between requests. Show first transaction page on entry
  • The page needs to keep the IDs of its first and last rows (in the page response or a cursor token) so the next request can page backward from the first ID. A keyset/cursor query on transaction ID does this; offset paging would not match the legacy behaviour. Place first row and record page start
  • The ID of the tenth row is the forward cursor: the next-page query reads transactions with ID greater than it, in ascending ID order, limit 10 (plus one look-ahead row to know whether another page exists). Place last row and record page end
  • The previous-page query reads transactions with ID strictly less than the current page's first ID, in descending order, limit 10 (plus one look-ahead), and reverses them for display, so the current first row is never repeated. Position backward browse before current page
26. Select a transaction from the list to view its detailsfinal · online · 4 requirements · 4 rules · 6 criteria · 2 screens · 1 gap

Lets a signed-on user mark one row of the transaction list with 'S' and open that transaction's details. Only the first marked row, top to bottom, counts. Any code other than 'S' or 's' is rejected with 'Invalid selection. Valid value is S', and no transaction is ever opened when no row is marked.

As a signed-on user, I want to mark a transaction in the list with 'S' and open its details, so that I can look at one transaction closely.

Final: signed off by Sam (acceptance), 2026-11-25 Risk medium; touches card_data. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#26

Requirements

CodeClassRequirementCriteria
REQ-F-220business ruleWhen the user presses Enter on the transaction list, the system shall take the first of the ten rows, top to bottom, whose selection field is not blank, recording that row's selection code and transaction ID (CDEMO-CT00-TRN-SEL-FLG, CDEMO-CT00-TRN-SELECTED) and ignoring any later marked rows.AC-01, AC-02, AC-03
REQ-F-221business ruleWhen the taken row's selection code is 'S' or 's' and the row has a transaction ID, the system shall pass that transaction ID to the Transaction Detail program (COTRN01C) as a fresh entry (context 0), recording the list screen (CT00, COTRN00C) as the caller.AC-04
REQ-F-222business ruleIf the taken row's selection code is anything other than 'S' or 's', then the system shall show the message 'Invalid selection. Valid value is S', place the cursor on the transaction ID search field and redisplay the list.AC-05
REQ-F-223design noteWhen Enter is processed and none of the 10 list rows has a selection code, the system shall clear any remembered selection code and selected transaction ID, so no transaction is opened and the list is redisplayed.AC-06

Business rules

RuleClassText, worked examples and evidence
Capture selection from first list row
rec/group:claude/RULE-113/1
business rule
business, high
WHEN the user presses Enter on the transaction list, THE Transaction List SHALL take the first of the ten rows, top to bottom, whose selection field is not blank, recording that row's selection code and transaction ID (CDEMO-CT00-TRN-SEL-FLG, CDEMO-CT00-TRN-SELECTED) and ignoring any later marked rows.
  • Row 3 selection: S; Row 3 transaction ID: 0000000000000042; Rows 1-2 selection: blank → Row 3 is taken: selection 'S', transaction 0000000000000042
  • Row 2 selection: S; Row 7 selection: S → Only row 2 is taken; row 7 is ignored
  • All row selections: blank → No selection is recorded; the list is refreshed
app/cbl/COTRN00C.cbl:146-181, app/cbl/COTRN00C.cbl:182-204, app/cbl/COTRN00C.cbl:221-225, app/cbl/COTRN00C.cbl:36-37
Open details for selected transaction
rec/group:claude/RULE-113/2
business rule
business, high
WHEN the taken row's selection code is 'S' or 's' and the row has a transaction ID, THE Transaction List SHALL pass that transaction ID to the Transaction Detail program (COTRN01C) as a fresh entry (context 0), recording the list screen (CT00, COTRN00C) as the caller.
  • Row 3 selection: s; Row 3 transaction ID: 0000000000000042 → Transaction Detail (COTRN01C) opens for transaction 0000000000000042
app/cbl/COTRN00C.cbl:146-181, app/cbl/COTRN00C.cbl:182-204, app/cbl/COTRN00C.cbl:221-225, app/cbl/COTRN00C.cbl:36-37
Reject invalid selection code
rec/group:claude/RULE-113/3
business rule
validation, high
WHEN the taken row's selection code is anything other than 'S' or 's', THE Transaction List SHALL show the message 'Invalid selection. Valid value is S', place the cursor on the transaction ID search field and redisplay the list.
  • Row 3 selection: X; Row 3 transaction ID: 0000000000000042 → Message 'Invalid selection. Valid value is S'; the list is shown again
app/cbl/COTRN00C.cbl:146-181, app/cbl/COTRN00C.cbl:182-204, app/cbl/COTRN00C.cbl:221-225, app/cbl/COTRN00C.cbl:36-37
Clear selection when no row chosen
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-2fff8352cb/1
design note
technical, medium
WHEN Enter is processed and none of the 10 list rows has a selection code, THE transaction list SHALL clear any remembered selection code and selected transaction ID, so no transaction is opened and the list is redisplayed.
  • selection column on all rows: blank; key: Enter → No transaction is opened; the selection is cleared and the list is shown again.
app/cbl/COTRN00C.cbl:146-183, app/cbl/COTRN00C.cbl:184-186

Acceptance criteria

IDCriterionChecks
AC-01Given Row 3 selection: S; Row 3 transaction ID: 0000000000000042; Rows 1-2 selection: blank
When the user presses Enter on the transaction list
Then Row 3 is taken: selection 'S', transaction 0000000000000042
REQ-F-220
Capture selection from first list row
worked example 1 of the rule
AC-02Given Row 2 selection: S; Row 7 selection: S
When the user presses Enter on the transaction list
Then Only row 2 is taken; row 7 is ignored
REQ-F-220
Capture selection from first list row
worked example 2 of the rule
AC-03Given All row selections: blank
When the user presses Enter on the transaction list
Then No selection is recorded; the list is refreshed
REQ-F-220
Capture selection from first list row
worked example 3 of the rule
AC-04Given Row 3 selection: s; Row 3 transaction ID: 0000000000000042
When the taken row's selection code is 'S' or 's' and the row has a transaction ID
Then Transaction Detail (COTRN01C) opens for transaction 0000000000000042
REQ-F-221
Open details for selected transaction
worked example 1 of the rule
AC-05Given Row 3 selection: X; Row 3 transaction ID: 0000000000000042
When the taken row's selection code is anything other than 'S' or 's'
Then Message 'Invalid selection. Valid value is S'; the list is shown again
REQ-F-222
Reject invalid selection code
worked example 1 of the rule
AC-06Given selection column on all rows: blank; key: Enter
When Enter is processed and none of the 10 list rows has a selection code
Then No transaction is opened; the selection is cleared and the list is shown again.
REQ-F-223
Clear selection when no row chosen
worked example 1 of the rule

Screens

  • Transactions S-TRANSACTION-LIST · design · replaces COTRN0A (2 kept, 3 dropped, 59 merged)
    • **data table** Transactions checks: Rows open on Enter or click, so there is no selection code to mistype (legacy: 'Invalid selection. Valid value is S'). At the first or last page the previous or next control is disabled and says 'You are already at the top of the page...' / 'You have reached the bottom of the page...'. Empty state: 'No transactions yet. Use Add transaction to record the first one.'
  • Transaction S-TRANSACTION-VIEW · design · replaces COTRN1A (3 kept, 2 dropped, 21 merged)

Data contracts

CVTRA05Y (file record; COTRN00C), COCOM01Y (working storage; COTRN00C), COTTL01Y (working storage; COTRN00C), CSDAT01Y (working storage; COTRN00C), CSMSG01Y (working storage; COTRN00C)

Decision tables

Row selection on Enter

A row has a selection codeSelection code of first marked rowRow has a transaction IDSelection resultRule
No--Clear remembered selection; open nothing; redisplay listrec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-2fff8352cb/1
Yes'S' or 's'YesOpen Transaction Detail (COTRN01C) for that ID as a fresh entryrec/group:claude/RULE-113/2
YesAny other valueAnyShow 'Invalid selection. Valid value is S', cursor on search field, redisplay listrec/group:claude/RULE-113/3
Yes'S' or 's'NoGap: No rule states what happens when 'S' is entered on a row with no transaction ID.

Open questions

  • SME-164 When the operator pages back through the transaction list, the page number is reset to 1 "otherwise". Which situation triggers that reset: when the look-back read failed or the page number is already 1 or less, when no next page is flagged as available, or both? (Business analyst)
  • SME-165 The transaction list only describes how transactions are placed in rows 1 and 10. How should transactions be placed in rows 2 through 9? (Business analyst)
  • SME-166 On the transaction list, how is the next screen chosen when the operator selects a transaction, what should PF3 do, and what should happen when the list is opened without any information from a calling screen? (Application owner)
  • SME-167 When the operator presses PF8 (next page) and no last transaction ID is held, the list currently starts after the highest possible key, which probably shows an empty page. Should the new system keep this behaviour? (Business analyst)
  • DEF-049 Is this intended? When a selection code is typed on a row with no transaction ID, the selection is silently ignored with no message; and when several rows are marked only the first is acted on, also without a message. (Subject-matter expert)

Design notes

  • When Enter is submitted with no row marked, discard any selection kept from an earlier request (selection code and selected transaction ID) and simply redisplay the list. A stale selection must never open a transaction. Clear selection when no row chosen
27. Transaction list access and session handlingfinal · online · 5 requirements · 5 rules · 5 criteria · 3 screens

Keeps the transaction list inside a signed-on session: a user without a session is sent to sign-on, PF3 returns to the main menu, and unsupported keys get 'Invalid key pressed. Please see below...'. Any signed-on user, regular or admin, sees transactions for every account and card in transaction-ID order. That access scope is the legacy behaviour and needs a deliberate decision, not an accidental change.

As the business, I want the transaction list reachable only within a signed-on session, with clear key handling and return to the main menu, so that users move safely through the screens.

Final: signed off by Sam (acceptance), 2026-11-25 Risk high; touches card_data, security. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#27

Requirements

CodeClassRequirementCriteria
REQ-N-008business ruleWhen the transaction list program (COTRN00C) is started without any session data (no commarea), the system shall transfer the user to the sign-on program 'COSGN00C'.AC-01
REQ-N-009business ruleThe system shall show transactions from every account and card in transaction-ID order to any signed-on user, regular or admin, without limiting them to the user's own account or checking user type.AC-02
REQ-F-224business ruleWhen the user presses PF3 on the transaction list, the system shall return the user to the main menu program 'COMEN01C'.AC-03
REQ-F-225business ruleIf the user presses any key other than Enter, PF3, PF7 or PF8 on the transaction list, then the system shall redisplay the screen with the message 'Invalid key pressed. Please see below...' and the cursor on the transaction ID field.AC-04
REQ-N-010design noteThe system shall end every transaction list interaction by waiting for the next user input under transaction 'CT00', keeping the session data (page position, selection, user) for the next screen.AC-05

Business rules

RuleClassText, worked examples and evidence
Transaction list screen navigation and session routing
rec/group:claude/RULE-179/1
business rule
compliance, high
WHEN the transaction list program (COTRN00C) is started without any session data (no commarea), THE transaction list SHALL transfer the user to the sign-on program 'COSGN00C'.
  • session data length: 0 → The user is transferred to sign-on (COSGN00C); no list is shown.
app/cbl/COTRN00C.cbl:95-141, app/cbl/COTRN00C.cbl:510-522, app/cpy/CSMSG01Y.cpy:20-21, app/cpy/COCOM01Y.cpy:29-31
Transaction list visible to any signed-on user (no account scoping)
rec/claude:claude/RULE-228/1
business rule
compliance, medium
THE transaction list SHALL show transactions from every account and card in transaction-ID order to any signed-on user, regular or admin, without limiting them to the user's own account or checking user type.
  • user type: U (regular); user's account: 00000000001 → The list also includes transactions belonging to other accounts and cards.
app/cbl/COTRN00C.cbl:591-600, app/cbl/COTRN00C.cbl:279-325, app/cpy/COMEN02Y.cpy:55-58, app/cbl/COMEN01C.cbl:136-141
Transaction list screen navigation and session routing
rec/group:claude/RULE-179/5
business rule
business, high
WHEN the user presses PF3 on the transaction list, THE transaction list SHALL return the user to the main menu program 'COMEN01C'.
  • key: PF3 → The main menu is displayed.
app/cbl/COTRN00C.cbl:95-141, app/cbl/COTRN00C.cbl:510-522, app/cpy/CSMSG01Y.cpy:20-21, app/cpy/COCOM01Y.cpy:29-31
Reject unsupported key
rec/group:claude/RULE-179/6
business rule
validation, high
WHEN the user presses any key other than Enter, PF3, PF7 or PF8, THE transaction list SHALL redisplay the screen with the message 'Invalid key pressed. Please see below...' and the cursor on the transaction ID field.
  • key: PF5 → Screen redisplayed with 'Invalid key pressed. Please see below...'.
app/cbl/COTRN00C.cbl:95-141, app/cbl/COTRN00C.cbl:510-522, app/cpy/CSMSG01Y.cpy:20-21, app/cpy/COCOM01Y.cpy:29-31
Transaction list screen navigation and session routing
rec/group:claude/RULE-179/7
design note
technical, high
THE transaction list SHALL end every interaction by waiting for the next user input under transaction 'CT00', keeping the session data (page position, selection, user) for the next screen.
  • key: PF8 → After page 2 is shown, the next key press returns to the transaction list with page 2 remembered.
app/cbl/COTRN00C.cbl:95-141, app/cbl/COTRN00C.cbl:510-522, app/cpy/CSMSG01Y.cpy:20-21, app/cpy/COCOM01Y.cpy:29-31

Acceptance criteria

IDCriterionChecks
AC-01Given session data length: 0
When the transaction list program (COTRN00C) is started without any session data (no commarea)
Then The user is transferred to sign-on (COSGN00C); no list is shown.
REQ-N-008
Transaction list screen navigation and session routing
worked example 1 of the rule
AC-02Given user type: U (regular); user's account: 00000000001
When transaction list runs
Then The list also includes transactions belonging to other accounts and cards.
REQ-N-009
Transaction list visible to any signed-on user (no account scoping)
worked example 1 of the rule
AC-03Given key: PF3
When the user presses PF3 on the transaction list
Then The main menu is displayed.
REQ-F-224
Transaction list screen navigation and session routing
worked example 1 of the rule
AC-04Given key: PF5
When the user presses any key other than Enter, PF3, PF7 or PF8
Then Screen redisplayed with 'Invalid key pressed. Please see below...'.
REQ-F-225
Reject unsupported key
worked example 1 of the rule
AC-05Given key: PF8
When transaction list runs
Then After page 2 is shown, the next key press returns to the transaction list with page 2 remembered.
REQ-N-010
Transaction list screen navigation and session routing
worked example 1 of the rule

Screens

  • Transactions S-TRANSACTION-LIST · design · replaces COTRN0A (2 kept, 3 dropped, 59 merged)
    • **data table** Transactions checks: Rows open on Enter or click, so there is no selection code to mistype (legacy: 'Invalid selection. Valid value is S'). At the first or last page the previous or next control is disabled and says 'You are already at the top of the page...' / 'You have reached the bottom of the page...'. Empty state: 'No transactions yet. Use Add transaction to record the first one.'
  • Transaction S-TRANSACTION-VIEW · design · replaces COTRN1A (3 kept, 2 dropped, 21 merged)
  • Application header and navigation S-APP-SHELL · design
    • **summary card** CardDemo
    • **primary button** Transactions

Data contracts

CVTRA05Y (file record; COTRN00C), COCOM01Y (working storage; COTRN00C), COTTL01Y (working storage; COTRN00C), CSDAT01Y (working storage; COTRN00C), CSMSG01Y (working storage; COTRN00C)

Decision tables

Transaction list key handling

Key pressedScreen actionRule
EnterRun search and selectionrec/group:claude/RULE-179/4
PF3Return to main menu 'COMEN01C'rec/group:claude/RULE-179/5
PF7Show the previous pagerec/group:claude/RULE-179/4
PF8Show the next pagerec/group:claude/RULE-179/4
Any other keyRedisplay with 'Invalid key pressed. Please see below...', cursor on transaction ID fieldrec/group:claude/RULE-179/6

Open questions

  • SME-164 When the operator pages back through the transaction list, the page number is reset to 1 "otherwise". Which situation triggers that reset: when the look-back read failed or the page number is already 1 or less, when no next page is flagged as available, or both? (Business analyst)
  • SME-165 The transaction list only describes how transactions are placed in rows 1 and 10. How should transactions be placed in rows 2 through 9? (Business analyst)
  • SME-166 On the transaction list, how is the next screen chosen when the operator selects a transaction, what should PF3 do, and what should happen when the list is opened without any information from a calling screen? (Application owner)
  • SME-167 When the operator presses PF8 (next page) and no last transaction ID is held, the list currently starts after the highest possible key, which probably shows an empty page. Should the new system keep this behaviour? (Business analyst)
  • SME-168 Should any signed-on user, including regular users, be able to list and open every transaction in the system, or should each user see only the transactions for their own account or cards? (Security/compliance officer)
  • DEF-177 Confirm this is deliberate: Any regular user can see all customers' transactions (card-holder data) because the list is not scoped to the user's account. (Subject-matter expert)

Design notes

  • The list needs server-side session state (or a signed cursor carried with each request) that holds the page position (first/last IDs, page number), the current selection and the signed-on user between requests and across the hand-off to the detail screen. No other transaction routing is needed. Transaction list screen navigation and session routing
28. Look up a single transactionfinal · online · 2 requirements · 2 rules · 2 criteria · 2 screens

Opens the transaction view for a signed-on user, already filled in and looked up when a transaction was picked on the list. The user can also type a Transaction ID to look one up. It must never look up a blank ID: it shows 'Tran ID can NOT be empty...' and puts the cursor on the ID field.

As a signed-on user, I want to open the transaction view, with the transaction I picked already filled in, and be told when I leave the ID empty, so that I can see the details of one transaction.

Final: signed off by Sam (acceptance), 2026-11-25 Risk medium; touches card_data. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#28

Requirements

CodeClassRequirementCriteria
REQ-F-226formattingWhile the caller's data is present and the program is not being re-entered, when the transaction view is opened, the system shall reset the screen, position the cursor on the transaction ID entry field, pre-fill the ID and perform the transaction lookup where a transaction was pre-selected on a prior screen (CDEMO-CT01-TRN-SELECTED not spaces or low-values), and then display the transaction view screen.AC-01
REQ-F-227business ruleIf the entered transaction ID (TRNIDINI) is spaces or low-values, then the system shall flag an error, show the message 'Tran ID can NOT be empty...' and redisplay the screen with the cursor on the transaction ID field.AC-02

Business rules

RuleClassText, worked examples and evidence
Show initial screen with preselected transaction
rec/agreed:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-0780422620/1
formatting
display, medium
WHILE the caller's data is present and the program is not being re-entered (`CDEMO-PGM-REENTER` not true), WHEN the transaction view is opened, optionally with a transaction pre-selected on a prior screen (`CDEMO-CT01-TRN-SELECTED` not spaces or low-values), THE Transaction View SHALL reset the screen and position the cursor on the transaction ID entry field; when a transaction was pre-selected, pre-fill its ID and perform the transaction lookup; then display the transaction view screen
  • Opened from: Main menu option 7 'Transaction View'; CDEMO-CT01-TRN-SELECTED: spaces → An empty Transaction View screen is shown with the cursor on the Tran ID field
app/cbl/COTRN01C.cbl:86,88,91-92,94,97-99,101-109, app/cbl/COTRN01C.cbl:94-109
Require non-empty transaction ID
rec/agreed:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-9886fc9972/1
business rule
validation, medium
IF the entered transaction ID (`TRNIDINI`) is spaces or low-values, THEN THE Transaction Lookup Validation SHALL flag an error, show the message 'Tran ID can NOT be empty...' and redisplay the screen with the cursor on the transaction ID field
  • Key pressed: Enter; Tran ID (TRNIDINI): (blank) → The screen is redisplayed with 'Tran ID can NOT be empty...' and the cursor on the Tran ID field; no lookup is done
app/cbl/COTRN01C.cbl:144,146-154,156, app/cbl/COTRN01C.cbl:144-156

Acceptance criteria

IDCriterionChecks
AC-01Given Opened from: Main menu option 7 'Transaction View'; CDEMO-CT01-TRN-SELECTED: spaces
When the caller's data is present and the program is not being re-entered (`CDEMO-PGM-REENTER` not true), WHEN the transaction view is opened, optionally with a transaction pre-selected on a prior screen (`CDEMO-CT01-TRN-SELECTED` not spaces or low-values)
Then An empty Transaction View screen is shown with the cursor on the Tran ID field
REQ-F-226
Show initial screen with preselected transaction
worked example 1 of the rule
AC-02Given Key pressed: Enter; Tran ID (TRNIDINI): (blank)
When the entered transaction ID (`TRNIDINI`) is spaces or low-values
Then The screen is redisplayed with 'Tran ID can NOT be empty...' and the cursor on the Tran ID field; no lookup is done
REQ-F-227
Require non-empty transaction ID
worked example 1 of the rule

Screens

  • Transactions S-TRANSACTION-LIST · design · replaces COTRN0A (2 kept, 3 dropped, 59 merged)
  • Transaction S-TRANSACTION-VIEW · design · replaces COTRN1A (3 kept, 2 dropped, 21 merged)
    • **lookup field** Transaction ID checks: Blank: 'Tran ID can NOT be empty...' - enter a transaction ID. Not found: 'Transaction ID NOT found...' - check the ID or find it in Transactions.

Data contracts

CVTRA05Y (file record; COTRN01C), COCOM01Y (working storage; COTRN01C), COTTL01Y (working storage; COTRN01C), CSDAT01Y (working storage; COTRN01C), CSMSG01Y (working storage; COTRN01C)

Decision tables

None.

Open questions

  • SME-172 The transaction view screen only displays a transaction, but today it reads the record as if for update, which locks it. Is the lock needed, for example to guarantee a consistent read, or should the new system use a plain read with no lock? (Solution architect)
  • SME-173 On the transaction view screen, PF3 and PF5 are accepted as valid keys. What should each one do? (Business analyst)
  • SME-174 What should the transaction view screen do when it is opened without any information from a calling screen? (Business analyst)
  • SME-175 When looking up a transaction fails for a reason other than 'not found', what message should the operator see and what should happen next? (Business analyst)

Design notes

None.

29. View a single transactionfinal · online · 11 requirements · 11 rules · 13 criteria · 3 screens

Shows the full details of one transaction found by its Transaction ID: card, type, category, source, signed amount, description, timestamps and merchant. Cardholders and staff use it to review a charge. It must show the amount with its sign exactly as stored, and say 'Transaction ID NOT found...' or 'Unable to lookup Transaction...' rather than show stale details. PF3 goes back, PF4 clears the screen and PF5 opens the transaction list.

As a cardholder or staff user, I want to look up a transaction by its Transaction ID and see its full details, so that I can review what was charged, where and when.

Final: signed off by Sam (acceptance), 2026-11-25 Risk high; touches card_data, money. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#29

Requirements

CodeClassRequirementCriteria
REQ-F-228business ruleWhen the user presses Enter on the Transaction View screen, the system shall read the entered Transaction ID and look up the transaction.AC-01
REQ-F-229business ruleWhen a Transaction ID is entered and Enter is pressed, or the user arrives from the transaction list with a transaction selected, the system shall clear the previously shown details and look up the transaction record with that ID in the transaction file (TRANSACT).AC-02, AC-03
REQ-F-230business ruleIf the user asks to view a transaction and the Transaction ID is blank, then the system shall not look anything up and shall redisplay the screen with the message 'Tran ID can NOT be empty...'.AC-04
REQ-F-231formattingWhen the transaction is found, the system shall show its transaction ID, card number, type code, category code, source, amount (signed), description, original and processed timestamps, and merchant ID, name, city and ZIP.AC-12
REQ-F-232formattingThe system shall show the transaction amount on the Transaction View with a leading sign, 8 digits before the decimal point and 2 after (format +99999999.99).AC-13
REQ-F-233business ruleIf no transaction exists with the entered ID, then the system shall redisplay the Transaction View with the message 'Transaction ID NOT found...' and the cursor on the Transaction ID field.AC-05
REQ-N-011error handlingIf reading the transaction file fails for any reason other than not found, then the system shall log the response and reason codes and redisplay the Transaction View with the message 'Unable to lookup Transaction...'.AC-06
REQ-F-234business ruleWhen the user presses PF3 on the Transaction View, the system shall return to the program that opened it, or to the main menu (COMEN01C) if no calling program is known.AC-07, AC-08
REQ-F-235formattingWhen the user presses PF4 on the Transaction View, the system shall clear the Transaction ID, all transaction and merchant fields and the message, put the cursor on the Transaction ID field and redisplay the empty screen.AC-09
REQ-F-236business ruleWhen the user presses PF5 on the Transaction View, the system shall go to the transaction list (COTRN00C).AC-10
REQ-F-237business ruleIf the user presses any key other than Enter, PF3, PF4 or PF5 on the Transaction View, then the system shall redisplay the screen with the message 'Invalid key pressed. Please see below...'.AC-11

Business rules

RuleClassText, worked examples and evidence
Look up transaction on Enter
rec/group:claude/RULE-254/1
business rule
business, high
WHEN the user presses Enter on the Transaction View screen, THE Transaction View SHALL read the entered Transaction ID and look up the transaction.
  • Transaction ID: 0000000000000123; Key: Enter → Transaction 0000000000000123 is looked up
app/cbl/COTRN01C.cbl:110-134, app/cbl/COTRN01C.cbl:197-208, app/cbl/COTRN01C.cbl:301-326, app/cpy/CSMSG01Y.cpy:20-21
Read transaction by entered ID
rec/group:claude/RULE-117/2
business rule
business, high
WHEN a Transaction ID is entered and Enter is pressed, or the user arrives from the transaction list with a transaction selected, THE Transaction View SHALL clear the previously shown details and look up the transaction record with that ID in the transaction file (TRANSACT).
  • Transaction ID: 0000000000000123; Key: Enter → Transaction 0000000000000123 is read from the transaction file
  • Selected on transaction list: 0000000000000456 → Transaction 0000000000000456 is looked up and shown as soon as the screen opens
app/cbl/COTRN01C.cbl:144-192, app/cbl/COTRN01C.cbl:267-296, app/cbl/COTRN01C.cbl:99-109, app/cpy/CVTRA05Y.cpy:5-10
Read transaction by entered ID
rec/group:claude/RULE-117/1
business rule
validation, high
WHEN the user asks to view a transaction and the Transaction ID is blank, THE Transaction View SHALL not look anything up and SHALL redisplay the screen with the message 'Tran ID can NOT be empty...'.
  • Transaction ID: (blank); Key: Enter → Screen redisplayed with 'Tran ID can NOT be empty...'; no lookup
app/cbl/COTRN01C.cbl:144-192, app/cbl/COTRN01C.cbl:267-296, app/cbl/COTRN01C.cbl:99-109, app/cpy/CVTRA05Y.cpy:5-10
Display retrieved transaction details
rec/group:claude/RULE-117/3
formatting
display, high
WHEN the transaction is found, THE Transaction View SHALL show its transaction ID, card number, type code, category code, source, amount (signed), description, original and processed timestamps, and merchant ID, name, city and ZIP.
app/cbl/COTRN01C.cbl:144-192, app/cbl/COTRN01C.cbl:267-296, app/cbl/COTRN01C.cbl:99-109, app/cpy/CVTRA05Y.cpy:5-10
Transaction amount displayed as signed value with 8 integer digits
rec/claude:claude/RULE-042/1
formatting
display, medium
THE Transaction View SHALL show the transaction amount with a leading sign, 8 digits before the decimal point and 2 after (format +99999999.99).
app/cbl/COTRN01C.cbl:49, app/cbl/COTRN01C.cbl:177, app/cbl/COTRN01C.cbl:183, app/bms/COTRN01.bms:180-183
Report transaction not found
rec/group:claude/RULE-117/4
business rule
validation, high
WHEN no transaction exists with the entered ID, THE Transaction View SHALL redisplay the screen with the message 'Transaction ID NOT found...' and the cursor on the Transaction ID field.
  • Transaction ID: 9999999999999999; Record exists: no → Message 'Transaction ID NOT found...'
app/cbl/COTRN01C.cbl:144-192, app/cbl/COTRN01C.cbl:267-296, app/cbl/COTRN01C.cbl:99-109, app/cpy/CVTRA05Y.cpy:5-10
Transaction lookup by ID with not-found and failure outcomes
rec/group:claude/RULE-117/5
error handling
error_handling, high
WHEN reading the transaction file fails for any other reason, THE Transaction View SHALL log the response and reason codes and redisplay the screen with the message 'Unable to lookup Transaction...'.
  • Transaction ID: 0000000000000123; File status: file closed or record locked → Message 'Unable to lookup Transaction...'
app/cbl/COTRN01C.cbl:144-192, app/cbl/COTRN01C.cbl:267-296, app/cbl/COTRN01C.cbl:99-109, app/cpy/CVTRA05Y.cpy:5-10
Transaction View screen function-key navigation
rec/group:claude/RULE-254/2
business rule
business, high
WHEN the user presses PF3, THE Transaction View SHALL return to the program that opened it, or to the main menu (COMEN01C) if no calling program is known.
  • Opened from: COTRN00C; Key: PF3 → Returns to the transaction list
  • Opened from: (unknown); Key: PF3 → Goes to the main menu COMEN01C
app/cbl/COTRN01C.cbl:110-134, app/cbl/COTRN01C.cbl:197-208, app/cbl/COTRN01C.cbl:301-326, app/cpy/CSMSG01Y.cpy:20-21
Clear transaction view on PF4
rec/group:claude/RULE-254/3
formatting
display, high
WHEN the user presses PF4, THE Transaction View SHALL clear the Transaction ID, all transaction and merchant fields and the message, put the cursor on the Transaction ID field and redisplay the empty screen.
  • Shown transaction: 0000000000000123; Key: PF4 → Empty screen with cursor on Transaction ID
app/cbl/COTRN01C.cbl:110-134, app/cbl/COTRN01C.cbl:197-208, app/cbl/COTRN01C.cbl:301-326, app/cpy/CSMSG01Y.cpy:20-21
Transaction View screen function-key navigation
rec/group:claude/RULE-254/4
business rule
business, high
WHEN the user presses PF5, THE Transaction View SHALL go to the transaction list (COTRN00C).
  • Key: PF5 → Transaction list screen is shown
app/cbl/COTRN01C.cbl:110-134, app/cbl/COTRN01C.cbl:197-208, app/cbl/COTRN01C.cbl:301-326, app/cpy/CSMSG01Y.cpy:20-21
Reject unsupported key press
rec/group:claude/RULE-254/5
business rule
validation, high
WHEN the user presses any key other than Enter, PF3, PF4 or PF5, THE Transaction View SHALL redisplay the screen with the message 'Invalid key pressed. Please see below...'.
  • Key: PF7 → Message 'Invalid key pressed. Please see below...'
app/cbl/COTRN01C.cbl:110-134, app/cbl/COTRN01C.cbl:197-208, app/cbl/COTRN01C.cbl:301-326, app/cpy/CSMSG01Y.cpy:20-21

Acceptance criteria

IDCriterionChecks
AC-01Given Transaction ID: 0000000000000123; Key: Enter
When the user presses Enter on the Transaction View screen
Then Transaction 0000000000000123 is looked up
REQ-F-228
Look up transaction on Enter
worked example 1 of the rule
AC-02Given Transaction ID: 0000000000000123; Key: Enter
When a Transaction ID is entered and Enter is pressed, or the user arrives from the transaction list with a transaction selected
Then Transaction 0000000000000123 is read from the transaction file
REQ-F-229
Read transaction by entered ID
worked example 1 of the rule
AC-03Given Selected on transaction list: 0000000000000456
When a Transaction ID is entered and Enter is pressed, or the user arrives from the transaction list with a transaction selected
Then Transaction 0000000000000456 is looked up and shown as soon as the screen opens
REQ-F-229
Read transaction by entered ID
worked example 2 of the rule
AC-04Given Transaction ID: (blank); Key: Enter
When the user asks to view a transaction and the Transaction ID is blank
Then Screen redisplayed with 'Tran ID can NOT be empty...'; no lookup
REQ-F-230
Read transaction by entered ID
worked example 1 of the rule
AC-05Given Transaction ID: 9999999999999999; Record exists: no
When no transaction exists with the entered ID
Then Message 'Transaction ID NOT found...'
REQ-F-233
Report transaction not found
worked example 1 of the rule
AC-06Given Transaction ID: 0000000000000123; File status: file closed or record locked
When reading the transaction file fails for any other reason
Then Message 'Unable to lookup Transaction...'
REQ-N-011
Transaction lookup by ID with not-found and failure outcomes
worked example 1 of the rule
AC-07Given Opened from: COTRN00C; Key: PF3
When the user presses PF3
Then Returns to the transaction list
REQ-F-234
Transaction View screen function-key navigation
worked example 1 of the rule
AC-08Given Opened from: (unknown); Key: PF3
When the user presses PF3
Then Goes to the main menu COMEN01C
REQ-F-234
Transaction View screen function-key navigation
worked example 2 of the rule
AC-09Given Shown transaction: 0000000000000123; Key: PF4
When the user presses PF4
Then Empty screen with cursor on Transaction ID
REQ-F-235
Clear transaction view on PF4
worked example 1 of the rule
AC-10Given Key: PF5
When the user presses PF5
Then Transaction list screen is shown
REQ-F-236
Transaction View screen function-key navigation
worked example 1 of the rule
AC-11Given Key: PF7
When the user presses any key other than Enter, PF3, PF4 or PF5
Then Message 'Invalid key pressed. Please see below...'
REQ-F-237
Reject unsupported key press
worked example 1 of the rule
AC-12Given a transaction with ID 0000000000000042 exists on file
When the user enters 0000000000000042 on the Transaction View and presses Enter
Then the screen shows that transaction's ID, card number, type code, category code, source, signed amount, description, original timestamp, processed timestamp, merchant ID, merchant name, merchant city and merchant ZIP, each taken from the stored record
REQ-F-231
Display retrieved transaction details
written from the rule
AC-13Given a transaction with amount 1234.50 and another with amount -75.00
When each is shown on the Transaction View
Then the amounts are displayed as +00001234.50 and -00000075.00 (leading sign, 8 digits before the decimal point, 2 after)
REQ-F-232
Transaction amount displayed as signed value with 8 integer digits
written from the rule

Screens

  • Transactions S-TRANSACTION-LIST · design · replaces COTRN0A (2 kept, 3 dropped, 59 merged)
    • **data table** Transactions checks: Rows open on Enter or click, so there is no selection code to mistype (legacy: 'Invalid selection. Valid value is S'). At the first or last page the previous or next control is disabled and says 'You are already at the top of the page...' / 'You have reached the bottom of the page...'. Empty state: 'No transactions yet. Use Add transaction to record the first one.'
  • Transaction S-TRANSACTION-VIEW · design · replaces COTRN1A (3 kept, 2 dropped, 21 merged)
    • **lookup field** Transaction ID checks: Blank: 'Tran ID can NOT be empty...' - enter a transaction ID. Not found: 'Transaction ID NOT found...' - check the ID or find it in Transactions.
    • **summary card** Transaction
    • **summary card** Merchant
    • **primary button** Back to transactions
  • Application header and navigation S-APP-SHELL · design
    • **primary button** Transactions

Data contracts

CVTRA05Y (file record; COTRN01C), COCOM01Y (working storage; COTRN01C), COTTL01Y (working storage; COTRN01C), CSDAT01Y (working storage; COTRN01C), CSMSG01Y (working storage; COTRN01C)

Decision tables

Transaction View lookup outcome

Transaction IDTransaction file read resultScreen resultRule
blanknot readNo lookup; message 'Tran ID can NOT be empty...'rec/group:claude/RULE-117/1
enteredfoundShow transaction and merchant details with signed amountrec/group:claude/RULE-117/3
enterednot foundMessage 'Transaction ID NOT found...', cursor on Transaction IDrec/group:claude/RULE-117/4
enteredother failureLog response and reason codes; message 'Unable to lookup Transaction...'rec/group:claude/RULE-117/5

Transaction View key handling

Key pressedScreen actionRule
EnterRead entered Transaction ID and look up the transactionrec/group:claude/RULE-254/1
PF3Return to calling program, or main menu COMEN01C if none knownrec/group:claude/RULE-254/2
PF4Clear all fields and message, cursor on Transaction IDrec/group:claude/RULE-254/3
PF5Go to transaction list COTRN00Crec/group:claude/RULE-254/4
any other keyMessage 'Invalid key pressed. Please see below...'rec/group:claude/RULE-254/5

Open questions

  • SME-172 The transaction view screen only displays a transaction, but today it reads the record as if for update, which locks it. Is the lock needed, for example to guarantee a consistent read, or should the new system use a plain read with no lock? (Solution architect)
  • SME-173 On the transaction view screen, PF3 and PF5 are accepted as valid keys. What should each one do? (Business analyst)
  • SME-174 What should the transaction view screen do when it is opened without any information from a calling screen? (Business analyst)
  • SME-175 When looking up a transaction fails for a reason other than 'not found', what message should the operator see and what should happen next? (Business analyst)
  • DEF-051 Is this intended? The view-only lookup reads the transaction with UPDATE, taking an exclusive lock that is never used for a rewrite and is held until the task ends; another user updating the same record at that moment would get an error. (Subject-matter expert)
  • DEF-160 Is this intended? The stored amount holds 9 digits before the decimal point but the display format holds only 8, so an amount of 100,000,000.00 or more would lose its leading digit on screen. (Subject-matter expert)

Design notes

None.

30. Open and navigate the Add Transaction screenfinal · online · 8 requirements · 7 rules · 9 criteria · 3 screens

Opens the Add Transaction form for a signed-on staff user. The form can be pre-filled with a card number passed from another screen, or with the details of the most recent transaction (PF5). PF3 returns to the caller, PF4 clears the form and other keys get 'Invalid key pressed. Please see below...'. Users without a session are sent to sign-on, and nothing is added until the entries pass the checks and are confirmed.

As a staff user, I want to open the Add Transaction screen, pre-filled from a selected or the most recent transaction where useful, and move between screens with function keys, so that I can enter new transactions quickly within a signed-on session.

Final: signed off by Sam (acceptance), 2026-11-25 Risk high; touches card_data, security. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#30

Requirements

CodeClassRequirementCriteria
REQ-N-012business ruleIf the transaction add program is started without any session data, then the system shall send the user to the sign-on program 'COSGN00C'.AC-01
REQ-F-238formattingWhen the transaction add screen is entered for the first time (not a re-entry), the system shall clear the message, show a blank form with the cursor on Account ID, and mark the session so the next input counts as a re-entry.AC-02
REQ-F-239business ruleWhen the transaction add screen is entered for the first time and the caller passed a selected value (CDEMO-CT02-TRN-SELECTED), the system shall put that value in Card Number and process it at once as if Enter were pressed.AC-03
REQ-F-240business ruleWhen the user presses PF3 on the transaction add screen, the system shall return to the program that called it, or to the main menu 'COMEN01C' if no caller is recorded.AC-04, AC-05
REQ-F-241business ruleWhen the user presses Enter on the transaction add screen, the system shall check the entries and add the transaction if confirmed.AC-06, AC-07
REQ-F-242business ruleWhen the user presses PF4 on the transaction add screen, the system shall clear all fields and redisplay the form.AC-06, AC-07
REQ-F-243business ruleWhen the operator presses PF5 to copy data from the last transaction, the system shall validate the keys, retrieve the most recent transaction on file, prefill the form's data fields with its details when no error is flagged, and then process them as for Enter.AC-06, AC-07, AC-08
REQ-F-244business ruleIf the user presses any key other than Enter, PF3, PF4 or PF5 on the transaction add screen, then the system shall show 'Invalid key pressed. Please see below...'.AC-09

Business rules

RuleClassText, worked examples and evidence
Screen entry, pre-selection and navigation
rec/group:claude/RULE-186/1
business rule
compliance, high
WHEN the transaction add program is started without any session data, THE transaction add screen SHALL send the user to the sign-on program 'COSGN00C'.
  • Session data length: 0 → Control passes to 'COSGN00C'
app/cbl/COTRN02C.cbl:107-159, app/cbl/COTRN02C.cbl:471-511, app/cbl/COTRN02C.cbl:754-779, app/cpy/CSMSG01Y.cpy:20-21
Start add-transaction on first entry
rec/group:claude/RULE-186/2
formatting
display, high
WHEN the transaction add screen is entered for the first time (not a re-entry), THE transaction add screen SHALL clear the message, show a blank form with the cursor on Account ID, and mark the session so the next input counts as a re-entry.
  • Entered from: Main menu option 8 'Transaction Add' → A blank add-transaction form is shown with the cursor on Account ID
app/cbl/COTRN02C.cbl:107-159, app/cbl/COTRN02C.cbl:471-511, app/cbl/COTRN02C.cbl:754-779, app/cpy/CSMSG01Y.cpy:20-21
Start add-transaction on first entry
rec/group:claude/RULE-186/3
business rule
business, high
WHEN the screen is entered for the first time and the caller passed a selected value (CDEMO-CT02-TRN-SELECTED), THE transaction add screen SHALL put that value in Card Number and process it at once as if Enter were pressed.
  • Selected value passed: 4111111111111111; Other fields: blank → Card Number shows 4111111111111111 and the checks run; with the other fields blank the screen shows 'Type CD can NOT be empty...'
app/cbl/COTRN02C.cbl:107-159, app/cbl/COTRN02C.cbl:471-511, app/cbl/COTRN02C.cbl:754-779, app/cpy/CSMSG01Y.cpy:20-21
Screen entry, pre-selection and navigation
rec/group:claude/RULE-186/4
business rule
business, high
WHEN the user presses PF3, THE transaction add screen SHALL return to the program that called it, or to the main menu 'COMEN01C' if no caller is recorded.
  • Key: PF3; Calling program: COMEN01C → The main menu is shown
  • Key: PF3; Calling program: blank → Control passes to 'COMEN01C'
app/cbl/COTRN02C.cbl:107-159, app/cbl/COTRN02C.cbl:471-511, app/cbl/COTRN02C.cbl:754-779, app/cpy/CSMSG01Y.cpy:20-21
Screen entry, pre-selection and navigation
rec/group:claude/RULE-186/5
business rule
business, high
WHEN the user presses Enter, THE transaction add screen SHALL check the entries and add the transaction if confirmed; WHEN the user presses PF4, it SHALL clear all fields and redisplay the form; WHEN the user presses PF5, it SHALL fill the data fields from the most recent transaction on file and then process them as for Enter.
  • Key: PF4 → All fields are blanked and the form is shown again
  • Key: PF5; Card Number: 4111111111111111 → Type, category, source, amount, description, dates and merchant details are copied from the last transaction on file and checked
app/cbl/COTRN02C.cbl:107-159, app/cbl/COTRN02C.cbl:471-511, app/cbl/COTRN02C.cbl:754-779, app/cpy/CSMSG01Y.cpy:20-21
Copy last transaction into form
rec/agreed:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-7cd2d48194/1
business rule
business, medium
WHEN the operator requests to copy data from the last transaction, THE Transaction Data Copy SHALL validate the keys, retrieve the most recent transaction, prefill the form with its details when no error is flagged, and process the entry
  • Account ID: blank; Card Number: blank; Key pressed: PF5 → The message 'Account or Card Number must be entered...' is shown.
app/cbl/COTRN02C.cbl:471,473,475-478,480-493,495, app/cbl/COTRN02C.cbl:471-495
Screen entry, pre-selection and navigation
rec/group:claude/RULE-186/6
business rule
validation, high
WHEN the user presses any key other than Enter, PF3, PF4 or PF5, THE transaction add screen SHALL show 'Invalid key pressed. Please see below...'.
  • Key: PF7 → The screen shows 'Invalid key pressed. Please see below...'
app/cbl/COTRN02C.cbl:107-159, app/cbl/COTRN02C.cbl:471-511, app/cbl/COTRN02C.cbl:754-779, app/cpy/CSMSG01Y.cpy:20-21

Acceptance criteria

IDCriterionChecks
AC-01Given Session data length: 0
When the transaction add program is started without any session data
Then Control passes to 'COSGN00C'
REQ-N-012
Screen entry, pre-selection and navigation
worked example 1 of the rule
AC-02Given Entered from: Main menu option 8 'Transaction Add'
When the transaction add screen is entered for the first time (not a re-entry)
Then A blank add-transaction form is shown with the cursor on Account ID
REQ-F-238
Start add-transaction on first entry
worked example 1 of the rule
AC-03Given Selected value passed: 4111111111111111; Other fields: blank
When the screen is entered for the first time and the caller passed a selected value (CDEMO-CT02-TRN-SELECTED)
Then Card Number shows 4111111111111111 and the checks run; with the other fields blank the screen shows 'Type CD can NOT be empty...'
REQ-F-239
Start add-transaction on first entry
worked example 1 of the rule
AC-04Given Key: PF3; Calling program: COMEN01C
When the user presses PF3
Then The main menu is shown
REQ-F-240
Screen entry, pre-selection and navigation
worked example 1 of the rule
AC-05Given Key: PF3; Calling program: blank
When the user presses PF3
Then Control passes to 'COMEN01C'
REQ-F-240
Screen entry, pre-selection and navigation
worked example 2 of the rule
AC-06Given Key: PF4
When the user presses Enter
Then All fields are blanked and the form is shown again
REQ-F-241, REQ-F-242, REQ-F-243
Screen entry, pre-selection and navigation
worked example 1 of the rule
AC-07Given Key: PF5; Card Number: 4111111111111111
When the user presses Enter
Then Type, category, source, amount, description, dates and merchant details are copied from the last transaction on file and checked
REQ-F-241, REQ-F-242, REQ-F-243
Screen entry, pre-selection and navigation
worked example 2 of the rule
AC-08Given Account ID: blank; Card Number: blank; Key pressed: PF5
When the operator requests to copy data from the last transaction
Then The message 'Account or Card Number must be entered...' is shown.
REQ-F-243
Copy last transaction into form
worked example 1 of the rule
AC-09Given Key: PF7
When the user presses any key other than Enter, PF3, PF4 or PF5
Then The screen shows 'Invalid key pressed. Please see below...'
REQ-F-244
Screen entry, pre-selection and navigation
worked example 1 of the rule

Screens

  • Transactions S-TRANSACTION-LIST · design · replaces COTRN0A (2 kept, 3 dropped, 59 merged)
  • Add transaction S-TRANSACTION-ADD · design · replaces COTRN2A (1 kept, 3 dropped, 22 merged)
    • **lookup field** Account or card number checks: Blank: 'Account or Card Number must be entered...'. Not digits: 'Account ID must be Numeric...' / 'Card Number must be Numeric...'. Not in the card cross-reference: 'Account ID NOT found...' / 'Card Number NOT found...' - check the number with the caller.
    • **summary card** Transaction details checks: Each is required, in the rule's words: 'Type CD can NOT be empty...', 'Category CD can NOT be empty...', 'Source can NOT be empty...', 'Description can NOT be empty...', 'Amount can NOT be empty...', 'Orig Date can NOT be empty...', 'Proc Date can NOT be empty...'. 'Type CD must be Numeric...', 'Category CD must be Numeric...'. 'Amount should be in format -99999999.99'. 'Orig Date should be in format YYYY-MM-DD', 'Proc Date should be in format YYYY-MM-DD', and 'Orig Date - Not a valid date...' / 'Proc Date - Not a valid date...' for a date not on the calendar. Every failing field shows its message under it.
    • **primary button** Add transaction checks: The dialog offers only Add or Cancel, replacing the typed confirmation and its messages 'Confirm to add this transaction...' and 'Invalid value. Valid values are (Y/N)...'. If the ID already exists: 'Tran ID already exist...'; other failures: 'Unable to Add Transaction...'.
  • Application header and navigation S-APP-SHELL · design
    • **summary card** CardDemo
    • **primary button** Add transaction

Data contracts

CVACT03Y (file record; COTRN02C), CVTRA05Y (file record; COTRN02C), COCOM01Y (working storage; COTRN02C), COTTL01Y (working storage; COTRN02C), CSDAT01Y (working storage; COTRN02C), CSMSG01Y (working storage; COTRN02C), CVACT01Y (working storage; COTRN02C)

Decision tables

Add Transaction key handling

Key pressedScreen actionRule
EnterCheck entries and add the transaction if confirmedrec/group:claude/RULE-186/5
PF3Return to calling program, or main menu COMEN01C if none recordedrec/group:claude/RULE-186/4
PF4Clear all fields and redisplay the formrec/group:claude/RULE-186/5
PF5Fill data fields from the most recent transaction, then process as for Enterrec/group:claude/RULE-186/5
any other keyMessage 'Invalid key pressed. Please see below...'rec/group:claude/RULE-186/6

Open questions

  • SME-180 When the add-transaction screen first opens, a pre-selected value is placed in the Card Number field, but the field's name suggests it holds a transaction ID. Is that value meant to be a card number? (Legacy application SME)
  • SME-181 When the operator presses PF5 to copy the last transaction as a template, should it copy the last transaction for the selected card or account instead of the last transaction in the whole file? (Product owner)
  • DEF-080 Is this intended? The pre-fill uses a field named for a selected transaction as a card number, no program in the source sets it, and because the rest of the form is blank, processing it at once always ends with 'Type CD can NOT be empty...'. (Subject-matter expert)

Design notes

None.

31. Identify the account and card for a new transactionfinal · online · 10 requirements · 10 rules · 13 criteria · 2 screens

Finds the account and card for a new transaction from either the account ID or the card number, using the card cross-reference. When an account ID is given, the card linked to it replaces any typed card number. The capability must never record a transaction against an account or card that is not in the cross-reference. Each failure has its exact message, for example 'Account ID NOT found...' or 'Card Number must be Numeric...'.

As a staff user, I want the system to find the account and card for a new transaction from either the account ID or the card number, so that the transaction is recorded against the right card.

Final: signed off by Sam (acceptance), 2026-11-25 Risk medium; touches card_data. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#31

Requirements

CodeClassRequirementCriteria
REQ-F-245business ruleWhen the operator presses Enter or PF5 on the Add Transaction screen, or opens it with a transaction already selected from the transaction list, the system shall first identify the account and card for the new transaction using the account ID and card number fields.AC-01, AC-02
REQ-F-246business ruleIf both the account ID and the card number are blank, then the system shall show 'Account or Card Number must be entered...', put the cursor on the account ID and save nothing.AC-03
REQ-F-247business ruleIf an account ID is entered and it is not all digits, then the system shall reject the entry, show 'Account ID must be Numeric...', put the cursor on the account ID and save nothing.AC-04, AC-05
REQ-F-248business ruleWhen a numeric account ID is entered, the system shall look the account up in the card cross-reference by account (CXACAIX) and fill the card number with the card linked to it, replacing any card number the operator typed.AC-06, AC-07
REQ-F-249business ruleIf the entered account ID is not in the card cross-reference, then the system shall show 'Account ID NOT found...', put the cursor on the account ID and save nothing.AC-08
REQ-N-013error handlingIf looking up the account in the card cross-reference fails for any reason other than not found, then the system shall write the response codes to the system log, show 'Unable to lookup Acct in XREF AIX file...' and save nothing.AC-09
REQ-F-250business ruleIf the account ID is blank and a card number is entered that is not all digits, then the system shall reject the entry, show 'Card Number must be Numeric...', put the cursor on the card number and save nothing.AC-10
REQ-F-251business ruleWhen the account ID is blank and a numeric card number is entered, the system shall look the card up in the card cross-reference (CCXREF) and fill the account ID with the account linked to that card.AC-11
REQ-F-252business ruleIf the entered card number is not in the card cross-reference, then the system shall show 'Card Number NOT found...', put the cursor on the card number and save nothing.AC-12
REQ-N-014error handlingIf looking up the card in the card cross-reference fails for any reason other than not found, then the system shall write the response codes to the system log, show 'Unable to lookup Card # in XREF file...' and save nothing.AC-13

Business rules

RuleClassText, worked examples and evidence
Resolve the card and account for a new transaction (account ID takes precedence)
rec/group:claude/RULE-118/1
business rule
business, high
WHEN the operator presses Enter or PF5 on the Add Transaction screen, or opens it with a transaction already selected from the transaction list, THE Add Transaction screen SHALL first identify the account and card for the new transaction using the account ID and card number fields.
  • Key pressed: PF5; Account ID: 00000000001 → The account is checked and its card filled in before the last transaction's details are copied
  • Key pressed: Enter; Account ID: (blank); Card Number: 4111111111111111 → The card is checked and its account filled in before the other fields are validated
app/cbl/COTRN02C.cbl:193-230, app/cbl/COTRN02C.cbl:576-604, app/cbl/COTRN02C.cbl:609-637, app/cbl/COTRN02C.cbl:516-534, app/cbl/COTRN02C.cbl:164-166, app/cbl/COTRN02C.cbl:471-473
Require account or card number
rec/group:claude/RULE-118/10
business rule
validation, high
WHEN both the account ID and the card number are blank, THE Add Transaction screen SHALL show 'Account or Card Number must be entered...', put the cursor on the account ID and save nothing.
  • Account ID: (blank); Card Number: (blank) → 'Account or Card Number must be entered...' is shown and no transaction is added
app/cbl/COTRN02C.cbl:193-230, app/cbl/COTRN02C.cbl:576-604, app/cbl/COTRN02C.cbl:609-637, app/cbl/COTRN02C.cbl:516-534, app/cbl/COTRN02C.cbl:164-166, app/cbl/COTRN02C.cbl:471-473
Reject non-numeric account identifier
rec/group:claude/RULE-118/2
business rule
validation, high
WHEN an account ID is entered and it is not all digits, THE Add Transaction screen SHALL reject the entry, show 'Account ID must be Numeric...', put the cursor on the account ID and save nothing.
  • Account ID: 12AB5678901 → 'Account ID must be Numeric...' is shown and no transaction is added
  • Account ID: 123 (only 3 of 11 positions filled) → 'Account ID must be Numeric...' is shown, because the unfilled positions are not digits
app/cbl/COTRN02C.cbl:193-230, app/cbl/COTRN02C.cbl:576-604, app/cbl/COTRN02C.cbl:609-637, app/cbl/COTRN02C.cbl:516-534, app/cbl/COTRN02C.cbl:164-166, app/cbl/COTRN02C.cbl:471-473
Derive card number from account
rec/group:claude/RULE-118/3
business rule
business, high
WHEN a numeric account ID is entered, THE Add Transaction screen SHALL look the account up in the card cross-reference by account (CXACAIX) and fill the card number with the card linked to it, replacing any card number the operator typed.
  • Account ID: 00000000001; Card Number: (blank); Card linked to account: 4111111111111111 → Card Number is filled with 4111111111111111
  • Account ID: 00000000001; Card Number: 4222222222222222; Card linked to account: 4111111111111111 → Card Number is replaced with 4111111111111111; the typed card is ignored
app/cbl/COTRN02C.cbl:193-230, app/cbl/COTRN02C.cbl:576-604, app/cbl/COTRN02C.cbl:609-637, app/cbl/COTRN02C.cbl:516-534, app/cbl/COTRN02C.cbl:164-166, app/cbl/COTRN02C.cbl:471-473
Look up account in card index
rec/group:claude/RULE-118/4
business rule
validation, high
WHEN the entered account ID is not in the card cross-reference, THE Add Transaction screen SHALL show 'Account ID NOT found...', put the cursor on the account ID and save nothing.
  • Account ID: 99999999999; Account in cross-reference: no → 'Account ID NOT found...' is shown and no transaction is added
app/cbl/COTRN02C.cbl:193-230, app/cbl/COTRN02C.cbl:576-604, app/cbl/COTRN02C.cbl:609-637, app/cbl/COTRN02C.cbl:516-534, app/cbl/COTRN02C.cbl:164-166, app/cbl/COTRN02C.cbl:471-473
Look up account in card index
rec/group:claude/RULE-118/5
error handling
error_handling, high
WHEN looking up the account in the card cross-reference fails for any reason other than not found, THE Add Transaction screen SHALL write the response codes to the system log, show 'Unable to lookup Acct in XREF AIX file...' and save nothing.
  • Account ID: 00000000001; Cross-reference by account: unavailable (file closed) → 'Unable to lookup Acct in XREF AIX file...' is shown and no transaction is added
app/cbl/COTRN02C.cbl:193-230, app/cbl/COTRN02C.cbl:576-604, app/cbl/COTRN02C.cbl:609-637, app/cbl/COTRN02C.cbl:516-534, app/cbl/COTRN02C.cbl:164-166, app/cbl/COTRN02C.cbl:471-473
Reject non-numeric card number
rec/group:claude/RULE-118/6
business rule
validation, high
WHEN the account ID is blank and a card number is entered that is not all digits, THE Add Transaction screen SHALL reject the entry, show 'Card Number must be Numeric...', put the cursor on the card number and save nothing.
  • Account ID: (blank); Card Number: 4111-1111-1111 → 'Card Number must be Numeric...' is shown and no transaction is added
app/cbl/COTRN02C.cbl:193-230, app/cbl/COTRN02C.cbl:576-604, app/cbl/COTRN02C.cbl:609-637, app/cbl/COTRN02C.cbl:516-534, app/cbl/COTRN02C.cbl:164-166, app/cbl/COTRN02C.cbl:471-473
Derive account from card number
rec/group:claude/RULE-118/7
business rule
business, high
WHEN the account ID is blank and a numeric card number is entered, THE Add Transaction screen SHALL look the card up in the card cross-reference (CCXREF) and fill the account ID with the account linked to that card.
  • Account ID: (blank); Card Number: 4111111111111111; Account linked to card: 00000000001 → Account ID is filled with 00000000001
app/cbl/COTRN02C.cbl:193-230, app/cbl/COTRN02C.cbl:576-604, app/cbl/COTRN02C.cbl:609-637, app/cbl/COTRN02C.cbl:516-534, app/cbl/COTRN02C.cbl:164-166, app/cbl/COTRN02C.cbl:471-473
Look up card in cross-reference
rec/group:claude/RULE-118/8
business rule
validation, high
WHEN the entered card number is not in the card cross-reference, THE Add Transaction screen SHALL show 'Card Number NOT found...', put the cursor on the card number and save nothing.
  • Account ID: (blank); Card Number: 4000000000000000; Card in cross-reference: no → 'Card Number NOT found...' is shown and no transaction is added
app/cbl/COTRN02C.cbl:193-230, app/cbl/COTRN02C.cbl:576-604, app/cbl/COTRN02C.cbl:609-637, app/cbl/COTRN02C.cbl:516-534, app/cbl/COTRN02C.cbl:164-166, app/cbl/COTRN02C.cbl:471-473
Look up card in cross-reference
rec/group:claude/RULE-118/9
error handling
error_handling, high
WHEN looking up the card in the card cross-reference fails for any reason other than not found, THE Add Transaction screen SHALL write the response codes to the system log, show 'Unable to lookup Card # in XREF file...' and save nothing.
  • Card Number: 4111111111111111; Card cross-reference: unavailable (file closed) → 'Unable to lookup Card # in XREF file...' is shown and no transaction is added
app/cbl/COTRN02C.cbl:193-230, app/cbl/COTRN02C.cbl:576-604, app/cbl/COTRN02C.cbl:609-637, app/cbl/COTRN02C.cbl:516-534, app/cbl/COTRN02C.cbl:164-166, app/cbl/COTRN02C.cbl:471-473

Acceptance criteria

IDCriterionChecks
AC-01Given Key pressed: PF5; Account ID: 00000000001
When the operator presses Enter or PF5 on the Add Transaction screen, or opens it with a transaction already selected from the transaction list
Then The account is checked and its card filled in before the last transaction's details are copied
REQ-F-245
Resolve the card and account for a new transaction (account ID takes precedence)
worked example 1 of the rule
AC-02Given Key pressed: Enter; Account ID: (blank); Card Number: 4111111111111111
When the operator presses Enter or PF5 on the Add Transaction screen, or opens it with a transaction already selected from the transaction list
Then The card is checked and its account filled in before the other fields are validated
REQ-F-245
Resolve the card and account for a new transaction (account ID takes precedence)
worked example 2 of the rule
AC-03Given Account ID: (blank); Card Number: (blank)
When both the account ID and the card number are blank
Then 'Account or Card Number must be entered...' is shown and no transaction is added
REQ-F-246
Require account or card number
worked example 1 of the rule
AC-04Given Account ID: 12AB5678901
When an account ID is entered and it is not all digits
Then 'Account ID must be Numeric...' is shown and no transaction is added
REQ-F-247
Reject non-numeric account identifier
worked example 1 of the rule
AC-05Given Account ID: 123 (only 3 of 11 positions filled)
When an account ID is entered and it is not all digits
Then 'Account ID must be Numeric...' is shown, because the unfilled positions are not digits
REQ-F-247
Reject non-numeric account identifier
worked example 2 of the rule
AC-06Given Account ID: 00000000001; Card Number: (blank); Card linked to account: 4111111111111111
When a numeric account ID is entered
Then Card Number is filled with 4111111111111111
REQ-F-248
Derive card number from account
worked example 1 of the rule
AC-07Given Account ID: 00000000001; Card Number: 4222222222222222; Card linked to account: 4111111111111111
When a numeric account ID is entered
Then Card Number is replaced with 4111111111111111; the typed card is ignored
REQ-F-248
Derive card number from account
worked example 2 of the rule
AC-08Given Account ID: 99999999999; Account in cross-reference: no
When the entered account ID is not in the card cross-reference
Then 'Account ID NOT found...' is shown and no transaction is added
REQ-F-249
Look up account in card index
worked example 1 of the rule
AC-09Given Account ID: 00000000001; Cross-reference by account: unavailable (file closed)
When looking up the account in the card cross-reference fails for any reason other than not found
Then 'Unable to lookup Acct in XREF AIX file...' is shown and no transaction is added
REQ-N-013
Look up account in card index
worked example 1 of the rule
AC-10Given Account ID: (blank); Card Number: 4111-1111-1111
When the account ID is blank and a card number is entered that is not all digits
Then 'Card Number must be Numeric...' is shown and no transaction is added
REQ-F-250
Reject non-numeric card number
worked example 1 of the rule
AC-11Given Account ID: (blank); Card Number: 4111111111111111; Account linked to card: 00000000001
When the account ID is blank and a numeric card number is entered
Then Account ID is filled with 00000000001
REQ-F-251
Derive account from card number
worked example 1 of the rule
AC-12Given Account ID: (blank); Card Number: 4000000000000000; Card in cross-reference: no
When the entered card number is not in the card cross-reference
Then 'Card Number NOT found...' is shown and no transaction is added
REQ-F-252
Look up card in cross-reference
worked example 1 of the rule
AC-13Given Card Number: 4111111111111111; Card cross-reference: unavailable (file closed)
When looking up the card in the card cross-reference fails for any reason other than not found
Then 'Unable to lookup Card # in XREF file...' is shown and no transaction is added
REQ-N-014
Look up card in cross-reference
worked example 1 of the rule

Screens

  • Transactions S-TRANSACTION-LIST · design · replaces COTRN0A (2 kept, 3 dropped, 59 merged)
  • Add transaction S-TRANSACTION-ADD · design · replaces COTRN2A (1 kept, 3 dropped, 22 merged)
    • **lookup field** Account or card number checks: Blank: 'Account or Card Number must be entered...'. Not digits: 'Account ID must be Numeric...' / 'Card Number must be Numeric...'. Not in the card cross-reference: 'Account ID NOT found...' / 'Card Number NOT found...' - check the number with the caller.

Data contracts

CVACT03Y (file record; COTRN02C), CVTRA05Y (file record; COTRN02C), COCOM01Y (working storage; COTRN02C), COTTL01Y (working storage; COTRN02C), CSDAT01Y (working storage; COTRN02C), CSMSG01Y (working storage; COTRN02C), CVACT01Y (working storage; COTRN02C)

Decision tables

Account and card resolution

Account IDCard numberCross-reference lookup resultResultRule
blankblanknot looked upMessage 'Account or Card Number must be entered...', cursor on account ID, save nothingrec/group:claude/RULE-118/10
entered, not all digitsanynot looked upMessage 'Account ID must be Numeric...', cursor on account ID, save nothingrec/group:claude/RULE-118/2
numericanyaccount found (CXACAIX)Card number filled with linked card, replacing any typed card numberrec/group:claude/RULE-118/3
numericanyaccount not foundMessage 'Account ID NOT found...', cursor on account ID, save nothingrec/group:claude/RULE-118/4
numericanyother lookup failureLog response codes; message 'Unable to lookup Acct in XREF AIX file...', save nothingrec/group:claude/RULE-118/5
blankentered, not all digitsnot looked upMessage 'Card Number must be Numeric...', cursor on card number, save nothingrec/group:claude/RULE-118/6
blanknumericcard found (CCXREF)Account ID filled with account linked to the cardrec/group:claude/RULE-118/7
blanknumericcard not foundMessage 'Card Number NOT found...', cursor on card number, save nothingrec/group:claude/RULE-118/8
blanknumericother lookup failureLog response codes; message 'Unable to lookup Card # in XREF file...', save nothingrec/group:claude/RULE-118/9

Open questions

  • DEF-052 Is this intended? When an account ID is entered, the card number the operator typed is overwritten without any check that it belongs to that account. If the account has several cards, the transaction goes to whichever card the account index returns first. Also, the account (11) and card (16) input fields are not justified or zero-filled, so a shorter entry fails the all-digits check, and the NUMVAL conversion that follows can never change the value. (Subject-matter expert)

Design notes

None.

32. Validate new transaction detailsfinal · online · 24 requirements · 24 rules · 30 criteria · 2 screens · 2 gaps

Checks every field of a new transaction in a fixed order: the eleven mandatory fields, numeric type and category codes, the amount format -99999999.99, real YYYY-MM-DD origination and processing dates, and a numeric merchant ID. It stops at the first problem and shows only that field's message. Nothing may be saved while any check fails.

As a staff user, I want every new transaction's fields checked for presence, numeric codes, amount format and real dates, with one clear message for the first problem, so that only complete and well-formed transactions are recorded.

Final: signed off by Sam (acceptance), 2026-11-25 Risk high; touches card_data, money. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#32

Requirements

CodeClassRequirementCriteria
REQ-F-253business ruleWhen Enter is pressed on the Add Transaction screen and the account or card number has passed its checks, the system shall check the transaction fields for blanks in this order: Type CD, Category CD, Source, Description, Amount, Orig Date, Proc Date, Merchant ID, Merchant Name, Merchant City, Merchant Zip, and report only the first blank field.AC-01
REQ-F-254business ruleIf a mandatory transaction field is blank (spaces or low-values), then the system shall show that field's message, put the cursor on that field, redisplay the screen and save nothing.AC-02
REQ-F-255business ruleIf the transaction type code is blank, then the system shall show 'Type CD can NOT be empty...' with the cursor on the type code (TTYPCDI).AC-03
REQ-F-256business ruleIf the type code is entered and the category code is blank, then the system shall show 'Category CD can NOT be empty...' with the cursor on the category code (TCATCDI).AC-04
REQ-F-257business ruleIf the type and category codes are entered and the source is blank, then the system shall show 'Source can NOT be empty...' with the cursor on the source (TRNSRCI).AC-05
REQ-F-258business ruleIf type, category and source are entered and the description is blank, then the system shall show 'Description can NOT be empty...' with the cursor on the description (TDESCI).AC-06
REQ-F-259business ruleIf type, category, source and description are entered and the amount is blank, then the system shall show 'Amount can NOT be empty...' with the cursor on the amount (TRNAMTI).AC-07
REQ-F-260business ruleIf all fields up to the amount are entered and the origination date is blank, then the system shall show 'Orig Date can NOT be empty...' with the cursor on the origination date (TORIGDTI).AC-08
REQ-F-261business ruleIf all fields up to the origination date are entered and the processing date is blank, then the system shall show 'Proc Date can NOT be empty...' with the cursor on the processing date (TPROCDTI).AC-09
REQ-F-262business ruleIf all fields up to the processing date are entered and the merchant ID is blank, then the system shall show 'Merchant ID can NOT be empty...' with the cursor on the merchant ID (MIDI).AC-10
REQ-F-263business ruleIf all fields up to the merchant ID are entered and the merchant name is blank, then the system shall show 'Merchant Name can NOT be empty...' with the cursor on the merchant name (MNAMEI).AC-11
REQ-F-264business ruleIf all fields up to the merchant name are entered and the merchant city is blank, then the system shall show 'Merchant City can NOT be empty...' with the cursor on the merchant city (MCITYI).AC-12
REQ-F-265business ruleIf all fields up to the merchant city are entered and the merchant zip is blank, then the system shall show 'Merchant Zip can NOT be empty...' with the cursor on the merchant zip (MZIPI).AC-13
REQ-F-266business ruleWhen all eleven mandatory transaction fields are entered, the system shall pass the blank check and go on to the numeric and format checks.AC-14
REQ-F-267business ruleIf the transaction type code is not numeric, then the system shall show 'Type CD must be Numeric...' with the cursor on the type code and save nothing.AC-15
REQ-F-268business ruleIf the type code is numeric and the category code is not numeric, then the system shall show 'Category CD must be Numeric...' with the cursor on the category code and save nothing.AC-16
REQ-F-269business ruleIf the amount entered does not start with '-' or '+', followed by eight digits, a '.', and two digits, then the system shall reject it with 'Amount should be in format -99999999.99' and save nothing.AC-17, AC-18
REQ-F-270design noteWhen the amount passes the format check, the system shall convert it to a signed number with two decimals, show it back in the form +99999999.99, and store that value as the transaction amount when the transaction is added.AC-19, AC-20
REQ-F-271business ruleIf the origination date is not in the form YYYY-MM-DD (four digits, '-', two digits, '-', two digits), then the system shall reject the entry, show 'Orig Date should be in format YYYY-MM-DD' and save nothing.AC-21, AC-22
REQ-F-272business ruleIf the processing date is not in the form YYYY-MM-DD, then the system shall reject the entry, show 'Proc Date should be in format YYYY-MM-DD' and save nothing.AC-23
REQ-F-273business ruleIf the origination date has the right form but the date-check service (CSUTLDTC) does not confirm it as a real calendar date (severity not '0000' and message number not '2513'), then the system shall show 'Orig Date - Not a valid date...' and save nothing.AC-24, AC-25
REQ-F-274business ruleIf the origination date is accepted but the date-check service (CSUTLDTC) does not confirm the processing date as a real calendar date (severity not '0000' and message number not '2513'), then the system shall show 'Proc Date - Not a valid date...' and save nothing.AC-26
REQ-F-275business ruleIf all earlier checks pass and the Merchant ID is not entirely digits across its 9 positions, then the system shall reject the entry, show 'Merchant ID must be Numeric...' and put the cursor on Merchant ID.AC-27, AC-28, AC-29
REQ-F-276business ruleThe system shall stop the Transaction Add checks at the first failed check and show only that message, so a later check is made only after every earlier check has passed.AC-30

Business rules

RuleClassText, worked examples and evidence
Mandatory transaction fields and numeric code checks
rec/group:claude/RULE-119/1
business rule
validation, high
WHEN Enter is pressed on the Add Transaction screen and the account or card number has passed its checks, THE Transaction Add screen SHALL check the transaction fields for blanks in this order: Type CD, Category CD, Source, Description, Amount, Orig Date, Proc Date, Merchant ID, Merchant Name, Merchant City, Merchant Zip, and report only the first blank field.
  • Type CD: blank; Merchant Zip: blank → Only 'Type CD can NOT be empty...' is shown
app/cbl/COTRN02C.cbl:163-166, app/cbl/COTRN02C.cbl:250-320, app/cbl/COTRN02C.cbl:322-337, app/cbl/COTRN02C.cbl:516-534
Mandatory transaction fields and numeric code checks
rec/group:claude/RULE-119/2
business rule
validation, high
WHEN a mandatory transaction field is blank (spaces or low-values), THE Transaction Add screen SHALL show that field's message, put the cursor on that field, redisplay the screen and save nothing.
  • Type CD: 01; Category CD: blank; all other fields: filled in → 'Category CD can NOT be empty...' is shown, the cursor is on Category CD, and no transaction is added
app/cbl/COTRN02C.cbl:163-166, app/cbl/COTRN02C.cbl:250-320, app/cbl/COTRN02C.cbl:322-337, app/cbl/COTRN02C.cbl:516-534
Reject missing transaction type code
rec/group:claude/RULE-119/3
business rule
validation, high
WHEN the transaction type code is blank, THE Transaction Add screen SHALL show 'Type CD can NOT be empty...' with the cursor on the type code (TTYPCDI).
  • Type CD: blank → 'Type CD can NOT be empty...'
app/cbl/COTRN02C.cbl:163-166, app/cbl/COTRN02C.cbl:250-320, app/cbl/COTRN02C.cbl:322-337, app/cbl/COTRN02C.cbl:516-534
Reject missing transaction category code
rec/group:claude/RULE-119/4
business rule
validation, high
WHEN the type code is entered and the category code is blank, THE Transaction Add screen SHALL show 'Category CD can NOT be empty...' with the cursor on the category code (TCATCDI).
  • Type CD: 01; Category CD: blank → 'Category CD can NOT be empty...'
app/cbl/COTRN02C.cbl:163-166, app/cbl/COTRN02C.cbl:250-320, app/cbl/COTRN02C.cbl:322-337, app/cbl/COTRN02C.cbl:516-534
Reject missing transaction source
rec/group:claude/RULE-119/5
business rule
validation, high
WHEN the type and category codes are entered and the source is blank, THE Transaction Add screen SHALL show 'Source can NOT be empty...' with the cursor on the source (TRNSRCI).
  • Type CD: 01; Category CD: 0001; Source: blank → 'Source can NOT be empty...'
app/cbl/COTRN02C.cbl:163-166, app/cbl/COTRN02C.cbl:250-320, app/cbl/COTRN02C.cbl:322-337, app/cbl/COTRN02C.cbl:516-534
Reject missing transaction description
rec/group:claude/RULE-119/6
business rule
validation, high
WHEN type, category and source are entered and the description is blank, THE Transaction Add screen SHALL show 'Description can NOT be empty...' with the cursor on the description (TDESCI).
  • Source: POS TERM; Description: blank; Amount: blank → 'Description can NOT be empty...' (Description is checked before Amount)
app/cbl/COTRN02C.cbl:163-166, app/cbl/COTRN02C.cbl:250-320, app/cbl/COTRN02C.cbl:322-337, app/cbl/COTRN02C.cbl:516-534
Reject missing transaction amount
rec/group:claude/RULE-119/7
business rule
validation, high
WHEN type, category, source and description are entered and the amount is blank, THE Transaction Add screen SHALL show 'Amount can NOT be empty...' with the cursor on the amount (TRNAMTI).
  • Description: Grocery purchase; Amount: blank → 'Amount can NOT be empty...'
app/cbl/COTRN02C.cbl:163-166, app/cbl/COTRN02C.cbl:250-320, app/cbl/COTRN02C.cbl:322-337, app/cbl/COTRN02C.cbl:516-534
Reject missing origination date
rec/group:claude/RULE-119/8
business rule
validation, high
WHEN all fields up to the amount are entered and the origination date is blank, THE Transaction Add screen SHALL show 'Orig Date can NOT be empty...' with the cursor on the origination date (TORIGDTI).
  • Amount: +00000050.00; Orig Date: blank → 'Orig Date can NOT be empty...'
app/cbl/COTRN02C.cbl:163-166, app/cbl/COTRN02C.cbl:250-320, app/cbl/COTRN02C.cbl:322-337, app/cbl/COTRN02C.cbl:516-534
Reject missing processing date
rec/group:claude/RULE-119/9
business rule
validation, high
WHEN all fields up to the origination date are entered and the processing date is blank, THE Transaction Add screen SHALL show 'Proc Date can NOT be empty...' with the cursor on the processing date (TPROCDTI).
  • Orig Date: 2026-11-20; Proc Date: blank → 'Proc Date can NOT be empty...'
app/cbl/COTRN02C.cbl:163-166, app/cbl/COTRN02C.cbl:250-320, app/cbl/COTRN02C.cbl:322-337, app/cbl/COTRN02C.cbl:516-534
Reject missing merchant identifier
rec/group:claude/RULE-119/10
business rule
validation, high
WHEN all fields up to the processing date are entered and the merchant ID is blank, THE Transaction Add screen SHALL show 'Merchant ID can NOT be empty...' with the cursor on the merchant ID (MIDI).
  • Proc Date: 2026-11-21; Merchant ID: blank → 'Merchant ID can NOT be empty...'
app/cbl/COTRN02C.cbl:163-166, app/cbl/COTRN02C.cbl:250-320, app/cbl/COTRN02C.cbl:322-337, app/cbl/COTRN02C.cbl:516-534
Reject missing merchant name
rec/group:claude/RULE-119/11
business rule
validation, high
WHEN all fields up to the merchant ID are entered and the merchant name is blank, THE Transaction Add screen SHALL show 'Merchant Name can NOT be empty...' with the cursor on the merchant name (MNAMEI).
  • Merchant ID: 800000001; Merchant Name: blank → 'Merchant Name can NOT be empty...'
app/cbl/COTRN02C.cbl:163-166, app/cbl/COTRN02C.cbl:250-320, app/cbl/COTRN02C.cbl:322-337, app/cbl/COTRN02C.cbl:516-534
Reject missing merchant city
rec/group:claude/RULE-119/12
business rule
validation, high
WHEN all fields up to the merchant name are entered and the merchant city is blank, THE Transaction Add screen SHALL show 'Merchant City can NOT be empty...' with the cursor on the merchant city (MCITYI).
  • Merchant Name: Corner Shop; Merchant City: blank → 'Merchant City can NOT be empty...'
app/cbl/COTRN02C.cbl:163-166, app/cbl/COTRN02C.cbl:250-320, app/cbl/COTRN02C.cbl:322-337, app/cbl/COTRN02C.cbl:516-534
Reject missing merchant zip code
rec/group:claude/RULE-119/13
business rule
validation, high
WHEN all fields up to the merchant city are entered and the merchant zip is blank, THE Transaction Add screen SHALL show 'Merchant Zip can NOT be empty...' with the cursor on the merchant zip (MZIPI).
  • Merchant City: Seattle; Merchant Zip: blank → 'Merchant Zip can NOT be empty...'
app/cbl/COTRN02C.cbl:163-166, app/cbl/COTRN02C.cbl:250-320, app/cbl/COTRN02C.cbl:322-337, app/cbl/COTRN02C.cbl:516-534
Accept complete mandatory transaction fields
rec/group:claude/RULE-119/14
business rule
validation, high
WHEN all eleven mandatory transaction fields are entered, THE Transaction Add screen SHALL pass the blank check and go on to the numeric and format checks.
  • all eleven fields: filled in → No blank-field message; the type and category codes are checked next
app/cbl/COTRN02C.cbl:163-166, app/cbl/COTRN02C.cbl:250-320, app/cbl/COTRN02C.cbl:322-337, app/cbl/COTRN02C.cbl:516-534
Require numeric type and category codes
rec/group:claude/RULE-119/15
business rule
validation, high
WHEN the transaction type code is not numeric, THE Transaction Add screen SHALL show 'Type CD must be Numeric...' with the cursor on the type code and save nothing.
  • Type CD: AB → 'Type CD must be Numeric...'
app/cbl/COTRN02C.cbl:163-166, app/cbl/COTRN02C.cbl:250-320, app/cbl/COTRN02C.cbl:322-337, app/cbl/COTRN02C.cbl:516-534
Require numeric type and category codes
rec/group:claude/RULE-119/16
business rule
validation, high
WHEN the type code is numeric and the category code is not numeric, THE Transaction Add screen SHALL show 'Category CD must be Numeric...' with the cursor on the category code and save nothing.
  • Type CD: 01; Category CD: 00X1 → 'Category CD must be Numeric...'
app/cbl/COTRN02C.cbl:163-166, app/cbl/COTRN02C.cbl:250-320, app/cbl/COTRN02C.cbl:322-337, app/cbl/COTRN02C.cbl:516-534
Validate transaction amount format
rec/group:claude/RULE-030/1
business rule
validation, high
WHEN the amount entered on the Transaction Add screen does not start with '-' or '+', followed by eight digits, a '.', and two digits, THE Transaction Add screen SHALL reject it with 'Amount should be in format -99999999.99' and save nothing.
  • Amount: 125.50 → 'Amount should be in format -99999999.99' is shown and nothing is saved
  • Amount: +00000125.50 → The amount format check passes
app/cbl/COTRN02C.cbl:339-351, app/cbl/COTRN02C.cbl:383-386, app/cbl/COTRN02C.cbl:456-458, app/cbl/COTRN02C.cbl:53-59
Normalize entered transaction amount
rec/group:claude/RULE-030/2
design note
technical, high
WHEN the amount passes the format check, THE Transaction Add screen SHALL convert it to a signed number with two decimals, show it back in the form +99999999.99, and store that value as the transaction amount when the transaction is added.
  • Amount: +00000125.50; Confirm: Y → The transaction is stored with amount 125.50
  • Amount: -00000040.00; Confirm: Y → The transaction is stored with amount -40.00
app/cbl/COTRN02C.cbl:339-351, app/cbl/COTRN02C.cbl:383-386, app/cbl/COTRN02C.cbl:456-458, app/cbl/COTRN02C.cbl:53-59
Validate origination date format
rec/group:claude/RULE-120/1
business rule
validation, high
WHEN the origination date entered on the Transaction Add screen is not in the form YYYY-MM-DD (four digits, '-', two digits, '-', two digits), THE Transaction Add screen SHALL reject the entry, show 'Orig Date should be in format YYYY-MM-DD' and save nothing.
  • Orig Date: 2024/03/01 → 'Orig Date should be in format YYYY-MM-DD' is shown and nothing is saved
  • Orig Date: 2024-03-01 → The format check passes
app/cbl/COTRN02C.cbl:353-381, app/cbl/COTRN02C.cbl:389-427, app/cbl/COTRN02C.cbl:60, app/cbl/COTRN02C.cbl:516-534, app/cbl/COTRN02C.cbl:65-69, app/cbl/CSUTLDTC.cbl:116-150
Validate processing date format
rec/group:claude/RULE-120/2
business rule
validation, high
WHEN the processing date entered on the Transaction Add screen is not in the form YYYY-MM-DD, THE Transaction Add screen SHALL reject the entry, show 'Proc Date should be in format YYYY-MM-DD' and save nothing.
  • Orig Date: 2024-03-01; Proc Date: 03-01-2024 → 'Proc Date should be in format YYYY-MM-DD' is shown and nothing is saved
app/cbl/COTRN02C.cbl:353-381, app/cbl/COTRN02C.cbl:389-427, app/cbl/COTRN02C.cbl:60, app/cbl/COTRN02C.cbl:516-534, app/cbl/COTRN02C.cbl:65-69, app/cbl/CSUTLDTC.cbl:116-150
Verify origination date is a real date
rec/group:claude/RULE-120/3
business rule
validation, high
WHEN the origination date has the right form but the date-check service (CSUTLDTC) does not confirm it as a real calendar date (severity not '0000' and message number not '2513'), THE Transaction Add screen SHALL show 'Orig Date - Not a valid date...' and save nothing.
  • Orig Date: 2024-02-30; Proc Date: 2024-03-01 → 'Orig Date - Not a valid date...' is shown and nothing is saved
  • Orig Date: 2024-02-29; Proc Date: 2024-03-01 → The origination date is accepted
app/cbl/COTRN02C.cbl:353-381, app/cbl/COTRN02C.cbl:389-427, app/cbl/COTRN02C.cbl:60, app/cbl/COTRN02C.cbl:516-534, app/cbl/COTRN02C.cbl:65-69, app/cbl/CSUTLDTC.cbl:116-150
Verify processing date is a real date
rec/group:claude/RULE-120/4
business rule
validation, high
WHEN the origination date is accepted but the date-check service (CSUTLDTC) does not confirm the processing date as a real calendar date (severity not '0000' and message number not '2513'), THE Transaction Add screen SHALL show 'Proc Date - Not a valid date...' and save nothing.
  • Orig Date: 2024-03-01; Proc Date: 2024-13-05 → 'Proc Date - Not a valid date...' is shown and nothing is saved
app/cbl/COTRN02C.cbl:353-381, app/cbl/COTRN02C.cbl:389-427, app/cbl/COTRN02C.cbl:60, app/cbl/COTRN02C.cbl:516-534, app/cbl/COTRN02C.cbl:65-69, app/cbl/CSUTLDTC.cbl:116-150
Require numeric merchant identifier
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-a29c56f787/1
business rule
validation, medium
WHEN all earlier checks pass and the Merchant ID is not entirely digits across its 9 positions, THE transaction add screen SHALL reject the entry, show 'Merchant ID must be Numeric...' and put the cursor on Merchant ID.
  • Merchant ID: ABC123456 → Rejected with 'Merchant ID must be Numeric...'
  • Merchant ID: 12345 (followed by 4 blanks) → Rejected with 'Merchant ID must be Numeric...'
  • Merchant ID: 123456789 → The check passes
app/cbl/COTRN02C.cbl:430-436, app/cpy-bms/COTRN02.CPY:114
Verify processing date is a real date
rec/group:claude/RULE-120/5
business rule
validation, high
THE Transaction Add screen SHALL stop at the first failed check and show only that message, so a later check (such as the processing date) is made only after every earlier check has passed.
  • Orig Date: 2024-02-30; Proc Date: 2024-99-99 → Only 'Orig Date - Not a valid date...' is shown
app/cbl/COTRN02C.cbl:353-381, app/cbl/COTRN02C.cbl:389-427, app/cbl/COTRN02C.cbl:60, app/cbl/COTRN02C.cbl:516-534, app/cbl/COTRN02C.cbl:65-69, app/cbl/CSUTLDTC.cbl:116-150

Acceptance criteria

IDCriterionChecks
AC-01Given Type CD: blank; Merchant Zip: blank
When Enter is pressed on the Add Transaction screen and the account or card number has passed its checks
Then Only 'Type CD can NOT be empty...' is shown
REQ-F-253
Mandatory transaction fields and numeric code checks
worked example 1 of the rule
AC-02Given Type CD: 01; Category CD: blank; all other fields: filled in
When a mandatory transaction field is blank (spaces or low-values)
Then 'Category CD can NOT be empty...' is shown, the cursor is on Category CD, and no transaction is added
REQ-F-254
Mandatory transaction fields and numeric code checks
worked example 1 of the rule
AC-03Given Type CD: blank
When the transaction type code is blank
Then 'Type CD can NOT be empty...'
REQ-F-255
Reject missing transaction type code
worked example 1 of the rule
AC-04Given Type CD: 01; Category CD: blank
When the type code is entered and the category code is blank
Then 'Category CD can NOT be empty...'
REQ-F-256
Reject missing transaction category code
worked example 1 of the rule
AC-05Given Type CD: 01; Category CD: 0001; Source: blank
When the type and category codes are entered and the source is blank
Then 'Source can NOT be empty...'
REQ-F-257
Reject missing transaction source
worked example 1 of the rule
AC-06Given Source: POS TERM; Description: blank; Amount: blank
When type, category and source are entered and the description is blank
Then 'Description can NOT be empty...' (Description is checked before Amount)
REQ-F-258
Reject missing transaction description
worked example 1 of the rule
AC-07Given Description: Grocery purchase; Amount: blank
When type, category, source and description are entered and the amount is blank
Then 'Amount can NOT be empty...'
REQ-F-259
Reject missing transaction amount
worked example 1 of the rule
AC-08Given Amount: +00000050.00; Orig Date: blank
When all fields up to the amount are entered and the origination date is blank
Then 'Orig Date can NOT be empty...'
REQ-F-260
Reject missing origination date
worked example 1 of the rule
AC-09Given Orig Date: 2026-11-20; Proc Date: blank
When all fields up to the origination date are entered and the processing date is blank
Then 'Proc Date can NOT be empty...'
REQ-F-261
Reject missing processing date
worked example 1 of the rule
AC-10Given Proc Date: 2026-11-21; Merchant ID: blank
When all fields up to the processing date are entered and the merchant ID is blank
Then 'Merchant ID can NOT be empty...'
REQ-F-262
Reject missing merchant identifier
worked example 1 of the rule
AC-11Given Merchant ID: 800000001; Merchant Name: blank
When all fields up to the merchant ID are entered and the merchant name is blank
Then 'Merchant Name can NOT be empty...'
REQ-F-263
Reject missing merchant name
worked example 1 of the rule
AC-12Given Merchant Name: Corner Shop; Merchant City: blank
When all fields up to the merchant name are entered and the merchant city is blank
Then 'Merchant City can NOT be empty...'
REQ-F-264
Reject missing merchant city
worked example 1 of the rule
AC-13Given Merchant City: Seattle; Merchant Zip: blank
When all fields up to the merchant city are entered and the merchant zip is blank
Then 'Merchant Zip can NOT be empty...'
REQ-F-265
Reject missing merchant zip code
worked example 1 of the rule
AC-14Given all eleven fields: filled in
When all eleven mandatory transaction fields are entered
Then No blank-field message; the type and category codes are checked next
REQ-F-266
Accept complete mandatory transaction fields
worked example 1 of the rule
AC-15Given Type CD: AB
When the transaction type code is not numeric
Then 'Type CD must be Numeric...'
REQ-F-267
Require numeric type and category codes
worked example 1 of the rule
AC-16Given Type CD: 01; Category CD: 00X1
When the type code is numeric and the category code is not numeric
Then 'Category CD must be Numeric...'
REQ-F-268
Require numeric type and category codes
worked example 1 of the rule
AC-17Given Amount: 125.50
When the amount entered on the Transaction Add screen does not start with '-' or '+', followed by eight digits, a '.', and two digits
Then 'Amount should be in format -99999999.99' is shown and nothing is saved
REQ-F-269
Validate transaction amount format
worked example 1 of the rule
AC-18Given Amount: +00000125.50
When the amount entered on the Transaction Add screen does not start with '-' or '+', followed by eight digits, a '.', and two digits
Then The amount format check passes
REQ-F-269
Validate transaction amount format
worked example 2 of the rule
AC-19Given Amount: +00000125.50; Confirm: Y
When the amount passes the format check
Then The transaction is stored with amount 125.50
REQ-F-270
Normalize entered transaction amount
worked example 1 of the rule
AC-20Given Amount: -00000040.00; Confirm: Y
When the amount passes the format check
Then The transaction is stored with amount -40.00
REQ-F-270
Normalize entered transaction amount
worked example 2 of the rule
AC-21Given Orig Date: 2024/03/01
When the origination date entered on the Transaction Add screen is not in the form YYYY-MM-DD (four digits, '-', two digits, '-', two digits)
Then 'Orig Date should be in format YYYY-MM-DD' is shown and nothing is saved
REQ-F-271
Validate origination date format
worked example 1 of the rule
AC-22Given Orig Date: 2024-03-01
When the origination date entered on the Transaction Add screen is not in the form YYYY-MM-DD (four digits, '-', two digits, '-', two digits)
Then The format check passes
REQ-F-271
Validate origination date format
worked example 2 of the rule
AC-23Given Orig Date: 2024-03-01; Proc Date: 03-01-2024
When the processing date entered on the Transaction Add screen is not in the form YYYY-MM-DD
Then 'Proc Date should be in format YYYY-MM-DD' is shown and nothing is saved
REQ-F-272
Validate processing date format
worked example 1 of the rule
AC-24Given Orig Date: 2024-02-30; Proc Date: 2024-03-01
When the origination date has the right form but the date-check service (CSUTLDTC) does not confirm it as a real calendar date (severity not '0000' and message number not '2513')
Then 'Orig Date - Not a valid date...' is shown and nothing is saved
REQ-F-273
Verify origination date is a real date
worked example 1 of the rule
AC-25Given Orig Date: 2024-02-29; Proc Date: 2024-03-01
When the origination date has the right form but the date-check service (CSUTLDTC) does not confirm it as a real calendar date (severity not '0000' and message number not '2513')
Then The origination date is accepted
REQ-F-273
Verify origination date is a real date
worked example 2 of the rule
AC-26Given Orig Date: 2024-03-01; Proc Date: 2024-13-05
When the origination date is accepted but the date-check service (CSUTLDTC) does not confirm the processing date as a real calendar date (severity not '0000' and message number not '2513')
Then 'Proc Date - Not a valid date...' is shown and nothing is saved
REQ-F-274
Verify processing date is a real date
worked example 1 of the rule
AC-27Given Merchant ID: ABC123456
When all earlier checks pass and the Merchant ID is not entirely digits across its 9 positions
Then Rejected with 'Merchant ID must be Numeric...'
REQ-F-275
Require numeric merchant identifier
worked example 1 of the rule
AC-28Given Merchant ID: 12345 (followed by 4 blanks)
When all earlier checks pass and the Merchant ID is not entirely digits across its 9 positions
Then Rejected with 'Merchant ID must be Numeric...'
REQ-F-275
Require numeric merchant identifier
worked example 2 of the rule
AC-29Given Merchant ID: 123456789
When all earlier checks pass and the Merchant ID is not entirely digits across its 9 positions
Then The check passes
REQ-F-275
Require numeric merchant identifier
worked example 3 of the rule
AC-30Given Orig Date: 2024-02-30; Proc Date: 2024-99-99
When Transaction Add screen runs
Then Only 'Orig Date - Not a valid date...' is shown
REQ-F-276
Verify processing date is a real date
worked example 1 of the rule

Screens

  • Transactions S-TRANSACTION-LIST · design · replaces COTRN0A (2 kept, 3 dropped, 59 merged)
  • Add transaction S-TRANSACTION-ADD · design · replaces COTRN2A (1 kept, 3 dropped, 22 merged)
    • **summary card** Transaction details checks: Each is required, in the rule's words: 'Type CD can NOT be empty...', 'Category CD can NOT be empty...', 'Source can NOT be empty...', 'Description can NOT be empty...', 'Amount can NOT be empty...', 'Orig Date can NOT be empty...', 'Proc Date can NOT be empty...'. 'Type CD must be Numeric...', 'Category CD must be Numeric...'. 'Amount should be in format -99999999.99'. 'Orig Date should be in format YYYY-MM-DD', 'Proc Date should be in format YYYY-MM-DD', and 'Orig Date - Not a valid date...' / 'Proc Date - Not a valid date...' for a date not on the calendar. Every failing field shows its message under it.
    • **summary card** Merchant checks: 'Merchant ID can NOT be empty...', 'Merchant Name can NOT be empty...', 'Merchant City can NOT be empty...', 'Merchant Zip can NOT be empty...'; 'Merchant ID must be Numeric...'.

Data contracts

CVACT03Y (file record; COTRN02C), CVTRA05Y (file record; COTRN02C), COCOM01Y (working storage; COTRN02C), COTTL01Y (working storage; COTRN02C), CSDAT01Y (working storage; COTRN02C), CSMSG01Y (working storage; COTRN02C), CVACT01Y (working storage; COTRN02C)

Decision tables

First blank mandatory field

First blank field in check orderMessage and cursorRule
Type CD'Type CD can NOT be empty...', cursor on TTYPCDIrec/group:claude/RULE-119/3
Category CD'Category CD can NOT be empty...', cursor on TCATCDIrec/group:claude/RULE-119/4
Source'Source can NOT be empty...', cursor on TRNSRCIrec/group:claude/RULE-119/5
Description'Description can NOT be empty...', cursor on TDESCIrec/group:claude/RULE-119/6
Amount'Amount can NOT be empty...', cursor on TRNAMTIrec/group:claude/RULE-119/7
Orig Date'Orig Date can NOT be empty...', cursor on TORIGDTIrec/group:claude/RULE-119/8
Proc Date'Proc Date can NOT be empty...', cursor on TPROCDTIrec/group:claude/RULE-119/9
Merchant ID'Merchant ID can NOT be empty...', cursor on MIDIrec/group:claude/RULE-119/10
Merchant Name'Merchant Name can NOT be empty...', cursor on MNAMEIrec/group:claude/RULE-119/11
Merchant City'Merchant City can NOT be empty...', cursor on MCITYIrec/group:claude/RULE-119/12
Merchant Zip'Merchant Zip can NOT be empty...', cursor on MZIPIrec/group:claude/RULE-119/13
nonePass blank check; go on to numeric and format checksrec/group:claude/RULE-119/14

Date checks

Orig Date form YYYY-MM-DDOrig Date confirmed real by CSUTLDTCProc Date form YYYY-MM-DDProc Date confirmed real by CSUTLDTCResultRule
no---'Orig Date should be in format YYYY-MM-DD', save nothingrec/group:claude/RULE-120/1
--no-'Proc Date should be in format YYYY-MM-DD', save nothingrec/group:claude/RULE-120/2
yesno--'Orig Date - Not a valid date...', save nothingrec/group:claude/RULE-120/3
yesyes-no'Proc Date - Not a valid date...', save nothingrec/group:claude/RULE-120/4
yesnono-Gap: Rules do not say whether the Proc Date format check runs before or after the Orig Date real-date check, so which single message is shown is not settled.
yesyesyesyesGap: No rule states the outcome when both dates pass apart from continuing to later checks (e.g. Merchant ID numeric); confirm the full check order.

Open questions

  • SME-176 When adding a transaction, the system accepts dates that the date check flags with message 2513 (outside the range the date utility supports). What does 2513 mean for the business, and should those dates still be accepted? Should the processing date also have to be on or after the origination date, and should future dates be refused? (Product owner)
  • DEF-053 Confirm this is deliberate: A date for which the date service returns message number '2513' (CEEDAYS feedback X'09D1' = 2513, 'Unsupp. Range', i.e. a year outside the supported range) is accepted as valid instead of rejected. (Subject-matter expert)

Design notes

  • Parse the accepted amount text into an exact signed decimal with two decimal places (no floating point), echo it back formatted as +99999999.99, and use that same parsed value as the stored transaction amount. Normalize entered transaction amount
33. Record a confirmed new transactionfinal · online · 8 requirements · 8 rules · 9 criteria · 2 screens · 1 gap

Records a validated, confirmed transaction. It gives the transaction the next number after the highest one on file, as 16 zero-padded digits (0000000000000001 when the file is empty), and writes it with the card found for the entered account or card. It must never reuse an existing number or lose the operator's entries on a failed write. On success it shows the new Tran ID.

As a staff user, I want a confirmed, valid transaction to be numbered and written to the transaction file with a clear confirmation or error, so that the account's activity is recorded accurately.

Final: signed off by Sam (acceptance), 2026-11-25 Risk high; touches card_data, money, updates_records. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#33

Requirements

CodeClassRequirementCriteria
REQ-F-277business ruleWhen every Transaction Add field passes validation and Confirm is 'Y' or 'y', the system shall add the transaction.AC-01
REQ-F-278business ruleWhen a confirmed transaction is added, the system shall find the highest transaction number on the transaction file by reading backward from the end, and give the new transaction that number plus 1 as a 16-digit, zero-padded number.AC-02
REQ-F-279business ruleWhen reading backward finds no transaction on the file (end of file), the system shall count the highest number as zero, so the new transaction is numbered 0000000000000001.AC-03
REQ-F-280error handlingIf the lookup of the highest transaction number fails, then the system shall add nothing and show 'Transaction ID NOT found...' when the start position is not found, or 'Unable to lookup Transaction...' for any other error, with the cursor on Account ID.AC-04
REQ-F-281business ruleWhen a confirmed transaction has been given its new number, the system shall write a new record to the transaction file (TRANSACT) with that number, the entered type, category, source, description, amount, merchant ID, name, city and zip, origination and processing dates, and the card number found for the entered account or card.AC-05, AC-06
REQ-F-282formattingWhen the new transaction is written successfully, the system shall clear every field and show in green 'Transaction added successfully. Your Tran ID is <number>.'AC-09
REQ-F-283error handlingIf writing the new transaction fails because the number already exists, then the system shall show 'Tran ID already exist...' with the cursor on Account ID and keep the entries.AC-07
REQ-N-015error handlingIf writing the new transaction fails for any other reason, then the system shall show 'Unable to Add Transaction...' with the cursor on Account ID and log the response codes.AC-08

Business rules

RuleClassText, worked examples and evidence
Add transaction upon confirmation
rec/group:claude/RULE-229/1
business rule
business, high
WHEN every Transaction Add field passes validation and Confirm is 'Y' or 'y', THE Transaction Add screen SHALL add the transaction.
  • All fields: valid; Confirm: y → The transaction is added
app/cbl/COTRN02C.cbl:160-188, app/cbl/COTRN02C.cbl:516-534
Assign next transaction number
rec/group:claude/RULE-031/1
business rule
business, high
WHEN a confirmed transaction is added, THE transaction add screen SHALL find the highest transaction number on the transaction file by reading backward from the end, and give the new transaction that number plus 1 as a 16-digit, zero-padded number.
  • Highest transaction number on file: 0000000000001234; Confirm: Y → The new transaction is numbered 0000000000001235
app/cbl/COTRN02C.cbl:442-451, app/cbl/COTRN02C.cbl:642-668, app/cbl/COTRN02C.cbl:673-697, app/cbl/COTRN02C.cbl:57, app/cpy/CVTRA05Y.cpy:5
Default transaction number for empty store
rec/group:claude/RULE-031/2
business rule
business, high
WHEN reading backward finds no transaction on the file (end of file), THE transaction add screen SHALL count the highest number as zero, so the new transaction is numbered 0000000000000001.
  • Transactions on file: none (end of file reached); Confirm: Y → The new transaction is numbered 0000000000000001
app/cbl/COTRN02C.cbl:442-451, app/cbl/COTRN02C.cbl:642-668, app/cbl/COTRN02C.cbl:673-697, app/cbl/COTRN02C.cbl:57, app/cpy/CVTRA05Y.cpy:5
New transaction ID = highest existing ID + 1
rec/group:claude/RULE-031/3
error handling
error_handling, high
WHEN the lookup of the highest transaction number fails, THE transaction add screen SHALL add nothing and show 'Transaction ID NOT found...' when the start position is not found, or 'Unable to lookup Transaction...' for any other error, with the cursor on Account ID.
  • Transaction file browse result: error other than not found or end of file → No transaction is added and the screen shows 'Unable to lookup Transaction...'
app/cbl/COTRN02C.cbl:442-451, app/cbl/COTRN02C.cbl:642-668, app/cbl/COTRN02C.cbl:673-697, app/cbl/COTRN02C.cbl:57, app/cpy/CVTRA05Y.cpy:5
Build and record new transaction
rec/group:claude/RULE-138/1
business rule
business, high
WHEN a confirmed transaction has been given its new number, THE transaction add screen SHALL write a new record to the transaction file (TRANSACT) with that number, the entered type, category, source, description, amount, merchant ID, name, city and zip, origination and processing dates, and the card number found for the entered account or card.
  • Card number: 4111111111111111; Amount: +00000050.00; Confirm: Y; Next number: 0000000000001235 → TRANSACT gains record 0000000000001235 for card 4111111111111111 with amount 50.00
  • Account ID: 00000000001; Card on file for account: 4111111111111111 → The record is written with card number 4111111111111111
app/cbl/COTRN02C.cbl:450-466, app/cbl/COTRN02C.cbl:711-734, app/cbl/COTRN02C.cbl:762-779
Confirm successful transaction addition
rec/group:claude/RULE-138/2
formatting
display, high
WHEN the new transaction is written successfully, THE transaction add screen SHALL clear every field and show in green 'Transaction added successfully. Your Tran ID is <number>.'
app/cbl/COTRN02C.cbl:450-466, app/cbl/COTRN02C.cbl:711-734, app/cbl/COTRN02C.cbl:762-779
Report transaction recording failure
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-3ea16ae2ee/1
error handling
error_handling, medium
WHEN writing the new transaction fails because the number already exists, THE transaction add screen SHALL show 'Tran ID already exist...' with the cursor on Account ID and keep the entries.
  • Write result: duplicate key → The screen shows 'Tran ID already exist...' and nothing is added
app/cbl/COTRN02C.cbl:735-749
Report transaction recording failure
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-3ea16ae2ee/2
error handling
error_handling, medium
WHEN writing the new transaction fails for any other reason, THE transaction add screen SHALL show 'Unable to Add Transaction...' with the cursor on Account ID and log the response codes.
  • Write result: file not open → The screen shows 'Unable to Add Transaction...'
app/cbl/COTRN02C.cbl:735-749

Acceptance criteria

IDCriterionChecks
AC-01Given All fields: valid; Confirm: y
When every Transaction Add field passes validation and Confirm is 'Y' or 'y'
Then The transaction is added
REQ-F-277
Add transaction upon confirmation
worked example 1 of the rule
AC-02Given Highest transaction number on file: 0000000000001234; Confirm: Y
When a confirmed transaction is added
Then The new transaction is numbered 0000000000001235
REQ-F-278
Assign next transaction number
worked example 1 of the rule
AC-03Given Transactions on file: none (end of file reached); Confirm: Y
When reading backward finds no transaction on the file (end of file)
Then The new transaction is numbered 0000000000000001
REQ-F-279
Default transaction number for empty store
worked example 1 of the rule
AC-04Given Transaction file browse result: error other than not found or end of file
When the lookup of the highest transaction number fails
Then No transaction is added and the screen shows 'Unable to lookup Transaction...'
REQ-F-280
New transaction ID = highest existing ID + 1
worked example 1 of the rule
AC-05Given Card number: 4111111111111111; Amount: +00000050.00; Confirm: Y; Next number: 0000000000001235
When a confirmed transaction has been given its new number
Then TRANSACT gains record 0000000000001235 for card 4111111111111111 with amount 50.00
REQ-F-281
Build and record new transaction
worked example 1 of the rule
AC-06Given Account ID: 00000000001; Card on file for account: 4111111111111111
When a confirmed transaction has been given its new number
Then The record is written with card number 4111111111111111
REQ-F-281
Build and record new transaction
worked example 2 of the rule
AC-07Given Write result: duplicate key
When writing the new transaction fails because the number already exists
Then The screen shows 'Tran ID already exist...' and nothing is added
REQ-F-283
Report transaction recording failure
worked example 1 of the rule
AC-08Given Write result: file not open
When writing the new transaction fails for any other reason
Then The screen shows 'Unable to Add Transaction...'
REQ-N-015
Report transaction recording failure
worked example 1 of the rule
AC-09Given a validated transaction with Confirm 'Y' whose new number is 0000000000000301, and the write to the transaction file succeeds
When the add completes
Then every field on the Add Transaction screen is cleared and the message 'Transaction added successfully. Your Tran ID is 0000000000000301.' is shown in green
REQ-F-282
Confirm successful transaction addition
written from the rule

Screens

  • Transactions S-TRANSACTION-LIST · design · replaces COTRN0A (2 kept, 3 dropped, 59 merged)
  • Add transaction S-TRANSACTION-ADD · design · replaces COTRN2A (1 kept, 3 dropped, 22 merged)
    • **primary button** Add transaction checks: The dialog offers only Add or Cancel, replacing the typed confirmation and its messages 'Confirm to add this transaction...' and 'Invalid value. Valid values are (Y/N)...'. If the ID already exists: 'Tran ID already exist...'; other failures: 'Unable to Add Transaction...'.

Data contracts

CVACT03Y (file record; COTRN02C), CVTRA05Y (file record; COTRN02C), COCOM01Y (working storage; COTRN02C), COTTL01Y (working storage; COTRN02C), CSDAT01Y (working storage; COTRN02C), CSMSG01Y (working storage; COTRN02C), CVACT01Y (working storage; COTRN02C)

Decision tables

Transaction numbering and write outcome

Highest-number lookup resultWrite resultResultRule
highest number found-New number = highest + 1, 16-digit zero-paddedrec/group:claude/RULE-031/1
end of file (no transactions)-New number 0000000000000001rec/group:claude/RULE-031/2
start position not foundnot attemptedAdd nothing; 'Transaction ID NOT found...', cursor on Account IDrec/group:claude/RULE-031/3
other errornot attemptedAdd nothing; 'Unable to lookup Transaction...', cursor on Account IDrec/group:claude/RULE-031/3
number assignedsuccessClear fields; green 'Transaction added successfully. Your Tran ID is <number>.'rec/group:claude/RULE-138/2
number assignednumber already exists'Tran ID already exist...', cursor on Account ID, keep entriesrec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-3ea16ae2ee/1
number assignedother failure'Unable to Add Transaction...', cursor on Account ID, log response codesrec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-3ea16ae2ee/2
all fields validConfirm not 'Y' or 'y'Gap: No rule states what the screen does when validation passes but Confirm is blank or a value other than 'Y'/'y'.

Open questions

  • SME-177 What type and length should the transaction number have in the transaction master store, so that new transaction numbers meet that format? (Data architect)
  • SME-178 When the origination and processing dates entered as YYYY-MM-DD are stored as timestamps, what time portion and timestamp format should be used? (Data architect)
  • SME-179 New transactions are numbered 'highest existing number + 1'. Must this scheme be kept, or should a central sequence or counter be used so that numbers cannot clash with other postings made at the same time or with transactions created by batch jobs? (Solution architect)
  • DEF-015 Is this intended? The next number is taken as highest-plus-one with no lock, so two users adding at the same moment can get the same number; the second write then fails with 'Tran ID already exist...' and the user must try again. (Subject-matter expert)
  • DEF-060 Is this intended? The type and category codes are written as entered without checking that they exist in the reference tables; they are only checked for being present and numeric. (Subject-matter expert)

Design notes

None.

34. Confirm a transaction before it is addedfinal · online · 2 requirements · 2 rules · 3 criteria · 2 screens

Makes the operator explicitly confirm a valid transaction before it is added. 'Y' or 'y' adds it. 'N', 'n' or blank asks 'Confirm to add this transaction...', and any other value gets 'Invalid value. Valid values are (Y/N)...'. No transaction may ever be added without an explicit 'Y'.

As an operator entering a transaction, I want the system to ask me to confirm before adding it and to reject an invalid confirmation, so that no transaction is added without my explicit confirmation.

Final: signed off by Sam (acceptance), 2026-11-25 Risk medium; touches updates_records. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#34

Requirements

CodeClassRequirementCriteria
REQ-F-284business ruleWhen every field passes validation and Confirm is 'N', 'n' or left blank, the system shall redisplay the Transaction Add screen with 'Confirm to add this transaction...' and the cursor on Confirm, and add nothing.AC-01, AC-02
REQ-F-285business ruleIf every field passes validation and Confirm holds any value other than 'Y', 'N', 'n' or blank, then the system shall redisplay the Transaction Add screen with 'Invalid value. Valid values are (Y/N)...' and the cursor on Confirm, and add nothing.AC-03

Business rules

RuleClassText, worked examples and evidence
Prompt operator to confirm addition
rec/group:claude/RULE-229/2
business rule
validation, high
WHEN every field passes validation and Confirm is 'N', 'n' or left blank, THE Transaction Add screen SHALL redisplay with 'Confirm to add this transaction...' and the cursor on Confirm, and add nothing.
  • All fields: valid; Confirm: N → 'Confirm to add this transaction...' is shown and nothing is written
  • All fields: valid; Confirm: (blank) → 'Confirm to add this transaction...' is shown and nothing is written
app/cbl/COTRN02C.cbl:160-188, app/cbl/COTRN02C.cbl:516-534
Reject invalid confirmation value
rec/group:claude/RULE-229/3
business rule
validation, high
WHEN every field passes validation and Confirm holds any other value, THE Transaction Add screen SHALL redisplay with 'Invalid value. Valid values are (Y/N)...' and the cursor on Confirm, and add nothing.
  • All fields: valid; Confirm: X → 'Invalid value. Valid values are (Y/N)...' is shown and nothing is written
app/cbl/COTRN02C.cbl:160-188, app/cbl/COTRN02C.cbl:516-534

Acceptance criteria

IDCriterionChecks
AC-01Given All fields: valid; Confirm: N
When every field passes validation and Confirm is 'N', 'n' or left blank
Then 'Confirm to add this transaction...' is shown and nothing is written
REQ-F-284
Prompt operator to confirm addition
worked example 1 of the rule
AC-02Given All fields: valid; Confirm: (blank)
When every field passes validation and Confirm is 'N', 'n' or left blank
Then 'Confirm to add this transaction...' is shown and nothing is written
REQ-F-284
Prompt operator to confirm addition
worked example 2 of the rule
AC-03Given All fields: valid; Confirm: X
When every field passes validation and Confirm holds any other value
Then 'Invalid value. Valid values are (Y/N)...' is shown and nothing is written
REQ-F-285
Reject invalid confirmation value
worked example 1 of the rule

Screens

  • Transactions S-TRANSACTION-LIST · design · replaces COTRN0A (2 kept, 3 dropped, 59 merged)
  • Add transaction S-TRANSACTION-ADD · design · replaces COTRN2A (1 kept, 3 dropped, 22 merged)
    • **primary button** Add transaction checks: The dialog offers only Add or Cancel, replacing the typed confirmation and its messages 'Confirm to add this transaction...' and 'Invalid value. Valid values are (Y/N)...'. If the ID already exists: 'Tran ID already exist...'; other failures: 'Unable to Add Transaction...'.

Data contracts

CVACT03Y (file record; COTRN02C), CVTRA05Y (file record; COTRN02C), COCOM01Y (working storage; COTRN02C), COTTL01Y (working storage; COTRN02C), CSDAT01Y (working storage; COTRN02C), CSMSG01Y (working storage; COTRN02C), CVACT01Y (working storage; COTRN02C)

Decision tables

None.

Open questions

  • SME-177 What type and length should the transaction number have in the transaction master store, so that new transaction numbers meet that format? (Data architect)
  • SME-178 When the origination and processing dates entered as YYYY-MM-DD are stored as timestamps, what time portion and timestamp format should be used? (Data architect)

Design notes

None.

35. Validate a date against a format maskfinal · service · 13 requirements · 13 rules · 14 criteria · 3 screens · 2 gaps

A shared date-check service used by the screens that accept dates (transaction add, report date range). It checks a date against its format mask and returns a severity, a message code and a short reason such as 'Date is valid' or 'Datevalue error'. Callers must treat a date as invalid whenever the severity is not '0000' and the message number is not '2513', so impossible dates are never accepted.

As a screen that accepts dates (report date range, transaction add), I want a date checked against its format mask with a clear result and reason, so that invalid dates are rejected with a meaningful error.

Final: signed off by Sam (acceptance), 2026-11-25 Risk low. rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#35

Requirements

CodeClassRequirementCriteria
REQ-F-286design noteThe system shall pass the caller's 10-character date and 10-character format mask to the date conversion service (CEEDAYS) and record the returned severity and message number as 4-digit values in its result.AC-12
REQ-F-287design noteThe system shall return an 80-character result made of the severity, 'Mesg Code:', the message number, the result text, 'TstDate:' with the tested date and 'Mask used:' with the mask, and shall set the program return code to the severity.AC-13
REQ-F-288business ruleWhen the date conversion service returns an all-zero feedback token for the date and mask it was given, the system shall set the result text to 'Date is valid'.AC-01
REQ-F-289business ruleIf the date conversion service reports insufficient data (feedback X'000309CB59C3C5C5', message 2507), then the system shall set the result text to 'Insufficient'.AC-02
REQ-F-290business ruleIf the date conversion service reports a bad date value (feedback X'000309CC59C3C5C5', severity 3, message 2508), then the system shall set the result text to 'Datevalue error'.AC-14
REQ-F-291business ruleIf the date conversion service reports an invalid era (feedback X'000309CD59C3C5C5', message 2509), then the system shall set the result text to 'Invalid Era'.AC-03
REQ-F-292business ruleIf the date conversion service reports an unsupported date range (feedback X'000309D159C3C5C5', message 2513), then the system shall set the result text to 'Unsupp. Range'.AC-04
REQ-F-293business ruleIf the date conversion service reports an invalid month (feedback X'000309D559C3C5C5', message 2517), then the system shall set the result text to 'Invalid month'.AC-05
REQ-F-294business ruleIf the date conversion service reports a bad format mask (feedback X'000309D659C3C5C5', message 2518), then the system shall set the result text to 'Bad Pic String'.AC-06
REQ-F-295business ruleIf the date conversion service reports a year-in-era of zero (feedback X'000309D959C3C5C5', message 2521), then the system shall set the result text to 'YearInEra is 0'.AC-07
REQ-F-296business ruleIf the date conversion service reports that the date contains non-numeric characters, then the system shall return the result text 'Nonnumeric data' together with the service's severity and message code, so the caller treats the date as invalid.AC-08
REQ-F-297business ruleIf the date conversion feedback matches none of the recognised tokens, then the system shall set the result text to 'Date is invalid'.AC-09
REQ-F-298business ruleIf the returned severity is not '0000' and the message number is not '2513', then the calling screens (report date range, transaction add) shall treat the date as invalid and show their error, for example 'Start Date - Not a valid date...' or 'Orig Date - Not a valid date...'.AC-10, AC-11

Business rules

RuleClassText, worked examples and evidence
Submit date and mask for conversion
rec/group:claude/RULE-234/1
design note
technical, high
THE Date Validation Utility SHALL pass the caller's 10-character date and 10-character format mask to the date conversion service (CEEDAYS) and record the returned severity and message number as 4-digit values in its result.
app/cbl/CSUTLDTC.cbl:42-57, app/cbl/CSUTLDTC.cbl:88-124, app/cbl/CORPT00C.cbl:128-136, app/cbl/CORPT00C.cbl:388-405, app/cbl/COTRN02C.cbl:389-406
Submit date and mask for conversion
rec/group:claude/RULE-234/2
design note
technical, high
THE Date Validation Utility SHALL return an 80-character result made of the severity, 'Mesg Code:', the message number, the result text, 'TstDate:' with the tested date and 'Mask used:' with the mask, and SHALL set the program return code to the severity.
app/cbl/CSUTLDTC.cbl:42-57, app/cbl/CSUTLDTC.cbl:88-124, app/cbl/CORPT00C.cbl:128-136, app/cbl/CORPT00C.cbl:388-405, app/cbl/COTRN02C.cbl:389-406
Report date as valid
rec/group:claude/RULE-126/1
business rule
validation, high
WHEN the date conversion service (CEEDAYS) returns an all-zero feedback token for the 10-character date and 10-character mask it was given, THE Date Validation Utility SHALL set the result text to 'Date is valid'.
  • date: 2023-02-28; mask: YYYY-MM-DD → Feedback token all zeros; result text 'Date is valid', severity '0000'
app/cbl/CSUTLDTC.cbl:62-64, app/cbl/CSUTLDTC.cbl:103-134, app/cbl/CORPT00C.cbl:72
Report insufficient date data
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-e0940be957/1
business rule
validation, medium
WHEN the date conversion service reports insufficient data (feedback X'000309CB59C3C5C5', message 2507), THE Date Validation Utility SHALL set the result text to 'Insufficient'.
  • feedback: insufficient data, severity 3, message 2507 → Result text 'Insufficient'; the caller treats the date as invalid
app/cbl/CSUTLDTC.cbl:63, app/cbl/CSUTLDTC.cbl:131-132
Report bad date value
rec/group:claude/RULE-126/2
business rule
validation, high
WHEN the date conversion service reports a bad date value (feedback X'000309CC59C3C5C5', severity 3, message 2508), THE Date Validation Utility SHALL set the result text to 'Datevalue error'.
app/cbl/CSUTLDTC.cbl:62-64, app/cbl/CSUTLDTC.cbl:103-134, app/cbl/CORPT00C.cbl:72
Report invalid era
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-5943b7a63b/1
business rule
validation, medium
WHEN the date conversion service reports an invalid era (feedback X'000309CD59C3C5C5', message 2509), THE Date Validation Utility SHALL set the result text to 'Invalid Era'.
  • feedback: invalid era, severity 3, message 2509 → Result text 'Invalid Era'; the caller treats the date as invalid
app/cbl/CSUTLDTC.cbl:65, app/cbl/CSUTLDTC.cbl:135-136
Report unsupported date range
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-12b6597fad/1
business rule
validation, medium
WHEN the date conversion service reports an unsupported date range (feedback X'000309D159C3C5C5', message 2513), THE Date Validation Utility SHALL set the result text to 'Unsupp. Range'.
  • date: 1500-01-01; mask: YYYY-MM-DD → Result text 'Unsupp. Range', severity '0003', message '2513'; the calling screens still accept the date
app/cbl/CSUTLDTC.cbl:66, app/cbl/CSUTLDTC.cbl:137-138, app/cbl/CORPT00C.cbl:396-405, app/cbl/COTRN02C.cbl:397-406
Report invalid month
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-0f31142808/1
business rule
validation, medium
WHEN the date conversion service reports an invalid month (feedback X'000309D559C3C5C5', message 2517), THE Date Validation Utility SHALL set the result text to 'Invalid month'.
  • date: 2023-13-01; mask: YYYY-MM-DD → Result text 'Invalid month'; the caller treats the date as invalid
app/cbl/CSUTLDTC.cbl:67, app/cbl/CSUTLDTC.cbl:139-140
Report bad format mask
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-2da87ee244/1
business rule
validation, medium
WHEN the date conversion service reports a bad format mask (feedback X'000309D659C3C5C5', message 2518), THE Date Validation Utility SHALL set the result text to 'Bad Pic String'.
  • mask: an unrecognised format mask → Result text 'Bad Pic String'; the caller treats the date as invalid
app/cbl/CSUTLDTC.cbl:68, app/cbl/CSUTLDTC.cbl:141-142
Report zero year in era
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-3ea36929ba/1
business rule
validation, medium
WHEN the date conversion service reports a year-in-era of zero (feedback X'000309D959C3C5C5', message 2521), THE Date Validation Utility SHALL set the result text to 'YearInEra is 0'.
  • feedback: year-in-era zero, severity 3, message 2521 → Result text 'YearInEra is 0'; the caller treats the date as invalid
app/cbl/CSUTLDTC.cbl:70, app/cbl/CSUTLDTC.cbl:145-146
Report non-numeric date data
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-1e881bfe02/1
business rule
validation, medium
WHEN the date service reports that the date contains non-numeric characters, THE Date Validation SHALL return the result text 'Nonnumeric data' together with the service's severity and message code (returned in WS-RESULT), so the caller treats the date as invalid.
  • date: 2024-AB-01; date format: YYYY-MM-DD → The result reads 'Nonnumeric data' with a non-zero severity; on the Add Transaction screen the user sees 'Orig Date - Not a valid date...'.
app/cbl/CSUTLDTC.cbl:69, app/cbl/CSUTLDTC.cbl:116-124, app/cbl/CSUTLDTC.cbl:143-144, app/cbl/CSUTLDTC.cbl:97-98, app/cbl/COTRN02C.cbl:389-407
Report unrecognized date validation failure
rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-669f5a56f0/1
business rule
validation, medium
WHEN the date conversion feedback matches none of the recognised tokens, THE Date Validation Utility SHALL set the result text to 'Date is invalid'.
  • feedback: any other non-zero token → Result text 'Date is invalid'
app/cbl/CSUTLDTC.cbl:128, app/cbl/CSUTLDTC.cbl:147-149
Date validation result contract: severity becomes return code, message number drives caller acceptance
rec/group:claude/RULE-234/3
business rule
validation, high
WHEN the returned severity is not '0000' and the message number is not '2513', THE calling screens (report date range, transaction add) SHALL treat the date as invalid and show their error, for example 'Start Date - Not a valid date...' or 'Orig Date - Not a valid date...'.
  • start date: 2023-02-30; severity: 0003; message number: 2508 → Report screen shows 'Start Date - Not a valid date...'
  • original transaction date: 2023-02-28; severity: 0000 → Date accepted; validation continues
app/cbl/CSUTLDTC.cbl:42-57, app/cbl/CSUTLDTC.cbl:88-124, app/cbl/CORPT00C.cbl:128-136, app/cbl/CORPT00C.cbl:388-405, app/cbl/COTRN02C.cbl:389-406

Acceptance criteria

IDCriterionChecks
AC-01Given date: 2023-02-28; mask: YYYY-MM-DD
When the date conversion service (CEEDAYS) returns an all-zero feedback token for the 10-character date and 10-character mask it was given
Then Feedback token all zeros; result text 'Date is valid', severity '0000'
REQ-F-288
Report date as valid
worked example 1 of the rule
AC-02Given feedback: insufficient data, severity 3, message 2507
When the date conversion service reports insufficient data (feedback X'000309CB59C3C5C5', message 2507)
Then Result text 'Insufficient'; the caller treats the date as invalid
REQ-F-289
Report insufficient date data
worked example 1 of the rule
AC-03Given feedback: invalid era, severity 3, message 2509
When the date conversion service reports an invalid era (feedback X'000309CD59C3C5C5', message 2509)
Then Result text 'Invalid Era'; the caller treats the date as invalid
REQ-F-291
Report invalid era
worked example 1 of the rule
AC-04Given date: 1500-01-01; mask: YYYY-MM-DD
When the date conversion service reports an unsupported date range (feedback X'000309D159C3C5C5', message 2513)
Then Result text 'Unsupp. Range', severity '0003', message '2513'; the calling screens still accept the date
REQ-F-292
Report unsupported date range
worked example 1 of the rule
AC-05Given date: 2023-13-01; mask: YYYY-MM-DD
When the date conversion service reports an invalid month (feedback X'000309D559C3C5C5', message 2517)
Then Result text 'Invalid month'; the caller treats the date as invalid
REQ-F-293
Report invalid month
worked example 1 of the rule
AC-06Given mask: an unrecognised format mask
When the date conversion service reports a bad format mask (feedback X'000309D659C3C5C5', message 2518)
Then Result text 'Bad Pic String'; the caller treats the date as invalid
REQ-F-294
Report bad format mask
worked example 1 of the rule
AC-07Given feedback: year-in-era zero, severity 3, message 2521
When the date conversion service reports a year-in-era of zero (feedback X'000309D959C3C5C5', message 2521)
Then Result text 'YearInEra is 0'; the caller treats the date as invalid
REQ-F-295
Report zero year in era
worked example 1 of the rule
AC-08Given date: 2024-AB-01; date format: YYYY-MM-DD
When the date service reports that the date contains non-numeric characters
Then The result reads 'Nonnumeric data' with a non-zero severity; on the Add Transaction screen the user sees 'Orig Date - Not a valid date...'.
REQ-F-296
Report non-numeric date data
worked example 1 of the rule
AC-09Given feedback: any other non-zero token
When the date conversion feedback matches none of the recognised tokens
Then Result text 'Date is invalid'
REQ-F-297
Report unrecognized date validation failure
worked example 1 of the rule
AC-10Given start date: 2023-02-30; severity: 0003; message number: 2508
When the returned severity is not '0000' and the message number is not '2513'
Then Report screen shows 'Start Date - Not a valid date...'
REQ-F-298
Date validation result contract: severity becomes return code, message number drives caller acceptance
worked example 1 of the rule
AC-11Given original transaction date: 2023-02-28; severity: 0000
When the returned severity is not '0000' and the message number is not '2513'
Then Date accepted; validation continues
REQ-F-298
Date validation result contract: severity becomes return code, message number drives caller acceptance
worked example 2 of the rule
AC-12Given a caller passes the date '2024-02-30' and the mask 'YYYY-MM-DD', each 10 characters
When the date-check service runs
Then the date and the mask are submitted to the date conversion together, and the result records the returned severity and message number as 4-digit values (here severity 0003, message 2508)
REQ-F-286
Submit date and mask for conversion
written from the rule
AC-13Given a caller passes the date '2024-02-30' and the mask 'YYYY-MM-DD', and the conversion reports severity 3, message 2508
When the date-check service returns
Then the 80-character result contains, in order, severity '0003', 'Mesg Code:', message number '2508', the result text 'Datevalue error', 'TstDate:' followed by '2024-02-30', and 'Mask used:' followed by 'YYYY-MM-DD', and the return code is 3
REQ-F-287
Submit date and mask for conversion
written from the rule
AC-14Given the date conversion reports feedback X'000309CC59C3C5C5' (severity 3, message 2508) for the date and mask given
When the date-check service sets its result text
Then the result text is 'Datevalue error'
REQ-F-290
Report bad date value
written from the rule

Screens

Data contracts

None found in the source.

Decision tables

Date validation result text by conversion feedback

Date conversion feedbackResult textRule
All-zero feedback token'Date is valid'rec/group:claude/RULE-126/1
X'000309CB59C3C5C5' (message 2507, insufficient data)'Insufficient'rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-e0940be957/1
X'000309CC59C3C5C5' (severity 3, message 2508, bad date value)'Datevalue error'rec/group:claude/RULE-126/2
X'000309CD59C3C5C5' (message 2509, invalid era)'Invalid Era'rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-5943b7a63b/1
X'000309D159C3C5C5' (message 2513, unsupported range)'Unsupp. Range'rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-12b6597fad/1
X'000309D559C3C5C5' (message 2517, invalid month)'Invalid month'rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-0f31142808/1
X'000309D659C3C5C5' (message 2518, bad format mask)'Bad Pic String'rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-2da87ee244/1
X'000309D959C3C5C5' (message 2521, year-in-era zero)'YearInEra is 0'rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-3ea36929ba/1
Non-numeric characters in date'Nonnumeric data' with severity and message coderec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-1e881bfe02/1
Any other feedback token'Date is invalid'rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-669f5a56f0/1
Non-numeric characters in dateGap: The rules do not give the feedback token or message number for the non-numeric case; confirm which token the service returns.
X'000309D159C3C5C5' (message 2513, unsupported range)Gap: Callers accept message 2513 as not invalid even though the result text is 'Unsupp. Range'; confirm that dates outside the supported range should be accepted.

Open questions

  • SME-237 The date-check service returns an all-zeros code to mean 'date is valid', but the legacy code labels that code 'invalid date'. Can you confirm the code keeps meaning success and the misleading label is dropped? (Development lead)
  • SME-238 The date-check service reports one of ten outcomes (valid, insufficient data, bad value, invalid era, unsupported range, invalid month, bad format, non-numeric, zero year, unrecognized). How should the new date-check service's own results map to these ten outcomes? (Application architect)
  • SME-239 Screens currently accept a date that the date check flags as outside the supported range. Is accepting out-of-range dates a business rule, or a workaround the new validation should drop? (Card operations business analyst)
  • DEF-055 Is this intended? The condition for the all-zero (successful) feedback token is named FC-INVALID-DATE, although it means the date is valid; the behaviour is correct but the name is misleading. (Subject-matter expert)
  • DEF-095 Is this intended? After the call the whole date structure, including its 2-byte binary length prefix, is moved into the 10-character tested-date field, so the 'TstDate:' part of the result shows two binary bytes followed by only the first 8 characters of the date instead of the date itself. (Subject-matter expert)
  • DEF-119 Confirm this is deliberate: The calling screens accept a date when the message number is 2513, which is this unsupported-range result, so a date that the date service cannot handle is let through as valid. (Subject-matter expert)

Design notes

  • Expose date validation as one shared function or service that takes a date string and a format mask and returns a structured result (severity, message code, reason). Implement it with the platform's standard date-parsing library instead of the mainframe date service, and keep the legacy severity/message codes (0000, 2508, 2513 and so on) only as far as callers need them to tell valid from invalid. Submit date and mask for conversion
  • Callers need a result they can test: a severity/status, a message code, the reason text, and the tested date and mask for diagnostics. A typed result object replaces the fixed 80-character string and the program return code. Keep the layout only if a remaining legacy consumer still reads it. Submit date and mask for conversion

Customer Data Setup

Credit Card List Detail View and Update

1. Browse and page the card listdraft · online · 20 requirements · 22 rules · 28 criteria · 3 screens

Card operations users browse the credit cards seven to a page and move forward and back through the list to find the card they want to view or update. Each row shows the card number, account number and active status. The list must never skip or repeat cards between pages, must say when there are no more pages, and must start again from the first card whenever the user comes in from the menu or returns from card detail or card update.

As a card operations user, I want to see the credit cards seven at a time and page forward and back through them, so that I can find the card I need to view or update.

Draft: the function is not signed off yet. Risk medium; touches card_data. rec/CustomerDataSetup/CreditCardListDetailViewandUpdate#1

Requirements

CodeClassRequirementCriteria
REQ-F-001formattingWhen the card list is started from the main menu, the system shall show the first 7 cards from the beginning of the card file.AC-01
REQ-F-002design noteWhen the card list is started from another program with context 'enter' (from main menu option 3, or on return from card detail or card update), the system shall clear the saved first and last card positions, set the page to 1 and the last-page flag to 'not shown', and not read any screen input.AC-02
REQ-F-003business ruleWhen the user arrives with PF3 from another program (such as leaving card detail or card update), or the list is re-entered from another program, the system shall reset the session to page 1 as a regular user and list the cards from the beginning of the card file.AC-03
REQ-F-004business ruleWhile the card list fills a page going forward, when a card record passes the account and card-number filters, the system shall add its card number, account number and active status as the next row and, if it is the first row and the page number is 0, set the page number to 1.AC-04, AC-05
REQ-F-005business ruleWhen a page reaches 7 cards, the system shall stop filling the page and read one more card record ahead, without applying the filters, to decide whether a next page exists.AC-06
REQ-F-006business ruleWhen the look-ahead read after a full page finds another card record, the system shall set the next page indicator to 'Y' and remember that card as the start of the next page.AC-07, AC-08, AC-09
REQ-F-007business ruleWhen a page is filled with the maximum of 7 cards and reading one card further reaches the end of the card file, the system shall record that no next page exists and, if no other message is set, show 'NO MORE RECORDS TO SHOW'.AC-08, AC-09, AC-10
REQ-F-008business ruleWhen the end of the card file is reached before the page holds 7 cards, the system shall stop reading, record that no next page exists, and show 'NO MORE RECORDS TO SHOW' if no other message is set.AC-10, AC-11
REQ-F-009formattingWhen the end of the card file is reached on page 1 with no card listed, the system shall show 'NO RECORDS FOUND FOR THIS SEARCH CONDITION.' instead of 'NO MORE RECORDS TO SHOW'.AC-12
REQ-F-010business ruleWhen there is no input error and the user presses PF8 while a next page exists ('Y'), the system shall add one to the page number and list cards starting from the card found by the look-ahead read after the last card shown.AC-13
REQ-F-011business ruleWhen there is no input error, exit, page change or valid selection (for example Enter with nothing selected, or PF8 with no next page), the system shall redisplay cards, applying any filters, starting from the first card of the page currently shown.AC-14
REQ-F-012business ruleWhen there is no input error and the user presses PF7 while on page 1, the system shall redisplay page 1 starting from its first card with the message 'NO PREVIOUS PAGES TO DISPLAY'.AC-15, AC-16
REQ-F-013business ruleWhen there is no input error and the user presses PF7 while not on page 1, the system shall subtract one from the page number and read backward from the first card of the current page, skipping that card itself.AC-17
REQ-F-014business ruleWhile reading backward, the system shall place each card that passes the account and card-number filters into the rows from row 7 up to row 1, stop when row 1 is filled, and make the card in row 1 the new first card of the page.AC-18
REQ-F-015design noteWhen the user pages backward, the system shall set the next page indicator to 'Y' and remember the first card of the page just left as the start of the next page, so that PF8 returns to that page.AC-19
REQ-F-016design noteWhen the user presses any key other than PF8, the system shall reset the last-page flag to 'not shown'.AC-28
REQ-F-017formattingWhen the user presses PF8 on the last page for the first time, the system shall show the page again with the instruction 'TYPE S FOR DETAIL, U TO UPDATE ANY RECORD' and remember that the last page has been shown.AC-20
REQ-F-018formattingWhen the user presses PF8 again on a last page that has already been shown, the system shall redisplay that page with the message 'NO MORE PAGES TO DISPLAY'.AC-21
REQ-F-019formattingThe system shall show 'TYPE S FOR DETAIL, U TO UPDATE ANY RECORD' on the card list in every case not otherwise covered, except when the message is 'NO RECORDS FOUND FOR THIS SEARCH CONDITION.' or a filter is in error.AC-22, AC-23, AC-24
REQ-F-020business ruleWhen the user presses PF3 and the originating program is the card list, the system shall transfer control to the main menu program ('COMEN01C') with the shared context, ending the card list.AC-25, AC-26, AC-27

Business rules

RuleClassText, worked examples and evidence
Session context reset on entry from another program
rec/group:claude/RULE-168/2
formatting
display, high
WHEN the card list is started from the main menu, THE card list SHALL show the first 7 cards from the beginning of the card file.
  • menu option: 3 'Credit Card List' → Page 1 shows the first 7 cards in card-number order.
app/cbl/COCRDLIC.cbl:334-343, app/cbl/COCRDLIC.cbl:355-359, app/cbl/COCRDLIC.cbl:385-406, app/cbl/COCRDLIC.cbl:458-482, app/cbl/COCRDLIC.cbl:572-583, app/cbl/COMEN01C.cbl:179-185
Session context reset on entry from another program
rec/group:claude/RULE-168/1
design note
technical, high
WHEN the card list is started from another program with context 'enter' (from main menu option 3, or on return from card detail or card update), THE card list SHALL clear the saved first and last card positions, set the page to 1 and the last-page flag to 'not shown', and not read any screen input.
  • coming from: COMEN01C; context: enter → Paging starts afresh at page 1; nothing typed on an earlier list screen is used.
app/cbl/COCRDLIC.cbl:334-343, app/cbl/COCRDLIC.cbl:355-359, app/cbl/COCRDLIC.cbl:385-406, app/cbl/COCRDLIC.cbl:458-482, app/cbl/COCRDLIC.cbl:572-583, app/cbl/COMEN01C.cbl:179-185
Restart list from beginning
rec/group:claude/RULE-168/3
business rule
business, high
WHEN the user arrives with PF3 from another program (such as leaving card detail or card update), or the list is re-entered from another program, THE card list SHALL reset the session to page 1 as a regular user and list the cards from the beginning of the card file.
  • previous program: COCRDSLC; key pressed: PF3; list page before leaving: 3 → The list is shown again from page 1, not page 3.
app/cbl/COCRDLIC.cbl:334-343, app/cbl/COCRDLIC.cbl:355-359, app/cbl/COCRDLIC.cbl:385-406, app/cbl/COCRDLIC.cbl:458-482, app/cbl/COCRDLIC.cbl:572-583, app/cbl/COMEN01C.cbl:179-185
Add matching card to page row
rec/group:claude/RULE-024/2
business rule
business, high
WHILE the card list fills a page going forward, WHEN a card record passes the account and card-number filters, THE card list SHALL add its card number, account number and active status as the next row and, if it is the first row and the page number is 0, set the page number to 1.
  • account filter: 00000000011; card read: 4111000000000008, account 00000000011, status 'Y' → The card is added as the next row, showing account 00000000011 and status 'Y'.
  • account filter: 00000000011; card read: 4111000000000016, account 00000000022 → The card is skipped and no row is added.
app/cbl/COCRDLIC.cbl:486-497, app/cbl/COCRDLIC.cbl:1123-1143, app/cbl/COCRDLIC.cbl:1157-1187, app/cbl/COCRDLIC.cbl:1191-1221, app/cbl/COCRDLIC.cbl:1233-1240, app/cbl/COCRDLIC.cbl:177-178
Stop at page capacity and look ahead
rec/group:claude/RULE-024/3
business rule
business, high
WHEN a page reaches 7 cards, THE card list SHALL stop filling the page and read one more card record ahead, without applying the filters, to decide whether a next page exists.
  • matching cards: 12; page: 1 → 7 cards are shown, and the 8th card is read ahead but not shown.
app/cbl/COCRDLIC.cbl:486-497, app/cbl/COCRDLIC.cbl:1123-1143, app/cbl/COCRDLIC.cbl:1157-1187, app/cbl/COCRDLIC.cbl:1191-1221, app/cbl/COCRDLIC.cbl:1233-1240, app/cbl/COCRDLIC.cbl:177-178
Flag next page available after full page
rec/group:claude/RULE-024/4
business rule
business, high
WHEN the look-ahead read after a full page finds another card record, THE card list SHALL set the next page indicator to 'Y' and remember that card as the start of the next page.
  • cards in file after the 7th shown: 5 → The next page indicator is 'Y', so PF8 can be used.
app/cbl/COCRDLIC.cbl:486-497, app/cbl/COCRDLIC.cbl:1123-1143, app/cbl/COCRDLIC.cbl:1157-1187, app/cbl/COCRDLIC.cbl:1191-1221, app/cbl/COCRDLIC.cbl:1233-1240, app/cbl/COCRDLIC.cbl:177-178
Report end of list after full page
rec/group:claude/RULE-249/6
business rule
business, high
WHEN a page is filled with the maximum of 7 cards and reading one card further reaches the end of the card file, THE card list SHALL record that no next page exists and, if no other message is set, show 'NO MORE RECORDS TO SHOW'; if a further card exists it SHALL record that a next page exists.
  • cards remaining from page start: 7 → 7 cards are listed, no next page, message 'NO MORE RECORDS TO SHOW'.
  • cards remaining from page start: 8 → 7 cards are listed and PF8 will move to a next page.
app/cbl/COCRDLIC.cbl:410-414, app/cbl/COCRDLIC.cbl:895-930, app/cbl/COCRDLIC.cbl:112-122, app/cbl/COCRDLIC.cbl:175-178, app/cbl/COCRDLIC.cbl:1191-1221, app/cbl/COCRDLIC.cbl:486-497
Forward paging: 7 cards per page with look-ahead for next page
rec/group:claude/RULE-024/5
formatting
display, high
WHEN the forward read reaches the end of the card file, either while filling the page or on the look-ahead read, THE card list SHALL mark that no next page exists and show 'NO MORE RECORDS TO SHOW' unless another message is already set.
  • matching cards: 7; cards in file after the 7th: 0 → 7 cards are shown, there is no next page, and the message is 'NO MORE RECORDS TO SHOW'.
app/cbl/COCRDLIC.cbl:486-497, app/cbl/COCRDLIC.cbl:1123-1143, app/cbl/COCRDLIC.cbl:1157-1187, app/cbl/COCRDLIC.cbl:1191-1221, app/cbl/COCRDLIC.cbl:1233-1240, app/cbl/COCRDLIC.cbl:177-178
Handle end of cards during forward read
rec/group:claude/RULE-223/4
business rule
business, high
WHEN the end of the card file is reached before the page holds 7 cards, THE card list SHALL stop reading, record that no next page exists, and show 'NO MORE RECORDS TO SHOW' if no other message is set.
  • matching cards from page start: 3 → 3 cards listed, no next page, 'NO MORE RECORDS TO SHOW'.
app/cbl/COCRDLIC.cbl:1382-1407, app/cbl/COCRDLIC.cbl:1003-1030, app/cbl/COCRDLIC.cbl:1036-1067, app/cbl/COCRDLIC.cbl:1154-1159, app/cbl/COCRDLIC.cbl:1233-1245, app/cbl/COCRDLIC.cbl:121-122
Handle end of cards during forward read
rec/group:claude/RULE-223/5
formatting
display, high
WHEN the end of the card file is reached on page 1 with no card listed, THE card list SHALL show 'NO RECORDS FOUND FOR THIS SEARCH CONDITION.' instead.
  • page: 1; matching cards: 0 → 'NO RECORDS FOUND FOR THIS SEARCH CONDITION.' is shown.
app/cbl/COCRDLIC.cbl:1382-1407, app/cbl/COCRDLIC.cbl:1003-1030, app/cbl/COCRDLIC.cbl:1036-1067, app/cbl/COCRDLIC.cbl:1154-1159, app/cbl/COCRDLIC.cbl:1233-1245, app/cbl/COCRDLIC.cbl:121-122
Page down to next card page
rec/group:claude/RULE-024/1
business rule
business, high
WHEN there is no input error and the user presses PF8 while a next page exists ('Y'), THE card list SHALL add one to the page number and list cards starting from the card found by the look-ahead read after the last card shown (the stored last-card key, read at that key or the next one after it).
  • key pressed: PF8; current page: 1; next page indicator: 'Y'; card found by the look-ahead read: 4111000000000081 → Page 2 is shown, and its first card is 4111000000000081 or the next card after it that passes the filters.
app/cbl/COCRDLIC.cbl:486-497, app/cbl/COCRDLIC.cbl:1123-1143, app/cbl/COCRDLIC.cbl:1157-1187, app/cbl/COCRDLIC.cbl:1191-1221, app/cbl/COCRDLIC.cbl:1233-1240, app/cbl/COCRDLIC.cbl:177-178
Show card list from current start key
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-335dc185b3/1
business rule
business, medium
WHEN there is no input error, exit, page change or valid selection (for example Enter with nothing selected, or PF8 with no next page), THE card list SHALL redisplay cards, applying any filters, starting from the first card of the page currently shown.
  • page: 2, first card 4111000000000008; key pressed: Enter; selection: none → Page 2 is shown again starting at card 4111000000000008.
app/cbl/COCRDLIC.cbl:570-583, app/cbl/COCRDLIC.cbl:1125-1135
Stay on first page when paging up
rec/group:claude/RULE-025/1
business rule
business, high
WHEN there is no input error and the user presses PF7 while on page 1, THE card list SHALL redisplay page 1 starting from its first card and show 'NO PREVIOUS PAGES TO DISPLAY'.
  • key pressed: PF7; current page: 1 → Page 1 is shown again with the message 'NO PREVIOUS PAGES TO DISPLAY'.
app/cbl/COCRDLIC.cbl:439-454, app/cbl/COCRDLIC.cbl:501-513, app/cbl/COCRDLIC.cbl:237-238, app/cbl/COCRDLIC.cbl:901-903, app/cbl/COCRDLIC.cbl:1264-1310, app/cbl/COCRDLIC.cbl:1320-1371
Choose card list message
rec/group:claude/RULE-249/4
formatting
display, high
WHEN the user presses PF7 while on the first page and no filter is in error, THE card list SHALL redisplay the first page with the message 'NO PREVIOUS PAGES TO DISPLAY'.
  • page: 1; key pressed: PF7 → Message 'NO PREVIOUS PAGES TO DISPLAY' is shown.
app/cbl/COCRDLIC.cbl:410-414, app/cbl/COCRDLIC.cbl:895-930, app/cbl/COCRDLIC.cbl:112-122, app/cbl/COCRDLIC.cbl:175-178, app/cbl/COCRDLIC.cbl:1191-1221, app/cbl/COCRDLIC.cbl:486-497
Page up to previous card page
rec/group:claude/RULE-025/2
business rule
business, high
WHEN there is no input error and the user presses PF7 while not on page 1, THE card list SHALL subtract one from the page number and read backward from the first card of the current page, skipping that card itself.
  • key pressed: PF7; current page: 2; first card on page: 4111000000000008 → Page 1 is shown with the cards before 4111000000000008, not including 4111000000000008 itself.
app/cbl/COCRDLIC.cbl:439-454, app/cbl/COCRDLIC.cbl:501-513, app/cbl/COCRDLIC.cbl:237-238, app/cbl/COCRDLIC.cbl:901-903, app/cbl/COCRDLIC.cbl:1264-1310, app/cbl/COCRDLIC.cbl:1320-1371
Fill previous-page rows from bottom up
rec/group:claude/RULE-025/3
business rule
business, high
WHILE reading backward, THE card list SHALL place each card that passes the account and card-number filters into the rows from row 7 up to row 1, stop when row 1 is filled, and make the card in row 1 the new first card of the page.
  • matching cards before the current page: C1 to C9, in key order → Rows 1 to 7 show C3 to C9, and C3 becomes the first card of the page.
app/cbl/COCRDLIC.cbl:439-454, app/cbl/COCRDLIC.cbl:501-513, app/cbl/COCRDLIC.cbl:237-238, app/cbl/COCRDLIC.cbl:901-903, app/cbl/COCRDLIC.cbl:1264-1310, app/cbl/COCRDLIC.cbl:1320-1371
Backward paging and first-page guard
rec/group:claude/RULE-025/4
design note
technical, high
WHEN the user pages backward, THE card list SHALL set the next page indicator to 'Y' and remember the first card of the page just left as the start of the next page, so that PF8 returns to that page.
  • action: PF7 from page 3, whose first card is 4111000000000099, then PF8 → Page 3 is shown again, starting at 4111000000000099.
app/cbl/COCRDLIC.cbl:439-454, app/cbl/COCRDLIC.cbl:501-513, app/cbl/COCRDLIC.cbl:237-238, app/cbl/COCRDLIC.cbl:901-903, app/cbl/COCRDLIC.cbl:1264-1310, app/cbl/COCRDLIC.cbl:1320-1371
Reset last-page indicator unless paging down
rec/group:claude/RULE-249/1
design note
technical, high
WHEN the user presses any key other than PF8, THE card list SHALL reset its record that the last page has already been shown (last-page flag set to 'not shown').
app/cbl/COCRDLIC.cbl:410-414, app/cbl/COCRDLIC.cbl:895-930, app/cbl/COCRDLIC.cbl:112-122, app/cbl/COCRDLIC.cbl:175-178, app/cbl/COCRDLIC.cbl:1191-1221, app/cbl/COCRDLIC.cbl:486-497
Choose card list message
rec/group:claude/RULE-249/2
formatting
display, high
WHEN the user presses PF8 on the last page for the first time, THE card list SHALL show the page again with the instruction 'TYPE S FOR DETAIL, U TO UPDATE ANY RECORD' and remember that the last page has been shown.
  • page: last page, no next page; key pressed: PF8; last page already shown: no → Same page is shown with 'TYPE S FOR DETAIL, U TO UPDATE ANY RECORD'; the last page is now marked as shown.
app/cbl/COCRDLIC.cbl:410-414, app/cbl/COCRDLIC.cbl:895-930, app/cbl/COCRDLIC.cbl:112-122, app/cbl/COCRDLIC.cbl:175-178, app/cbl/COCRDLIC.cbl:1191-1221, app/cbl/COCRDLIC.cbl:486-497
Choose card list message
rec/group:claude/RULE-249/3
formatting
display, high
WHEN the user presses PF8 again on a last page that has already been shown, THE card list SHALL redisplay that page with the message 'NO MORE PAGES TO DISPLAY'.
  • page: last page, no next page; key pressed: PF8 (second time in a row) → Message 'NO MORE PAGES TO DISPLAY' is shown.
app/cbl/COCRDLIC.cbl:410-414, app/cbl/COCRDLIC.cbl:895-930, app/cbl/COCRDLIC.cbl:112-122, app/cbl/COCRDLIC.cbl:175-178, app/cbl/COCRDLIC.cbl:1191-1221, app/cbl/COCRDLIC.cbl:486-497
Choose card list message
rec/group:claude/RULE-249/5
formatting
display, high
WHEN the account or card filter entered is invalid, THE card list SHALL show only the filter error message and no instruction line; in every other case not covered above it SHALL show 'TYPE S FOR DETAIL, U TO UPDATE ANY RECORD', except when the message is 'NO RECORDS FOUND FOR THIS SEARCH CONDITION.'.
  • account filter: 12AB → Only 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER' is shown, no instruction.
  • key pressed: Enter; cards found: 7 → Instruction 'TYPE S FOR DETAIL, U TO UPDATE ANY RECORD' is shown.
  • page: 1; cards matching filter: 0 → 'NO RECORDS FOUND FOR THIS SEARCH CONDITION.' is shown without the instruction.
app/cbl/COCRDLIC.cbl:410-414, app/cbl/COCRDLIC.cbl:895-930, app/cbl/COCRDLIC.cbl:112-122, app/cbl/COCRDLIC.cbl:175-178, app/cbl/COCRDLIC.cbl:1191-1221, app/cbl/COCRDLIC.cbl:486-497
Exit to main menu on PF3
rec/agreed:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-c205166f8b/1
business rule
business, medium
WHEN the user presses PF3 and the originating program is the card list, THE Card List Navigation SHALL transfer control to the main menu program ('COMEN01C') with the shared context, ending the card list
  • key pressed: PF3; CDEMO-FROM-PROGRAM: 'COCRDLIC' → Control transfers (XCTL) to 'COMEN01C' with the shared commarea, from-transaction 'CCLI'; the card list ends and the main menu is shown.
  • key pressed: PF3; CDEMO-FROM-PROGRAM: 'COMEN01C' (first entry from the menu) → No exit; the card list is shown.
  • key pressed: ENTER; CDEMO-FROM-PROGRAM: 'COCRDLIC' → User stays on the card list; the list is refreshed for the current filter.
app/cbl/COCRDLIC.cbl:384-385,402-406, app/cbl/COCRDLIC.cbl:370-414

Acceptance criteria

IDCriterionChecks
AC-01Given menu option: 3 'Credit Card List'
When the card list is started from the main menu
Then Page 1 shows the first 7 cards in card-number order.
REQ-F-001
Session context reset on entry from another program
worked example 1 of the rule
AC-02Given coming from: COMEN01C; context: enter
When the card list is started from another program with context 'enter' (from main menu option 3, or on return from card detail or card update)
Then Paging starts afresh at page 1; nothing typed on an earlier list screen is used.
REQ-F-002
Session context reset on entry from another program
worked example 1 of the rule
AC-03Given previous program: COCRDSLC; key pressed: PF3; list page before leaving: 3
When the user arrives with PF3 from another program (such as leaving card detail or card update), or the list is re-entered from another program
Then The list is shown again from page 1, not page 3.
REQ-F-003
Restart list from beginning
worked example 1 of the rule
AC-04Given account filter: 00000000011; card read: 4111000000000008, account 00000000011, status 'Y'
When the card list fills a page going forward, WHEN a card record passes the account and card-number filters
Then The card is added as the next row, showing account 00000000011 and status 'Y'.
REQ-F-004
Add matching card to page row
worked example 1 of the rule
AC-05Given account filter: 00000000011; card read: 4111000000000016, account 00000000022
When the card list fills a page going forward, WHEN a card record passes the account and card-number filters
Then The card is skipped and no row is added.
REQ-F-004
Add matching card to page row
worked example 2 of the rule
AC-06Given matching cards: 12; page: 1
When a page reaches 7 cards
Then 7 cards are shown, and the 8th card is read ahead but not shown.
REQ-F-005
Stop at page capacity and look ahead
worked example 1 of the rule
AC-07Given cards in file after the 7th shown: 5
When the look-ahead read after a full page finds another card record
Then The next page indicator is 'Y', so PF8 can be used.
REQ-F-006
Flag next page available after full page
worked example 1 of the rule
AC-08Given cards remaining from page start: 7
When a page is filled with the maximum of 7 cards and reading one card further reaches the end of the card file
Then 7 cards are listed, no next page, message 'NO MORE RECORDS TO SHOW'.
REQ-F-006, REQ-F-007
Report end of list after full page
worked example 1 of the rule
AC-09Given cards remaining from page start: 8
When a page is filled with the maximum of 7 cards and reading one card further reaches the end of the card file
Then 7 cards are listed and PF8 will move to a next page.
REQ-F-006, REQ-F-007
Report end of list after full page
worked example 2 of the rule
AC-10Given matching cards: 7; cards in file after the 7th: 0
When the forward read reaches the end of the card file, either while filling the page or on the look-ahead read
Then 7 cards are shown, there is no next page, and the message is 'NO MORE RECORDS TO SHOW'.
REQ-F-007, REQ-F-008
Forward paging: 7 cards per page with look-ahead for next page
worked example 1 of the rule
AC-11Given matching cards from page start: 3
When the end of the card file is reached before the page holds 7 cards
Then 3 cards listed, no next page, 'NO MORE RECORDS TO SHOW'.
REQ-F-008
Handle end of cards during forward read
worked example 1 of the rule
AC-12Given page: 1; matching cards: 0
When the end of the card file is reached on page 1 with no card listed
Then 'NO RECORDS FOUND FOR THIS SEARCH CONDITION.' is shown.
REQ-F-009
Handle end of cards during forward read
worked example 1 of the rule
AC-13Given key pressed: PF8; current page: 1; next page indicator: 'Y'; card found by the look-ahead read: 4111000000000081
When there is no input error and the user presses PF8 while a next page exists ('Y')
Then Page 2 is shown, and its first card is 4111000000000081 or the next card after it that passes the filters.
REQ-F-010
Page down to next card page
worked example 1 of the rule
AC-14Given page: 2, first card 4111000000000008; key pressed: Enter; selection: none
When there is no input error, exit, page change or valid selection (for example Enter with nothing selected, or PF8 with no next page)
Then Page 2 is shown again starting at card 4111000000000008.
REQ-F-011
Show card list from current start key
worked example 1 of the rule
AC-15Given key pressed: PF7; current page: 1
When there is no input error and the user presses PF7 while on page 1
Then Page 1 is shown again with the message 'NO PREVIOUS PAGES TO DISPLAY'.
REQ-F-012
Stay on first page when paging up
worked example 1 of the rule
AC-16Given page: 1; key pressed: PF7
When the user presses PF7 while on the first page and no filter is in error
Then Message 'NO PREVIOUS PAGES TO DISPLAY' is shown.
REQ-F-012
Choose card list message
worked example 1 of the rule
AC-17Given key pressed: PF7; current page: 2; first card on page: 4111000000000008
When there is no input error and the user presses PF7 while not on page 1
Then Page 1 is shown with the cards before 4111000000000008, not including 4111000000000008 itself.
REQ-F-013
Page up to previous card page
worked example 1 of the rule
AC-18Given matching cards before the current page: C1 to C9, in key order
When reading backward
Then Rows 1 to 7 show C3 to C9, and C3 becomes the first card of the page.
REQ-F-014
Fill previous-page rows from bottom up
worked example 1 of the rule
AC-19Given action: PF7 from page 3, whose first card is 4111000000000099, then PF8
When the user pages backward
Then Page 3 is shown again, starting at 4111000000000099.
REQ-F-015
Backward paging and first-page guard
worked example 1 of the rule
AC-20Given page: last page, no next page; key pressed: PF8; last page already shown: no
When the user presses PF8 on the last page for the first time
Then Same page is shown with 'TYPE S FOR DETAIL, U TO UPDATE ANY RECORD'; the last page is now marked as shown.
REQ-F-017
Choose card list message
worked example 1 of the rule
AC-21Given page: last page, no next page; key pressed: PF8 (second time in a row)
When the user presses PF8 again on a last page that has already been shown
Then Message 'NO MORE PAGES TO DISPLAY' is shown.
REQ-F-018
Choose card list message
worked example 1 of the rule
AC-22Given account filter: 12AB
When the account or card filter entered is invalid
Then Only 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER' is shown, no instruction.
REQ-F-019
Choose card list message
worked example 1 of the rule
AC-23Given key pressed: Enter; cards found: 7
When the account or card filter entered is invalid
Then Instruction 'TYPE S FOR DETAIL, U TO UPDATE ANY RECORD' is shown.
REQ-F-019
Choose card list message
worked example 2 of the rule
AC-24Given page: 1; cards matching filter: 0
When the account or card filter entered is invalid
Then 'NO RECORDS FOUND FOR THIS SEARCH CONDITION.' is shown without the instruction.
REQ-F-019
Choose card list message
worked example 3 of the rule
AC-25Given key pressed: PF3; CDEMO-FROM-PROGRAM: 'COCRDLIC'
When the user presses PF3 and the originating program is the card list
Then Control transfers (XCTL) to 'COMEN01C' with the shared commarea, from-transaction 'CCLI'; the card list ends and the main menu is shown.
REQ-F-020
Exit to main menu on PF3
worked example 1 of the rule
AC-26Given key pressed: PF3; CDEMO-FROM-PROGRAM: 'COMEN01C' (first entry from the menu)
When the user presses PF3 and the originating program is the card list
Then No exit; the card list is shown.
REQ-F-020
Exit to main menu on PF3
worked example 2 of the rule
AC-27Given key pressed: ENTER; CDEMO-FROM-PROGRAM: 'COCRDLIC'
When the user presses PF3 and the originating program is the card list
Then User stays on the card list; the list is refreshed for the current filter.
REQ-F-020
Exit to main menu on PF3
worked example 3 of the rule
AC-28Given the user has pressed PF8 on the last page, so the list has recorded that the last page has been shown
When the user presses any key other than PF8, for example Enter or PF7
Then the last-page flag is reset to 'not shown'
REQ-F-016
Reset last-page indicator unless paging down
written from the rule

Screens

  • Cards S-CARD-LIST · design · replaces CCRDLIA (3 kept, 40 merged, 6 dropped, 1 split)
    • **data table** Cards found checks: Each row is its own link and only one opens at a time, so no selection code is typed and 'PLEASE SELECT ONLY ONE RECORD TO VIEW OR UPDATE' and 'INVALID ACTION CODE' cannot occur
    • **status badge** Card status
  • Card details S-CARD-DETAIL · design · replaces CCRDSLA, CCRDUPA (29 merged, 7 kept, 2 split, 2 dropped)
  • Application header and navigation S-APP-SHELL · design
    • **data table** Cards

Data contracts

CVACT02Y (file record; COCRDLIC), COCOM01Y (working storage; COCRDLIC), COTTL01Y (working storage; COCRDLIC), CSDAT01Y (working storage; COCRDLIC), CSMSG01Y (working storage; COCRDLIC), CSSTRPFY (working storage; COCRDLIC), CSUSR01Y (working storage; COCRDLIC), CVCRD01Y (working storage; COCRDLIC)

Decision tables

Card list paging keys

Key pressed (no input error)Current pageNext page existsLast page already shownPage shown and messageRule
PF8anyYes ('Y')anyAdd one to page number; list from look-ahead cardrec/group:claude/RULE-024/1
PF8last pageNoNot shownShow page again with 'TYPE S FOR DETAIL, U TO UPDATE ANY RECORD'; remember last page shownrec/group:claude/RULE-249/2
PF8last pageNoShownRedisplay page with 'NO MORE PAGES TO DISPLAY'rec/group:claude/RULE-249/3
PF7page 1anyanyRedisplay page 1 from its first card with 'NO PREVIOUS PAGES TO DISPLAY'rec/group:claude/RULE-025/1
PF7not page 1anyanySubtract one from page number; read backward from first card of current pagerec/group:claude/RULE-025/2
Enter, nothing selectedanyanyanyRedisplay from first card of current pagerec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-335dc185b3/1

Open questions

  • SME-096 On the card list screen, the filter messages say the account number must be 11 digits and the card number 16 digits, but only 'numeric' is checked. Should exactly 11 and 16 digits be required? (Business analyst)
  • SME-097 On the card list screen, what should happen when the user pages forward past the last page? Should 'NO MORE PAGES TO DISPLAY' appear on the first press, or is the current behaviour intended (the first PF8 shows the action prompt and only the second shows the message)? (Card operations subject-matter expert)
  • SME-098 On the card list screen, what should happen when the user presses Enter with exactly one card marked 'S' (view) or 'U' (update)? (Business analyst)
  • SME-099 Please confirm this card list rule: while a page is being filled, each card record that is read successfully (a duplicate key counts as success) and passes the account and card filters adds one row showing its card number, account number and active status. (Business analyst)
  • SME-100 Please confirm the priority of the card list filter rule (by account and/or card number, both applied together). Is it critical to the system's core purpose, or a rule that would be costly if it were wrong? (Card operations subject-matter expert)
  • SME-101 When paging back reaches the start of the card list before 7 rows are filled, should the screen show a partial page without an error? Today it shows 'File Error'. (Card operations subject-matter expert)
  • DEF-012 Is this intended? The look-ahead read does not apply the account or card filters, so with a filter active the next page indicator can be 'Y' when no further matching card exists. PF8 then moves to an empty page. Also, the page number holds one digit, so paging forward from page 9 wraps it to 0, which the read then resets to 1. (Subject-matter expert)
  • DEF-013 Is this intended? The backward read has no end-of-file case. If fewer than 7 matching cards come before the current page (possible with a filter, or after the page-9 wrap), the read hits the start of the file and shows a 'File Error: READ ...' message instead of a partial page. (Subject-matter expert)
  • DEF-075 Is this intended? On PF3 return the whole shared session area is cleared and the user is set to regular user type, so the signed-on user ID and any admin type carried in the session are lost for later screens. (Subject-matter expert)
  • DEF-092 Is this intended? A filter typed on Enter is applied from the first card of the page currently shown, not from the start of the file, so on page 2 or later earlier matching cards are missed and an empty result shows 'NO MORE RECORDS TO SHOW' instead of 'NO RECORDS FOUND FOR THIS SEARCH CONDITION.'. (Subject-matter expert)
  • DEF-099 Is this intended? The fallback branch that would leave the instruction blank can never be taken, because the screen set-up always clears the info message first, so the 'no info message' test is always true and the instruction is shown in every remaining case. (Subject-matter expert)
  • DEF-121 Is this intended? Because this branch starts from the current page's first card, a newly typed filter is not searched from the start of the file when the user is past page 1. (Subject-matter expert)

Design notes

  • When the list is opened fresh (from the main menu, or on return from card detail or card update), start a new list session: no saved first or last card positions, page number 1, last-page-shown false. Ignore any form or filter input sent with that request. Session context reset on entry from another program
  • When paging back, set the session's 'has next page' to true and save the first card number of the page being left as the start of the next page, so the next forward page request goes back to exactly that page. Backward paging and first-page guard
  • Keep a 'last page already shown' flag in the list session. Clear it on every user action except next page, so that only two next-page requests in a row on the last page lead to the 'no more pages' message. Reset last-page indicator unless paging down
2. Filter the card list by account and card numberdraft · online · 7 requirements · 7 rules · 10 criteria · 2 screens · 1 gap

Card operations users can narrow the card list to one account number, one card number, or both. A filter left blank or all zeros is ignored. A non-numeric filter is rejected with its exact message, and while a filter is in error the list must not be re-read or offer row selection. When both filters are given, only cards that match both may be listed.

As a card operations user, I want to filter the card list by account number and card number, so that I only see the cards I am looking for.

Draft: the function is not signed off yet. Risk medium; touches card_data. rec/CustomerDataSetup/CreditCardListDetailViewandUpdate#2

Requirements

CodeClassRequirementCriteria
REQ-F-021business ruleWhen the account filter or card filter is left blank or all zeros, the system shall treat that filter as not supplied and not filter on that field.AC-01, AC-02, AC-03
REQ-F-022business ruleIf the card filter supplied is non-numeric and no earlier error exists, then the system shall reject it with 'CARD ID FILTER,IF SUPPLIED MUST BE A 16 DIGIT NUMBER'.AC-01
REQ-F-023business ruleIf the account filter supplied is non-numeric, then the system shall reject it with 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER' and protect the selection rows.AC-02
REQ-F-024business ruleWhen a numeric account filter or card filter is submitted, the system shall accept and save that account number or card number.AC-01, AC-02
REQ-F-025business ruleWhen a valid account filter is entered, the system shall list only cards whose account number equals the filter.AC-04
REQ-F-026business ruleWhen a valid card number filter is entered, the system shall list only the card with that number, and when both filters are entered, the system shall list a card only if it matches both.AC-05
REQ-F-027error handlingIf an account or card filter entered is invalid, then the system shall redisplay the list screen with only the filter error message and no instruction line, re-reading the cards only when both filters are valid or blank.AC-06, AC-07, AC-08, AC-09, AC-10

Business rules

RuleClassText, worked examples and evidence
Validate card number filter
rec/agreed:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-47e01908e8/1
business rule
validation, medium
WHEN the operator submits a card filter that is blank or zero, non-numeric, or numeric, THE Card List Filter Validation SHALL treat a blank or zero filter as not supplied, reject a non-numeric filter with 'CARD ID FILTER,IF SUPPLIED MUST BE A 16 DIGIT NUMBER' when no earlier error exists, otherwise accept and save the card number
  • Card filter: 0000000000000000 → Filter treated as not supplied; card number set to 0.
app/cbl/COCRDLIC.cbl:1036,1042-1048,1052-1066, app/cbl/COCRDLIC.cbl:1036-1071
Validate account filter
rec/agreed:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-8d224eefb4/1
business rule
validation, medium
WHEN the operator submits an account filter that is blank or zero, non-numeric, or numeric, THE Card List Filter Validation SHALL treat a blank or zero filter as not supplied, reject a non-numeric filter with 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER' and protect the selection rows, otherwise accept and save the account number
  • Account filter: (blank) → Filter treated as not supplied; account id set to 0; all cards listed (subject to card filter).
app/cbl/COCRDLIC.cbl:985-987,989-990,992-993,995-997,1003,1007-1013,1017-1029, app/cbl/COCRDLIC.cbl:1003-1030
Filter cards by account and card number
rec/group:claude/RULE-223/3
business rule
business, high
WHEN a filter is left blank or all zeros, THE card list SHALL not filter on that field.
  • account filter: 00000000000; card filter: blank → All cards are listed, 7 per page.
app/cbl/COCRDLIC.cbl:1382-1407, app/cbl/COCRDLIC.cbl:1003-1030, app/cbl/COCRDLIC.cbl:1036-1067, app/cbl/COCRDLIC.cbl:1154-1159, app/cbl/COCRDLIC.cbl:1233-1245, app/cbl/COCRDLIC.cbl:121-122
Filter cards by account and card number
rec/group:claude/RULE-223/1
business rule
business, high
WHEN a valid account filter is entered, THE card list SHALL list only cards whose account number equals the filter.
  • account filter: 00000000010; card filter: blank; cards on file: 4111000000000001 (acct 00000000010), 4111000000000002 (acct 00000000010), 4111000000000003 (acct 00000000020) → Only 4111000000000001 and 4111000000000002 are listed.
app/cbl/COCRDLIC.cbl:1382-1407, app/cbl/COCRDLIC.cbl:1003-1030, app/cbl/COCRDLIC.cbl:1036-1067, app/cbl/COCRDLIC.cbl:1154-1159, app/cbl/COCRDLIC.cbl:1233-1245, app/cbl/COCRDLIC.cbl:121-122
Filter cards by account and card number
rec/group:claude/RULE-223/2
business rule
business, high
WHEN a valid card number filter is entered, THE card list SHALL list only the card with that number, and when both filters are entered a card SHALL be listed only if it matches both.
  • account filter: 00000000010; card filter: 4111000000000003; card 4111000000000003 account: 00000000020 → No card is listed; on page 1 the message is 'NO RECORDS FOUND FOR THIS SEARCH CONDITION.'.
app/cbl/COCRDLIC.cbl:1382-1407, app/cbl/COCRDLIC.cbl:1003-1030, app/cbl/COCRDLIC.cbl:1036-1067, app/cbl/COCRDLIC.cbl:1154-1159, app/cbl/COCRDLIC.cbl:1233-1245, app/cbl/COCRDLIC.cbl:121-122
Redisplay list after input errors
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-8c5852f5c7/1
error handling
error_handling, medium
WHEN the user's input fails a check (an invalid filter, more than one row selected with 'PLEASE SELECT ONLY ONE RECORD TO VIEW OR UPDATE', or an action other than S or U with 'INVALID ACTION CODE'), THE card list SHALL redisplay the list screen with the error message, re-reading the cards only when both filters are valid or blank.
  • selection: 'S' on row 1 and 'U' on row 2 → Screen shows 'PLEASE SELECT ONLY ONE RECORD TO VIEW OR UPDATE' with the cards re-read.
  • card filter: 41110000ABC → Screen shows 'CARD ID FILTER,IF SUPPLIED MUST BE A 16 DIGIT NUMBER' and no cards are re-read.
app/cbl/COCRDLIC.cbl:418-438, app/cbl/COCRDLIC.cbl:1003-1030, app/cbl/COCRDLIC.cbl:1036-1067, app/cbl/COCRDLIC.cbl:1074-1116, app/cbl/COCRDLIC.cbl:121-126
Choose card list message
rec/group:claude/RULE-249/5
formatting
display, high
WHEN the account or card filter entered is invalid, THE card list SHALL show only the filter error message and no instruction line; in every other case not covered above it SHALL show 'TYPE S FOR DETAIL, U TO UPDATE ANY RECORD', except when the message is 'NO RECORDS FOUND FOR THIS SEARCH CONDITION.'.
  • account filter: 12AB → Only 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER' is shown, no instruction.
  • key pressed: Enter; cards found: 7 → Instruction 'TYPE S FOR DETAIL, U TO UPDATE ANY RECORD' is shown.
  • page: 1; cards matching filter: 0 → 'NO RECORDS FOUND FOR THIS SEARCH CONDITION.' is shown without the instruction.
app/cbl/COCRDLIC.cbl:410-414, app/cbl/COCRDLIC.cbl:895-930, app/cbl/COCRDLIC.cbl:112-122, app/cbl/COCRDLIC.cbl:175-178, app/cbl/COCRDLIC.cbl:1191-1221, app/cbl/COCRDLIC.cbl:486-497

Acceptance criteria

IDCriterionChecks
AC-01Given Card filter: 0000000000000000
When the operator submits a card filter that is blank or zero, non-numeric, or numeric
Then Filter treated as not supplied; card number set to 0.
REQ-F-021, REQ-F-022, REQ-F-024
Validate card number filter
worked example 1 of the rule
AC-02Given Account filter: (blank)
When the operator submits an account filter that is blank or zero, non-numeric, or numeric
Then Filter treated as not supplied; account id set to 0; all cards listed (subject to card filter).
REQ-F-021, REQ-F-023, REQ-F-024
Validate account filter
worked example 1 of the rule
AC-03Given account filter: 00000000000; card filter: blank
When a filter is left blank or all zeros
Then All cards are listed, 7 per page.
REQ-F-021
Filter cards by account and card number
worked example 1 of the rule
AC-04Given account filter: 00000000010; card filter: blank; cards on file: 4111000000000001 (acct 00000000010), 4111000000000002 (acct 00000000010), 4111000000000003 (acct 00000000020)
When a valid account filter is entered
Then Only 4111000000000001 and 4111000000000002 are listed.
REQ-F-025
Filter cards by account and card number
worked example 1 of the rule
AC-05Given account filter: 00000000010; card filter: 4111000000000003; card 4111000000000003 account: 00000000020
When a valid card number filter is entered
Then No card is listed; on page 1 the message is 'NO RECORDS FOUND FOR THIS SEARCH CONDITION.'.
REQ-F-026
Filter cards by account and card number
worked example 1 of the rule
AC-06Given selection: 'S' on row 1 and 'U' on row 2
When the user's input fails a check (an invalid filter, more than one row selected with 'PLEASE SELECT ONLY ONE RECORD TO VIEW OR UPDATE', or an action other than S or U with 'INVALID ACTION CODE')
Then Screen shows 'PLEASE SELECT ONLY ONE RECORD TO VIEW OR UPDATE' with the cards re-read.
REQ-F-027
Redisplay list after input errors
worked example 1 of the rule
AC-07Given card filter: 41110000ABC
When the user's input fails a check (an invalid filter, more than one row selected with 'PLEASE SELECT ONLY ONE RECORD TO VIEW OR UPDATE', or an action other than S or U with 'INVALID ACTION CODE')
Then Screen shows 'CARD ID FILTER,IF SUPPLIED MUST BE A 16 DIGIT NUMBER' and no cards are re-read.
REQ-F-027
Redisplay list after input errors
worked example 2 of the rule
AC-08Given account filter: 12AB
When the account or card filter entered is invalid
Then Only 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER' is shown, no instruction.
REQ-F-027
Choose card list message
worked example 1 of the rule
AC-09Given key pressed: Enter; cards found: 7
When the account or card filter entered is invalid
Then Instruction 'TYPE S FOR DETAIL, U TO UPDATE ANY RECORD' is shown.
REQ-F-027
Choose card list message
worked example 2 of the rule
AC-10Given page: 1; cards matching filter: 0
When the account or card filter entered is invalid
Then 'NO RECORDS FOUND FOR THIS SEARCH CONDITION.' is shown without the instruction.
REQ-F-027
Choose card list message
worked example 3 of the rule

Screens

  • Cards S-CARD-LIST · design · replaces CCRDLIA (3 kept, 40 merged, 6 dropped, 1 split)
    • **lookup field** Account number checks: Must be an 11-digit number if entered: 'Account filter, if supplied, must be an 11 digit number. Enter the 11 digits or leave it blank.'
    • **lookup field** Card number checks: Must be a 16-digit number if entered: 'Card ID filter, if supplied, must be a 16 digit number. Enter the 16 digits or leave it blank.'
  • Card details S-CARD-DETAIL · design · replaces CCRDSLA, CCRDUPA (29 merged, 7 kept, 2 split, 2 dropped)

Data contracts

CVACT02Y (file record; COCRDLIC), COCOM01Y (working storage; COCRDLIC), COTTL01Y (working storage; COCRDLIC), CSDAT01Y (working storage; COCRDLIC), CSMSG01Y (working storage; COCRDLIC), CSSTRPFY (working storage; COCRDLIC), CSUSR01Y (working storage; COCRDLIC), CVCRD01Y (working storage; COCRDLIC)

Decision tables

Card list filter combinations

Account filterCard filterCards listed or errorRule
blank or zeroblank or zeroNo filtering; all cards listedrec/group:claude/RULE-223/3
valid numberblank or zeroOnly cards whose account number equals the filterrec/group:claude/RULE-223/1
blank or zerovalid numberOnly the card with that numberrec/group:claude/RULE-223/2
valid numbervalid numberOnly cards matching both filtersrec/group:claude/RULE-223/2
non-numericanyReject with 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER'; protect selection rowsrec/agreed:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-8d224eefb4/1
blank, zero or valid numbernon-numericReject with 'CARD ID FILTER,IF SUPPLIED MUST BE A 16 DIGIT NUMBER'rec/agreed:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-47e01908e8/1
non-numericnon-numericGap: The card filter message is shown only when no earlier error exists; the rules do not say whether the card filter is still marked in error or which field is highlighted when both filters are invalid.

Open questions

  • SME-096 On the card list screen, the filter messages say the account number must be 11 digits and the card number 16 digits, but only 'numeric' is checked. Should exactly 11 and 16 digits be required? (Business analyst)
  • SME-097 On the card list screen, what should happen when the user pages forward past the last page? Should 'NO MORE PAGES TO DISPLAY' appear on the first press, or is the current behaviour intended (the first PF8 shows the action prompt and only the second shows the message)? (Card operations subject-matter expert)
  • SME-098 On the card list screen, what should happen when the user presses Enter with exactly one card marked 'S' (view) or 'U' (update)? (Business analyst)
  • SME-099 Please confirm this card list rule: while a page is being filled, each card record that is read successfully (a duplicate key counts as success) and passes the account and card filters adds one row showing its card number, account number and active status. (Business analyst)
  • SME-100 Please confirm the priority of the card list filter rule (by account and/or card number, both applied together). Is it critical to the system's core purpose, or a rule that would be costly if it were wrong? (Card operations subject-matter expert)
  • DEF-092 Is this intended? A filter typed on Enter is applied from the first card of the page currently shown, not from the start of the file, so on page 2 or later earlier matching cards are missed and an empty result shows 'NO MORE RECORDS TO SHOW' instead of 'NO RECORDS FOUND FOR THIS SEARCH CONDITION.'. (Subject-matter expert)
  • DEF-099 Is this intended? The fallback branch that would leave the instruction blank can never be taken, because the screen set-up always clears the info message first, so the 'no info message' test is always true and the instruction is shown in every remaining case. (Subject-matter expert)
  • DEF-124 Is this intended? On an input error the re-read is started from an empty key, so the cards shown come from the start of the file even when the user was on a later page, while the page number shown stays the same. (Subject-matter expert)

Design notes

None.

3. Select a card to view or updatedraft · online · 6 requirements · 4 rules · 7 criteria · 2 screens · 1 gap

From the card list, a card operations user marks one card with S to view its details or U to update it, and goes straight to that screen with the card's account and card number. Only one row may be selected and only S, U or blank are valid codes. Any other input is rejected with its exact message and the list is shown again, so the user never lands on the wrong card.

As a card operations user, I want to mark one card in the list with S or U, so that I can go straight to its details or its update screen.

Draft: the function is not signed off yet. Risk medium; touches card_data. rec/CustomerDataSetup/CreditCardListDetailViewandUpdate#3

Requirements

CodeClassRequirementCriteria
REQ-F-028business ruleIf the filters are valid and the operator selects more than one row with 'S' or 'U', then the system shall reject the selection with 'PLEASE SELECT ONLY ONE RECORD TO VIEW OR UPDATE' and mark the affected rows in error.AC-01, AC-02, AC-03
REQ-F-029business ruleIf the filters are valid and the operator enters a code other than 'S', 'U' or blank, then the system shall reject it with 'INVALID ACTION CODE' and mark the affected rows in error.AC-01, AC-02, AC-03
REQ-F-030business ruleWhen the filters are valid and a row is selected, the system shall record the selected row.AC-01, AC-02, AC-03
REQ-F-031error handlingIf the selection fails a check, then the system shall redisplay the list screen with the error message.AC-04, AC-05
REQ-F-032business ruleWhen the user types 'S' against one card row and presses Enter with no input error, the system shall transfer to card detail (COCRDSLC) passing that row's account and card number, with the card list as the previous program and context 'enter'.AC-06
REQ-F-033business ruleWhen the user types 'U' against one card row and presses Enter with no input error, the system shall transfer to card update (COCRDUPC) passing that row's account and card number, with the card list as the previous program and context 'enter'.AC-07

Business rules

RuleClassText, worked examples and evidence
Validate row selection codes
rec/agreed:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-61bccf823a/1
business rule
validation, medium
WHEN the filters are valid and the operator selects more than one row with 'S' or 'U', or enters a code other than 'S', 'U' or blank, THE Card List Selection Validation SHALL reject multiple selections with 'PLEASE SELECT ONLY ONE RECORD TO VIEW OR UPDATE', reject invalid codes with 'INVALID ACTION CODE', mark the affected rows in error, and record the selected row
  • Row 1 selection: 'S'; Row 3 selection: 'U' → Rejected with 'PLEASE SELECT ONLY ONE RECORD TO VIEW OR UPDATE'; rows 1 and 3 marked in error.
  • Row 2 selection: 'X' → Rejected with 'INVALID ACTION CODE'; row 2 marked in error.
  • Row 4 selection: 'S'; other rows: (blank) → Accepted; row 4 recorded as the selected row.
app/cbl/COCRDLIC.cbl:1073,1075-1077,1079-1082,1084-1086,1088-1093,1095,1097,1099-1115, app/cbl/COCRDLIC.cbl:1073-1121
Redisplay list after input errors
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-8c5852f5c7/1
error handling
error_handling, medium
WHEN the user's input fails a check (an invalid filter, more than one row selected with 'PLEASE SELECT ONLY ONE RECORD TO VIEW OR UPDATE', or an action other than S or U with 'INVALID ACTION CODE'), THE card list SHALL redisplay the list screen with the error message, re-reading the cards only when both filters are valid or blank.
  • selection: 'S' on row 1 and 'U' on row 2 → Screen shows 'PLEASE SELECT ONLY ONE RECORD TO VIEW OR UPDATE' with the cards re-read.
  • card filter: 41110000ABC → Screen shows 'CARD ID FILTER,IF SUPPLIED MUST BE A 16 DIGIT NUMBER' and no cards are re-read.
app/cbl/COCRDLIC.cbl:418-438, app/cbl/COCRDLIC.cbl:1003-1030, app/cbl/COCRDLIC.cbl:1036-1067, app/cbl/COCRDLIC.cbl:1074-1116, app/cbl/COCRDLIC.cbl:121-126
Selected card routes to view or update program
rec/claude:claude/RULE-170/1
business rule
business, medium
WHEN the user, on the list shown by this screen, types 'S' against one card row and presses Enter with no input error, THE card list SHALL transfer to card detail (COCRDSLC) passing that row's account and card number, with this list as the previous program and context 'enter'.
  • row 3: account 00000000010, card 4111000000000003; selection on row 3: S; key pressed: Enter → Card detail opens for account 00000000010, card 4111000000000003.
app/cbl/COCRDLIC.cbl:517-569, app/cbl/COCRDLIC.cbl:195-210, app/cbl/COCRDLIC.cbl:1074-1116
Selected card routes to view or update program
rec/claude:claude/RULE-170/2
business rule
business, medium
WHEN the user, on the list shown by this screen, types 'U' against one card row and presses Enter with no input error, THE card list SHALL transfer to card update (COCRDUPC) passing that row's account and card number, with this list as the previous program and context 'enter'.
  • row 3: account 00000000010, card 4111000000000003; selection on row 3: U; key pressed: Enter → Card update opens for account 00000000010, card 4111000000000003.
app/cbl/COCRDLIC.cbl:517-569, app/cbl/COCRDLIC.cbl:195-210, app/cbl/COCRDLIC.cbl:1074-1116

Acceptance criteria

IDCriterionChecks
AC-01Given Row 1 selection: 'S'; Row 3 selection: 'U'
When the filters are valid and the operator selects more than one row with 'S' or 'U', or enters a code other than 'S', 'U' or blank
Then Rejected with 'PLEASE SELECT ONLY ONE RECORD TO VIEW OR UPDATE'; rows 1 and 3 marked in error.
REQ-F-028, REQ-F-029, REQ-F-030
Validate row selection codes
worked example 1 of the rule
AC-02Given Row 2 selection: 'X'
When the filters are valid and the operator selects more than one row with 'S' or 'U', or enters a code other than 'S', 'U' or blank
Then Rejected with 'INVALID ACTION CODE'; row 2 marked in error.
REQ-F-028, REQ-F-029, REQ-F-030
Validate row selection codes
worked example 2 of the rule
AC-03Given Row 4 selection: 'S'; other rows: (blank)
When the filters are valid and the operator selects more than one row with 'S' or 'U', or enters a code other than 'S', 'U' or blank
Then Accepted; row 4 recorded as the selected row.
REQ-F-028, REQ-F-029, REQ-F-030
Validate row selection codes
worked example 3 of the rule
AC-04Given selection: 'S' on row 1 and 'U' on row 2
When the user's input fails a check (an invalid filter, more than one row selected with 'PLEASE SELECT ONLY ONE RECORD TO VIEW OR UPDATE', or an action other than S or U with 'INVALID ACTION CODE')
Then Screen shows 'PLEASE SELECT ONLY ONE RECORD TO VIEW OR UPDATE' with the cards re-read.
REQ-F-031
Redisplay list after input errors
worked example 1 of the rule
AC-05Given card filter: 41110000ABC
When the user's input fails a check (an invalid filter, more than one row selected with 'PLEASE SELECT ONLY ONE RECORD TO VIEW OR UPDATE', or an action other than S or U with 'INVALID ACTION CODE')
Then Screen shows 'CARD ID FILTER,IF SUPPLIED MUST BE A 16 DIGIT NUMBER' and no cards are re-read.
REQ-F-031
Redisplay list after input errors
worked example 2 of the rule
AC-06Given row 3: account 00000000010, card 4111000000000003; selection on row 3: S; key pressed: Enter
When the user, on the list shown by this screen, types 'S' against one card row and presses Enter with no input error
Then Card detail opens for account 00000000010, card 4111000000000003.
REQ-F-032
Selected card routes to view or update program
worked example 1 of the rule
AC-07Given row 3: account 00000000010, card 4111000000000003; selection on row 3: U; key pressed: Enter
When the user, on the list shown by this screen, types 'U' against one card row and presses Enter with no input error
Then Card update opens for account 00000000010, card 4111000000000003.
REQ-F-033
Selected card routes to view or update program
worked example 1 of the rule

Screens

  • Cards S-CARD-LIST · design · replaces CCRDLIA (3 kept, 40 merged, 6 dropped, 1 split)
    • **data table** Cards found checks: Each row is its own link and only one opens at a time, so no selection code is typed and 'PLEASE SELECT ONLY ONE RECORD TO VIEW OR UPDATE' and 'INVALID ACTION CODE' cannot occur
  • Card details S-CARD-DETAIL · design · replaces CCRDSLA, CCRDUPA (29 merged, 7 kept, 2 split, 2 dropped)

Data contracts

CVACT02Y (file record; COCRDLIC), COCOM01Y (working storage; COCRDLIC), COTTL01Y (working storage; COCRDLIC), CSDAT01Y (working storage; COCRDLIC), CSMSG01Y (working storage; COCRDLIC), CSSTRPFY (working storage; COCRDLIC), CSUSR01Y (working storage; COCRDLIC), CVCRD01Y (working storage; COCRDLIC)

Decision tables

Row selection outcome

Filters validRows marked 'S' or 'U'Invalid action code enteredResult of EnterRule
Yesone row with 'S'NoTransfer to card detail (COCRDSLC) with that row's account and card numberrec/claude:claude/RULE-170/1
Yesone row with 'U'NoTransfer to card update (COCRDUPC) with that row's account and card numberrec/claude:claude/RULE-170/2
Yesmore than oneNoReject with 'PLEASE SELECT ONLY ONE RECORD TO VIEW OR UPDATE'; mark rows in errorrec/agreed:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-61bccf823a/1
YesanyYesReject with 'INVALID ACTION CODE'; mark rows in errorrec/agreed:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-61bccf823a/1
YesnoneNoRedisplay list from first card of current pagerec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-335dc185b3/1
Yesmore than oneYesGap: The rules do not say which message is shown when the operator both selects several rows and enters an invalid code.

Open questions

  • SME-096 On the card list screen, the filter messages say the account number must be 11 digits and the card number 16 digits, but only 'numeric' is checked. Should exactly 11 and 16 digits be required? (Business analyst)
  • SME-097 On the card list screen, what should happen when the user pages forward past the last page? Should 'NO MORE PAGES TO DISPLAY' appear on the first press, or is the current behaviour intended (the first PF8 shows the action prompt and only the second shows the message)? (Card operations subject-matter expert)
  • SME-098 On the card list screen, what should happen when the user presses Enter with exactly one card marked 'S' (view) or 'U' (update)? (Business analyst)
  • SME-099 Please confirm this card list rule: while a page is being filled, each card record that is read successfully (a duplicate key counts as success) and passes the account and card filters adds one row showing its card number, account number and active status. (Business analyst)
  • SME-102 Please confirm the priority of the rule that sends a selected card to the view screen ('S') or the update screen ('U'). Is it critical to the system's core purpose, or a rule that would be costly if it were wrong? (Card operations subject-matter expert)
  • DEF-124 Is this intended? On an input error the re-read is started from an empty key, so the cards shown come from the start of the file even when the user was on a later page, while the page number shown stays the same. (Subject-matter expert)

Design notes

None.

4. Search and view card detailsdraft · online · 20 requirements · 21 rules · 33 criteria · 2 screens

Card operations users enter an account number and a 16-digit card number, or arrive with a card picked from the card list, and see that card's embossed name, expiry month and year, and active status. Each missing or badly formed search field is rejected with its exact message and highlighted. The card is found by card number alone. It is not checked against the account entered, and the new application must keep this behaviour, not quietly tighten it.

As a card operations user, I want to enter an account and card number and see that card's details, so that I can check the card's embossed name, expiry and status.

Draft: the function is not signed off yet. Risk medium; touches card_data, personal_data. rec/CustomerDataSetup/CreditCardListDetailViewandUpdate#4

Requirements

CodeClassRequirementCriteria
REQ-F-034business ruleWhen the account or card number entered on the card detail screen is '*' or blank, the system shall treat that search criterion as not supplied.AC-01, AC-02
REQ-F-035business ruleIf the account is not supplied (blank, '*' or all zeros) after the user presses Enter, then the system shall reject the input, show 'Account number not provided' if no other message is already set, reset the saved account to 0 and redisplay the account field as '*' in red.AC-03, AC-04, AC-05
REQ-F-036business ruleIf a supplied account is not entirely numeric, then the system shall reject the input, show the account in red with 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER' if no other message is already set, and reset the saved account to 0.AC-06
REQ-F-037business ruleWhen a supplied account is an 11-digit number that is not all zeros, the system shall accept it and keep it as the current account for the session.AC-07
REQ-F-038business ruleIf the user resubmits the card detail screen and the card number is blank, '*', spaces or all zeros, then the system shall treat it as an input error, show the field as '*' in red, show 'Card number not provided' unless an earlier message is already set, clear the saved card number to 0 and not look up a card.AC-08, AC-09
REQ-F-039business ruleIf the user resubmits the card detail screen and the card number is not made up of 16 digits, then the system shall treat it as an input error, show the card field in red, show 'CARD ID FILTER,IF SUPPLIED MUST BE A 16 DIGIT NUMBER' unless an earlier message is already set, and clear the saved card number to 0.AC-10, AC-11
REQ-F-040business ruleWhen the card number entered is a 16-digit number other than all zeros, the system shall accept it and save it in the shared session details as the card to look up.AC-12
REQ-F-041business ruleIf the user resubmits the card detail screen with both the account number and the card number missing (blank, '*' or all zeros), then the system shall show 'No input received' in place of any other message, mark both fields with '*' in red, and not look up a card.AC-13, AC-14
REQ-F-042business ruleWhen the user presses Enter on the card detail screen and PF3 was not pressed, the system shall check the entered account and card number, redisplay the screen with the message if a check fails, and otherwise look up the card and show its details.AC-15, AC-16
REQ-F-043business ruleWhen the user presses any key other than Enter, PF3 or PF15 on the card detail screen, the system shall show no error and treat the key as Enter, checking the input again and repeating the search.AC-17, AC-18
REQ-F-044business ruleWhen a card lookup is made, the system shall read the card master (CARDDAT) by the 16-digit card number only, and shall not check that the card belongs to the account entered.AC-19
REQ-F-045formattingWhen the card is found, the system shall show ' Displaying requested details' with the card's embossed name, expiry month, expiry year and active status.AC-20
REQ-F-046business ruleIf no card exists with the requested card number, then the system shall reject the search, show both the account and the card number in red, and show 'Did not find cards for this search condition'.AC-21
REQ-F-047error handlingIf reading the card master fails for any reason other than not found, then the system shall reject the search, show the account in red and show 'File Error: READ on CARDDAT returned RESP <code>,RESP2 <code>'.AC-33
REQ-F-048formattingWhen the card detail screen is shown and no information message has been set, the system shall show the information message 'Please enter Account and Card Number'.AC-22, AC-23
REQ-F-049formattingThe system shall show the current error message (if any) on the error line and the information message on the information line of the card detail screen.AC-24
REQ-F-050formattingWhen the card detail screen is shown with session details, the system shall show the saved account number and card number, leaving a field empty when its saved value is zero.AC-25, AC-26
REQ-F-051formattingWhen the card detail screen was reached from the card list (last screen COCRDLI, caller COCRDLIC), the system shall show the account and card fields as protected (not editable) in the default colour, and otherwise shall leave them editable.AC-27, AC-28
REQ-F-052formattingIf a search field fails its check, then the system shall show that field in red, and show '*' in red in a field left blank on resubmission, even if the fields are protected.AC-29, AC-30
REQ-F-053formattingThe system shall place the cursor on the account field when it is invalid or blank, otherwise on the card field when that is invalid or blank, and otherwise on the account field.AC-31, AC-32

Business rules

RuleClassText, worked examples and evidence
Treat asterisk or blank as not supplied
rec/group:claude/RULE-103/1
business rule
validation, high
WHEN the account or card number entered on the card detail screen is '*' or blank, THE card detail search SHALL treat that search criterion as not supplied.
  • Account entered: '*'; Card number entered: 4111111111111111 → The account is treated as not supplied and reported as 'Account number not provided'
  • Card number entered: blank → The card number is treated as not supplied
app/cbl/COCRDSLC.cbl:614-627, app/cbl/COCRDSLC.cbl:647-679, app/cbl/COCRDSLC.cbl:136-139, app/cbl/COCRDSLC.cbl:531-533, app/cbl/COCRDSLC.cbl:543-547, app/cpy/CVCRD01Y.cpy:34-36
Reject missing account number
rec/group:claude/RULE-103/2
business rule
validation, high
WHEN the account is not supplied (blank, '*' or all zeros) after the user presses Enter, THE card detail search SHALL reject the input, show 'Account number not provided' if no other message is already set, and reset the saved account to 0.
  • Account entered: 00000000000; Card number entered: 4111111111111111 → Input rejected with 'Account number not provided'; no card is looked up
  • Account entered: blank → Input rejected; saved account becomes 0
app/cbl/COCRDSLC.cbl:614-627, app/cbl/COCRDSLC.cbl:647-679, app/cbl/COCRDSLC.cbl:136-139, app/cbl/COCRDSLC.cbl:531-533, app/cbl/COCRDSLC.cbl:543-547, app/cpy/CVCRD01Y.cpy:34-36
Reject missing account number
rec/group:claude/RULE-103/3
formatting
display, high
WHEN the account is found missing after the user presses Enter, THE card detail screen SHALL redisplay the account field as '*' in red.
  • Account entered: blank → The account field shows '*' in red
app/cbl/COCRDSLC.cbl:614-627, app/cbl/COCRDSLC.cbl:647-679, app/cbl/COCRDSLC.cbl:136-139, app/cbl/COCRDSLC.cbl:531-533, app/cbl/COCRDSLC.cbl:543-547, app/cpy/CVCRD01Y.cpy:34-36
Validate account number is numeric
rec/group:claude/RULE-103/4
business rule
validation, high
WHEN a supplied account is not entirely numeric, THE card detail search SHALL reject the input, show the account in red with 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER' if no other message is already set, and reset the saved account to 0.
  • Account entered: 1234567890A → Input rejected with 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER'; account shown in red
app/cbl/COCRDSLC.cbl:614-627, app/cbl/COCRDSLC.cbl:647-679, app/cbl/COCRDSLC.cbl:136-139, app/cbl/COCRDSLC.cbl:531-533, app/cbl/COCRDSLC.cbl:543-547, app/cpy/CVCRD01Y.cpy:34-36
Validate account number is numeric
rec/group:claude/RULE-103/5
business rule
business, high
WHEN a supplied account is an 11-digit number that is not all zeros, THE card detail search SHALL accept it and keep it as the current account for the session.
  • Account entered: 00000000001 → Account accepted and saved as the current account
app/cbl/COCRDSLC.cbl:614-627, app/cbl/COCRDSLC.cbl:647-679, app/cbl/COCRDSLC.cbl:136-139, app/cbl/COCRDSLC.cbl:531-533, app/cbl/COCRDSLC.cbl:543-547, app/cpy/CVCRD01Y.cpy:34-36
Reject missing card number
rec/group:claude/RULE-104/1
business rule
validation, high
WHEN the user resubmits the card detail screen and the card number is blank, '*', spaces or all zeros, THE card detail screen SHALL treat it as an input error, show the field as '*' in red, show 'Card number not provided' unless an earlier message is already set, clear the saved card number to 0 and not look up a card.
  • Account number: 00000000001; Card number: (blank) → Error 'Card number not provided'; card field shows '*' in red; no card is looked up
  • Account number: (blank); Card number: 0000000000000000 → The card is treated as missing, but the account message set first is kept (both missing then gives 'No input received')
app/cbl/COCRDSLC.cbl:615-627, app/cbl/COCRDSLC.cbl:685-720, app/cbl/COCRDSLC.cbl:134-143, app/cbl/COCRDSLC.cbl:536-551, app/cbl/COCRDSLC.cbl:357-363, app/cpy/CVCRD01Y.cpy:37-39
Validate card number is numeric
rec/group:claude/RULE-104/2
business rule
validation, high
WHEN the user resubmits the card detail screen and the card number is not made up of 16 digits, THE card detail screen SHALL treat it as an input error, show the card field in red, show 'CARD ID FILTER,IF SUPPLIED MUST BE A 16 DIGIT NUMBER' unless an earlier message is already set, and clear the saved card number to 0.
  • Account number: 00000000001; Card number: 41111111111X1111 → Error 'CARD ID FILTER,IF SUPPLIED MUST BE A 16 DIGIT NUMBER'; card field in red; no card is looked up
  • Account number: ABC; Card number: 41111111111X1111 → The account error 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER' is shown because it was set first; both fields are in red
app/cbl/COCRDSLC.cbl:615-627, app/cbl/COCRDSLC.cbl:685-720, app/cbl/COCRDSLC.cbl:134-143, app/cbl/COCRDSLC.cbl:536-551, app/cbl/COCRDSLC.cbl:357-363, app/cpy/CVCRD01Y.cpy:37-39
Validate card number is numeric
rec/group:claude/RULE-104/3
business rule
validation, high
WHEN the card number entered is a 16-digit number other than all zeros, THE card detail screen SHALL accept it and save it in the shared session details as the card to look up.
  • Card number: 4111111111111111 → The card number is accepted and saved for the lookup
app/cbl/COCRDSLC.cbl:615-627, app/cbl/COCRDSLC.cbl:685-720, app/cbl/COCRDSLC.cbl:134-143, app/cbl/COCRDSLC.cbl:536-551, app/cbl/COCRDSLC.cbl:357-363, app/cpy/CVCRD01Y.cpy:37-39
Flag absence of any search criteria
rec/group:claude/RULE-129/1
business rule
validation, high
WHEN the user resubmits the card detail screen with both the account number and the card number missing (blank, '*' or all zeros), THE card detail screen SHALL show 'No input received' in place of any other message, mark both fields with '*' in red, and not look up a card.
  • Account number: (blank); Card number: * → Message 'No input received'; both fields show '*' in red; no lookup
  • Account number: 00000000000; Card number: (blank) → Message 'No input received' replaces 'Account number not provided'
app/cbl/COCRDSLC.cbl:615-640, app/cbl/COCRDSLC.cbl:650-659, app/cbl/COCRDSLC.cbl:690-701, app/cbl/COCRDSLC.cbl:142-143, app/cbl/COCRDSLC.cbl:540-551, app/cbl/COCRDSLC.cbl:357-363
Process re-entry search request
rec/group:claude/RULE-171/4
business rule
validation, high
WHEN the user presses Enter on the card detail screen and PF3 was not pressed, THE card detail program SHALL check the entered account and card number, redisplay the screen with the message if a check fails, and otherwise look up the card and show its details.
  • Account entered: 1234567890A → Screen redisplayed with 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER'; no card lookup
  • Account entered: 00000000001; Card number entered: 4111111111111111 → Card is looked up and its details are shown
app/cbl/COCRDSLC.cbl:268-279, app/cbl/COCRDSLC.cbl:339-371, app/cbl/COCRDSLC.cbl:254-256, app/cbl/COCRDSLC.cbl:457-496, app/cbl/COCRDSLC.cbl:131-132, app/cbl/COCRDSLC.cbl:563-566
Only Enter and PF3 are accepted on the card detail screen
rec/claude:claude/RULE-250/1
business rule
validation, medium
WHEN the user presses any key other than Enter, PF3 or PF15 on the card detail screen, THE card detail screen SHALL show no error and treat the key as Enter, checking the input again and repeating the search.
  • Key: PF7; Card number: 4111111111111111; Account number: 00000000001 → Processed as Enter: input is checked again and the card is looked up again
  • Key: PF15 → Treated as PF3 (exit)
app/cbl/COCRDSLC.cbl:284-299, app/cpy/CSSTRPFY.cpy:35, app/cpy/CSSTRPFY.cpy:59, app/cbl/COCRDSLC.cbl:357-369
Retrieve card by card number
rec/group:claude/RULE-045/1
business rule
business, high
WHEN a card lookup is made, THE card detail program SHALL read the card master (CARDDAT) by the 16-digit card number only, and SHALL NOT check that the card belongs to the account entered.
  • Account entered: 00000000001; Card number entered: 4111111111111111 (belongs to account 00000000099) → The card is found and its details are shown
app/cbl/COCRDSLC.cbl:736-773, app/cbl/COCRDSLC.cbl:102-121, app/cbl/COCRDSLC.cbl:129-130, app/cbl/COCRDSLC.cbl:152-153, app/cbl/COCRDSLC.cbl:474-485, app/cbl/COCRDSLC.cbl:531-537
Show details of the found card
rec/group:claude/RULE-045/2
formatting
display, high
WHEN the card is found, THE card detail screen SHALL show ' Displaying requested details' with the card's embossed name, expiry month, expiry year and active status.
  • Card number: 4111111111111111 (on file, expiry 2027-03, status Y) → Screen shows the embossed name, month 03, year 2027, status Y and ' Displaying requested details'
app/cbl/COCRDSLC.cbl:736-773, app/cbl/COCRDSLC.cbl:102-121, app/cbl/COCRDSLC.cbl:129-130, app/cbl/COCRDSLC.cbl:152-153, app/cbl/COCRDSLC.cbl:474-485, app/cbl/COCRDSLC.cbl:531-537
Retrieve card by card number
rec/group:claude/RULE-045/3
business rule
validation, high
WHEN no card exists with the requested card number, THE card detail program SHALL reject the search, show both the account and the card number in red, and show 'Did not find cards for this search condition'.
  • Card number entered: 9999999999999999 (not on file) → 'Did not find cards for this search condition'; both fields shown in red
app/cbl/COCRDSLC.cbl:736-773, app/cbl/COCRDSLC.cbl:102-121, app/cbl/COCRDSLC.cbl:129-130, app/cbl/COCRDSLC.cbl:152-153, app/cbl/COCRDSLC.cbl:474-485, app/cbl/COCRDSLC.cbl:531-537
Card lookup is by card number only; account is not matched
rec/group:claude/RULE-045/4
error handling
error_handling, high
WHEN reading the card master fails for any reason other than not found, THE card detail program SHALL reject the search, show the account in red and show 'File Error: READ on CARDDAT returned RESP <code>,RESP2 <code>'.
app/cbl/COCRDSLC.cbl:736-773, app/cbl/COCRDSLC.cbl:102-121, app/cbl/COCRDSLC.cbl:129-130, app/cbl/COCRDSLC.cbl:152-153, app/cbl/COCRDSLC.cbl:474-485, app/cbl/COCRDSLC.cbl:531-537
Set screen informational and error messages
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-9d4a0bb61d/1
formatting
display, medium
WHEN the card detail screen is shown and no information message has been set, THE card detail screen SHALL show the information message 'Please enter Account and Card Number'.
  • Card found: no → Info line shows 'Please enter Account and Card Number'
  • Card found: yes → Info line shows ' Displaying requested details'
app/cbl/COCRDSLC.cbl:126-133, app/cbl/COCRDSLC.cbl:489-497, app/cbl/COCRDSLC.cbl:412-420
Set screen informational and error messages
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-9d4a0bb61d/2
formatting
display, medium
THE card detail screen SHALL show the current error message (if any) on the error line and the information message on the information line.
  • Card number: (blank); Account number: 00000000001 → Error line 'Card number not provided'; info line 'Please enter Account and Card Number'
app/cbl/COCRDSLC.cbl:126-133, app/cbl/COCRDSLC.cbl:489-497, app/cbl/COCRDSLC.cbl:412-420
Show entered search criteria
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-760af9a28d/2
formatting
display, medium
WHEN the card detail screen is shown with session details, THE card detail screen SHALL show the saved account number and card number, leaving a field empty when its saved value is zero.
  • Saved account: 00000000001; Saved card: 4111111111111111 → Both values are shown in the search fields
  • Card number typed: 41111111111X1111 → Saved card number becomes 0, so the card field is shown empty (in red) instead of echoing the entry
app/cbl/COCRDSLC.cbl:457-472, app/cbl/COCRDSLC.cbl:268-272, app/cbl/COCRDSLC.cbl:714-716, app/cbl/COCRDSLC.cbl:676-677
Search fields are read-only when arriving from the card list
rec/claude:claude/RULE-251/1
formatting
display, medium
WHEN the card detail screen was reached from the card list (last screen COCRDLI, caller COCRDLIC), THE card detail screen SHALL show the account and card fields as protected (not editable) in the default colour; otherwise it SHALL leave them editable.
  • Caller: COCRDLIC; Last screen: COCRDLI → Account and card fields cannot be changed
  • Caller: main menu → Account and card fields can be typed in
app/cbl/COCRDSLC.cbl:502-557, app/cbl/COCRDSLC.cbl:171-176, app/cbl/COCRDLIC.cbl:183-184, app/cbl/COCRDLIC.cbl:518-526, app/cbl/COCRDSLC.cbl:756-768
Search fields are read-only when arriving from the card list
rec/claude:claude/RULE-251/2
formatting
display, medium
WHEN a search field fails its check, THE card detail screen SHALL show that field in red, and WHEN a field was left blank on resubmission it SHALL show '*' in red in that field, even if the fields are protected.
  • Card number: 41111111111X1111 → Card field in red
  • Account and card: card not found on file → Both fields in red
app/cbl/COCRDSLC.cbl:502-557, app/cbl/COCRDSLC.cbl:171-176, app/cbl/COCRDLIC.cbl:183-184, app/cbl/COCRDLIC.cbl:518-526, app/cbl/COCRDSLC.cbl:756-768
Search fields are read-only when arriving from the card list
rec/claude:claude/RULE-251/3
formatting
display, medium
THE card detail screen SHALL place the cursor on the account field when it is invalid or blank, otherwise on the card field when that is invalid or blank, and otherwise on the account field.
  • Account number: 00000000001; Card number: (blank) → Cursor on the card field
  • Account number: ABC; Card number: (blank) → Cursor on the account field
app/cbl/COCRDSLC.cbl:502-557, app/cbl/COCRDSLC.cbl:171-176, app/cbl/COCRDLIC.cbl:183-184, app/cbl/COCRDLIC.cbl:518-526, app/cbl/COCRDSLC.cbl:756-768

Acceptance criteria

IDCriterionChecks
AC-01Given Account entered: '*'; Card number entered: 4111111111111111
When the account or card number entered on the card detail screen is '*' or blank
Then The account is treated as not supplied and reported as 'Account number not provided'
REQ-F-034
Treat asterisk or blank as not supplied
worked example 1 of the rule
AC-02Given Card number entered: blank
When the account or card number entered on the card detail screen is '*' or blank
Then The card number is treated as not supplied
REQ-F-034
Treat asterisk or blank as not supplied
worked example 2 of the rule
AC-03Given Account entered: 00000000000; Card number entered: 4111111111111111
When the account is not supplied (blank, '*' or all zeros) after the user presses Enter
Then Input rejected with 'Account number not provided'; no card is looked up
REQ-F-035
Reject missing account number
worked example 1 of the rule
AC-04Given Account entered: blank
When the account is not supplied (blank, '*' or all zeros) after the user presses Enter
Then Input rejected; saved account becomes 0
REQ-F-035
Reject missing account number
worked example 2 of the rule
AC-05Given Account entered: blank
When the account is found missing after the user presses Enter
Then The account field shows '*' in red
REQ-F-035
Reject missing account number
worked example 1 of the rule
AC-06Given Account entered: 1234567890A
When a supplied account is not entirely numeric
Then Input rejected with 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER'; account shown in red
REQ-F-036
Validate account number is numeric
worked example 1 of the rule
AC-07Given Account entered: 00000000001
When a supplied account is an 11-digit number that is not all zeros
Then Account accepted and saved as the current account
REQ-F-037
Validate account number is numeric
worked example 1 of the rule
AC-08Given Account number: 00000000001; Card number: (blank)
When the user resubmits the card detail screen and the card number is blank, '*', spaces or all zeros
Then Error 'Card number not provided'; card field shows '*' in red; no card is looked up
REQ-F-038
Reject missing card number
worked example 1 of the rule
AC-09Given Account number: (blank); Card number: 0000000000000000
When the user resubmits the card detail screen and the card number is blank, '*', spaces or all zeros
Then The card is treated as missing, but the account message set first is kept (both missing then gives 'No input received')
REQ-F-038
Reject missing card number
worked example 2 of the rule
AC-10Given Account number: 00000000001; Card number: 41111111111X1111
When the user resubmits the card detail screen and the card number is not made up of 16 digits
Then Error 'CARD ID FILTER,IF SUPPLIED MUST BE A 16 DIGIT NUMBER'; card field in red; no card is looked up
REQ-F-039
Validate card number is numeric
worked example 1 of the rule
AC-11Given Account number: ABC; Card number: 41111111111X1111
When the user resubmits the card detail screen and the card number is not made up of 16 digits
Then The account error 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER' is shown because it was set first; both fields are in red
REQ-F-039
Validate card number is numeric
worked example 2 of the rule
AC-12Given Card number: 4111111111111111
When the card number entered is a 16-digit number other than all zeros
Then The card number is accepted and saved for the lookup
REQ-F-040
Validate card number is numeric
worked example 1 of the rule
AC-13Given Account number: (blank); Card number: *
When the user resubmits the card detail screen with both the account number and the card number missing (blank, '*' or all zeros)
Then Message 'No input received'; both fields show '*' in red; no lookup
REQ-F-041
Flag absence of any search criteria
worked example 1 of the rule
AC-14Given Account number: 00000000000; Card number: (blank)
When the user resubmits the card detail screen with both the account number and the card number missing (blank, '*' or all zeros)
Then Message 'No input received' replaces 'Account number not provided'
REQ-F-041
Flag absence of any search criteria
worked example 2 of the rule
AC-15Given Account entered: 1234567890A
When the user presses Enter on the card detail screen and PF3 was not pressed
Then Screen redisplayed with 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER'; no card lookup
REQ-F-042
Process re-entry search request
worked example 1 of the rule
AC-16Given Account entered: 00000000001; Card number entered: 4111111111111111
When the user presses Enter on the card detail screen and PF3 was not pressed
Then Card is looked up and its details are shown
REQ-F-042
Process re-entry search request
worked example 2 of the rule
AC-17Given Key: PF7; Card number: 4111111111111111; Account number: 00000000001
When the user presses any key other than Enter, PF3 or PF15 on the card detail screen
Then Processed as Enter: input is checked again and the card is looked up again
REQ-F-043
Only Enter and PF3 are accepted on the card detail screen
worked example 1 of the rule
AC-18Given Key: PF15
When the user presses any key other than Enter, PF3 or PF15 on the card detail screen
Then Treated as PF3 (exit)
REQ-F-043
Only Enter and PF3 are accepted on the card detail screen
worked example 2 of the rule
AC-19Given Account entered: 00000000001; Card number entered: 4111111111111111 (belongs to account 00000000099)
When a card lookup is made
Then The card is found and its details are shown
REQ-F-044
Retrieve card by card number
worked example 1 of the rule
AC-20Given Card number: 4111111111111111 (on file, expiry 2027-03, status Y)
When the card is found
Then Screen shows the embossed name, month 03, year 2027, status Y and ' Displaying requested details'
REQ-F-045
Show details of the found card
worked example 1 of the rule
AC-21Given Card number entered: 9999999999999999 (not on file)
When no card exists with the requested card number
Then 'Did not find cards for this search condition'; both fields shown in red
REQ-F-046
Retrieve card by card number
worked example 1 of the rule
AC-22Given Card found: no
When the card detail screen is shown and no information message has been set
Then Info line shows 'Please enter Account and Card Number'
REQ-F-048
Set screen informational and error messages
worked example 1 of the rule
AC-23Given Card found: yes
When the card detail screen is shown and no information message has been set
Then Info line shows ' Displaying requested details'
REQ-F-048
Set screen informational and error messages
worked example 2 of the rule
AC-24Given Card number: (blank); Account number: 00000000001
When card detail screen runs
Then Error line 'Card number not provided'; info line 'Please enter Account and Card Number'
REQ-F-049
Set screen informational and error messages
worked example 1 of the rule
AC-25Given Saved account: 00000000001; Saved card: 4111111111111111
When the card detail screen is shown with session details
Then Both values are shown in the search fields
REQ-F-050
Show entered search criteria
worked example 1 of the rule
AC-26Given Card number typed: 41111111111X1111
When the card detail screen is shown with session details
Then Saved card number becomes 0, so the card field is shown empty (in red) instead of echoing the entry
REQ-F-050
Show entered search criteria
worked example 2 of the rule
AC-27Given Caller: COCRDLIC; Last screen: COCRDLI
When the card detail screen was reached from the card list (last screen COCRDLI, caller COCRDLIC)
Then Account and card fields cannot be changed
REQ-F-051
Search fields are read-only when arriving from the card list
worked example 1 of the rule
AC-28Given Caller: main menu
When the card detail screen was reached from the card list (last screen COCRDLI, caller COCRDLIC)
Then Account and card fields can be typed in
REQ-F-051
Search fields are read-only when arriving from the card list
worked example 2 of the rule
AC-29Given Card number: 41111111111X1111
When a search field fails its check
Then Card field in red
REQ-F-052
Search fields are read-only when arriving from the card list
worked example 1 of the rule
AC-30Given Account and card: card not found on file
When a search field fails its check
Then Both fields in red
REQ-F-052
Search fields are read-only when arriving from the card list
worked example 2 of the rule
AC-31Given Account number: 00000000001; Card number: (blank)
When card detail screen runs
Then Cursor on the card field
REQ-F-053
Search fields are read-only when arriving from the card list
worked example 1 of the rule
AC-32Given Account number: ABC; Card number: (blank)
When card detail screen runs
Then Cursor on the account field
REQ-F-053
Search fields are read-only when arriving from the card list
worked example 2 of the rule
AC-33Given a valid account number and a valid 16-digit card number have been entered on the card detail screen, and reading the card master will fail with an error other than 'not found'
When the card lookup is made
Then the search is rejected, no card details are shown, the account field is shown in red, and the message reads 'File Error: READ on CARDDAT returned RESP <code>,RESP2 <code>' with the two response codes the read returned
REQ-F-047
Card lookup is by card number only; account is not matched
written from the rule

Screens

  • Cards S-CARD-LIST · design · replaces CCRDLIA (3 kept, 40 merged, 6 dropped, 1 split)
  • Card details S-CARD-DETAIL · design · replaces CCRDSLA, CCRDUPA (29 merged, 7 kept, 2 split, 2 dropped)
    • **lookup field** Account number checks: Required, an 11-digit number other than zeros: 'Account number not provided. Enter the 11-digit account number.' or 'Account filter, if supplied, must be an 11 digit number. Enter digits only.' Both fields empty: 'No input received. Enter the account and card number.' Account is checked before card, and focus moves to the first field in error.
    • **lookup field** Card number checks: Required, a 16-digit number other than zeros: 'Card number not provided. Enter the 16-digit card number.' or 'Card ID filter, if supplied, must be a 16 digit number. Enter digits only.' No card with that number: 'Did not find cards for this search condition. Check the card number.'
    • **summary card** Card
    • **status badge** Current status

Data contracts

CSMSG02Y (file record; COCRDSLC), CVACT02Y (file record; COCRDSLC), COCOM01Y (working storage; COCRDSLC), COTTL01Y (working storage; COCRDSLC), CSDAT01Y (working storage; COCRDSLC), CSMSG01Y (working storage; COCRDSLC), CSSTRPFY (working storage; COCRDSLC), CSUSR01Y (working storage; COCRDSLC), CVCRD01Y (working storage; COCRDSLC), CVCUS01Y (working storage; COCRDSLC)

Decision tables

Card detail search input checks

Account enteredCard number enteredSearch resultRule
missing (blank, '*' or all zeros)missing (blank, '*' or all zeros)'No input received'; both fields '*' in red; no lookuprec/group:claude/RULE-129/1
missing (blank, '*' or all zeros)any otherReject; 'Account number not provided' if no other message; account '*' in red; saved account reset to 0rec/group:claude/RULE-103/2
not entirely numericanyReject; account in red with 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER' if no other message; saved account reset to 0rec/group:claude/RULE-103/4
11-digit number, not all zerosmissing (blank, '*', spaces or all zeros)Input error; card '*' in red; 'Card number not provided'; no lookuprec/group:claude/RULE-104/1
11-digit number, not all zerosnot 16 digitsInput error; card in red; 'CARD ID FILTER,IF SUPPLIED MUST BE A 16 DIGIT NUMBER'rec/group:claude/RULE-104/2
11-digit number, not all zeros16-digit number, not all zerosAccept both; look up the card and show its detailsrec/group:claude/RULE-171/4

Card master lookup result

Card master read resultScreen shownRule
card found' Displaying requested details' with embossed name, expiry month, expiry year and active statusrec/group:claude/RULE-045/2
not foundReject; account and card in red; 'Did not find cards for this search condition'rec/group:claude/RULE-045/3
any other failureReject; account in red; 'File Error: READ on CARDDAT returned RESP <code>,RESP2 <code>'rec/group:claude/RULE-045/4

Open questions

  • SME-103 On the card search screen, the error messages say the account number must be 11 digits and the card number 16 digits, but the rules only check that each is numeric. Should the new system require exactly 11 digits for the account number and 16 for the card number? (Business analyst)
  • SME-104 The card search finds the card by card number only and does not use the account number entered. Should the new system check that the card found belongs to the account entered? (Business analyst)
  • SME-105 On the card search screen, when both the account and card number are blank, should the message 'No input received' replace an earlier message such as 'Account number not provided', or should the first message stay? (Business analyst)
  • SME-106 When a card is found, should the operator see the message 'Displaying requested details'? (Business analyst)
  • DEF-020 Is this intended? The entered account is never compared with the card's account: the line that would use the account as part of the key is commented out, so any account (that is a valid number) plus an existing card number shows that card, despite the paragraph name and the message 'Did not find cards for this search condition'. (Subject-matter expert)
  • DEF-076 Is this intended? Clearing the whole shared context on entry from the main menu also erases the signed-on user's ID and user type, so PF3 then returns to the menu with a blank user ID and the user type forced to regular user. (Subject-matter expert)
  • DEF-120 Is this intended? The info line is meant to be shown dark when there is no information message, but that branch can never run because the prompt has already been filled in by that point. (Subject-matter expert)
  • DEF-122 Is this intended? An invalid (non-numeric) account or card entry is cleared from the screen because the saved value is reset to zero, so the user cannot see what they typed. On resubmission a blank field shows '*' instead. (Subject-matter expert)

Design notes

None.

5. Enter and leave the card detail screendraft · online · 6 requirements · 7 rules · 8 criteria · 3 screens

This capability controls how a card operations user enters and leaves the card detail screen. Coming from the menu, the user gets an empty search prompt. Coming from the card list, the chosen card is shown at once. PF3 always returns the user to where they came from, or to the main menu if nothing is recorded. The screen must never carry stale card or session details over from an earlier visit, and on exit it must tell the next screen that it is a fresh entry.

As a card operations user, I want the card detail screen to open with the right card or an empty search and to return me to where I came from, so that I can move between the menu, the card list and card details without losing my place.

Draft: the function is not signed off yet. Risk medium; touches card_data. rec/CustomerDataSetup/CreditCardListDetailViewandUpdate#5

Requirements

CodeClassRequirementCriteria
REQ-F-054design noteWhen the card detail program (transaction CCDL) starts with no session context, or is entered from the main menu (COMEN01C) other than as a re-entry, the system shall clear the whole shared session context before going on.AC-01
REQ-F-055formattingWhen the card detail program is entered for the first time from any program other than the card list (COCRDLIC), or started with no session details, and PF3 was not pressed, the system shall show an empty search screen with 'Please enter Account and Card Number' and wait for the user's input.AC-02, AC-03
REQ-F-056business ruleWhen the card detail program is entered for the first time from the card list (COCRDLIC) and PF3 was not pressed, the system shall use the account and card number passed by the list as already valid, without checking them again, then look up the card and show its details.AC-04
REQ-N-001design noteThe system shall mark every card detail screen it sends as awaiting re-entry and return under transaction CCDL, so that the user's next action is treated as a re-entry.AC-05
REQ-F-057business ruleWhen the user presses PF3 (or PF15) on the card detail screen, the system shall transfer control to the program and transaction that called it (for example the card list COCRDLIC with transaction CCLI), or to the main menu COMEN01C with transaction CM00 when no caller is recorded.AC-06, AC-07
REQ-F-058design noteWhen control leaves the card detail screen on PF3, the system shall pass the shared session details showing COCRDSLC / CCDL as the sender, the user type as regular user ('U'), the last screen as COCRDSL / CCRDSLA, and the next program's entry as a first entry.AC-08

Business rules

RuleClassText, worked examples and evidence
Card detail screen entry routing and context reset
rec/group:claude/RULE-171/1
design note
technical, high
WHEN the card detail program (transaction CCDL) starts with no session context, or is entered from the main menu (COMEN01C) other than as a re-entry, THE card detail program SHALL clear the whole shared session context before going on.
  • Caller: COMEN01C; Entry type: first entry → Session context is cleared, including any previously selected account and card
app/cbl/COCRDSLC.cbl:268-279, app/cbl/COCRDSLC.cbl:339-371, app/cbl/COCRDSLC.cbl:254-256, app/cbl/COCRDSLC.cbl:457-496, app/cbl/COCRDSLC.cbl:131-132, app/cbl/COCRDSLC.cbl:563-566
Show screen to gather selection criteria
rec/group:claude/RULE-171/2
formatting
display, high
WHEN the program is entered for the first time from any program other than the card list (COCRDLIC) and PF3 was not pressed, THE card detail program SHALL show an empty search screen with 'Please enter Account and Card Number' and wait for the user's input.
  • Caller: COMEN01C (menu option 4 'Credit Card View') → Empty search screen with 'Please enter Account and Card Number'
app/cbl/COCRDSLC.cbl:268-279, app/cbl/COCRDSLC.cbl:339-371, app/cbl/COCRDSLC.cbl:254-256, app/cbl/COCRDSLC.cbl:457-496, app/cbl/COCRDSLC.cbl:131-132, app/cbl/COCRDSLC.cbl:563-566
Show entered search criteria
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-760af9a28d/1
formatting
display, medium
WHEN the card detail transaction (CCDL) is started with no session details passed in, THE card detail screen SHALL show the prompt 'Please enter Account and Card Number' with empty search fields.
  • Started: CCDL typed directly, no session details → Prompt 'Please enter Account and Card Number'; fields empty
app/cbl/COCRDSLC.cbl:457-472, app/cbl/COCRDSLC.cbl:268-272, app/cbl/COCRDSLC.cbl:714-716, app/cbl/COCRDSLC.cbl:676-677
Show card selected from card list
rec/group:claude/RULE-171/3
business rule
business, high
WHEN the program is entered for the first time from the card list (COCRDLIC) and PF3 was not pressed, THE card detail program SHALL use the account and card number passed by the list as already valid, without checking them again, then look up the card and show its details.
  • Caller: COCRDLIC; Account passed: 00000000001; Card passed: 4111111111111111 → Card 4111111111111111 is looked up and its details are shown with no input check
app/cbl/COCRDSLC.cbl:268-279, app/cbl/COCRDSLC.cbl:339-371, app/cbl/COCRDSLC.cbl:254-256, app/cbl/COCRDSLC.cbl:457-496, app/cbl/COCRDSLC.cbl:131-132, app/cbl/COCRDSLC.cbl:563-566
Card detail screen entry routing and context reset
rec/group:claude/RULE-171/5
design note
technical, high
THE card detail program SHALL mark every screen it sends as awaiting re-entry and return under transaction CCDL, so that the user's next action is treated as a re-entry.
  • Entry type: first entry from COMEN01C → After the search screen is sent, the next Enter is handled as a re-entry with input checks
app/cbl/COCRDSLC.cbl:268-279, app/cbl/COCRDSLC.cbl:339-371, app/cbl/COCRDSLC.cbl:254-256, app/cbl/COCRDSLC.cbl:457-496, app/cbl/COCRDSLC.cbl:131-132, app/cbl/COCRDSLC.cbl:563-566
Exit to the destination program
rec/group:claude/RULE-172/1
business rule
business, high
WHEN the user presses PF3 (or PF15) on the card detail screen, THE card detail screen SHALL transfer control to the program and transaction that called it (for example the card list COCRDLIC with transaction CCLI), or to the main menu COMEN01C with transaction CM00 when no caller is recorded.
  • Caller: COCRDLIC / CCLI; Key: PF3 → Control goes to COCRDLIC with transaction CCLI
  • Caller: main menu (shared details reset on entry, no caller recorded); Key: PF3 → Control goes to COMEN01C with transaction CM00
app/cbl/COCRDSLC.cbl:304-335, app/cbl/COCRDSLC.cbl:163-182, app/cbl/COCRDSLC.cbl:268-272, app/cpy/CSSTRPFY.cpy:35, app/cpy/CSSTRPFY.cpy:59, app/cpy/COCOM01Y.cpy:27-31
Exit to the destination program
rec/group:claude/RULE-172/2
design note
technical, high
WHEN control leaves the card detail screen on PF3, THE card detail screen SHALL pass the shared session details showing COCRDSLC / CCDL as the sender, the user type as regular user ('U'), the last screen as COCRDSL / CCRDSLA, and the next program's entry as a first entry.
  • Key: PF3 → The next program receives sender 'COCRDSLC'/'CCDL', user type 'U', first entry
app/cbl/COCRDSLC.cbl:304-335, app/cbl/COCRDSLC.cbl:163-182, app/cbl/COCRDSLC.cbl:268-272, app/cpy/CSSTRPFY.cpy:35, app/cpy/CSSTRPFY.cpy:59, app/cpy/COCOM01Y.cpy:27-31

Acceptance criteria

IDCriterionChecks
AC-01Given Caller: COMEN01C; Entry type: first entry
When the card detail program (transaction CCDL) starts with no session context, or is entered from the main menu (COMEN01C) other than as a re-entry
Then Session context is cleared, including any previously selected account and card
REQ-F-054
Card detail screen entry routing and context reset
worked example 1 of the rule
AC-02Given Caller: COMEN01C (menu option 4 'Credit Card View')
When the program is entered for the first time from any program other than the card list (COCRDLIC) and PF3 was not pressed
Then Empty search screen with 'Please enter Account and Card Number'
REQ-F-055
Show screen to gather selection criteria
worked example 1 of the rule
AC-03Given Started: CCDL typed directly, no session details
When the card detail transaction (CCDL) is started with no session details passed in
Then Prompt 'Please enter Account and Card Number'; fields empty
REQ-F-055
Show entered search criteria
worked example 1 of the rule
AC-04Given Caller: COCRDLIC; Account passed: 00000000001; Card passed: 4111111111111111
When the program is entered for the first time from the card list (COCRDLIC) and PF3 was not pressed
Then Card 4111111111111111 is looked up and its details are shown with no input check
REQ-F-056
Show card selected from card list
worked example 1 of the rule
AC-05Given Entry type: first entry from COMEN01C
When card detail program runs
Then After the search screen is sent, the next Enter is handled as a re-entry with input checks
REQ-N-001
Card detail screen entry routing and context reset
worked example 1 of the rule
AC-06Given Caller: COCRDLIC / CCLI; Key: PF3
When the user presses PF3 (or PF15) on the card detail screen
Then Control goes to COCRDLIC with transaction CCLI
REQ-F-057
Exit to the destination program
worked example 1 of the rule
AC-07Given Caller: main menu (shared details reset on entry, no caller recorded); Key: PF3
When the user presses PF3 (or PF15) on the card detail screen
Then Control goes to COMEN01C with transaction CM00
REQ-F-057
Exit to the destination program
worked example 2 of the rule
AC-08Given Key: PF3
When control leaves the card detail screen on PF3
Then The next program receives sender 'COCRDSLC'/'CCDL', user type 'U', first entry
REQ-F-058
Exit to the destination program
worked example 1 of the rule

Screens

Data contracts

CSMSG02Y (file record; COCRDSLC), CVACT02Y (file record; COCRDSLC), COCOM01Y (working storage; COCRDSLC), COTTL01Y (working storage; COCRDSLC), CSDAT01Y (working storage; COCRDSLC), CSMSG01Y (working storage; COCRDSLC), CSSTRPFY (working storage; COCRDSLC), CSUSR01Y (working storage; COCRDSLC), CVCRD01Y (working storage; COCRDSLC), CVCUS01Y (working storage; COCRDSLC)

Decision tables

Card detail entry routing

Entered fromFirst entryPF3 pressedWhat the card detail program doesRule
card list (COCRDLIC)YesNoUse passed account and card as valid; look up and show cardrec/group:claude/RULE-171/3
any program other than the card listYesNoShow empty search screen with 'Please enter Account and Card Number'rec/group:claude/RULE-171/2
anyNo (re-entry)NoCheck entered account and card; look up and show card or redisplay with messagerec/group:claude/RULE-171/4
anyanyYesTransfer to calling program, or main menu COMEN01C (CM00) if no callerrec/group:claude/RULE-172/1

Open questions

  • SME-103 On the card search screen, the error messages say the account number must be 11 digits and the card number 16 digits, but the rules only check that each is numeric. Should the new system require exactly 11 digits for the account number and 16 for the card number? (Business analyst)
  • SME-104 The card search finds the card by card number only and does not use the account number entered. Should the new system check that the card found belongs to the account entered? (Business analyst)
  • SME-105 On the card search screen, when both the account and card number are blank, should the message 'No input received' replace an earlier message such as 'Account number not provided', or should the first message stay? (Business analyst)
  • SME-106 When a card is found, should the operator see the message 'Displaying requested details'? (Business analyst)
  • SME-107 When a user leaves the card detail screen, the system always resets their user type to regular user, even for an administrator. Is this intended, or should the user keep their type (admin or regular)? (Security and access-control owner)
  • DEF-076 Is this intended? Clearing the whole shared context on entry from the main menu also erases the signed-on user's ID and user type, so PF3 then returns to the menu with a blank user ID and the user type forced to regular user. (Subject-matter expert)
  • DEF-077 Confirm this is deliberate: On PF3 the user type is always set to regular user ('U'), even if the session belonged to an administrator. (Subject-matter expert)
  • DEF-122 Is this intended? An invalid (non-numeric) account or card entry is cleared from the screen because the saved value is reset to zero, so the user cannot see what they typed. On resubmission a blank field shows '*' instead. (Subject-matter expert)

Design notes

  • When card detail opens with no navigation context, or opens fresh from the main menu, clear the whole shared navigation/session context (selected account, card, caller and last screen) before doing anything else. Card detail screen entry routing and context reset
  • Card detail is a stateful page. Every response it sends keeps the user in the card detail conversation, so the next submit from that page comes back to the card detail handler as a continuation of the same search, not as a fresh entry. Card detail screen entry routing and context reset
  • On leaving card detail, update the shared navigation context: sender = card detail, user type = regular user ('U'), last screen = card detail, and mark the next screen's entry as a first entry so it starts fresh. Exit to the destination program
6. Detect unchanged card details on updatedraft · online · 2 requirements · 1 rules · 3 criteria · 2 screens

When a card operations user submits the card update screen without really changing anything, the update spots it. Case differences do not count as changes. The user is told nothing changed and no field checks run. Once changes are validated or committed, the detailed field checks are not run again. The update must never treat a case-only difference as a change.

As a card operations user, I want the card update to recognise when I have not changed anything, so that no needless edits are run and I am told nothing changed.

Draft: the function is not signed off yet. Risk medium; touches card_data, personal_data, updates_records. rec/CustomerDataSetup/CreditCardListDetailViewandUpdate#6

Requirements

CodeClassRequirementCriteria
REQ-F-059business ruleWhen the edited card data equals the fetched data ignoring case, the system shall set the no-change message, mark all detail fields valid and skip detailed edits.AC-01, AC-02, AC-03
REQ-F-060business ruleWhile the update stage is validated ('N') or committed ('C'), the system shall mark all detail fields valid and skip detailed edits.AC-01, AC-02, AC-03

Business rules

RuleClassText, worked examples and evidence
Detect unchanged card details
rec/agreed:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-814f66b7d5/1
business rule
validation, medium
WHEN the edited card data equals the fetched data ignoring case, or the stage is validated ('N') or committed ('C'), THE Card Update Input Validation SHALL set the no-change message when the data is unchanged, mark all detail fields valid and skip detailed edits
  • Fetched embossed name: JOHN SMITH; Entered embossed name: john smith; Status, expiry month and year: unchanged → The change is treated as no change: message 'No change detected with respect to values fetched.' is set, all detail fields are marked valid and the name, status and expiry edits are skipped.
  • Update stage: 'N' (changes validated, awaiting confirmation); Entered details: differ from fetched → All detail fields are marked valid and the detailed field edits are not run again.
  • Fetched card status: Y; Entered card status: N; Update stage: not 'N' or 'C' → A change is detected, so the name, status and expiry edits run.
app/cbl/COCRDUPC.cbl:668-670,680-683,685-693, app/cbl/COCRDUPC.cbl:679-693

Acceptance criteria

IDCriterionChecks
AC-01Given Fetched embossed name: JOHN SMITH; Entered embossed name: john smith; Status, expiry month and year: unchanged
When the edited card data equals the fetched data ignoring case, or the stage is validated ('N') or committed ('C')
Then The change is treated as no change: message 'No change detected with respect to values fetched.' is set, all detail fields are marked valid and the name, status and expiry edits are skipped.
REQ-F-059, REQ-F-060
Detect unchanged card details
worked example 1 of the rule
AC-02Given Update stage: 'N' (changes validated, awaiting confirmation); Entered details: differ from fetched
When the edited card data equals the fetched data ignoring case, or the stage is validated ('N') or committed ('C')
Then All detail fields are marked valid and the detailed field edits are not run again.
REQ-F-059, REQ-F-060
Detect unchanged card details
worked example 2 of the rule
AC-03Given Fetched card status: Y; Entered card status: N; Update stage: not 'N' or 'C'
When the edited card data equals the fetched data ignoring case, or the stage is validated ('N') or committed ('C')
Then A change is detected, so the name, status and expiry edits run.
REQ-F-059, REQ-F-060
Detect unchanged card details
worked example 3 of the rule

Screens

  • Cards S-CARD-LIST · design · replaces CCRDLIA (3 kept, 40 merged, 6 dropped, 1 split)
  • Card details S-CARD-DETAIL · design · replaces CCRDSLA, CCRDUPA (29 merged, 7 kept, 2 split, 2 dropped)
    • **primary button** Save card checks: Nothing differs from the stored values (ignoring case): 'No change detected with respect to values fetched.' Fields are checked in the order name, status, expiry month, expiry year.

Data contracts

CSMSG02Y (file record; COCRDUPC), CVACT02Y (file record; COCRDUPC), COCOM01Y (working storage; COCRDUPC), COTTL01Y (working storage; COCRDUPC), CSDAT01Y (working storage; COCRDUPC), CSMSG01Y (working storage; COCRDUPC), CSSTRPFY (working storage; COCRDUPC), CSUSR01Y (working storage; COCRDUPC), CVCRD01Y (working storage; COCRDUPC), CVCUS01Y (working storage; COCRDUPC)

Decision tables

None.

Open questions

  • SME-108 When a card record cannot be locked for update, the message is given as 'Could not lock record (CARDDAT) for update' in one place and 'Could not lock record for update' in another. Which text is correct, and does the outcome shown to the operator depend on the exact wording? (Card operations business analyst)
  • SME-109 When updating a card, where should the expiry day come from? The screen shows the original day as not changeable, yet the saved day is taken from a hidden screen field without checks. Should the saved day be the original stored day, be recalculated (for example, the last day of the month), or be the entered value? And should the new expiry date have to be in the future, or no earlier than the current expiry? (Card operations subject-matter expert)
  • SME-110 When a card is updated, the saved CVV comes from an 'updated CVV' value that no rule captures or checks. Should the saved CVV always be the original stored CVV? (Card operations business analyst)
  • SME-111 After the operator confirms a card update, if a file error or other message is already pending, the result is reported as 'changes saved'. Is that intended? (Card operations business analyst)

Design notes

None.

7. Find and show a card for updatedraft · online · 17 requirements · 24 rules · 34 criteria · 2 screens · 3 gaps

Before making any change, card operations users find a card for update, either by entering its account and card number or by arriving with a card selected from the card list. The update screen then shows the card's stored embossed name, status and expiry. The search keys are validated with exact messages. The card is read by card number alone, and the values first shown are kept as the original details. Those originals must be captured exactly, because later change detection and the save's check for someone else's changes depend on them.

As a card operations user, I want to enter an account number and card number, or arrive with a card selected from the card list, and see that card's stored details, so that I can review the card before changing it.

Draft: the function is not signed off yet. Risk medium; touches card_data, personal_data. rec/CustomerDataSetup/CreditCardListDetailViewandUpdate#7

Requirements

CodeClassRequirementCriteria
REQ-F-061formattingWhen the card update screen is started with no conversation data, or is entered from the main menu ('COMEN01C') as a fresh entry, the system shall clear the update state, show an empty search screen with 'Please enter Account and Card Number', and wait for the account and card number.AC-01, AC-02, AC-03
REQ-F-062formattingWhen the card update screen is shown on a first entry (from the menu, or after an update completes or fails), the system shall show no search keys and no card details.AC-04
REQ-F-063formattingWhile card details have not yet been fetched, the system shall show the information message 'Please enter Account and Card Number' and show the embossed name, active status and expiry day, month and year as empty when the user returns to the card update screen.AC-05, AC-06
REQ-F-064formattingWhen the card update screen is redisplayed (not a first entry), the system shall show the account number and card number search keys, leaving each one blank when its value is zero.AC-07
REQ-F-065design noteWhen the operator submits the screen with the account number or card number entered as '*' or left blank, the system shall treat that search key as not supplied, and otherwise shall take the entered value as both the search key and the new account number or card number.AC-08, AC-09, AC-10, AC-11
REQ-F-066business ruleWhile no card has been fetched, the system shall validate only the account number and card number search keys, discard any card name, status or expiry entered, and skip all card-detail edits.AC-12, AC-13, AC-14
REQ-F-067business ruleIf no card has been fetched yet and both the account number and the card number are left blank (or zero), then the system shall report 'No input received'.AC-12, AC-13, AC-15
REQ-F-068business ruleIf no card is yet fetched and the account number entered is blank, '*' or all zeros, then the system shall flag an input error and show 'Account number not provided', unless an earlier message is already set.AC-16, AC-17, AC-18, AC-19
REQ-F-069business ruleIf no card is yet fetched and the account number entered is not numeric, then the system shall flag an input error and show 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER', unless an earlier message is already set.AC-18, AC-19, AC-20, AC-21
REQ-F-070business ruleIf no card is yet fetched and the card number entered is blank, '*' or all zeros, then the system shall flag an input error and show 'Card number not provided', unless an earlier message, such as an account error, is already set.AC-18, AC-19, AC-22, AC-23
REQ-F-071business ruleIf no card is yet fetched and the card number entered is not numeric, then the system shall flag an input error and show 'CARD ID FILTER,IF SUPPLIED MUST BE A 16 DIGIT NUMBER', unless an earlier message is already set.AC-18, AC-19, AC-24, AC-25
REQ-F-072business ruleWhen card details have not yet been fetched and the operator submits an account number and card number that both pass validation, the system shall read the card file ('CARDDAT') by card number alone and, if the card is found, show its details for editing with 'Details of selected card shown above' (state 'S').AC-20, AC-21, AC-24, AC-25, AC-26, AC-27
REQ-F-073business ruleIf the card number is not on the card file, then the system shall flag both search keys as in error, show 'Did not find cards for this search condition' (unless an earlier message is already set), and keep the search screen.AC-26, AC-28
REQ-F-074error handlingIf the card file read fails for any other reason, then the system shall flag an input error and show 'File Error: READ on CARDDAT returned RESP <code>' with the response codes.AC-33
REQ-F-075design noteWhen the requested card is found on the card file, the system shall keep as the card's original details the embossed name converted to upper case, the expiry year, month and day taken from the stored expiry date (positions 1-4, 6-7 and 9-10), the active status and the CVV code.AC-34
REQ-F-076formattingWhile the card details have just been fetched and are being shown unchanged (state 'S'), the system shall show, on redisplay, the card's stored embossed name, active status, expiry day, expiry month and expiry year as read from the card file, with the information message 'Details of selected card shown above'.AC-29, AC-30
REQ-F-077business ruleWhen the operator arrives at card update from the card list ('COCRDLIC') for the first time, or presses PF12 while the card list is the calling program, the system shall take the account and card number passed by the card list, read that card, mark the details as shown and display the update screen.AC-31, AC-32

Business rules

RuleClassText, worked examples and evidence
Show empty search screen on fresh entry
rec/group:claude/RULE-137/1
formatting
display, high
WHEN the card update screen is started with no conversation data, or is entered from the main menu ('COMEN01C') as a fresh entry, THE card update program SHALL clear the update state, show an empty search screen with 'Please enter Account and Card Number', and wait for the account and card number.
  • Arrived from: main menu option 5 'Credit Card Update' → Blank search screen with message 'Please enter Account and Card Number'
app/cbl/COCRDUPC.cbl:276-290, app/cbl/COCRDUPC.cbl:160-171, app/cbl/COCRDUPC.cbl:386-401, app/cbl/COCRDUPC.cbl:413-424, app/cbl/COCRDUPC.cbl:502-528, app/cbl/COCRDUPC.cbl:535-542
Prompt for search keys on first entry
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-58aa580032/1
formatting
display, medium
WHEN the card update screen is shown on a first entry into the function, THE card update screen SHALL show the information message 'Please enter Account and Card Number'.
  • entry: first entry from main menu → The information line reads 'Please enter Account and Card Number'.
  • previous update: saved successfully → The screen is reset for a new search and reads 'Please enter Account and Card Number'.
app/cbl/COCRDUPC.cbl:1138-1142, app/cbl/COCRDUPC.cbl:162-163, app/cbl/COCRDUPC.cbl:502-511, app/cbl/COCRDUPC.cbl:517-528
Display search keys on re-entry
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-ce7430e803/2
formatting
display, medium
WHEN the card update screen is shown on a first entry (from the menu, or after an update completes or fails), THE card update screen SHALL show no search keys and no card details.
  • entry: menu option 5 'Credit Card Update' → The screen shows empty account, card and detail fields with 'Please enter Account and Card Number'.
app/cbl/COCRDUPC.cbl:1082-1097, app/cbl/COCRDUPC.cbl:1131-1134, app/cbl/COCRDUPC.cbl:502-511, app/cbl/COCRDUPC.cbl:517-528
Prompt for search keys when details not fetched
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-5f11dbb31e/1
formatting
display, medium
WHEN the user returns to the card update screen and card details have not yet been fetched, THE card update screen SHALL show the information message 'Please enter Account and Card Number'.
  • Account number: 00000000099; Card search result: no card found → Information line shows 'Please enter Account and Card Number'
app/cbl/COCRDUPC.cbl:1138-1144, app/cbl/COCRDUPC.cbl:162-163
Blank card details before retrieval
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-90a229b460/1
formatting
display, medium
WHEN the user returns to the card update screen before card details have been fetched, THE card update screen SHALL show the embossed name, active status and expiry day, month and year as empty.
  • Account number entered: 00000000001; Card number entered: (blank) → Card detail fields are shown empty
app/cbl/COCRDUPC.cbl:1082-1106
Display search keys on re-entry
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-ce7430e803/1
formatting
display, medium
WHEN the card update screen is redisplayed (not a first entry), THE card update screen SHALL show the account number and card number search keys, leaving each one blank when its value is zero.
  • entry: redisplay; account number: 00000000011; card number: 0 → Account 00000000011 is shown; the card number field is blank.
app/cbl/COCRDUPC.cbl:1082-1097, app/cbl/COCRDUPC.cbl:1131-1134, app/cbl/COCRDUPC.cbl:502-511, app/cbl/COCRDUPC.cbl:517-528
Interpret account number entry
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-f752eddf39/1
design note
technical, medium
WHEN the account number entered on the card update screen is '*' or blank, THE card update screen input SHALL treat the account number as not supplied; otherwise it SHALL take the entered value as both the search account and the new account number.
  • account number entered: * → The account number is treated as not supplied (and later reported as 'Account number not provided' if no card is fetched yet).
  • account number entered: 00000000011 → 00000000011 is used as the search account and the new account number.
app/cbl/COCRDUPC.cbl:586-596
Interpret card number entry
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-35fedd2d10/1
design note
technical, medium
WHEN the operator submits the card update screen with the card number entered as '*' or left blank, THE card update screen SHALL treat the card number as not supplied; otherwise it SHALL take the entered card number as both the search key and the new card number.
  • card number: * → Card number treated as not supplied.
  • card number: 4111111111111111 → 4111111111111111 is used as search key and new card number.
app/cbl/COCRDUPC.cbl:598-605
Skip editing before details are fetched
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-9f7012523b/1
business rule
validation, medium
WHEN card details have not yet been fetched, THE card update screen SHALL validate only the account and card number search keys, SHALL ignore any card details entered, and SHALL show 'No input received' when both search keys are blank.
  • Account number: (blank); Card number: (blank); Card status entered: X → 'No input received'; the status is not checked
  • Account number: 00000000001; Card number: 4111111111111111; Card name entered: ABC123 → Only the search keys are checked; the entered name is discarded
app/cbl/COCRDUPC.cbl:641-665, app/cbl/COCRDUPC.cbl:179-180
Validate search keys before fetch
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-ff85d1eca6/1
business rule
validation, medium
WHEN the operator submits the screen before any card has been fetched, THE card update input check SHALL validate only the account number and card number search keys, discard any card name, status or expiry entered, and skip all card-detail edits.
  • account number: 00000000011; card number: 4111111111111111; card name typed: ANY NAME → Only the two keys are checked; the typed name is ignored and the card is looked up.
app/cbl/COCRDUPC.cbl:641-665, app/cbl/COCRDUPC.cbl:720-756, app/cbl/COCRDUPC.cbl:760-796, app/cbl/COCRDUPC.cbl:176-186, app/cbl/COCRDUPC.cbl:952-965
Validate search keys before fetch
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-ff85d1eca6/2
business rule
validation, medium
WHEN no card has been fetched yet and both the account number and the card number are left blank (or zero), THE card update input check SHALL report 'No input received'.
  • account number: (blank); card number: (blank) → The error line shows 'No input received' and no card is read.
app/cbl/COCRDUPC.cbl:641-665, app/cbl/COCRDUPC.cbl:720-756, app/cbl/COCRDUPC.cbl:760-796, app/cbl/COCRDUPC.cbl:176-186, app/cbl/COCRDUPC.cbl:952-965
Validate account number search key
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-9d005ffa1d/1
business rule
validation, medium
WHEN no card is yet fetched and the account number entered is blank, '*' or all zeros, THE card update screen SHALL flag an input error and show 'Account number not provided' (unless an earlier message is already set).
  • account number: (blank) → Error 'Account number not provided'.
  • account number: 00000000000 → Error 'Account number not provided'.
app/cbl/COCRDUPC.cbl:721-756, app/cbl/COCRDUPC.cbl:645-661, app/cbl/COCRDUPC.cbl:589-596, app/cbl/COCRDUPC.cbl:177-178
Validate search keys before fetch
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-ff85d1eca6/3
business rule
validation, medium
WHEN no card has been fetched yet and only one search key is missing or a key is not numeric, THE card update input check SHALL report the first problem found: 'Account number not provided', 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER', 'Card number not provided' or 'CARD ID FILTER,IF SUPPLIED MUST BE A 16 DIGIT NUMBER'.
  • account number: ABC; card number: 4111111111111111 → The error line shows 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER' and no card is read.
  • account number: 00000000011; card number: (blank) → The error line shows 'Card number not provided'.
app/cbl/COCRDUPC.cbl:641-665, app/cbl/COCRDUPC.cbl:720-756, app/cbl/COCRDUPC.cbl:760-796, app/cbl/COCRDUPC.cbl:176-186, app/cbl/COCRDUPC.cbl:952-965
Validate account number search key
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-9d005ffa1d/2
business rule
validation, medium
WHEN no card is yet fetched and the account number entered is not numeric, THE card update screen SHALL flag an input error and show 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER' (unless an earlier message is already set); otherwise THE screen SHALL accept the account number as a valid search key.
  • account number: 12AB5678901 → Error 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER'.
  • account number: 00000000011 → Account accepted as search key.
app/cbl/COCRDUPC.cbl:721-756, app/cbl/COCRDUPC.cbl:645-661, app/cbl/COCRDUPC.cbl:589-596, app/cbl/COCRDUPC.cbl:177-178
Validate card number search key
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-b8f83478ab/1
business rule
validation, medium
WHEN no card is yet fetched and the card number entered is blank, '*' or all zeros, THE card update screen SHALL flag an input error and show 'Card number not provided' (unless an earlier message, such as an account error, is already set).
  • account number: 00000000011; card number: (blank) → Error 'Card number not provided'.
  • account number: (blank); card number: (blank) → 'Account number not provided' is shown, because the account message is set first.
app/cbl/COCRDUPC.cbl:762-800, app/cbl/COCRDUPC.cbl:645-661, app/cbl/COCRDUPC.cbl:179-180
Validate card number search key
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-b8f83478ab/2
business rule
validation, medium
WHEN no card is yet fetched and the card number entered is not numeric, THE card update screen SHALL flag an input error and show 'CARD ID FILTER,IF SUPPLIED MUST BE A 16 DIGIT NUMBER' (unless an earlier message is already set); otherwise THE screen SHALL accept the card number as a valid search key.
  • account number: 00000000011; card number: 4111-1111-1111-1 → Error 'CARD ID FILTER,IF SUPPLIED MUST BE A 16 DIGIT NUMBER'.
  • card number: 4111111111111111 → Card number accepted as search key.
app/cbl/COCRDUPC.cbl:762-800, app/cbl/COCRDUPC.cbl:645-661, app/cbl/COCRDUPC.cbl:179-180
Fetch card details for valid search keys
rec/group:claude/RULE-137/2
business rule
business, high
WHEN card details have not yet been fetched and the operator submits an account number and card number that both pass validation, THE card update program SHALL read the card and, if it is found, show its details for editing with 'Details of selected card shown above' (state 'S'); otherwise the search screen stays with the error.
  • Account number: 00000000001; Card number: 4111111111111111 (exists) → Card name, status and expiry shown for editing; message 'Details of selected card shown above'
app/cbl/COCRDUPC.cbl:276-290, app/cbl/COCRDUPC.cbl:160-171, app/cbl/COCRDUPC.cbl:386-401, app/cbl/COCRDUPC.cbl:413-424, app/cbl/COCRDUPC.cbl:502-528, app/cbl/COCRDUPC.cbl:535-542
Look up card by card number
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-a1ffaf24dd/1
business rule
business, medium
WHEN card details are fetched, THE card update function SHALL read the card file ('CARDDAT') by card number alone and, if the card is found, mark the card as found.
  • account number: 00000000099; card number: 4111111111111111 (belongs to account 00000000011) → The card is found and shown; the account entered is not checked against the card.
app/cbl/COCRDUPC.cbl:1376-1413, app/cbl/COCRDUPC.cbl:133-150, app/cbl/COCRDUPC.cbl:203-204, app/cbl/COCRDUPC.cbl:251-252
Look up card by card number
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-a1ffaf24dd/2
business rule
validation, medium
WHEN the card number is not on the card file, THE card update function SHALL flag both search keys as in error and show 'Did not find cards for this search condition' (unless an earlier message is already set).
  • card number: 9999999999999999 → Error 'Did not find cards for this search condition'.
app/cbl/COCRDUPC.cbl:1376-1413, app/cbl/COCRDUPC.cbl:133-150, app/cbl/COCRDUPC.cbl:203-204, app/cbl/COCRDUPC.cbl:251-252
Look up card by card number
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-a1ffaf24dd/3
error handling
error_handling, medium
WHEN the card file read fails for any other reason, THE card update function SHALL flag an input error and show 'File Error: READ on CARDDAT returned RESP <code>' with the response codes.
app/cbl/COCRDUPC.cbl:1376-1413, app/cbl/COCRDUPC.cbl:133-150, app/cbl/COCRDUPC.cbl:203-204, app/cbl/COCRDUPC.cbl:251-252
Load original card details for display
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-3de742b9fa/1
design note
technical, medium
WHEN the requested card is found on the card file, THE card update lookup SHALL keep as the card's original details the embossed name converted to upper case, the expiry year, month and day taken from the stored expiry date (positions 1-4, 6-7 and 9-10), the active status and the CVV code.
app/cbl/COCRDUPC.cbl:1343-1371
Show stored card details
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-ebbef7c630/1
formatting
display, medium
WHEN the card update screen is redisplayed (not a first entry) and the card details have just been fetched and are being shown unchanged (state 'S'), THE card update screen SHALL show the card's stored embossed name, active status, expiry day, expiry month and expiry year as they were read from the card file.
  • screen state: 'S' (details shown); stored embossed name: JOHN SMITH; stored active status: Y; stored expiry date: 2027-08-31 → The screen shows name JOHN SMITH, status Y, expiry day 31, month 08, year 2027.
app/cbl/COCRDUPC.cbl:1082-1083, app/cbl/COCRDUPC.cbl:1107-1112, app/cbl/COCRDUPC.cbl:494-496
Inform card details are shown
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-dd3c18a29c/1
formatting
display, medium
WHEN the card update screen is redisplayed and the card details have just been shown and not yet changed (stage 'S'), THE card update screen SHALL show the information message 'Details of selected card shown above'.
  • account number: 00000000011; card number: 4111111111111111; stage: S → Information line reads 'Details of selected card shown above'.
app/cbl/COCRDUPC.cbl:1145-1146, app/cbl/COCRDUPC.cbl:160-161
Show selected card when arriving from card list
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-a48730c1da/1
business rule
business, medium
WHEN the operator arrives at card update from the card list ('COCRDLIC') for the first time, or presses PF12 while the card list is the calling program, THE card update screen SHALL take the account and card number passed by the card list, read that card, mark the details as shown and display the update screen.
  • calling program: COCRDLIC; account selected: 00000000011; card selected: 4111111111111111 → The card is read and its name, status and expiry are shown on the update screen with the message 'Details of selected card shown above'.
  • calling program: COCRDLIC; key pressed: PF12; card details: already shown → The card is read again from the file and the stored values are redisplayed, discarding unsaved edits.
app/cbl/COCRDUPC.cbl:482-497, app/cbl/COCRDUPC.cbl:1340-1368, app/cbl/COCRDUPC.cbl:413-424, app/cbl/COCRDLIC.cbl:548-570

Acceptance criteria

IDCriterionChecks
AC-01Given Arrived from: main menu option 5 'Credit Card Update'
When the card update screen is started with no conversation data, or is entered from the main menu ('COMEN01C') as a fresh entry
Then Blank search screen with message 'Please enter Account and Card Number'
REQ-F-061
Show empty search screen on fresh entry
worked example 1 of the rule
AC-02Given entry: first entry from main menu
When the card update screen is shown on a first entry into the function
Then The information line reads 'Please enter Account and Card Number'.
REQ-F-061
Prompt for search keys on first entry
worked example 1 of the rule
AC-03Given previous update: saved successfully
When the card update screen is shown on a first entry into the function
Then The screen is reset for a new search and reads 'Please enter Account and Card Number'.
REQ-F-061
Prompt for search keys on first entry
worked example 2 of the rule
AC-04Given entry: menu option 5 'Credit Card Update'
When the card update screen is shown on a first entry (from the menu, or after an update completes or fails)
Then The screen shows empty account, card and detail fields with 'Please enter Account and Card Number'.
REQ-F-062
Display search keys on re-entry
worked example 1 of the rule
AC-05Given Account number: 00000000099; Card search result: no card found
When the user returns to the card update screen and card details have not yet been fetched
Then Information line shows 'Please enter Account and Card Number'
REQ-F-063
Prompt for search keys when details not fetched
worked example 1 of the rule
AC-06Given Account number entered: 00000000001; Card number entered: (blank)
When the user returns to the card update screen before card details have been fetched
Then Card detail fields are shown empty
REQ-F-063
Blank card details before retrieval
worked example 1 of the rule
AC-07Given entry: redisplay; account number: 00000000011; card number: 0
When the card update screen is redisplayed (not a first entry)
Then Account 00000000011 is shown; the card number field is blank.
REQ-F-064
Display search keys on re-entry
worked example 1 of the rule
AC-08Given account number entered: *
When the account number entered on the card update screen is '*' or blank
Then The account number is treated as not supplied (and later reported as 'Account number not provided' if no card is fetched yet).
REQ-F-065
Interpret account number entry
worked example 1 of the rule
AC-09Given account number entered: 00000000011
When the account number entered on the card update screen is '*' or blank
Then 00000000011 is used as the search account and the new account number.
REQ-F-065
Interpret account number entry
worked example 2 of the rule
AC-10Given card number: *
When the operator submits the card update screen with the card number entered as '*' or left blank
Then Card number treated as not supplied.
REQ-F-065
Interpret card number entry
worked example 1 of the rule
AC-11Given card number: 4111111111111111
When the operator submits the card update screen with the card number entered as '*' or left blank
Then 4111111111111111 is used as search key and new card number.
REQ-F-065
Interpret card number entry
worked example 2 of the rule
AC-12Given Account number: (blank); Card number: (blank); Card status entered: X
When card details have not yet been fetched
Then 'No input received'; the status is not checked
REQ-F-066, REQ-F-067
Skip editing before details are fetched
worked example 1 of the rule
AC-13Given Account number: 00000000001; Card number: 4111111111111111; Card name entered: ABC123
When card details have not yet been fetched
Then Only the search keys are checked; the entered name is discarded
REQ-F-066, REQ-F-067
Skip editing before details are fetched
worked example 2 of the rule
AC-14Given account number: 00000000011; card number: 4111111111111111; card name typed: ANY NAME
When the operator submits the screen before any card has been fetched
Then Only the two keys are checked; the typed name is ignored and the card is looked up.
REQ-F-066
Validate search keys before fetch
worked example 1 of the rule
AC-15Given account number: (blank); card number: (blank)
When no card has been fetched yet and both the account number and the card number are left blank (or zero)
Then The error line shows 'No input received' and no card is read.
REQ-F-067
Validate search keys before fetch
worked example 1 of the rule
AC-16Given account number: (blank)
When no card is yet fetched and the account number entered is blank, '*' or all zeros
Then Error 'Account number not provided'.
REQ-F-068
Validate account number search key
worked example 1 of the rule
AC-17Given account number: 00000000000
When no card is yet fetched and the account number entered is blank, '*' or all zeros
Then Error 'Account number not provided'.
REQ-F-068
Validate account number search key
worked example 2 of the rule
AC-18Given account number: ABC; card number: 4111111111111111
When no card has been fetched yet and only one search key is missing or a key is not numeric
Then The error line shows 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER' and no card is read.
REQ-F-068, REQ-F-069, REQ-F-070, REQ-F-071
Validate search keys before fetch
worked example 1 of the rule
AC-19Given account number: 00000000011; card number: (blank)
When no card has been fetched yet and only one search key is missing or a key is not numeric
Then The error line shows 'Card number not provided'.
REQ-F-068, REQ-F-069, REQ-F-070, REQ-F-071
Validate search keys before fetch
worked example 2 of the rule
AC-20Given account number: 12AB5678901
When no card is yet fetched and the account number entered is not numeric
Then Error 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER'.
REQ-F-069, REQ-F-072
Validate account number search key
worked example 1 of the rule
AC-21Given account number: 00000000011
When no card is yet fetched and the account number entered is not numeric
Then Account accepted as search key.
REQ-F-069, REQ-F-072
Validate account number search key
worked example 2 of the rule
AC-22Given account number: 00000000011; card number: (blank)
When no card is yet fetched and the card number entered is blank, '*' or all zeros
Then Error 'Card number not provided'.
REQ-F-070
Validate card number search key
worked example 1 of the rule
AC-23Given account number: (blank); card number: (blank)
When no card is yet fetched and the card number entered is blank, '*' or all zeros
Then 'Account number not provided' is shown, because the account message is set first.
REQ-F-070
Validate card number search key
worked example 2 of the rule
AC-24Given account number: 00000000011; card number: 4111-1111-1111-1
When no card is yet fetched and the card number entered is not numeric
Then Error 'CARD ID FILTER,IF SUPPLIED MUST BE A 16 DIGIT NUMBER'.
REQ-F-071, REQ-F-072
Validate card number search key
worked example 1 of the rule
AC-25Given card number: 4111111111111111
When no card is yet fetched and the card number entered is not numeric
Then Card number accepted as search key.
REQ-F-071, REQ-F-072
Validate card number search key
worked example 2 of the rule
AC-26Given Account number: 00000000001; Card number: 4111111111111111 (exists)
When card details have not yet been fetched and the operator submits an account number and card number that both pass validation
Then Card name, status and expiry shown for editing; message 'Details of selected card shown above'
REQ-F-072, REQ-F-073
Fetch card details for valid search keys
worked example 1 of the rule
AC-27Given account number: 00000000099; card number: 4111111111111111 (belongs to account 00000000011)
When card details are fetched
Then The card is found and shown; the account entered is not checked against the card.
REQ-F-072
Look up card by card number
worked example 1 of the rule
AC-28Given card number: 9999999999999999
When the card number is not on the card file
Then Error 'Did not find cards for this search condition'.
REQ-F-073
Look up card by card number
worked example 1 of the rule
AC-29Given screen state: 'S' (details shown); stored embossed name: JOHN SMITH; stored active status: Y; stored expiry date: 2027-08-31
When the card update screen is redisplayed (not a first entry) and the card details have just been fetched and are being shown unchanged (state 'S')
Then The screen shows name JOHN SMITH, status Y, expiry day 31, month 08, year 2027.
REQ-F-076
Show stored card details
worked example 1 of the rule
AC-30Given account number: 00000000011; card number: 4111111111111111; stage: S
When the card update screen is redisplayed and the card details have just been shown and not yet changed (stage 'S')
Then Information line reads 'Details of selected card shown above'.
REQ-F-076
Inform card details are shown
worked example 1 of the rule
AC-31Given calling program: COCRDLIC; account selected: 00000000011; card selected: 4111111111111111
When the operator arrives at card update from the card list ('COCRDLIC') for the first time, or presses PF12 while the card list is the calling program
Then The card is read and its name, status and expiry are shown on the update screen with the message 'Details of selected card shown above'.
REQ-F-077
Show selected card when arriving from card list
worked example 1 of the rule
AC-32Given calling program: COCRDLIC; key pressed: PF12; card details: already shown
When the operator arrives at card update from the card list ('COCRDLIC') for the first time, or presses PF12 while the card list is the calling program
Then The card is read again from the file and the stored values are redisplayed, discarding unsaved edits.
REQ-F-077
Show selected card when arriving from card list
worked example 2 of the rule
AC-33Given no card has been fetched yet, a valid account number and card number have been entered on the card update screen, and reading the card file will fail with an error other than 'not found'
When the operator submits the search
Then an input error is flagged, no card details are shown, and the message reads 'File Error: READ on CARDDAT returned RESP <code>' with the response codes the read returned
REQ-F-074
Look up card by card number
written from the rule
AC-34Given the card file holds the requested card with embossed name 'John Smith', stored expiry date '2027-08-15', active status 'Y' and a CVV code
When the card is found by the card update lookup
Then the original details kept are embossed name 'JOHN SMITH', expiry year '2027' (positions 1-4), expiry month '08' (positions 6-7), expiry day '15' (positions 9-10), active status 'Y' and the card's CVV code
REQ-F-075
Load original card details for display
written from the rule

Screens

  • Cards S-CARD-LIST · design · replaces CCRDLIA (3 kept, 40 merged, 6 dropped, 1 split)
  • Card details S-CARD-DETAIL · design · replaces CCRDSLA, CCRDUPA (29 merged, 7 kept, 2 split, 2 dropped)
    • **lookup field** Account number checks: Required, an 11-digit number other than zeros: 'Account number not provided. Enter the 11-digit account number.' or 'Account filter, if supplied, must be an 11 digit number. Enter digits only.' Both fields empty: 'No input received. Enter the account and card number.' Account is checked before card, and focus moves to the first field in error.
    • **lookup field** Card number checks: Required, a 16-digit number other than zeros: 'Card number not provided. Enter the 16-digit card number.' or 'Card ID filter, if supplied, must be a 16 digit number. Enter digits only.' No card with that number: 'Did not find cards for this search condition. Check the card number.'
    • **summary card** Card

Data contracts

CSMSG02Y (file record; COCRDUPC), CVACT02Y (file record; COCRDUPC), COCOM01Y (working storage; COCRDUPC), COTTL01Y (working storage; COCRDUPC), CSDAT01Y (working storage; COCRDUPC), CSMSG01Y (working storage; COCRDUPC), CSSTRPFY (working storage; COCRDUPC), CSUSR01Y (working storage; COCRDUPC), CVCRD01Y (working storage; COCRDUPC), CVCUS01Y (working storage; COCRDUPC)

Decision tables

Search key validation before a card is fetched

Account number enteredCard number enteredMessage shown / actionRule
blank, '*' or zerosblank, '*' or zeros'No input received'rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-ff85d1eca6/2
blank, '*' or zerosnumeric'Account number not provided'rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-9d005ffa1d/1
blank, '*' or zerosnot numeric'Account number not provided' (first problem found)rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-ff85d1eca6/3
not numericany'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER' (first problem found)rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-9d005ffa1d/2
numericblank, '*' or zeros'Card number not provided'rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-b8f83478ab/1
numericnot numeric'CARD ID FILTER,IF SUPPLIED MUST BE A 16 DIGIT NUMBER'rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-b8f83478ab/2
numericnumericRead the card by card numberrec/group:claude/RULE-137/2
numeric but not 11 digitsanyGap: The messages speak of an 11-digit account and 16-digit card number, but the rules only check that the value is numeric; confirm whether length must be enforced.
'*''*'Gap: R24 gives 'No input received' for blank or zero keys; confirm that '*' in both keys also gives 'No input received' rather than 'Account number not provided'.

Card lookup outcome

Card file read resultScreen resultRule
card foundShow details for editing with 'Details of selected card shown above' (state 'S')rec/group:claude/RULE-137/2
card not foundBoth search keys flagged; 'Did not find cards for this search condition'rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-a1ffaf24dd/2
other failureInput error; 'File Error: READ on CARDDAT returned RESP <code>'rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-a1ffaf24dd/3
card found but belongs to a different accountGap: The card is read by card number alone; no rule says whether the entered account number must match the card's account.

Open questions

  • SME-108 When a card record cannot be locked for update, the message is given as 'Could not lock record (CARDDAT) for update' in one place and 'Could not lock record for update' in another. Which text is correct, and does the outcome shown to the operator depend on the exact wording? (Card operations business analyst)
  • SME-109 When updating a card, where should the expiry day come from? The screen shows the original day as not changeable, yet the saved day is taken from a hidden screen field without checks. Should the saved day be the original stored day, be recalculated (for example, the last day of the month), or be the entered value? And should the new expiry date have to be in the future, or no earlier than the current expiry? (Card operations subject-matter expert)
  • SME-110 When a card is updated, the saved CVV comes from an 'updated CVV' value that no rule captures or checks. Should the saved CVV always be the original stored CVV? (Card operations business analyst)
  • SME-111 After the operator confirms a card update, if a file error or other message is already pending, the result is reported as 'changes saved'. Is that intended? (Card operations business analyst)
  • SME-112 When the card update screen reaches a state it does not recognise, the old system records error code '0001' with 'UNEXPECTED DATA SCENARIO'. Should the new system keep this, and what should the operator see? (Business analyst / card operations)
  • SME-113 On the card update screen, entering '*' or leaving a field blank counts as 'not supplied', and the card name, status, expiry month and expiry year are then flagged as errors. Should '*' mean 'keep the existing value', or are all four fields required? (Card operations product owner)
  • SME-114 Should the new system check the expiry day entered on a card update, and if so, what range is allowed? (Card operations product owner)
  • SME-115 When checking for changes, a change only in upper or lower case in the card name is reported as 'No change detected'. Should a case-only change to the name be rejected as no change? (Card operations product owner)
  • DEF-059 Is this intended? The decision step has a branch for a completed save ('C'), which would return to details shown and clear the keys, and a catch-all that abends with '0001' 'UNEXPECTED DATA SCENARIO'. Neither can run: the main dispatch handles 'C', 'L' and 'F' itself before the decision step is reached. Also, once changes are validated ('N'), further edits are not re-validated before PF5 saves them. (Subject-matter expert)
  • DEF-123 Is this intended? The stage is set to details shown even when the card read fails (not found or file error), so the screen says 'Details of selected card shown above' with empty details next to the error message. (Subject-matter expert)
  • DEF-125 Is this intended? The lookup ignores the account number (its key move is commented out), so a card is fetched and can be updated even when the account entered does not own it. (Subject-matter expert)

Design notes

  • Normalise the account number input: '*' or blank means 'not supplied' (null). Any other value is used both as the account to search by and as the account number held for the update. Interpret account number entry
  • Normalise the card number input: '*' or blank means 'not supplied' (null). Any other value is used both as the card number to look up and as the card number held for the update. Interpret card number entry
  • When the card is loaded, keep a snapshot of the original values in the update session: embossed name in upper case, expiry year, month and day split from the stored expiry date (characters 1-4, 6-7 and 9-10), active status and CVV. Use this snapshot for no-change detection and to check at save time whether someone else has changed the card. Load original card details for display
8. Edit and validate card detailsdraft · online · 15 requirements · 22 rules · 33 criteria · 2 screens · 2 gaps

Card operations users change a card's embossed name, active status and expiry month and year, and each change is checked before it can be saved. The name may hold only letters and spaces, the status must be Y or N, the month must be 1 to 12 and the year 1950 to 2099. When more than one field fails, only the first failure in that order is reported. Changes must not go forward for confirmation until every changed field passes.

As a card operations user, I want to change a card's embossed name, active status and expiry date and have my changes checked, so that only valid card details are put forward for saving.

Draft: the function is not signed off yet. Risk medium; touches card_data, personal_data. rec/CustomerDataSetup/CreditCardListDetailViewandUpdate#8

Requirements

CodeClassRequirementCriteria
REQ-F-078design noteWhen the operator submits the card update screen with the embossed name, active status, expiry month or expiry year entered as '*' or left blank, the system shall treat that value as not supplied, and otherwise shall take the entry as the new value.AC-01, AC-02, AC-03, AC-04, AC-05, AC-06, AC-07
REQ-F-079design noteThe system shall always take the expiry day exactly as returned by the screen, without the '*' or blank check, as the new expiry day written back to the card record.AC-08
REQ-F-080business ruleWhen the entered card details equal the fetched details ignoring upper/lower case, the system shall skip the field checks, report 'No change detected with respect to values fetched.' and leave the details shown (state 'S') without asking for confirmation.AC-09, AC-10, AC-11, AC-12
REQ-F-081business ruleWhen card details are shown and the operator submits name, status or expiry values that differ (ignoring upper/lower case) from the stored ones, the system shall run the name, status, expiry month and expiry year checks.AC-13
REQ-F-082business ruleIf the changed card name is missing, '*', blank or zeros, then the system shall reject the change with 'Card name not provided' and show '*' in the name field in red.AC-14
REQ-F-083business ruleIf the changed card name contains anything other than letters A-Z, a-z and spaces, then the system shall reject the change with 'Card name can only contain alphabets and spaces' and show the name in red.AC-15, AC-16, AC-17
REQ-F-084business ruleIf the entered details differ from those fetched and the card active status is not supplied, is '0', or is anything other than uppercase 'Y' or 'N', then the system shall reject the input with 'Card Active Status must be Y or N', unless an earlier field already set a message.AC-18, AC-19, AC-20, AC-21
REQ-F-085business ruleIf the changed expiry month is missing, '*', blank or zeros, or is not between 1 and 12, then the system shall reject the change with 'Card expiry month must be between 1 and 12' and show the month in red.AC-22, AC-23, AC-24
REQ-F-086business ruleIf the changed expiry year is missing, '*', blank or zeros, or is not between 1950 and 2099, then the system shall reject the change with 'Invalid card expiry year' and show the year in red.AC-25, AC-26, AC-27
REQ-F-087formattingWhen the expiry month or year was rejected because it was missing, blank or zeros, the system shall show '*' in that field in red.AC-28
REQ-F-088business ruleWhen more than one card field fails its check, the system shall show only the message of the first failing check, in the order name, status, expiry month, expiry year.AC-29
REQ-F-089business ruleIf any changed value fails its check, then the system shall keep the screen in the changes-with-errors state ('E') and show 'Update card details presented above.' alongside the error message.AC-13, AC-30
REQ-F-090business ruleWhen the changed values pass all checks, the system shall move to awaiting confirmation (state 'N') and show 'Changes validated.Press F5 to save'.AC-31
REQ-F-091business ruleWhile the edits still have errors (state 'E'), the system shall not save and shall show the card details again in the same state.AC-32
REQ-F-092formattingWhen the card update screen is redisplayed after the operator has entered changes (stage 'E', 'N', 'C', 'L' or 'F'), the system shall show the operator's entered embossed name, active status, expiry month and expiry year, and the card's original expiry day.AC-33

Business rules

RuleClassText, worked examples and evidence
Interpret placeholder entries as not supplied
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-481280f86b/1
design note
technical, medium
WHEN the operator submits the card update screen, THE card update screen SHALL treat an embossed name, active status, expiry month or expiry year entered as '*' or left blank as not supplied, and take any other entry as the new value.
  • embossed name: *; active status: Y → Name is treated as not supplied; status 'Y' is taken as the new value.
  • expiry month: (blank); expiry year: 2027 → Month is treated as not supplied; year 2027 is taken.
app/cbl/COCRDUPC.cbl:586, app/cbl/COCRDUPC.cbl:607-635
Interpret embossed name entry
rec/group:claude/RULE-105/1
design note
technical, high
WHEN the user enters '*' or leaves the card name blank on the card update screen, THE card update screen SHALL treat the name as not supplied; any other entry is taken as the new embossed name.
  • Card name entered: * → The name counts as not supplied
app/cbl/COCRDUPC.cbl:607-612, app/cbl/COCRDUPC.cbl:806-843, app/cbl/COCRDUPC.cbl:181-184, app/cbl/COCRDUPC.cbl:255-259, app/cbl/COCRDUPC.cbl:1263-1272
Interpret card active status entry
rec/group:claude/RULE-106/1
design note
technical, high
WHEN the user enters '*' or leaves the card active status blank, THE card update screen SHALL treat the status as not supplied.
  • Card active status entered: * → Status is treated as not supplied and fails the Y/N check if the card details are being edited
  • Card active status entered: Y → 'Y' is taken as the new status
app/cbl/COCRDUPC.cbl:614-619, app/cbl/COCRDUPC.cbl:680-692, app/cbl/COCRDUPC.cbl:701-702, app/cbl/COCRDUPC.cbl:845-876, app/cbl/COCRDUPC.cbl:89-91, app/cbl/COCRDUPC.cbl:195-196
Interpret expiry month entry
rec/group:claude/RULE-107/1
design note
technical, high
WHEN the user enters '*' or leaves the expiry month or expiry year blank on the card update screen, THE card update screen SHALL treat that value as not supplied; any other entry is taken as the new value.
  • Expiry month entered: * → The month counts as not supplied
  • Expiry year entered: 2027 → 2027 is taken as the new expiry year
app/cbl/COCRDUPC.cbl:623-635, app/cbl/COCRDUPC.cbl:677-708, app/cbl/COCRDUPC.cbl:877-947, app/cbl/COCRDUPC.cbl:92-99, app/cbl/COCRDUPC.cbl:197-200, app/cbl/COCRDUPC.cbl:1287-1307
Interpret placeholder entries as not supplied
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-481280f86b/2
design note
technical, medium
THE card update screen SHALL always take the expiry day exactly as returned by the screen, without the '*' or blank check.
  • expiry day returned: 15 → New expiry day is 15.
app/cbl/COCRDUPC.cbl:586, app/cbl/COCRDUPC.cbl:607-635
Stage expiry day as entered
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-23609518e7/1
design note
technical, medium
THE card update function SHALL take the expiry day returned by the screen, unchanged, as the new expiry day written back to the card record.
app/cbl/COCRDUPC.cbl:621, app/cbl/COCRDUPC.cbl:1467-1473, app/bms/COCRDUP.bms:142-146, app/cbl/COCRDUPC.cbl:1123
Detect unchanged card data
rec/agreed:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-c89ab9678d/1
business rule
validation, medium
WHEN the new card data equals the fetched data ignoring case, or the state is awaiting confirmation ('N') or done ('C'), THE Card Update Change Detection SHALL report 'No change detected with respect to values fetched.' when the data is unchanged, and stop further field editing
  • Entered card details: identical to fetched details → The screen reports 'No change detected with respect to values fetched.' and no further field editing is done.
  • Fetched expiry month: 05; Entered expiry month: 05; Entered embossed name: same as fetched but in lower case → Case is ignored, so 'No change detected with respect to values fetched.' is reported.
  • Fetched expiry year: 2027; Entered expiry year: 2028; Update stage: not 'N' or 'C' → A change is detected; no no-change message, and the field edits continue.
app/cbl/COCRDUPC.cbl:680-683,685-687,692-693, app/cbl/COCRDUPC.cbl:679-693
Card active status must be Y or N
rec/group:claude/RULE-106/4
business rule
validation, high
WHEN the entered card details match the fetched ones apart from upper/lower case, THE card update screen SHALL skip the status check and report 'No change detected with respect to values fetched.'.
  • Fetched status: Y; Card active status entered: y; Other fields: unchanged → Message 'No change detected with respect to values fetched.'; no status error
app/cbl/COCRDUPC.cbl:614-619, app/cbl/COCRDUPC.cbl:680-692, app/cbl/COCRDUPC.cbl:701-702, app/cbl/COCRDUPC.cbl:845-876, app/cbl/COCRDUPC.cbl:89-91, app/cbl/COCRDUPC.cbl:195-196
Request confirmation for valid changes
rec/group:claude/RULE-137/6
business rule
business, high
WHEN card details are shown and the submitted values are the same as the stored ones (ignoring case), THE card update program SHALL leave the details shown (state 'S') without asking for confirmation.
app/cbl/COCRDUPC.cbl:276-290, app/cbl/COCRDUPC.cbl:160-171, app/cbl/COCRDUPC.cbl:386-401, app/cbl/COCRDUPC.cbl:413-424, app/cbl/COCRDUPC.cbl:502-528, app/cbl/COCRDUPC.cbl:535-542
Determine overall change validity
rec/group:claude/RULE-137/4
business rule
validation, high
WHEN card details are shown and the operator submits name, status or expiry values that differ (ignoring upper/lower case) from the stored ones, THE card update program SHALL run the name, status, expiry month and expiry year checks and, if any fails, keep the screen in the changes-with-errors state ('E') with 'Update card details presented above.'.
  • Card status: X → State 'E'; status error shown with 'Update card details presented above.'
app/cbl/COCRDUPC.cbl:276-290, app/cbl/COCRDUPC.cbl:160-171, app/cbl/COCRDUPC.cbl:386-401, app/cbl/COCRDUPC.cbl:413-424, app/cbl/COCRDUPC.cbl:502-528, app/cbl/COCRDUPC.cbl:535-542
Validate embossed card name
rec/group:claude/RULE-105/2
business rule
validation, high
WHEN card details have been fetched and the user changes them, and the card name is missing, '*', blank or zeros, THE card update screen SHALL reject the change with 'Card name not provided' and show '*' in the name field in red.
  • Card name: (blank) → Error 'Card name not provided'; the name field shows '*'
app/cbl/COCRDUPC.cbl:607-612, app/cbl/COCRDUPC.cbl:806-843, app/cbl/COCRDUPC.cbl:181-184, app/cbl/COCRDUPC.cbl:255-259, app/cbl/COCRDUPC.cbl:1263-1272
Validate embossed card name
rec/group:claude/RULE-105/3
business rule
validation, high
WHEN card details have been fetched and the user changes them, and the card name contains anything other than letters A-Z, a-z and spaces, THE card update screen SHALL reject the change with 'Card name can only contain alphabets and spaces' and show the name in red.
  • Card name: JOHN O'BRIEN → Error 'Card name can only contain alphabets and spaces'
  • Card name: JOHN SMITH 2 → Error 'Card name can only contain alphabets and spaces'
  • Card name: John Smith → The name is accepted
app/cbl/COCRDUPC.cbl:607-612, app/cbl/COCRDUPC.cbl:806-843, app/cbl/COCRDUPC.cbl:181-184, app/cbl/COCRDUPC.cbl:255-259, app/cbl/COCRDUPC.cbl:1263-1272
Validate card active status
rec/group:claude/RULE-106/2
business rule
validation, high
WHEN card details are shown, the entered details differ from those fetched, and the card active status is not supplied or is '0', THE card update screen SHALL reject the input with 'Card Active Status must be Y or N', unless an earlier field already set a message.
  • Card active status entered: 0; Embossed name: unchanged but valid; Expiry month: changed → Message 'Card Active Status must be Y or N'
app/cbl/COCRDUPC.cbl:614-619, app/cbl/COCRDUPC.cbl:680-692, app/cbl/COCRDUPC.cbl:701-702, app/cbl/COCRDUPC.cbl:845-876, app/cbl/COCRDUPC.cbl:89-91, app/cbl/COCRDUPC.cbl:195-196
Validate card active status
rec/group:claude/RULE-106/3
business rule
validation, high
WHEN card details are shown, the entered details differ from those fetched, and the card active status is anything other than uppercase 'Y' or 'N', THE card update screen SHALL reject the input with 'Card Active Status must be Y or N' (unless an earlier message is already set), and otherwise SHALL accept the status.
  • Fetched status: Y; Card active status entered: X → Message 'Card Active Status must be Y or N'
  • Fetched status: Y; Card active status entered: n → Message 'Card Active Status must be Y or N' (lowercase is not accepted)
  • Fetched status: Y; Card active status entered: N → Status accepted; if other fields are valid, 'Changes validated.Press F5 to save'
app/cbl/COCRDUPC.cbl:614-619, app/cbl/COCRDUPC.cbl:680-692, app/cbl/COCRDUPC.cbl:701-702, app/cbl/COCRDUPC.cbl:845-876, app/cbl/COCRDUPC.cbl:89-91, app/cbl/COCRDUPC.cbl:195-196
Validate card expiry month
rec/group:claude/RULE-107/2
business rule
validation, high
WHEN card details have been fetched and the user changes them, and the expiry month is missing, '*', blank or zeros, or is not between 1 and 12, THE card update screen SHALL reject the change with 'Card expiry month must be between 1 and 12' and show the month in red.
  • Expiry month: 13 → Error 'Card expiry month must be between 1 and 12'
  • Expiry month: 00 → Error 'Card expiry month must be between 1 and 12'; the month field shows '*'
  • Expiry month: 06 → The month is accepted
app/cbl/COCRDUPC.cbl:623-635, app/cbl/COCRDUPC.cbl:677-708, app/cbl/COCRDUPC.cbl:877-947, app/cbl/COCRDUPC.cbl:92-99, app/cbl/COCRDUPC.cbl:197-200, app/cbl/COCRDUPC.cbl:1287-1307
Validate card expiry year
rec/group:claude/RULE-107/3
business rule
validation, high
WHEN card details have been fetched and the user changes them, and the expiry year is missing, '*', blank or zeros, or is not between 1950 and 2099, THE card update screen SHALL reject the change with 'Invalid card expiry year' and show the year in red.
  • Expiry year: 2100 → Error 'Invalid card expiry year'
  • Expiry year: 1949 → Error 'Invalid card expiry year'
  • Expiry year: 2030 → The year is accepted
app/cbl/COCRDUPC.cbl:623-635, app/cbl/COCRDUPC.cbl:677-708, app/cbl/COCRDUPC.cbl:877-947, app/cbl/COCRDUPC.cbl:92-99, app/cbl/COCRDUPC.cbl:197-200, app/cbl/COCRDUPC.cbl:1287-1307
Card expiry month and year ranges
rec/group:claude/RULE-107/4
formatting
display, high
WHEN the expiry month or year was rejected because it was missing, blank or zeros, THE card update screen SHALL show '*' in that field in red.
  • Expiry year: (blank) → The year field shows '*' in red with 'Invalid card expiry year'
app/cbl/COCRDUPC.cbl:623-635, app/cbl/COCRDUPC.cbl:677-708, app/cbl/COCRDUPC.cbl:877-947, app/cbl/COCRDUPC.cbl:92-99, app/cbl/COCRDUPC.cbl:197-200, app/cbl/COCRDUPC.cbl:1287-1307
Card expiry month and year ranges
rec/group:claude/RULE-107/5
business rule
validation, high
WHEN more than one card field fails its check, THE card update screen SHALL show only the message of the first failing check, in the order name, status, expiry month, expiry year.
  • Card name: JOHN 2; Expiry month: 13 → Only 'Card name can only contain alphabets and spaces' is shown; the month is still shown in red
app/cbl/COCRDUPC.cbl:623-635, app/cbl/COCRDUPC.cbl:677-708, app/cbl/COCRDUPC.cbl:877-947, app/cbl/COCRDUPC.cbl:92-99, app/cbl/COCRDUPC.cbl:197-200, app/cbl/COCRDUPC.cbl:1287-1307
Prompt operator to correct changes
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-3096837eb2/1
formatting
display, medium
WHEN the operator has changed the card details and at least one of the changed values failed its edit checks (state 'E'), THE card update screen SHALL show the information message 'Update card details presented above.' (PROMPT-FOR-CHANGES) alongside the error message.
  • card active status entered: X; screen state before: 'S' → State becomes 'E'; the info line shows 'Update card details presented above.' and the error line shows 'Card Active Status must be Y or N'.
app/cbl/COCRDUPC.cbl:696, app/cbl/COCRDUPC.cbl:710-715, app/cbl/COCRDUPC.cbl:1138-1148, app/cbl/COCRDUPC.cbl:164-165, app/cbl/COCRDUPC.cbl:1161
Determine overall change validity
rec/group:claude/RULE-137/5
business rule
business, high
WHEN the changed values pass all checks, THE card update program SHALL move to awaiting confirmation (state 'N') and show 'Changes validated.Press F5 to save'.
  • Card status: N (was Y) → Message 'Changes validated.Press F5 to save'
app/cbl/COCRDUPC.cbl:276-290, app/cbl/COCRDUPC.cbl:160-171, app/cbl/COCRDUPC.cbl:386-401, app/cbl/COCRDUPC.cbl:413-424, app/cbl/COCRDUPC.cbl:502-528, app/cbl/COCRDUPC.cbl:535-542
Keep state for errors or unconfirmed changes
rec/group:claude/RULE-137/7
business rule
business, high
WHEN the edits still have errors ('E'), or the changes are validated ('N') and the operator presses a key other than PF5, THE card update program SHALL not save and SHALL show the card details again in the same state.
  • State: N; Key: Enter → Nothing saved; 'Changes validated.Press F5 to save' shown again
app/cbl/COCRDUPC.cbl:276-290, app/cbl/COCRDUPC.cbl:160-171, app/cbl/COCRDUPC.cbl:386-401, app/cbl/COCRDUPC.cbl:413-424, app/cbl/COCRDUPC.cbl:502-528, app/cbl/COCRDUPC.cbl:535-542
Show operator-entered card changes
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-bb8d673858/1
formatting
display, medium
WHEN the card update screen is redisplayed after the operator has entered changes (stage 'E', 'N', 'C', 'L' or 'F'), THE card update screen SHALL show the operator's entered embossed name, active status, expiry month and expiry year, and the card's original expiry day.
app/cbl/COCRDUPC.cbl:1113-1123, app/cbl/COCRDUPC.cbl:282-284

Acceptance criteria

IDCriterionChecks
AC-01Given embossed name: *; active status: Y
When the operator submits the card update screen
Then Name is treated as not supplied; status 'Y' is taken as the new value.
REQ-F-078
Interpret placeholder entries as not supplied
worked example 1 of the rule
AC-02Given expiry month: (blank); expiry year: 2027
When the operator submits the card update screen
Then Month is treated as not supplied; year 2027 is taken.
REQ-F-078
Interpret placeholder entries as not supplied
worked example 2 of the rule
AC-03Given Card name entered: *
When the user enters '*' or leaves the card name blank on the card update screen
Then The name counts as not supplied
REQ-F-078
Interpret embossed name entry
worked example 1 of the rule
AC-04Given Card active status entered: *
When the user enters '*' or leaves the card active status blank
Then Status is treated as not supplied and fails the Y/N check if the card details are being edited
REQ-F-078
Interpret card active status entry
worked example 1 of the rule
AC-05Given Card active status entered: Y
When the user enters '*' or leaves the card active status blank
Then 'Y' is taken as the new status
REQ-F-078
Interpret card active status entry
worked example 2 of the rule
AC-06Given Expiry month entered: *
When the user enters '*' or leaves the expiry month or expiry year blank on the card update screen
Then The month counts as not supplied
REQ-F-078
Interpret expiry month entry
worked example 1 of the rule
AC-07Given Expiry year entered: 2027
When the user enters '*' or leaves the expiry month or expiry year blank on the card update screen
Then 2027 is taken as the new expiry year
REQ-F-078
Interpret expiry month entry
worked example 2 of the rule
AC-08Given expiry day returned: 15
When card update screen runs
Then New expiry day is 15.
REQ-F-079
Interpret placeholder entries as not supplied
worked example 1 of the rule
AC-09Given Entered card details: identical to fetched details
When the new card data equals the fetched data ignoring case, or the state is awaiting confirmation ('N') or done ('C')
Then The screen reports 'No change detected with respect to values fetched.' and no further field editing is done.
REQ-F-080
Detect unchanged card data
worked example 1 of the rule
AC-10Given Fetched expiry month: 05; Entered expiry month: 05; Entered embossed name: same as fetched but in lower case
When the new card data equals the fetched data ignoring case, or the state is awaiting confirmation ('N') or done ('C')
Then Case is ignored, so 'No change detected with respect to values fetched.' is reported.
REQ-F-080
Detect unchanged card data
worked example 2 of the rule
AC-11Given Fetched expiry year: 2027; Entered expiry year: 2028; Update stage: not 'N' or 'C'
When the new card data equals the fetched data ignoring case, or the state is awaiting confirmation ('N') or done ('C')
Then A change is detected; no no-change message, and the field edits continue.
REQ-F-080
Detect unchanged card data
worked example 3 of the rule
AC-12Given Fetched status: Y; Card active status entered: y; Other fields: unchanged
When the entered card details match the fetched ones apart from upper/lower case
Then Message 'No change detected with respect to values fetched.'; no status error
REQ-F-080
Card active status must be Y or N
worked example 1 of the rule
AC-13Given Card status: X
When card details are shown and the operator submits name, status or expiry values that differ (ignoring upper/lower case) from the stored ones
Then State 'E'; status error shown with 'Update card details presented above.'
REQ-F-081, REQ-F-089
Determine overall change validity
worked example 1 of the rule
AC-14Given Card name: (blank)
When card details have been fetched and the user changes them, and the card name is missing, '*', blank or zeros
Then Error 'Card name not provided'; the name field shows '*'
REQ-F-082
Validate embossed card name
worked example 1 of the rule
AC-15Given Card name: JOHN O'BRIEN
When card details have been fetched and the user changes them, and the card name contains anything other than letters A-Z, a-z and spaces
Then Error 'Card name can only contain alphabets and spaces'
REQ-F-083
Validate embossed card name
worked example 1 of the rule
AC-16Given Card name: JOHN SMITH 2
When card details have been fetched and the user changes them, and the card name contains anything other than letters A-Z, a-z and spaces
Then Error 'Card name can only contain alphabets and spaces'
REQ-F-083
Validate embossed card name
worked example 2 of the rule
AC-17Given Card name: John Smith
When card details have been fetched and the user changes them, and the card name contains anything other than letters A-Z, a-z and spaces
Then The name is accepted
REQ-F-083
Validate embossed card name
worked example 3 of the rule
AC-18Given Card active status entered: 0; Embossed name: unchanged but valid; Expiry month: changed
When card details are shown
Then Message 'Card Active Status must be Y or N'
REQ-F-084
Validate card active status
worked example 1 of the rule
AC-19Given Fetched status: Y; Card active status entered: X
When card details are shown
Then Message 'Card Active Status must be Y or N'
REQ-F-084
Validate card active status
worked example 1 of the rule
AC-20Given Fetched status: Y; Card active status entered: n
When card details are shown
Then Message 'Card Active Status must be Y or N' (lowercase is not accepted)
REQ-F-084
Validate card active status
worked example 2 of the rule
AC-21Given Fetched status: Y; Card active status entered: N
When card details are shown
Then Status accepted; if other fields are valid, 'Changes validated.Press F5 to save'
REQ-F-084
Validate card active status
worked example 3 of the rule
AC-22Given Expiry month: 13
When card details have been fetched and the user changes them, and the expiry month is missing, '*', blank or zeros, or is not between 1 and 12
Then Error 'Card expiry month must be between 1 and 12'
REQ-F-085
Validate card expiry month
worked example 1 of the rule
AC-23Given Expiry month: 00
When card details have been fetched and the user changes them, and the expiry month is missing, '*', blank or zeros, or is not between 1 and 12
Then Error 'Card expiry month must be between 1 and 12'; the month field shows '*'
REQ-F-085
Validate card expiry month
worked example 2 of the rule
AC-24Given Expiry month: 06
When card details have been fetched and the user changes them, and the expiry month is missing, '*', blank or zeros, or is not between 1 and 12
Then The month is accepted
REQ-F-085
Validate card expiry month
worked example 3 of the rule
AC-25Given Expiry year: 2100
When card details have been fetched and the user changes them, and the expiry year is missing, '*', blank or zeros, or is not between 1950 and 2099
Then Error 'Invalid card expiry year'
REQ-F-086
Validate card expiry year
worked example 1 of the rule
AC-26Given Expiry year: 1949
When card details have been fetched and the user changes them, and the expiry year is missing, '*', blank or zeros, or is not between 1950 and 2099
Then Error 'Invalid card expiry year'
REQ-F-086
Validate card expiry year
worked example 2 of the rule
AC-27Given Expiry year: 2030
When card details have been fetched and the user changes them, and the expiry year is missing, '*', blank or zeros, or is not between 1950 and 2099
Then The year is accepted
REQ-F-086
Validate card expiry year
worked example 3 of the rule
AC-28Given Expiry year: (blank)
When the expiry month or year was rejected because it was missing, blank or zeros
Then The year field shows '*' in red with 'Invalid card expiry year'
REQ-F-087
Card expiry month and year ranges
worked example 1 of the rule
AC-29Given Card name: JOHN 2; Expiry month: 13
When more than one card field fails its check
Then Only 'Card name can only contain alphabets and spaces' is shown; the month is still shown in red
REQ-F-088
Card expiry month and year ranges
worked example 1 of the rule
AC-30Given card active status entered: X; screen state before: 'S'
When the operator has changed the card details and at least one of the changed values failed its edit checks (state 'E')
Then State becomes 'E'; the info line shows 'Update card details presented above.' and the error line shows 'Card Active Status must be Y or N'.
REQ-F-089
Prompt operator to correct changes
worked example 1 of the rule
AC-31Given Card status: N (was Y)
When the changed values pass all checks
Then Message 'Changes validated.Press F5 to save'
REQ-F-090
Determine overall change validity
worked example 1 of the rule
AC-32Given State: N; Key: Enter
When the edits still have errors ('E'), or the changes are validated ('N') and the operator presses a key other than PF5
Then Nothing saved; 'Changes validated.Press F5 to save' shown again
REQ-F-091
Keep state for errors or unconfirmed changes
worked example 1 of the rule
AC-33Given a card was fetched with embossed name 'JOHN SMITH', status 'Y', expiry month '08', expiry year '2027' and expiry day '15', and the operator then entered name 'JANE SMITH', status 'N', month '13', year '2028', so the update is in stage 'E'
When the card update screen is redisplayed
Then the screen shows name 'JANE SMITH', status 'N', expiry month '13' and expiry year '2028' as entered by the operator, and expiry day '15' from the card's original details
REQ-F-092
Show operator-entered card changes
written from the rule

Screens

  • Cards S-CARD-LIST · design · replaces CCRDLIA (3 kept, 40 merged, 6 dropped, 1 split)
  • Card details S-CARD-DETAIL · design · replaces CCRDSLA, CCRDUPA (29 merged, 7 kept, 2 split, 2 dropped)
    • **summary card** Name on card checks: Required, letters and spaces only: 'Card name not provided. Enter the name as it should appear on the card.' or 'Card name can only contain alphabets and spaces. Remove digits and symbols.'
    • **summary card** Card active checks: One must be chosen; 'Card Active Status must be Y or N' becomes 'Choose Active or Inactive.'
    • **summary card** Expiry month checks: 'Card expiry month must be between 1 and 12. Choose the month printed on the card.'
    • **summary card** Expiry year checks: 'Invalid card expiry year. Enter a year from 1950 to 2099.'
    • **primary button** Save card checks: Nothing differs from the stored values (ignoring case): 'No change detected with respect to values fetched.' Fields are checked in the order name, status, expiry month, expiry year.

Data contracts

CSMSG02Y (file record; COCRDUPC), CVACT02Y (file record; COCRDUPC), COCOM01Y (working storage; COCRDUPC), COTTL01Y (working storage; COCRDUPC), CSDAT01Y (working storage; COCRDUPC), CSMSG01Y (working storage; COCRDUPC), CSSTRPFY (working storage; COCRDUPC), CSUSR01Y (working storage; COCRDUPC), CVCRD01Y (working storage; COCRDUPC), CVCUS01Y (working storage; COCRDUPC)

Decision tables

Change validation outcome

Entered details differ from fetched (ignoring case)Card nameActive statusExpiry monthExpiry yearMessage and stateRule
no----'No change detected with respect to values fetched.'; state 'S'rec/agreed:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-c89ab9678d/1
yesmissing, '*', blank or zeros---'Card name not provided'; '*' in name in red; state 'E'rec/group:claude/RULE-105/2
yescontains other than letters and spaces---'Card name can only contain alphabets and spaces'; name in red; state 'E'rec/group:claude/RULE-105/3
yesvalidnot supplied or '0'--'Card Active Status must be Y or N'; state 'E'rec/group:claude/RULE-106/2
yesvalidother than uppercase 'Y' or 'N'--'Card Active Status must be Y or N'; state 'E'rec/group:claude/RULE-106/3
yesvalid'Y' or 'N'missing, blank, zeros or not 1-12-'Card expiry month must be between 1 and 12'; month in red; state 'E'rec/group:claude/RULE-107/2
yesvalid'Y' or 'N'1-12missing, blank, zeros or not 1950-2099'Invalid card expiry year'; year in red; state 'E'rec/group:claude/RULE-107/3
yesvalid'Y' or 'N'1-121950-2099'Changes validated.Press F5 to save'; state 'N'rec/group:claude/RULE-137/5
no (differs only in case)-lowercase 'y' or 'n'--Gap: A status changed only in case is treated as no change (R41), while a lowercase status alongside another change is rejected (R40); confirm this is intended.
differs only in expiry day----Gap: The expiry day is taken as returned by the screen without checks (R10, R20) and is not named in the change comparison (R53); confirm whether a day-only change is detected and validated.

Open questions

  • SME-108 When a card record cannot be locked for update, the message is given as 'Could not lock record (CARDDAT) for update' in one place and 'Could not lock record for update' in another. Which text is correct, and does the outcome shown to the operator depend on the exact wording? (Card operations business analyst)
  • SME-109 When updating a card, where should the expiry day come from? The screen shows the original day as not changeable, yet the saved day is taken from a hidden screen field without checks. Should the saved day be the original stored day, be recalculated (for example, the last day of the month), or be the entered value? And should the new expiry date have to be in the future, or no earlier than the current expiry? (Card operations subject-matter expert)
  • SME-110 When a card is updated, the saved CVV comes from an 'updated CVV' value that no rule captures or checks. Should the saved CVV always be the original stored CVV? (Card operations business analyst)
  • SME-111 After the operator confirms a card update, if a file error or other message is already pending, the result is reported as 'changes saved'. Is that intended? (Card operations business analyst)
  • SME-112 When the card update screen reaches a state it does not recognise, the old system records error code '0001' with 'UNEXPECTED DATA SCENARIO'. Should the new system keep this, and what should the operator see? (Business analyst / card operations)
  • SME-113 On the card update screen, entering '*' or leaving a field blank counts as 'not supplied', and the card name, status, expiry month and expiry year are then flagged as errors. Should '*' mean 'keep the existing value', or are all four fields required? (Card operations product owner)
  • SME-114 Should the new system check the expiry day entered on a card update, and if so, what range is allowed? (Card operations product owner)
  • SME-115 When checking for changes, a change only in upper or lower case in the card name is reported as 'No change detected'. Should a case-only change to the name be rejected as no change? (Card operations product owner)
  • DEF-059 Is this intended? The decision step has a branch for a completed save ('C'), which would return to details shown and clear the keys, and a catch-all that abends with '0001' 'UNEXPECTED DATA SCENARIO'. Neither can run: the main dispatch handles 'C', 'L' and 'F' itself before the decision step is reached. Also, once changes are validated ('N'), further edits are not re-validated before PF5 saves them. (Subject-matter expert)
  • DEF-126 Is this intended? The expiry day is never checked against the new month and year, so a change such as moving to a shorter month can save an impossible date (for example 2027-06-31). (Subject-matter expert)

Design notes

  • Normalise the editable card fields on submit: an embossed name, active status, expiry month or expiry year entered as '*' or left blank becomes 'not supplied' (null). Any other entry becomes the new value. Interpret placeholder entries as not supplied
  • Embossed name input: '*' or blank becomes 'not supplied'. Otherwise the entered text is the new embossed name, passed to the name check. Interpret embossed name entry
  • Active status input: '*' or blank becomes 'not supplied', which the status check then rejects as not Y or N. Interpret card active status entry
  • Expiry month and expiry year inputs: '*' or blank becomes 'not supplied'. Otherwise the entered value is the new month or year, passed to the range checks. Interpret expiry month entry
  • The expiry day is not normalised or validated. Carry it through exactly as the screen returns it. The screen shows the original expiry day, so in practice the stored day is kept. Interpret placeholder entries as not supplied
  • When building the expiry date to save, use the expiry day as returned by the screen, unchanged, together with the validated new year and month. Stage expiry day as entered
9. Confirm and save card changesdraft · online · 7 requirements · 11 rules · 14 criteria · 2 screens

After the changes pass the checks, the card operations user confirms them with PF5, and only then is the card record saved. PF12 discards unsaved edits and reloads the card. The save must never overwrite changes someone else made since the card was shown. If the stored card has changed, or it cannot be locked or rewritten, nothing is written and the user is told with the exact message.

As a card operations user, I want to confirm validated changes with PF5 and have them saved safely, so that the card record is updated only with my confirmed changes and not over someone else's changes.

Draft: the function is not signed off yet. Risk medium; touches card_data, personal_data, updates_records. rec/CustomerDataSetup/CreditCardListDetailViewandUpdate#9

Requirements

CodeClassRequirementCriteria
REQ-F-093business ruleThe system shall accept only Enter, PF3, PF5 when changes have been validated and await confirmation (state 'N'), and PF12 once card details have been fetched, treating any other key, including PF5 in any other state, as Enter.AC-01, AC-02, AC-03, AC-04
REQ-F-094business ruleWhen card details are already shown and the operator presses PF12, the system shall discard the unsaved edits, re-read the card and show its stored details again (state 'S').AC-05
REQ-F-095business ruleWhile validated changes await confirmation (state 'N'), the system shall save the changes only when the operator presses PF5, and shall show the changes again in the same state without saving when any other accepted key is pressed.AC-06, AC-07
REQ-F-096error handlingIf the PF5 save cannot read and lock the card record for update, then the system shall not write the card, set the lock-error state ('L'), and show 'Could not lock record for update' (if no other message is set) and 'Changes unsuccessful. Please try again'.AC-08, AC-09, AC-10, AC-11
REQ-F-097business ruleIf, at the PF5 save, the locked card record differs from the values originally fetched in CVV, embossed name (compared in uppercase), expiry year, month or day, or active status, then the system shall not write the card, show 'Record changed by some one else. Please review', load the current stored values and return to showing details (state 'S').AC-12, AC-13
REQ-F-098error handlingIf the locked rewrite of the card record fails, then the system shall set the update-failed state ('F') and show 'Changes unsuccessful. Please try again'.AC-09, AC-10, AC-11
REQ-F-099business ruleWhen changes are awaiting confirmation ('N') and the operator presses PF5 and the save succeeds, the system shall show 'Changes committed to database' (state 'C').AC-14

Business rules

RuleClassText, worked examples and evidence
Allowed function keys depend on update state
rec/claude:claude/RULE-224/1
business rule
validation, medium
THE card update screen SHALL accept only Enter, PF3, PF5 when changes have been validated and await confirmation (state 'N'), and PF12 once card details have been fetched; any other key, including PF5 in any other state, SHALL be treated as Enter.
  • screen state: 'S' (details shown, no validated changes); key: PF5 → PF5 is treated as Enter; nothing is saved.
  • screen state: 'N' (changes validated); key: PF5 → The save is attempted.
  • screen state: no details fetched; key: PF12 → PF12 is treated as Enter.
app/cbl/COCRDUPC.cbl:413-424, app/cbl/COCRDUPC.cbl:990-1011, app/cbl/COCRDUPC.cbl:166-167
Card update screen lifecycle (search, edit, confirm, save)
rec/group:claude/RULE-137/8
business rule
validation, high
THE card update program SHALL accept PF5 only when changes are awaiting confirmation ('N') and PF12 only once details are fetched, treating any other key except PF3 as Enter.
  • State: S; Key: PF5 → Treated as Enter; nothing is saved
app/cbl/COCRDUPC.cbl:276-290, app/cbl/COCRDUPC.cbl:160-171, app/cbl/COCRDUPC.cbl:386-401, app/cbl/COCRDUPC.cbl:413-424, app/cbl/COCRDUPC.cbl:502-528, app/cbl/COCRDUPC.cbl:535-542
Fetch card details for valid search keys
rec/group:claude/RULE-137/3
business rule
business, high
WHEN card details are already shown and the operator presses PF12, THE card update program SHALL discard the unsaved edits, re-read the card and show its stored details again (state 'S').
  • Edited name: JOHN Q PUBLIC (not saved); Key: PF12 → Stored card name is shown again; edit discarded
app/cbl/COCRDUPC.cbl:276-290, app/cbl/COCRDUPC.cbl:160-171, app/cbl/COCRDUPC.cbl:386-401, app/cbl/COCRDUPC.cbl:413-424, app/cbl/COCRDUPC.cbl:502-528, app/cbl/COCRDUPC.cbl:535-542
Allowed function keys depend on update state
rec/claude:claude/RULE-224/2
business rule
business, medium
WHEN validated changes await confirmation (state 'N') and the operator presses PF5, THE card update screen SHALL save the changes; WHEN they press any other accepted key, it SHALL show the changes again without saving.
  • screen state: 'N'; key: Enter → The details are shown again with 'Changes validated.Press F5 to save'; nothing is saved.
app/cbl/COCRDUPC.cbl:413-424, app/cbl/COCRDUPC.cbl:990-1011, app/cbl/COCRDUPC.cbl:166-167
Keep state for errors or unconfirmed changes
rec/group:claude/RULE-137/7
business rule
business, high
WHEN the edits still have errors ('E'), or the changes are validated ('N') and the operator presses a key other than PF5, THE card update program SHALL not save and SHALL show the card details again in the same state.
  • State: N; Key: Enter → Nothing saved; 'Changes validated.Press F5 to save' shown again
app/cbl/COCRDUPC.cbl:276-290, app/cbl/COCRDUPC.cbl:160-171, app/cbl/COCRDUPC.cbl:386-401, app/cbl/COCRDUPC.cbl:413-424, app/cbl/COCRDUPC.cbl:502-528, app/cbl/COCRDUPC.cbl:535-542
Lock card record for update
rec/group:claude/RULE-191/1
error handling
error_handling, high
WHEN the user presses PF5 to save validated changes and the card record cannot be read and locked for update, THE card update SHALL not write the card, SHALL show 'Could not lock record for update' (if no other message is set) and 'Changes unsuccessful. Please try again'.
  • Key pressed: PF5; Card record: held by another task → No update; 'Could not lock record for update' and 'Changes unsuccessful. Please try again'
app/cbl/COCRDUPC.cbl:988-1001, app/cbl/COCRDUPC.cbl:1420-1494, app/cbl/COCRDUPC.cbl:1498-1521, app/cbl/COCRDUPC.cbl:1151-1156, app/cbl/COCRDUPC.cbl:168-171, app/cbl/COCRDUPC.cbl:205-210
Save confirmed changes and map outcome
rec/group:claude/RULE-137/10
error handling
error_handling, high
WHEN the PF5 save cannot lock the card record, THE card update program SHALL set the lock-error state ('L'), and WHEN the locked rewrite fails it SHALL set the update-failed state ('F'); in both cases it SHALL show 'Changes unsuccessful. Please try again'.
  • Card record: held by another user; Key: PF5 → State 'L'; 'Changes unsuccessful. Please try again'
app/cbl/COCRDUPC.cbl:276-290, app/cbl/COCRDUPC.cbl:160-171, app/cbl/COCRDUPC.cbl:386-401, app/cbl/COCRDUPC.cbl:413-424, app/cbl/COCRDUPC.cbl:502-528, app/cbl/COCRDUPC.cbl:535-542
Inform operator update failed
rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-1fe8db98c7/1
formatting
display, medium
WHEN saving the card changes failed because the record could not be locked (stage 'L') or the rewrite failed (stage 'F'), THE card update screen SHALL show the information message 'Changes unsuccessful. Please try again'.
  • key pressed: PF5; card record: locked by another user → Information line 'Changes unsuccessful. Please try again' with error 'Could not lock record for update'.
  • key pressed: PF5; rewrite: fails → Information line 'Changes unsuccessful. Please try again'.
app/cbl/COCRDUPC.cbl:1153-1156, app/cbl/COCRDUPC.cbl:170-171, app/cbl/COCRDUPC.cbl:990-996
Detect card changed by another user
rec/group:claude/RULE-191/2
business rule
business, high
WHEN the locked card record differs from the values originally fetched in CVV, embossed name (compared in uppercase), expiry year, month or day, or active status, THE card update SHALL not write the card, SHALL show 'Record changed by some one else. Please review' and SHALL redisplay the card's current stored values.
  • Status when fetched: Y; Status now on file: N; Key pressed: PF5 → No write; 'Record changed by some one else. Please review'; screen shows status 'N'
app/cbl/COCRDUPC.cbl:988-1001, app/cbl/COCRDUPC.cbl:1420-1494, app/cbl/COCRDUPC.cbl:1498-1521, app/cbl/COCRDUPC.cbl:1151-1156, app/cbl/COCRDUPC.cbl:168-171, app/cbl/COCRDUPC.cbl:205-210
Save confirmed changes and map outcome
rec/group:claude/RULE-137/11
business rule
business, high
WHEN, at the PF5 save, the stored card's name, CVV, expiry date or status differ from the values first shown, THE card update program SHALL not save, load the current stored values, and return to showing details (state 'S').
  • Stored status: changed by another user from Y to N; Key: PF5 → Edit not saved; current stored details shown
app/cbl/COCRDUPC.cbl:276-290, app/cbl/COCRDUPC.cbl:160-171, app/cbl/COCRDUPC.cbl:386-401, app/cbl/COCRDUPC.cbl:413-424, app/cbl/COCRDUPC.cbl:502-528, app/cbl/COCRDUPC.cbl:535-542
Save confirmed changes and map outcome
rec/group:claude/RULE-137/9
business rule
business, high
WHEN changes are awaiting confirmation ('N') and the operator presses PF5, THE card update program SHALL save the card and, if the save succeeds, show 'Changes committed to database' (state 'C').
  • State: N; Key: PF5; Card record: unchanged since read → Card rewritten; 'Changes committed to database'
app/cbl/COCRDUPC.cbl:276-290, app/cbl/COCRDUPC.cbl:160-171, app/cbl/COCRDUPC.cbl:386-401, app/cbl/COCRDUPC.cbl:413-424, app/cbl/COCRDUPC.cbl:502-528, app/cbl/COCRDUPC.cbl:535-542

Acceptance criteria

IDCriterionChecks
AC-01Given screen state: 'S' (details shown, no validated changes); key: PF5
When card update screen runs
Then PF5 is treated as Enter; nothing is saved.
REQ-F-093
Allowed function keys depend on update state
worked example 1 of the rule
AC-02Given screen state: 'N' (changes validated); key: PF5
When card update screen runs
Then The save is attempted.
REQ-F-093
Allowed function keys depend on update state
worked example 2 of the rule
AC-03Given screen state: no details fetched; key: PF12
When card update screen runs
Then PF12 is treated as Enter.
REQ-F-093
Allowed function keys depend on update state
worked example 3 of the rule
AC-04Given State: S; Key: PF5
When card update program runs
Then Treated as Enter; nothing is saved
REQ-F-093
Card update screen lifecycle (search, edit, confirm, save)
worked example 1 of the rule
AC-05Given Edited name: JOHN Q PUBLIC (not saved); Key: PF12
When card details are already shown and the operator presses PF12
Then Stored card name is shown again; edit discarded
REQ-F-094
Fetch card details for valid search keys
worked example 1 of the rule
AC-06Given screen state: 'N'; key: Enter
When validated changes await confirmation (state 'N') and the operator presses PF5
Then The details are shown again with 'Changes validated.Press F5 to save'; nothing is saved.
REQ-F-095
Allowed function keys depend on update state
worked example 1 of the rule
AC-07Given State: N; Key: Enter
When the edits still have errors ('E'), or the changes are validated ('N') and the operator presses a key other than PF5
Then Nothing saved; 'Changes validated.Press F5 to save' shown again
REQ-F-095
Keep state for errors or unconfirmed changes
worked example 1 of the rule
AC-08Given Key pressed: PF5; Card record: held by another task
When the user presses PF5 to save validated changes and the card record cannot be read and locked for update
Then No update; 'Could not lock record for update' and 'Changes unsuccessful. Please try again'
REQ-F-096
Lock card record for update
worked example 1 of the rule
AC-09Given Card record: held by another user; Key: PF5
When the PF5 save cannot lock the card record
Then State 'L'; 'Changes unsuccessful. Please try again'
REQ-F-096, REQ-F-098
Save confirmed changes and map outcome
worked example 1 of the rule
AC-10Given key pressed: PF5; card record: locked by another user
When saving the card changes failed because the record could not be locked (stage 'L') or the rewrite failed (stage 'F')
Then Information line 'Changes unsuccessful. Please try again' with error 'Could not lock record for update'.
REQ-F-096, REQ-F-098
Inform operator update failed
worked example 1 of the rule
AC-11Given key pressed: PF5; rewrite: fails
When saving the card changes failed because the record could not be locked (stage 'L') or the rewrite failed (stage 'F')
Then Information line 'Changes unsuccessful. Please try again'.
REQ-F-096, REQ-F-098
Inform operator update failed
worked example 2 of the rule
AC-12Given Status when fetched: Y; Status now on file: N; Key pressed: PF5
When the locked card record differs from the values originally fetched in CVV, embossed name (compared in uppercase), expiry year, month or day, or active status
Then No write; 'Record changed by some one else. Please review'; screen shows status 'N'
REQ-F-097
Detect card changed by another user
worked example 1 of the rule
AC-13Given Stored status: changed by another user from Y to N; Key: PF5
When Save confirmed changes and map outcome applies
Then Edit not saved; current stored details shown
REQ-F-097
Save confirmed changes and map outcome
worked example 1 of the rule
AC-14Given State: N; Key: PF5; Card record: unchanged since read
When changes are awaiting confirmation ('N') and the operator presses PF5
Then Card rewritten; 'Changes committed to database'
REQ-F-099
Save confirmed changes and map outcome
worked example 1 of the rule

Screens

  • Cards S-CARD-LIST · design · replaces CCRDLIA (3 kept, 40 merged, 6 dropped, 1 split)
  • Card details S-CARD-DETAIL · design · replaces CCRDSLA, CCRDUPA (29 merged, 7 kept, 2 split, 2 dropped)
    • **primary button** Save card checks: Nothing differs from the stored values (ignoring case): 'No change detected with respect to values fetched.' Fields are checked in the order name, status, expiry month, expiry year.

Data contracts

CSMSG02Y (file record; COCRDUPC), CVACT02Y (file record; COCRDUPC), COCOM01Y (working storage; COCRDUPC), COTTL01Y (working storage; COCRDUPC), CSDAT01Y (working storage; COCRDUPC), CSMSG01Y (working storage; COCRDUPC), CSSTRPFY (working storage; COCRDUPC), CSUSR01Y (working storage; COCRDUPC), CVCRD01Y (working storage; COCRDUPC), CVCUS01Y (working storage; COCRDUPC)

Decision tables

Save outcome

Update stateKey pressedRecord lockStored record matches values first shownRewrite resultResultRule
'N'PF5cannot lock--Not saved; state 'L'; 'Could not lock record for update' and 'Changes unsuccessful. Please try again'rec/group:claude/RULE-191/1
'N'PF5lockedno-Not saved; 'Record changed by some one else. Please review'; current stored values shown; state 'S'rec/group:claude/RULE-191/2
'N'PF5lockedyesfailsState 'F'; 'Changes unsuccessful. Please try again'rec/group:claude/RULE-137/10
'N'PF5lockedyessucceedsState 'C'; 'Changes committed to database'rec/group:claude/RULE-137/9
'N'other accepted key---Not saved; changes shown again in state 'N'rec/claude:claude/RULE-224/2
not 'N'PF5---Treated as Enterrec/claude:claude/RULE-224/1

Open questions

  • SME-108 When a card record cannot be locked for update, the message is given as 'Could not lock record (CARDDAT) for update' in one place and 'Could not lock record for update' in another. Which text is correct, and does the outcome shown to the operator depend on the exact wording? (Card operations business analyst)
  • SME-109 When updating a card, where should the expiry day come from? The screen shows the original day as not changeable, yet the saved day is taken from a hidden screen field without checks. Should the saved day be the original stored day, be recalculated (for example, the last day of the month), or be the entered value? And should the new expiry date have to be in the future, or no earlier than the current expiry? (Card operations subject-matter expert)
  • SME-110 When a card is updated, the saved CVV comes from an 'updated CVV' value that no rule captures or checks. Should the saved CVV always be the original stored CVV? (Card operations business analyst)
  • SME-111 After the operator confirms a card update, if a file error or other message is already pending, the result is reported as 'changes saved'. Is that intended? (Card operations business analyst)
  • SME-112 When the card update screen reaches a state it does not recognise, the old system records error code '0001' with 'UNEXPECTED DATA SCENARIO'. Should the new system keep this, and what should the operator see? (Business analyst / card operations)
  • SME-113 On the card update screen, entering '*' or leaving a field blank counts as 'not supplied', and the card name, status, expiry month and expiry year are then flagged as errors. Should '*' mean 'keep the existing value', or are all four fields required? (Card operations product owner)
  • SME-114 Should the new system check the expiry day entered on a card update, and if so, what range is allowed? (Card operations product owner)
  • SME-115 When checking for changes, a change only in upper or lower case in the card name is reported as 'No change detected'. Should a case-only change to the name be rejected as no change? (Card operations product owner)
  • DEF-059 Is this intended? The decision step has a branch for a completed save ('C'), which would return to details shown and clear the keys, and a catch-all that abends with '0001' 'UNEXPECTED DATA SCENARIO'. Neither can run: the main dispatch handles 'C', 'L' and 'F' itself before the decision step is reached. Also, once changes are validated ('N'), further edits are not re-validated before PF5 saves them. (Subject-matter expert)
  • DEF-083 Is this intended? The rewrite takes the CVV from a new-details field that is cleared on every screen receive and never filled, so a saved card has its CVV overwritten instead of keeping the stored value. (Subject-matter expert)

Design notes

None.

10. Leave or restart card updatedraft · online · 4 requirements · 4 rules · 5 criteria · 3 screens

Card operations users leave card update with PF3 and go back to the screen that called it, or to the main menu if no caller is recorded. If they came from the card list, any key after a completed or failed save takes them back to the list. Otherwise the next action starts a new empty search. The user's selected card must never carry over into the next screen or the next search.

As a card operations user, I want to leave card update back to where I came from, or start a new search after a save, so that I can continue my work without stale card selections.

Draft: the function is not signed off yet. Risk high; touches security. rec/CustomerDataSetup/CreditCardListDetailViewandUpdate#10

Requirements

CodeClassRequirementCriteria
REQ-F-100business ruleWhen the operator presses PF3, or entered from the card list and the update has completed or failed and they press any key, the system shall commit its work and transfer control to the program and transaction that called it, or to the main menu (COMEN01C, transaction CM00) when no caller is recorded.AC-01, AC-02
REQ-F-101design noteWhen the card update program exits and the operator had come from the card list, the system shall clear the selected account and card numbers before returning.AC-03
REQ-F-102design noteWhen the card update program exits, the system shall record itself (COCRDUPC, transaction CCUP) as the calling program, mark the session user type as a regular user and flag the next program as a fresh entry.AC-04
REQ-F-103business ruleWhen a save has completed ('C') or failed ('L' or 'F') and the operator did not come from the card list, the system shall on the next interaction clear the update state and the account and card keys and show an empty search screen with 'Please enter Account and Card Number'.AC-05

Business rules

RuleClassText, worked examples and evidence
Exit routing back to caller or main menu
rec/claude:claude/RULE-252/1
business rule
business, medium
WHEN the operator presses PF3, or entered from the card list and the update has completed or failed and they press any key, THE card update program SHALL commit its work and transfer control to the program and transaction that called it, or to the main menu (COMEN01C, transaction CM00) when no caller is recorded.
  • key: PF3; called from: main menu COMEN01C → Work is committed and control returns to COMEN01C.
  • called from: card list COCRDLIC; update result: 'Changes committed to database'; key: Enter → Work is committed and control returns to the card list.
app/cbl/COCRDUPC.cbl:435-476, app/cbl/COCRDUPC.cbl:227-238, app/cbl/COCRDLIC.cbl:183-184, app/cbl/COCRDLIC.cbl:543-566
Exit routing back to caller or main menu
rec/claude:claude/RULE-252/2
design note
technical, medium
WHEN the card update program exits and the operator had come from the card list, THE card update program SHALL clear the selected account and card numbers before returning.
  • previous screen: card list COCRDLI; selected account: 00000000011 → Account and card numbers are set to zero before control returns.
app/cbl/COCRDUPC.cbl:435-476, app/cbl/COCRDUPC.cbl:227-238, app/cbl/COCRDLIC.cbl:183-184, app/cbl/COCRDLIC.cbl:543-566
Exit routing back to caller or main menu
rec/claude:claude/RULE-252/3
design note
technical, medium
WHEN the card update program exits, THE card update program SHALL record itself (COCRDUPC, transaction CCUP) as the calling program, mark the session user type as a regular user and flag the next program as a fresh entry.
  • key: PF3 → The next program sees COCRDUPC/CCUP as the caller and user type 'U'.
app/cbl/COCRDUPC.cbl:435-476, app/cbl/COCRDUPC.cbl:227-238, app/cbl/COCRDLIC.cbl:183-184, app/cbl/COCRDLIC.cbl:543-566
Restart after completed or failed update
rec/group:claude/RULE-137/12
business rule
business, high
WHEN a save has completed ('C') or failed ('L' or 'F') and the operator did not come from the card list, THE card update program SHALL on the next interaction clear the update state and the account and card keys and show an empty search screen with 'Please enter Account and Card Number'.
  • Previous result: 'Changes committed to database'; Key: Enter → Blank search screen; account and card number cleared
app/cbl/COCRDUPC.cbl:276-290, app/cbl/COCRDUPC.cbl:160-171, app/cbl/COCRDUPC.cbl:386-401, app/cbl/COCRDUPC.cbl:413-424, app/cbl/COCRDUPC.cbl:502-528, app/cbl/COCRDUPC.cbl:535-542

Acceptance criteria

IDCriterionChecks
AC-01Given key: PF3; called from: main menu COMEN01C
When the operator presses PF3, or entered from the card list and the update has completed or failed and they press any key
Then Work is committed and control returns to COMEN01C.
REQ-F-100
Exit routing back to caller or main menu
worked example 1 of the rule
AC-02Given called from: card list COCRDLIC; update result: 'Changes committed to database'; key: Enter
When the operator presses PF3, or entered from the card list and the update has completed or failed and they press any key
Then Work is committed and control returns to the card list.
REQ-F-100
Exit routing back to caller or main menu
worked example 2 of the rule
AC-03Given previous screen: card list COCRDLI; selected account: 00000000011
When the card update program exits and the operator had come from the card list
Then Account and card numbers are set to zero before control returns.
REQ-F-101
Exit routing back to caller or main menu
worked example 1 of the rule
AC-04Given key: PF3
When the card update program exits
Then The next program sees COCRDUPC/CCUP as the caller and user type 'U'.
REQ-F-102
Exit routing back to caller or main menu
worked example 1 of the rule
AC-05Given Previous result: 'Changes committed to database'; Key: Enter
When a save has completed ('C') or failed ('L' or 'F') and the operator did not come from the card list
Then Blank search screen; account and card number cleared
REQ-F-103
Restart after completed or failed update
worked example 1 of the rule

Screens

Data contracts

CSMSG02Y (file record; COCRDUPC), CVACT02Y (file record; COCRDUPC), COCOM01Y (working storage; COCRDUPC), COTTL01Y (working storage; COCRDUPC), CSDAT01Y (working storage; COCRDUPC), CSMSG01Y (working storage; COCRDUPC), CSSTRPFY (working storage; COCRDUPC), CSUSR01Y (working storage; COCRDUPC), CVCRD01Y (working storage; COCRDUPC), CVCUS01Y (working storage; COCRDUPC)

Decision tables

None.

Open questions

  • SME-108 When a card record cannot be locked for update, the message is given as 'Could not lock record (CARDDAT) for update' in one place and 'Could not lock record for update' in another. Which text is correct, and does the outcome shown to the operator depend on the exact wording? (Card operations business analyst)
  • SME-109 When updating a card, where should the expiry day come from? The screen shows the original day as not changeable, yet the saved day is taken from a hidden screen field without checks. Should the saved day be the original stored day, be recalculated (for example, the last day of the month), or be the entered value? And should the new expiry date have to be in the future, or no earlier than the current expiry? (Card operations subject-matter expert)
  • SME-110 When a card is updated, the saved CVV comes from an 'updated CVV' value that no rule captures or checks. Should the saved CVV always be the original stored CVV? (Card operations business analyst)
  • SME-111 After the operator confirms a card update, if a file error or other message is already pending, the result is reported as 'changes saved'. Is that intended? (Card operations business analyst)
  • SME-116 When a user leaves the card update screen, the system always resets their user type to regular user. Is this intended, or should the signed-on user keep their type? (Security and access-control owner)
  • DEF-059 Is this intended? The decision step has a branch for a completed save ('C'), which would return to details shown and clear the keys, and a catch-all that abends with '0001' 'UNEXPECTED DATA SCENARIO'. Neither can run: the main dispatch handles 'C', 'L' and 'F' itself before the decision step is reached. Also, once changes are validated ('N'), further edits are not re-validated before PF5 saves them. (Subject-matter expert)
  • DEF-183 Is this intended? On exit the program always sets the session user type to regular user ('U') whatever the signed-on user's type, so an admin passing through would be treated as a regular user by the menu, which uses that flag to block admin-only options. The same line appears in every card program, so it looks like copied boilerplate. (Subject-matter expert)

Design notes

  • When card update returns to the card list, clear the selected account and card numbers from the shared navigation context, so the list starts without a stale selection. Exit routing back to caller or main menu
  • On leaving card update, update the shared navigation context: sender = card update, user type = regular user, and mark the next screen's entry as a first entry so it starts fresh. Exit routing back to caller or main menu
11. Save card changesdraft · online · 2 requirements · 2 rules · 2 criteria · 2 screens

After the card operations user confirms, the card record is saved with the new embossed name, active status and expiry date, and the user is told whether the save worked. The card number and account must never change in the save. It must only write when the stored record still matches what was originally shown.

As a card operations user, I want my changes to a card's embossed name, active status and expiry date saved to the card record, so that the card holds the updated details and I know whether the save worked.

Draft: the function is not signed off yet. Risk medium; touches card_data, personal_data, updates_records. rec/CustomerDataSetup/CreditCardListDetailViewandUpdate#11

Requirements

CodeClassRequirementCriteria
REQ-F-104business ruleWhen the locked card record is unchanged since it was fetched, the system shall rewrite the card with the entered embossed name, active status and expiry date built as year-month-day, keeping the card number and account, and show 'Changes committed to database'.AC-02
REQ-F-105error handlingIf the rewrite of the locked card record fails, then the system shall show 'Update of record failed' and 'Changes unsuccessful. Please try again'.AC-01

Business rules

RuleClassText, worked examples and evidence
Write updated card record
rec/group:claude/RULE-191/3
business rule
business, high
WHEN the locked card record is unchanged since it was fetched, THE card update SHALL rewrite the card with the entered embossed name, active status and expiry date built as year-month-day, keeping card number and account, and SHALL show 'Changes committed to database'.
app/cbl/COCRDUPC.cbl:988-1001, app/cbl/COCRDUPC.cbl:1420-1494, app/cbl/COCRDUPC.cbl:1498-1521, app/cbl/COCRDUPC.cbl:1151-1156, app/cbl/COCRDUPC.cbl:168-171, app/cbl/COCRDUPC.cbl:205-210
Write updated card record
rec/group:claude/RULE-191/4
error handling
error_handling, high
WHEN the rewrite of the locked card record fails, THE card update SHALL show 'Update of record failed' and 'Changes unsuccessful. Please try again'.
  • Rewrite result: not normal → 'Update of record failed'; 'Changes unsuccessful. Please try again'
app/cbl/COCRDUPC.cbl:988-1001, app/cbl/COCRDUPC.cbl:1420-1494, app/cbl/COCRDUPC.cbl:1498-1521, app/cbl/COCRDUPC.cbl:1151-1156, app/cbl/COCRDUPC.cbl:168-171, app/cbl/COCRDUPC.cbl:205-210

Acceptance criteria

IDCriterionChecks
AC-01Given Rewrite result: not normal
When the rewrite of the locked card record fails
Then 'Update of record failed'; 'Changes unsuccessful. Please try again'
REQ-F-105
Write updated card record
worked example 1 of the rule
AC-02Given card 4111111111111111 on account 00000000001 was fetched and validated changes await confirmation with name 'JANE SMITH', status 'N', expiry year '2028', expiry month '06' and the returned expiry day '15', and the locked card record still matches the values originally fetched
When the operator presses PF5 and the card is rewritten
Then the card record holds embossed name 'JANE SMITH', active status 'N' and an expiry date built as year-month-day from 2028, 06 and 15, still with card number 4111111111111111 and account 00000000001, and the screen shows 'Changes committed to database'
REQ-F-104
Write updated card record
written from the rule

Screens

  • Cards S-CARD-LIST · design · replaces CCRDLIA (3 kept, 40 merged, 6 dropped, 1 split)
  • Card details S-CARD-DETAIL · design · replaces CCRDSLA, CCRDUPA (29 merged, 7 kept, 2 split, 2 dropped)
    • **primary button** Save card checks: Nothing differs from the stored values (ignoring case): 'No change detected with respect to values fetched.' Fields are checked in the order name, status, expiry month, expiry year.

Data contracts

CSMSG02Y (file record; COCRDUPC), CVACT02Y (file record; COCRDUPC), COCOM01Y (working storage; COCRDUPC), COTTL01Y (working storage; COCRDUPC), CSDAT01Y (working storage; COCRDUPC), CSMSG01Y (working storage; COCRDUPC), CSSTRPFY (working storage; COCRDUPC), CSUSR01Y (working storage; COCRDUPC), CVCRD01Y (working storage; COCRDUPC), CVCUS01Y (working storage; COCRDUPC)

Decision tables

None.

Open questions

  • SME-108 When a card record cannot be locked for update, the message is given as 'Could not lock record (CARDDAT) for update' in one place and 'Could not lock record for update' in another. Which text is correct, and does the outcome shown to the operator depend on the exact wording? (Card operations business analyst)
  • SME-109 When updating a card, where should the expiry day come from? The screen shows the original day as not changeable, yet the saved day is taken from a hidden screen field without checks. Should the saved day be the original stored day, be recalculated (for example, the last day of the month), or be the entered value? And should the new expiry date have to be in the future, or no earlier than the current expiry? (Card operations subject-matter expert)
  • SME-110 When a card is updated, the saved CVV comes from an 'updated CVV' value that no rule captures or checks. Should the saved CVV always be the original stored CVV? (Card operations business analyst)
  • SME-111 After the operator confirms a card update, if a file error or other message is already pending, the result is reported as 'changes saved'. Is that intended? (Card operations business analyst)
  • DEF-083 Is this intended? The rewrite takes the CVV from a new-details field that is cleared on every screen receive and never filled, so a saved card has its CVV overwritten instead of keeping the stored value. (Subject-matter expert)

Design notes

None.

Customer Profile Branch Migration

1. Export complete customer profiles for branch migrationdraft · scheduled job · 7 requirements · 8 rules · 10 criteria

Produces one combined branch migration file holding every customer, account, card cross-reference, transaction and card, for the operator moving complete customer profiles to a branch. Records go out in a fixed order (customers, accounts, cross-references, transactions, cards), each numbered by one running sequence and stamped with branch '0001', region 'NORTH' and a single run timestamp. It must never filter, skip or reorder records: inactive accounts and expired or inactive cards are exported as they are.

As a branch migration operator, I want every customer, account, card cross-reference, transaction and card exported into one combined migration file, so that complete customer profiles can be moved to a branch.

Draft: the function is not signed off yet. Risk high; touches card_data, money, personal_data. rec/CustomerDataSetup/CustomerProfileBranchMigration#1

Requirements

CodeClassRequirementCriteria
REQ-F-001design noteThe system shall first delete and redefine the export file (AWS.M2.CARDDEMO.EXPORT.DATA) as an empty indexed file of 500-byte records, then run the export program (CBEXPORT) without parameters against the shared customer, account, cross-reference, transaction and card masters, sending messages to the job output.AC-01
REQ-F-002design noteThe system shall take the run timestamp, open all five source files and the export file, then export every customer, then every account, card cross-reference, transaction and card, in that fixed order, reading each file in key order.AC-02
REQ-F-003business ruleThe system shall export every record in the source files without filtering, so inactive accounts and expired or inactive cards are included as they are.AC-03, AC-04
REQ-F-004design noteThe system shall write one export record for every record it reads, of type 'C' for each customer, 'A' for each account, 'X' for each card cross-reference, 'T' for each transaction and 'D' for each card, carrying that source record's fields.AC-05, AC-06
REQ-F-005design noteThe system shall number export records with one running sequence (EXPORT-SEQUENCE-NUM) that starts at 1 and continues across all record types in output order, and shall use this number as the export file's key.AC-07
REQ-F-006business ruleThe system shall stamp every export record, whatever its type and whatever the customer's address, with branch '0001' (EXPORT-BRANCH-ID) and region 'NORTH' (EXPORT-REGION-CODE).AC-08, AC-09
REQ-F-007design noteThe system shall build the run timestamp once at the start of the run from the current system date and time as date YYYY-MM-DD, a space, time HH:MM:SS and the suffix '.00', and put that same timestamp on every export record.AC-10

Business rules

RuleClassText, worked examples and evidence
Produce the card-management data export
rec/group:claude/RULE-189/3
design note
technical, high
THE Card Data Export job SHALL first delete and redefine the export file (AWS.M2.CARDDEMO.EXPORT.DATA) as an empty indexed file of 500-byte records, then run the export program (CBEXPORT) without parameters against the shared customer, account, cross-reference, transaction and card masters, sending messages to the job output.
  • export file before the run: holds the previous run's records → Step 1 deletes and recreates it, so the export holds only this run's records.
app/cbl/CBEXPORT.cbl:149-169, app/cbl/CBEXPORT.cbl:198-240, app/cbl/CBEXPORT.cbl:35-69, app/jcl/CBEXPORT.jcl:24-39, app/jcl/CBEXPORT.jcl:43-68
Sequence the full portfolio export run
rec/group:claude/RULE-189/1
design note
technical, high
THE Branch Migration Export SHALL take the run timestamp, open all five source files and the export file, then export every customer, then every account, card cross-reference, transaction and card, in that fixed order, each file read in key order.
  • customers: 50; accounts: 60; cross-references: 70; transactions: 10,000; cards: 70 → The export holds 10,250 records: 50 'C', then 60 'A', 70 'X', 10,000 'T' and 70 'D'.
app/cbl/CBEXPORT.cbl:149-169, app/cbl/CBEXPORT.cbl:198-240, app/cbl/CBEXPORT.cbl:35-69, app/jcl/CBEXPORT.jcl:24-39, app/jcl/CBEXPORT.jcl:43-68
Full unfiltered export of all five master files in fixed order
rec/group:claude/RULE-189/2
business rule
business, high
THE Branch Migration Export SHALL export every record in the source files without filtering, so inactive accounts and expired or inactive cards are included as they are.
  • account active status: N → The account is still exported as an 'A' record with status 'N'.
  • card expiry date: 2020-01-31 → The card is still exported as a 'D' record.
app/cbl/CBEXPORT.cbl:149-169, app/cbl/CBEXPORT.cbl:198-240, app/cbl/CBEXPORT.cbl:35-69, app/jcl/CBEXPORT.jcl:24-39, app/jcl/CBEXPORT.jcl:43-68
Export each customer as type C record
rec/group:claude/RULE-211/1
design note
technical, high
THE Branch Migration Export SHALL write one export record for every record it reads: type 'C' for each customer, 'A' for each account, 'X' for each card cross-reference, 'T' for each transaction and 'D' for each card, carrying that source record's fields.
  • source file: account file; account ID: 00000000011 → One export record of type 'A' is written holding that account's ID, status, balance, limits, dates, cycle totals, ZIP and group ID.
  • source file: card cross-reference file; card number: 4111111111111111 → One export record of type 'X' is written holding the card number, customer ID and account ID.
app/cbl/CBEXPORT.cbl:243-310, app/cbl/CBEXPORT.cbl:312-373, app/cbl/CBEXPORT.cbl:376-428, app/cbl/CBEXPORT.cbl:431-493, app/cbl/CBEXPORT.cbl:496-551, app/cbl/CBEXPORT.cbl:172-195
Global export sequence number across all record types
rec/claude:claude/RULE-018/1
design note
technical, medium
THE Branch Migration Export SHALL number export records with one running sequence (EXPORT-SEQUENCE-NUM) that starts at 1 and continues across all record types in output order, and this number is the export file's key.
  • customers: 50; accounts: 60 → The first account record is number 51 and the last account record is number 110.
app/cbl/CBEXPORT.cbl:123, app/cbl/CBEXPORT.cbl:276-277, app/cbl/CBEXPORT.cbl:345-346, app/cbl/CBEXPORT.cbl:409-410, app/cbl/CBEXPORT.cbl:464-465, app/cbl/CBEXPORT.cbl:529-530
Export each customer as type C record
rec/group:claude/RULE-211/2
business rule
business, high
THE Branch Migration Export SHALL stamp every export record, whatever its type and whatever the customer's address, with branch '0001' (EXPORT-BRANCH-ID) and region 'NORTH' (EXPORT-REGION-CODE).
  • customer state: CA; record type: C → Branch '0001', region 'NORTH'.
  • record type: T → Branch '0001', region 'NORTH'.
app/cbl/CBEXPORT.cbl:243-310, app/cbl/CBEXPORT.cbl:312-373, app/cbl/CBEXPORT.cbl:376-428, app/cbl/CBEXPORT.cbl:431-493, app/cbl/CBEXPORT.cbl:496-551, app/cbl/CBEXPORT.cbl:172-195
Build the export run timestamp
rec/agreed:CustomerDataSetup/CustomerProfileBranchMigration/id-f7f8662640/1
design note
technical, medium
THE Export Timestamp Generation SHALL build the run timestamp as date YYYY-MM-DD, a space, time HH:MM:SS and the suffix '.00' from the current system date and time
app/cbl/CBEXPORT.cbl:172,175-176,179-182,185-188,191-195, app/jcl/CBEXPORT.jcl:172,175-176,179-182,185-188,191-195, app/cbl/CBEXPORT.cbl:172-195
Export each customer as type C record
rec/group:claude/RULE-211/3
design note
technical, high
THE Branch Migration Export SHALL put the same run timestamp, taken once at the start of the run in the form YYYY-MM-DD HH:MM:SS.00 (hundredths always '00'), on every export record.
app/cbl/CBEXPORT.cbl:243-310, app/cbl/CBEXPORT.cbl:312-373, app/cbl/CBEXPORT.cbl:376-428, app/cbl/CBEXPORT.cbl:431-493, app/cbl/CBEXPORT.cbl:496-551, app/cbl/CBEXPORT.cbl:172-195

Acceptance criteria

IDCriterionChecks
AC-01Given export file before the run: holds the previous run's records
When Card Data Export job runs
Then Step 1 deletes and recreates it, so the export holds only this run's records.
REQ-F-001
Produce the card-management data export
worked example 1 of the rule
AC-02Given customers: 50; accounts: 60; cross-references: 70; transactions: 10,000; cards: 70
When Branch Migration Export runs
Then The export holds 10,250 records: 50 'C', then 60 'A', 70 'X', 10,000 'T' and 70 'D'.
REQ-F-002
Sequence the full portfolio export run
worked example 1 of the rule
AC-03Given account active status: N
When Branch Migration Export runs
Then The account is still exported as an 'A' record with status 'N'.
REQ-F-003
Full unfiltered export of all five master files in fixed order
worked example 1 of the rule
AC-04Given card expiry date: 2020-01-31
When Branch Migration Export runs
Then The card is still exported as a 'D' record.
REQ-F-003
Full unfiltered export of all five master files in fixed order
worked example 2 of the rule
AC-05Given source file: account file; account ID: 00000000011
When Branch Migration Export runs
Then One export record of type 'A' is written holding that account's ID, status, balance, limits, dates, cycle totals, ZIP and group ID.
REQ-F-004
Export each customer as type C record
worked example 1 of the rule
AC-06Given source file: card cross-reference file; card number: 4111111111111111
When Branch Migration Export runs
Then One export record of type 'X' is written holding the card number, customer ID and account ID.
REQ-F-004
Export each customer as type C record
worked example 2 of the rule
AC-07Given customers: 50; accounts: 60
When Branch Migration Export runs
Then The first account record is number 51 and the last account record is number 110.
REQ-F-005
Global export sequence number across all record types
worked example 1 of the rule
AC-08Given customer state: CA; record type: C
When Branch Migration Export runs
Then Branch '0001', region 'NORTH'.
REQ-F-006
Export each customer as type C record
worked example 1 of the rule
AC-09Given record type: T
When Branch Migration Export runs
Then Branch '0001', region 'NORTH'.
REQ-F-006
Export each customer as type C record
worked example 2 of the rule
AC-10Given the system date is 2026-11-25 and the system time is 14:30:05 when the export run starts, and the source files hold customers, accounts, cross-references, transactions and cards
When the export runs to completion, with the clock passing 14:30:06 before the last record is written
Then every export record of every type ('C', 'A', 'X', 'T', 'D') carries the timestamp '2026-11-25 14:30:05.00' — date YYYY-MM-DD, a space, time HH:MM:SS and the suffix '.00' — and no record carries a later time
REQ-F-007
Build the export run timestamp, Export each customer as type C record
written from the rule

Screens

None: scheduled job.

Data contracts

CVACT01Y (file record; CBEXPORT), CVACT02Y (file record; CBEXPORT), CVACT03Y (file record; CBEXPORT), CVCUS01Y (file record; CBEXPORT), CVEXPORT (file record; CBEXPORT), CVTRA05Y (file record; CBEXPORT)

Decision tables

None.

Open questions

  • SME-018 Does the first record in the data export get sequence number 1? (Migration team)
  • SME-019 Every exported record is stamped with branch 0001 and region NORTH. Is that right for all customers, or should branch and region come from customer or account data, or from a run setting? (Data migration lead)
  • SME-020 When the export is rerun, should it replace or add to the previous export contents, and how should a run that ended abnormally be recovered? (Batch operations)
  • SME-021 Customer SSNs and card verification codes are copied into the export unmasked. Must the new export protect or leave out these values? (Security team)
  • SME-022 If the export cannot open one of its files, should the run end abnormally? (Batch operations)
  • DEF-082 Is this intended? The job defines the export file's key at offset 28 (KEYS(4 28)), but in the record layout the 4-byte binary sequence number starts at offset 27, after the 1-byte type and the 26-byte timestamp. The program's key and the file's key do not line up, which could make the open fail (status 39) or key the records on the wrong bytes. (Subject-matter expert)
  • DEF-088 Confirm this is deliberate: The card's CVV code and the customer's SSN and government ID go into the migration file unmasked. Storing a CVV after authorisation is not allowed under PCI DSS. (Subject-matter expert)

Design notes

  • A scheduled batch job that starts from an empty migration file every run (replace, never append), keyed by sequence number with room for a 500-character record, then runs the export with no parameters against the shared customer, account, cross-reference, transaction and card data, writing its messages to the job log. Produce the card-management data export
  • One run: take the timestamp, open all five sources and the target, then stream each source in its key order — customers, accounts, cross-references, transactions, cards — one after another; a sorted extract per source in key order, never interleaved. Sequence the full portfolio export run
  • A one-to-one mapping from each source record to an export record tagged with its type code ('C', 'A', 'X', 'T', 'D') and carrying that record's fields; the migration file is a tagged union of the five record layouts. Export each customer as type C record
  • A single counter starting at 1, incremented for each record written across all types in output order, used as the unique key of the migration file; the last value equals the total written. Global export sequence number across all record types
  • Format the run timestamp from the system clock as 'YYYY-MM-DD HH:MM:SS.00', with the fraction fixed at '00' rather than real hundredths. Build the export run timestamp
  • Capture the timestamp once at run start and reuse that value on every record; do not read the clock per record. Export each customer as type C record
2. Carry sensitive customer and card data in the exportdraft · scheduled job · 3 requirements · 3 rules · 4 criteria

The migration file carries customers' identity data and cards' security data in full so the target branch receives complete records: SSN, government ID, date of birth, EFT account and FICO score on customer records, and the full 16-digit card number and 3-digit CVV on card records. These values are copied unmasked, so the file holds highly sensitive data and the team must protect it accordingly. The values must never be truncated, masked or altered on the way out.

As a branch migration operator, I want the export to carry the customer's identity data and the card's security data, so that the target branch receives complete customer and card records.

Draft: the function is not signed off yet. Risk high; touches card_data, personal_data, security. rec/CustomerDataSetup/CustomerProfileBranchMigration#2

Requirements

CodeClassRequirementCriteria
REQ-N-001business ruleThe system shall copy sensitive data unmasked into the export file: the customer's SSN, government-issued ID, date of birth, EFT account and FICO score on 'C' records, and the card number and CVV code on 'D' records.AC-01, AC-02
REQ-N-002business ruleWhen a customer export record (type 'C') is written, the system shall copy the customer's full 9-digit Social Security Number (EXP-CUST-SSN) unmasked, along with government-issued ID, date of birth and EFT account ID.AC-03
REQ-N-003business ruleWhen a card export record (type 'D') is written, the system shall copy the card's 3-digit CVV code (EXP-CARD-CVV-CD) unmasked, stored as a binary number, together with the full 16-digit card number.AC-04

Business rules

RuleClassText, worked examples and evidence
Export each customer as type C record
rec/group:claude/RULE-211/4
business rule
compliance, high
THE Branch Migration Export SHALL copy sensitive data unmasked into the export file: the customer's SSN, government-issued ID, date of birth, EFT account and FICO score on 'C' records, and the card number and CVV code on 'D' records.
  • card CVV: 123 → The 'D' export record holds CVV 123 as-is.
  • customer SSN: 123456789 → The 'C' export record holds SSN 123456789 as-is.
app/cbl/CBEXPORT.cbl:243-310, app/cbl/CBEXPORT.cbl:312-373, app/cbl/CBEXPORT.cbl:376-428, app/cbl/CBEXPORT.cbl:431-493, app/cbl/CBEXPORT.cbl:496-551, app/cbl/CBEXPORT.cbl:172-195
Sensitive customer and card data exported in clear
rec/claude:claude/RULE-212/1
business rule
compliance, medium
WHEN a customer export record (type 'C') is written, THE customer data export SHALL copy the customer's full 9-digit Social Security Number (EXP-CUST-SSN) unmasked, along with government-issued ID, date of birth and EFT account ID.
  • Customer SSN on file: 123456789; Government-issued ID: DL-4455667 → The 'C' export record holds SSN 123456789 and ID DL-4455667 exactly as on file, with no masking.
app/cbl/CBEXPORT.cbl:269-298, app/cbl/CBEXPORT.cbl:522-537, app/cpy/CVEXPORT.cpy:35-36, app/cpy/CVEXPORT.cpy:93-96, app/cpy/CVCUS01Y.cpy:17, app/cpy/CVACT02Y.cpy:7
Sensitive customer and card data exported in clear
rec/claude:claude/RULE-212/2
business rule
compliance, medium
WHEN a card export record (type 'D') is written, THE customer data export SHALL copy the card's 3-digit CVV code (EXP-CARD-CVV-CD) unmasked, stored as a binary number, together with the full 16-digit card number.
  • Card number: 4111111111111111; CVV code: 123 → The 'D' export record holds card number 4111111111111111 and CVV 123 (in binary form); neither is masked.
app/cbl/CBEXPORT.cbl:269-298, app/cbl/CBEXPORT.cbl:522-537, app/cpy/CVEXPORT.cpy:35-36, app/cpy/CVEXPORT.cpy:93-96, app/cpy/CVCUS01Y.cpy:17, app/cpy/CVACT02Y.cpy:7

Acceptance criteria

IDCriterionChecks
AC-01Given card CVV: 123
When Branch Migration Export runs
Then The 'D' export record holds CVV 123 as-is.
REQ-N-001
Export each customer as type C record
worked example 1 of the rule
AC-02Given customer SSN: 123456789
When Branch Migration Export runs
Then The 'C' export record holds SSN 123456789 as-is.
REQ-N-001
Export each customer as type C record
worked example 2 of the rule
AC-03Given Customer SSN on file: 123456789; Government-issued ID: DL-4455667
When a customer export record (type 'C') is written
Then The 'C' export record holds SSN 123456789 and ID DL-4455667 exactly as on file, with no masking.
REQ-N-002
Sensitive customer and card data exported in clear
worked example 1 of the rule
AC-04Given Card number: 4111111111111111; CVV code: 123
When a card export record (type 'D') is written
Then The 'D' export record holds card number 4111111111111111 and CVV 123 (in binary form); neither is masked.
REQ-N-003
Sensitive customer and card data exported in clear
worked example 1 of the rule

Screens

None: scheduled job.

Data contracts

CVACT01Y (file record; CBEXPORT), CVACT02Y (file record; CBEXPORT), CVACT03Y (file record; CBEXPORT), CVCUS01Y (file record; CBEXPORT), CVEXPORT (file record; CBEXPORT), CVTRA05Y (file record; CBEXPORT)

Decision tables

None.

Open questions

  • SME-018 Does the first record in the data export get sequence number 1? (Migration team)
  • SME-019 Every exported record is stamped with branch 0001 and region NORTH. Is that right for all customers, or should branch and region come from customer or account data, or from a run setting? (Data migration lead)
  • SME-020 When the export is rerun, should it replace or add to the previous export contents, and how should a run that ended abnormally be recovered? (Batch operations)
  • SME-021 Customer SSNs and card verification codes are copied into the export unmasked. Must the new export protect or leave out these values? (Security team)
  • SME-022 If the export cannot open one of its files, should the run end abnormally? (Batch operations)
  • DEF-088 Confirm this is deliberate: The card's CVV code and the customer's SSN and government ID go into the migration file unmasked. Storing a CVV after authorisation is not allowed under PCI DSS. (Subject-matter expert)
  • DEF-173 Confirm this is deliberate: The migration export file holds full SSNs and card CVV codes in clear. Storing a CVV after authorization goes against PCI DSS, and the SSN is unprotected personal data. The field-by-field copy shows the full values were meant to be exported, but nothing shows the security risk was considered. (Subject-matter expert)

Design notes

None.

3. Report export reconciliation countsdraft · service · 2 requirements · 2 rules · 2 criteria

Reports how many customers, accounts, cross-references, transactions and cards were exported, and the total, so the operator can reconcile the migration file against the source data. Each type's count is shown when that type finishes, and the full set is shown when the export completes. The total must always equal the last sequence number written.

As a branch migration operator, I want the export to report how many records of each type it exported and in total, so that I can reconcile the migration file against the source files.

Draft: the function is not signed off yet. Risk high; touches audit, reporting_only. rec/CustomerDataSetup/CustomerProfileBranchMigration#3

Requirements

CodeClassRequirementCriteria
REQ-F-008side effectWhen each record type is finished, the system shall display that type's count, for example 'CBEXPORT: Customers exported: ' with the count.AC-01
REQ-F-009side effectWhen the export finishes, the system shall close all files and display 'CBEXPORT: Export completed' followed by the counts of customers, accounts, cross-references, transactions and cards exported and 'CBEXPORT: Total Records Exported: ' with the total, which equals the last sequence number.AC-02

Business rules

RuleClassText, worked examples and evidence
Export reconciliation counts per record type and in total
rec/claude:claude/RULE-039/2
side effect
side_effect, medium
WHEN each record type is finished, THE Branch Migration Export SHALL display that type's count, for example 'CBEXPORT: Customers exported: ' with the count.
  • cards written: 70 → 'CBEXPORT: Cards exported: ' with 70 is displayed before the final totals.
app/cbl/CBEXPORT.cbl:554-573, app/cbl/CBEXPORT.cbl:254-255, app/cbl/CBEXPORT.cbl:309-310, app/cbl/CBEXPORT.cbl:507-508
Export reconciliation counts per record type and in total
rec/claude:claude/RULE-039/1
side effect
side_effect, medium
WHEN the export finishes, THE Branch Migration Export SHALL close all files and display 'CBEXPORT: Export completed' followed by the counts of customers, accounts, cross-references, transactions and cards exported and 'CBEXPORT: Total Records Exported: ' with the total, which equals the last sequence number.
  • customers: 50; accounts: 60; cross-references: 70; transactions: 10,000; cards: 70 → The job log shows Customers 50, Accounts 60, XRefs 70, Transactions 10,000, Cards 70 and Total Records Exported 10,250.
app/cbl/CBEXPORT.cbl:554-573, app/cbl/CBEXPORT.cbl:254-255, app/cbl/CBEXPORT.cbl:309-310, app/cbl/CBEXPORT.cbl:507-508

Acceptance criteria

IDCriterionChecks
AC-01Given cards written: 70
When each record type is finished
Then 'CBEXPORT: Cards exported: ' with 70 is displayed before the final totals.
REQ-F-008
Export reconciliation counts per record type and in total
worked example 1 of the rule
AC-02Given customers: 50; accounts: 60; cross-references: 70; transactions: 10,000; cards: 70
When the export finishes
Then The job log shows Customers 50, Accounts 60, XRefs 70, Transactions 10,000, Cards 70 and Total Records Exported 10,250.
REQ-F-009
Export reconciliation counts per record type and in total
worked example 1 of the rule

Screens

None: service.

Data contracts

CVACT01Y (file record; CBEXPORT), CVACT02Y (file record; CBEXPORT), CVACT03Y (file record; CBEXPORT), CVCUS01Y (file record; CBEXPORT), CVEXPORT (file record; CBEXPORT), CVTRA05Y (file record; CBEXPORT)

Decision tables

None.

Open questions

None.

Design notes

None.

4. Stop the export on any file errordraft · scheduled job · 3 requirements · 3 rules · 6 criteria · 1 gap

Stops the export at once on any open, read or write failure, so the operator never mistakes a failed export for a complete one. It shows which file failed and its status, then 'CBEXPORT: ABENDING PROGRAM', and ends abnormally without retrying or skipping records. A failed run must never report success, and it leaves only the records already written in a partial file.

As a branch migration operator, I want the export to stop at once on any file open, read or write error, so that a failed export is never mistaken for a complete one.

Draft: the function is not signed off yet. Risk high; touches audit. rec/CustomerDataSetup/CustomerProfileBranchMigration#4

Requirements

CodeClassRequirementCriteria
REQ-F-010error handlingIf opening any source file or the export file returns a status other than '00', then the system shall display 'ERROR: Cannot open <file>, Status: ' with the status and 'CBEXPORT: ABENDING PROGRAM', and abend before any record is written.AC-01, AC-02
REQ-F-011error handlingIf reading any source file returns a status other than '00' or '10' (end of file), or writing an export record returns a status other than '00', then the system shall display 'ERROR: Reading <file>, Status: ' or 'ERROR: Writing export record, Status: ' with the status, then 'CBEXPORT: ABENDING PROGRAM', and abend.AC-03, AC-04, AC-05
REQ-F-012error handlingIf a read or a write fails during the export, then the system shall abend at once, without retrying or skipping the record, leaving the records already written in the partial export file.AC-06

Business rules

RuleClassText, worked examples and evidence
Fail-fast abend on any file open, read or write error
rec/claude:claude/RULE-072/1
error handling
error_handling, medium
WHEN opening any source file or the export file returns a status other than '00', THE Branch Migration Export SHALL display 'ERROR: Cannot open <file>, Status: ' with the status and 'CBEXPORT: ABENDING PROGRAM', and abend before any record is written.
app/cbl/CBEXPORT.cbl:198-240, app/cbl/CBEXPORT.cbl:327-335, app/cbl/CBEXPORT.cbl:364-370, app/cbl/CBEXPORT.cbl:576-579
Export each customer as type C record
rec/group:claude/RULE-211/5
error handling
error_handling, high
WHEN reading any source file returns a status other than '00' or '10' (end of file), or writing an export record returns a status other than '00', THE Branch Migration Export SHALL display 'ERROR: Reading <file>, Status: ' or 'ERROR: Writing export record, Status: ' with the status, then 'CBEXPORT: ABENDING PROGRAM', and abend.
app/cbl/CBEXPORT.cbl:243-310, app/cbl/CBEXPORT.cbl:312-373, app/cbl/CBEXPORT.cbl:376-428, app/cbl/CBEXPORT.cbl:431-493, app/cbl/CBEXPORT.cbl:496-551, app/cbl/CBEXPORT.cbl:172-195
Fail-fast abend on any file open, read or write error
rec/claude:claude/RULE-072/2
error handling
error_handling, medium
WHEN a read or a write fails during the export, THE Branch Migration Export SHALL abend at once, without retrying or skipping the record, and the records already written stay in the partial export file.
app/cbl/CBEXPORT.cbl:198-240, app/cbl/CBEXPORT.cbl:327-335, app/cbl/CBEXPORT.cbl:364-370, app/cbl/CBEXPORT.cbl:576-579

Acceptance criteria

IDCriterionChecks
AC-01Given the customer source file cannot be opened and the open returns status '35'
When the export starts
Then the job log shows 'ERROR: Cannot open CUSTOMER-INPUT, Status: ' with '35', then 'CBEXPORT: ABENDING PROGRAM', the run ends abnormally, and the export file holds no records
REQ-F-010
Fail-fast abend on any file open, read or write error
written from the rule
AC-02Given all five source files open with status '00' but the export file open returns a status other than '00'
When the export starts
Then the job log shows 'ERROR: Cannot open EXPORT-OUTPUT, Status: ' with that status and 'CBEXPORT: ABENDING PROGRAM', and the run ends abnormally before any record is written
REQ-F-010
Fail-fast abend on any file open, read or write error
written from the rule
AC-03Given a read of the account source file returns a status other than '00' or '10'
When the export reaches the accounts
Then the job log shows 'ERROR: Reading ACCOUNT-INPUT, Status: ' with that status, then 'CBEXPORT: ABENDING PROGRAM', and the run ends abnormally
REQ-F-011
Export each customer as type C record
written from the rule
AC-04Given a read returns status '10' (end of file) on the customer source file
When the export finishes the customers
Then no error is shown and the export continues with the accounts
REQ-F-011
Export each customer as type C record
written from the rule
AC-05Given writing an export record returns a status other than '00'
When the export writes that record
Then the job log shows 'ERROR: Writing export record, Status: ' with that status, then 'CBEXPORT: ABENDING PROGRAM', and the run ends abnormally
REQ-F-011
Export each customer as type C record
written from the rule
AC-06Given 100 customers and 50 accounts exist and the write of the 3rd account's export record fails (records 1 to 102 already written)
When the export runs
Then the run ends abnormally at that record without retrying it or moving on to the 4th account, and the export file still holds the 102 records written before the failure
REQ-F-012
Fail-fast abend on any file open, read or write error
written from the rule

Screens

None: scheduled job.

Data contracts

CVACT01Y (file record; CBEXPORT), CVACT02Y (file record; CBEXPORT), CVACT03Y (file record; CBEXPORT), CVCUS01Y (file record; CBEXPORT), CVEXPORT (file record; CBEXPORT), CVTRA05Y (file record; CBEXPORT)

Decision tables

Export file error handling

File operationStatus returnedExport actionRule
Open of any source file or the export fileOther than '00'Display 'ERROR: Cannot open <file>, Status: ' and 'CBEXPORT: ABENDING PROGRAM'; abend before any record is writtenrec/claude:claude/RULE-072/1
Read of any source fileOther than '00' or '10' (end of file)Display 'ERROR: Reading <file>, Status: ' and 'CBEXPORT: ABENDING PROGRAM'; abend without retrying or skipping; records already written stay in the partial export filerec/group:claude/RULE-211/5
Write of an export recordOther than '00'Display 'ERROR: Writing export record, Status: ' and 'CBEXPORT: ABENDING PROGRAM'; abend without retrying or skipping; records already written stay in the partial export filerec/group:claude/RULE-211/5
Close of any fileOther than '00'Gap: No rule says what happens if closing a file fails at the end of the export.

Open questions

  • SME-018 Does the first record in the data export get sequence number 1? (Migration team)
  • SME-019 Every exported record is stamped with branch 0001 and region NORTH. Is that right for all customers, or should branch and region come from customer or account data, or from a run setting? (Data migration lead)
  • SME-020 When the export is rerun, should it replace or add to the previous export contents, and how should a run that ended abnormally be recovered? (Batch operations)
  • SME-021 Customer SSNs and card verification codes are copied into the export unmasked. Must the new export protect or leave out these values? (Security team)
  • SME-022 If the export cannot open one of its files, should the run end abnormally? (Batch operations)
  • DEF-088 Confirm this is deliberate: The card's CVV code and the customer's SSN and government ID go into the migration file unmasked. Storing a CVV after authorisation is not allowed under PCI DSS. (Subject-matter expert)

Design notes

None.

5. Import and split the migration file into target filesdraft · scheduled job · 9 requirements · 9 rules · 13 criteria

Reads the combined migration file in sequence-number order and splits it back into separate customer, account, card cross-reference, transaction and card files for the target branch. Each record is routed by its type code and copied field for field, with no business validation. It must never drop, change or reject a record of a known type: the target data must match what was exported exactly.

As a branch migration operator, I want the combined migration file split back into separate customer, account, cross-reference, transaction and card files, so that the target branch receives normalized master data.

Draft: the function is not signed off yet. Risk high; touches card_data, money, personal_data, updates_records. rec/CustomerDataSetup/CustomerProfileBranchMigration#5

Requirements

CodeClassRequirementCriteria
REQ-F-013design noteThe system shall run the import program against the shared export file (AWS.M2.CARDDEMO.EXPORT.DATA) and create new cataloged customer (500-byte), account (300-byte), card cross-reference (50-byte) and transaction (350-byte) import files plus a 132-byte import error file.AC-01, AC-02
REQ-F-014design noteThe system shall not allocate a card import file in the import job, although the import program writes card records ('D') to one.AC-03
REQ-F-015business ruleWhile records remain in the branch migration export file, read in export sequence-number order, the system shall count each record read and route it by record type: 'C' to the customer import file, 'A' to the account import file, 'X' to the card cross-reference import file, 'T' to the transaction import file and 'D' to the card import file.AC-04, AC-05
REQ-F-016business ruleWhen a customer record ('C') is imported, the system shall write a customer record copying the exported customer number, first, middle and last name, three address lines, state, country, zip, two phone numbers, social security number, government id, date of birth, EFT account, primary card holder indicator and FICO score.AC-06
REQ-F-017design noteWhen an account record ('A') is imported, the system shall write an account record copying the exported account number, active status, current balance, credit limit, cash credit limit, open, expiration and reissue dates, current-cycle credit and debit, zip code and group id.AC-07
REQ-F-018design noteWhen a card cross-reference record ('X') is imported, the system shall write a cross-reference record with the exported card number, customer number and account number.AC-08
REQ-F-019design noteWhen a transaction record ('T') is imported, the system shall write a transaction record copying the exported transaction id, type, category, source, description, amount, merchant id, name, city and zip, card number, origination and processing timestamps.AC-10, AC-11
REQ-F-020business ruleWhen a card record ('D') is imported, the system shall write a card record with the exported card number, account number, CVV code, embossed name, expiration date and active status.AC-12, AC-13
REQ-F-021business ruleThe system shall write imported customer, account, cross-reference, transaction and card records exactly as received, with no business validation of status codes, balances, limits or dates, and shall never send them to the error file.AC-09

Business rules

RuleClassText, worked examples and evidence
Split export into normalized import files
rec/aws:CustomerDataSetup/CustomerProfileBranchMigration/id-7d2a434cda/1
design note
technical, medium
THE import job SHALL run the import program against the shared export file (AWS.M2.CARDDEMO.EXPORT.DATA) and create new cataloged customer (500-byte), account (300-byte), card cross-reference (50-byte) and transaction (350-byte) import files plus a 132-byte import error file, all deleted if the step fails.
  • step outcome: normal end → AWS.M2.CARDDEMO.CUSTDATA.IMPORT, ACCTDATA.IMPORT, CARDXREF.IMPORT, TRANSACT.IMPORT and IMPORT.ERRORS are cataloged.
  • step outcome: abend → All five new import files are deleted.
app/jcl/CBIMPORT.jcl:22-60, app/cbl/CBIMPORT.cbl:63-66, app/cbl/CBIMPORT.cbl:81-109
Split export into normalized import files
rec/aws:CustomerDataSetup/CustomerProfileBranchMigration/id-7d2a434cda/2
design note
technical, medium
THE import job SHALL not allocate a card import file, although the import program writes card records ('D') to one.
  • CARDOUT DD in job: absent → No card import dataset is cataloged by the job.
app/jcl/CBIMPORT.jcl:22-60, app/cbl/CBIMPORT.cbl:63-66, app/cbl/CBIMPORT.cbl:81-109
Route export record by record type
rec/group:claude/RULE-213/1
business rule
business, high
WHILE records remain in the branch migration export file (read in export sequence-number order), THE import batch SHALL count each record read and route it by record type: 'C' to the customer import file, 'A' to the account import file, 'X' to the card cross-reference import file, 'T' to the transaction import file and 'D' to the card import file.
  • record type: 'X' → A card cross-reference record is written to the cross-reference import file (XREFOUT) and the cross-references-imported count goes up by 1.
  • record type: 'D' → A card record is written to the card import file (CARDOUT) and the cards-imported count goes up by 1.
app/cbl/CBIMPORT.cbl:37-41, app/cbl/CBIMPORT.cbl:248-285, app/cbl/CBIMPORT.cbl:351-446, app/cbl/CBIMPORT.cbl:152-160, app/cpy/CVEXPORT.cpy:9-19, app/jcl/CBIMPORT.jcl:22-60
Create customer record from export data
rec/group:claude/RULE-160/4
business rule
compliance, high
WHEN a customer record ('C') is imported, THE import batch SHALL write a customer record copying the exported customer number, first, middle and last name, three address lines, state, country, zip, two phone numbers, social security number, government id, date of birth, EFT account, primary card holder indicator and FICO score, and abend the run if the write fails.
  • social security number: 123456789; FICO score: 720 → A customer record with SSN 123456789 and FICO 720 is written to CUSTOUT and the customers-imported count goes up by 1.
app/cbl/CBIMPORT.cbl:196-245, app/cbl/CBIMPORT.cbl:288-320, app/cbl/CBIMPORT.cbl:341-347, app/cbl/CBIMPORT.cbl:481-484, app/jcl/CBIMPORT.jcl:33-60
Map and write imported account record
rec/group:claude/RULE-073/1
design note
technical, high
WHEN an account record ('A') is imported, THE import batch SHALL write an account record copying the exported account number, active status, current balance, credit limit, cash credit limit, open, expiration and reissue dates, current-cycle credit and debit, zip code and group id, and abend the run if the write fails.
  • account number: 00000000011; credit limit: 5000.00 → An account record with account 00000000011 and credit limit 5000.00 is written to ACCTOUT and the accounts-imported count goes up by 1.
app/cbl/CBIMPORT.cbl:288-422, app/cbl/CBIMPORT.cbl:323-349, app/cbl/CBIMPORT.cbl:449-452, app/cbl/CBIMPORT.cbl:8-11, app/cbl/CBIMPORT.cbl:31
Write card cross-reference record
rec/group:claude/RULE-213/4
design note
technical, high
WHEN a card cross-reference record ('X') is imported, THE import batch SHALL write a cross-reference record with the exported card number, customer number and account number, and abend the run if the write fails.
  • card number: 4111111111111111; customer number: 000000001; account number: 00000000011 → A cross-reference record with those three values is written to XREFOUT.
app/cbl/CBIMPORT.cbl:37-41, app/cbl/CBIMPORT.cbl:248-285, app/cbl/CBIMPORT.cbl:351-446, app/cbl/CBIMPORT.cbl:152-160, app/cpy/CVEXPORT.cpy:9-19, app/jcl/CBIMPORT.jcl:22-60
Write imported transaction record
rec/group:claude/RULE-213/5
design note
technical, high
WHEN a transaction record ('T') is imported, THE import batch SHALL write a transaction record copying the exported transaction id, type, category, source, description, amount, merchant id, name, city and zip, card number, origination and processing timestamps, and abend the run if the write fails.
app/cbl/CBIMPORT.cbl:37-41, app/cbl/CBIMPORT.cbl:248-285, app/cbl/CBIMPORT.cbl:351-446, app/cbl/CBIMPORT.cbl:152-160, app/cpy/CVEXPORT.cpy:9-19, app/jcl/CBIMPORT.jcl:22-60
Build and write card record
rec/group:claude/RULE-213/6
business rule
compliance, high
WHEN a card record ('D') is imported, THE import batch SHALL write a card record with the exported card number, account number, CVV code, embossed name, expiration date and active status, and abend the run if the write fails.
app/cbl/CBIMPORT.cbl:37-41, app/cbl/CBIMPORT.cbl:248-285, app/cbl/CBIMPORT.cbl:351-446, app/cbl/CBIMPORT.cbl:152-160, app/cpy/CVEXPORT.cpy:9-19, app/jcl/CBIMPORT.jcl:22-60
Imported records are copied verbatim with no business validation
rec/group:claude/RULE-073/2
business rule
business, high
THE import batch SHALL write imported customer, account, cross-reference, transaction and card records exactly as received, with no business validation of status codes, balances, limits or dates, and SHALL never send them to the error file.
  • account active status: 'Q'; current balance: 9999.00; credit limit: 500.00 → The account is written with status 'Q' and the balance over its limit, and is counted as imported; no error record is written.
app/cbl/CBIMPORT.cbl:288-422, app/cbl/CBIMPORT.cbl:323-349, app/cbl/CBIMPORT.cbl:449-452, app/cbl/CBIMPORT.cbl:8-11, app/cbl/CBIMPORT.cbl:31

Acceptance criteria

IDCriterionChecks
AC-01Given step outcome: normal end
When import job runs
Then AWS.M2.CARDDEMO.CUSTDATA.IMPORT, ACCTDATA.IMPORT, CARDXREF.IMPORT, TRANSACT.IMPORT and IMPORT.ERRORS are cataloged.
REQ-F-013
Split export into normalized import files
worked example 1 of the rule
AC-02Given step outcome: abend
When import job runs
Then All five new import files are deleted.
REQ-F-013
Split export into normalized import files
worked example 2 of the rule
AC-03Given CARDOUT DD in job: absent
When import job runs
Then No card import dataset is cataloged by the job.
REQ-F-014
Split export into normalized import files
worked example 1 of the rule
AC-04Given record type: 'X'
When records remain in the branch migration export file (read in export sequence-number order)
Then A card cross-reference record is written to the cross-reference import file (XREFOUT) and the cross-references-imported count goes up by 1.
REQ-F-015
Route export record by record type
worked example 1 of the rule
AC-05Given record type: 'D'
When records remain in the branch migration export file (read in export sequence-number order)
Then A card record is written to the card import file (CARDOUT) and the cards-imported count goes up by 1.
REQ-F-015
Route export record by record type
worked example 2 of the rule
AC-06Given social security number: 123456789; FICO score: 720
When a customer record ('C') is imported
Then A customer record with SSN 123456789 and FICO 720 is written to CUSTOUT and the customers-imported count goes up by 1.
REQ-F-016
Create customer record from export data
worked example 1 of the rule
AC-07Given account number: 00000000011; credit limit: 5000.00
When an account record ('A') is imported
Then An account record with account 00000000011 and credit limit 5000.00 is written to ACCTOUT and the accounts-imported count goes up by 1.
REQ-F-017
Map and write imported account record
worked example 1 of the rule
AC-08Given card number: 4111111111111111; customer number: 000000001; account number: 00000000011
When a card cross-reference record ('X') is imported
Then A cross-reference record with those three values is written to XREFOUT.
REQ-F-018
Write card cross-reference record
worked example 1 of the rule
AC-09Given account active status: 'Q'; current balance: 9999.00; credit limit: 500.00
When import batch runs
Then The account is written with status 'Q' and the balance over its limit, and is counted as imported; no error record is written.
REQ-F-021
Imported records are copied verbatim with no business validation
worked example 1 of the rule
AC-10Given the migration file holds a 'T' record with transaction id, type, category, source, description, amount, merchant id, merchant name, city and zip, card number, origination timestamp and processing timestamp
When the import processes that record
Then one transaction record is written to the transaction import file carrying each of those values unchanged
REQ-F-019
Write imported transaction record
written from the rule
AC-11Given writing the transaction record fails
When the import processes a 'T' record
Then the import run ends abnormally
REQ-F-019
Write imported transaction record
written from the rule
AC-12Given the migration file holds a 'D' record with a 16-digit card number, account number, CVV code, embossed name, expiration date and active status
When the import processes that record
Then one card record is written to the card import file carrying the card number, account number, CVV code, embossed name, expiration date and active status unchanged
REQ-F-020
Build and write card record
written from the rule
AC-13Given writing the card record fails
When the import processes a 'D' record
Then the import run ends abnormally
REQ-F-020
Build and write card record
written from the rule

Screens

None: scheduled job.

Data contracts

CVACT01Y (file record; CBIMPORT), CVACT02Y (file record; CBIMPORT), CVACT03Y (file record; CBIMPORT), CVCUS01Y (file record; CBIMPORT), CVEXPORT (file record; CBIMPORT), CVTRA05Y (file record; CBIMPORT)

Decision tables

Import routing by record type

Export record typeImport actionRule
'C'Write a customer record to the customer import filerec/group:claude/RULE-160/4
'A'Write an account record to the account import filerec/group:claude/RULE-073/1
'X'Write a cross-reference record to the card cross-reference import filerec/group:claude/RULE-213/4
'T'Write a transaction record to the transaction import filerec/group:claude/RULE-213/5
'D'Write a card record to the card import file (the import job does not allocate this file)rec/group:claude/RULE-213/6
Any other typeCount as unknown record type and write an error record with 'Unknown record type encountered'rec/group:claude/RULE-213/2

Open questions

  • SME-023 Imported card records go to a separate card output that is not listed among the import job's outputs. Where should imported card records be stored, and are they deleted on failure like the other import files? (Migration architecture team)
  • SME-024 After an export record with an unknown type is logged as an error, should the import carry on with the next record or stop? (Migration business analyst)
  • SME-025 If the import cannot write an entry to its error file, should the run stop? (Migration business analyst)
  • SME-026 Should the migration import apply the same checks as online maintenance (valid account status, balance within credit limit, FICO 300-850, valid dates, existing account and customer for cross-references and cards), or can the export be trusted as already valid? (Business analyst)
  • SME-027 How important is the rule that sends each import record to its target master file by record type (customer, account, cross-reference, transaction, card; anything else to the error log)? Is it core to the system, or a rule that would be costly to get wrong? (Data migration lead)
  • DEF-033 Is this intended? The program header promises validation and checksum checks, but the validation step only displays 'No validation errors detected' and no data is checked. (Subject-matter expert)
  • DEF-071 Is this intended? CEE3ABD is called with no abend code or timing arguments, so the abend code that results is not defined by the program. (Subject-matter expert)
  • DEF-089 Is this intended? The job (CBIMPORT.jcl) has no CARDOUT DD, so opening the card output is likely to fail and abend the run before any record is read; if the runtime allocates it dynamically, the card records go to a temporary file that is not kept. Also, a failed error-file write is still counted as written, and the 9-digit export sequence number is cut to 7 digits in the error record. (Subject-matter expert)
  • DEF-127 Is this intended? The job has no CARDOUT DD for the card output file the program opens and writes, so card records are not saved and the open may abend the run. (Subject-matter expert)

Design notes

  • A scheduled import job that reads the shared migration file and creates fresh customer (500-character), account (300), cross-reference (50) and transaction (350) target files plus a 132-character error report; the outputs are kept only if the step succeeds and are removed if it fails. Split export into normalized import files
  • The legacy job sets up no card target although the program writes card records to one; the new job must provide a card target explicitly (a known gap to confirm, not behaviour to copy). Split export into normalized import files
  • Map an 'A' record field for field to an account record (number, active status, current balance, credit limit, cash credit limit, open/expiration/reissue dates, current-cycle credit and debit, zip, group id) and write it to the account target; any write failure stops the run. Map and write imported account record
  • Map an 'X' record to a cross-reference row linking card number, customer number and account number, and write it to the cross-reference target; any write failure stops the run. Write card cross-reference record
  • Map a 'T' record field for field to a transaction record and write it to the transaction target; any write failure stops the run. Write imported transaction record
6. Log unknown record types during importdraft · scheduled job · 2 requirements · 3 rules · 4 criteria

Logs every migration record whose type is not 'C', 'A', 'X', 'T' or 'D' to an error report so the operator can see which records were not imported. Each entry holds the timestamp, the record type, the export sequence number and 'Unknown record type encountered', separated by '|'. An unknown record must never be imported into any target file, and a failure to write the error entry does not stop the import.

As a branch migration operator, I want export records of an unknown type logged to an error report, so that I can see which records were not imported.

Draft: the function is not signed off yet. Risk high; touches audit. rec/CustomerDataSetup/CustomerProfileBranchMigration#6

Requirements

CodeClassRequirementCriteria
REQ-F-022error handlingIf an export record's type is not 'C', 'A', 'X', 'T' or 'D', then the system shall count it as an unknown record type and write an error entry to the error report file (ERROR-OUTPUT) holding the current timestamp, the record type, the export sequence number and the message 'Unknown record type encountered', separated by '|'.AC-01, AC-02, AC-03
REQ-F-023error handlingIf the error record cannot be written, then the system shall display 'ERROR: Writing error record, Status: ' with the file status and carry on importing, still counting the error as written.AC-04

Business rules

RuleClassText, worked examples and evidence
Log unknown record type to error report
rec/agreed:CustomerDataSetup/CustomerProfileBranchMigration/id-575ddeb393/1
error handling
error_handling, low
WHEN an export record's type is not `'C'`, `'A'`, `'X'`, `'T'` or `'D'`, THE Import Error Reporting SHALL write an error entry to the error report file (`ERROR-OUTPUT`) containing the current timestamp, the record type, the sequence number and the message 'Unknown record type encountered'
  • Export record type: 'Z'; Sequence number: 000000123 → An error line with the current timestamp, type 'Z', sequence 000000123 and 'Unknown record type encountered' is written to the error report, and the unknown-type and errors-written counts each go up by 1
  • Export record type: 'A' → The record is imported as an account record; no error line is written
app/cbl/CBIMPORT.cbl:283-284,425,429-432,434,437,439, app/jcl/CBIMPORT.jcl:283-284,425,429-432,434,437,439, app/cbl/CBIMPORT.cbl:425-446
Route each export record to its target master file by record type
rec/group:claude/RULE-213/2
error handling
error_handling, high
WHEN an export record has any record type other than 'C', 'A', 'X', 'T' or 'D', THE import batch SHALL count it as an unknown record type and write an error record holding the current timestamp, the record type, the export sequence number and the message 'Unknown record type encountered', separated by '|'.
  • record type: 'Z'; export sequence number: 57 → An error record with type 'Z', sequence 0000057 and 'Unknown record type encountered' is written to the import error file; nothing goes to the master import files.
app/cbl/CBIMPORT.cbl:37-41, app/cbl/CBIMPORT.cbl:248-285, app/cbl/CBIMPORT.cbl:351-446, app/cbl/CBIMPORT.cbl:152-160, app/cpy/CVEXPORT.cpy:9-19, app/jcl/CBIMPORT.jcl:22-60
Route each export record to its target master file by record type
rec/group:claude/RULE-213/3
error handling
error_handling, high
WHEN the error record cannot be written, THE import batch SHALL display 'ERROR: Writing error record, Status: ' with the file status and carry on importing, still counting the error as written.
  • error file write status: '37' → The message is displayed, the run continues and the errors-written count still goes up by 1.
app/cbl/CBIMPORT.cbl:37-41, app/cbl/CBIMPORT.cbl:248-285, app/cbl/CBIMPORT.cbl:351-446, app/cbl/CBIMPORT.cbl:152-160, app/cpy/CVEXPORT.cpy:9-19, app/jcl/CBIMPORT.jcl:22-60

Acceptance criteria

IDCriterionChecks
AC-01Given Export record type: 'Z'; Sequence number: 000000123
When an export record's type is not `'C'`, `'A'`, `'X'`, `'T'` or `'D'`
Then An error line with the current timestamp, type 'Z', sequence 000000123 and 'Unknown record type encountered' is written to the error report, and the unknown-type and errors-written counts each go up by 1
REQ-F-022
Log unknown record type to error report
worked example 1 of the rule
AC-02Given Export record type: 'A'
When an export record's type is not `'C'`, `'A'`, `'X'`, `'T'` or `'D'`
Then The record is imported as an account record; no error line is written
REQ-F-022
Log unknown record type to error report
worked example 2 of the rule
AC-03Given record type: 'Z'; export sequence number: 57
When an export record has any record type other than 'C', 'A', 'X', 'T' or 'D'
Then An error record with type 'Z', sequence 0000057 and 'Unknown record type encountered' is written to the import error file; nothing goes to the master import files.
REQ-F-022
Route each export record to its target master file by record type
worked example 1 of the rule
AC-04Given error file write status: '37'
When the error record cannot be written
Then The message is displayed, the run continues and the errors-written count still goes up by 1.
REQ-F-023
Route each export record to its target master file by record type
worked example 1 of the rule

Screens

None: scheduled job.

Data contracts

CVACT01Y (file record; CBIMPORT), CVACT02Y (file record; CBIMPORT), CVACT03Y (file record; CBIMPORT), CVCUS01Y (file record; CBIMPORT), CVEXPORT (file record; CBIMPORT), CVTRA05Y (file record; CBIMPORT)

Decision tables

None.

Open questions

  • SME-023 Imported card records go to a separate card output that is not listed among the import job's outputs. Where should imported card records be stored, and are they deleted on failure like the other import files? (Migration architecture team)
  • SME-024 After an export record with an unknown type is logged as an error, should the import carry on with the next record or stop? (Migration business analyst)
  • SME-025 If the import cannot write an entry to its error file, should the run stop? (Migration business analyst)
  • SME-027 How important is the rule that sends each import record to its target master file by record type (customer, account, cross-reference, transaction, card; anything else to the error log)? Is it core to the system, or a rule that would be costly to get wrong? (Data migration lead)
  • DEF-089 Is this intended? The job (CBIMPORT.jcl) has no CARDOUT DD, so opening the card output is likely to fail and abend the run before any record is read; if the runtime allocates it dynamically, the card records go to a temporary file that is not kept. Also, a failed error-file write is still counted as written, and the 9-digit export sequence number is cut to 7 digits in the error record. (Subject-matter expert)

Design notes

None.

7. Report import run statisticsdraft · scheduled job · 2 requirements · 3 rules · 5 criteria

Reports at the end of an import how many records were read, how many customers, accounts, cross-references, transactions and cards were imported, and how many error records and unknown types were found, so the operator can reconcile the targets. The legacy import then always prints 'CBIMPORT: Import validation completed' and 'CBIMPORT: No validation errors detected' without checking anything. That message must not be read as proof of reconciliation; the counts are the only real check.

As a branch migration operator, I want the import to report how many records it read, imported and rejected, so that I can reconcile the target files against the migration file.

Draft: the function is not signed off yet. Risk high; touches audit, reporting_only. rec/CustomerDataSetup/CustomerProfileBranchMigration#7

Requirements

CodeClassRequirementCriteria
REQ-F-024side effectWhen the import completes without abending, the system shall close all files and display 'CBIMPORT: Import completed' followed by the counts of records read, customers, accounts, cross-references, transactions and cards imported, error records written and unknown record types.AC-01, AC-02
REQ-F-025historical artifactWhen the import has processed every record in the export file, the system shall always display 'CBIMPORT: Import validation completed' and 'CBIMPORT: No validation errors detected' without performing any checksum, record-count reconciliation or cross-file check, even when error records were written.AC-03, AC-04, AC-05

Business rules

RuleClassText, worked examples and evidence
Import run statistics and reconciliation counts
rec/claude:claude/RULE-040/1
side effect
side_effect, medium
WHEN the import completes without abending, THE import batch SHALL close all files and display 'CBIMPORT: Import completed' followed by the counts of records read, customers, accounts, cross-references, transactions and cards imported, error records written and unknown record types.
  • records in export: 10 C, 12 A, 15 X, 40 T, 15 D, 2 unknown → The totals displayed are Read 94, Customers 10, Accounts 12, XRefs 15, Transactions 40, Cards 15, Errors Written 2, Unknown Record Types 2.
  • outcome: abend on a write → No totals are displayed.
app/cbl/CBIMPORT.cbl:139-147, app/cbl/CBIMPORT.cbl:252-256, app/cbl/CBIMPORT.cbl:455-478, app/cbl/CBIMPORT.cbl:425-446
Post-import validation and checksum step is a no-op
rec/claude:claude/RULE-075/1
historical artifact
leftover, medium
WHEN the customer data import has processed every record in the export file, THE import job SHALL always print 'CBIMPORT: Import validation completed' and 'CBIMPORT: No validation errors detected' without performing any checksum, record-count reconciliation or cross-file check (3000-VALIDATE-IMPORT), even when error records were written.
  • Export file: accounts present but no matching card records; Records read: 1,200 → The job log shows 'CBIMPORT: Import validation completed' and 'CBIMPORT: No validation errors detected'; no mismatch is reported.
  • Unknown record types in export file: 5; Errors written: 5 → The job log still shows 'CBIMPORT: No validation errors detected' before the final totals list 'Errors Written' as 5.
app/cbl/CBIMPORT.cbl:165-171, app/cbl/CBIMPORT.cbl:449-452, app/cbl/CBIMPORT.cbl:425-447, app/cbl/CBIMPORT.cbl:455-477
Imported records are copied verbatim with no business validation
rec/group:claude/RULE-073/3
historical artifact
leftover, high
AFTER the export file is processed, THE import batch SHALL always display 'CBIMPORT: Import validation completed' and 'CBIMPORT: No validation errors detected', although no validation was carried out.
  • unknown record types found: 3 → The run still displays 'CBIMPORT: No validation errors detected'.
app/cbl/CBIMPORT.cbl:288-422, app/cbl/CBIMPORT.cbl:323-349, app/cbl/CBIMPORT.cbl:449-452, app/cbl/CBIMPORT.cbl:8-11, app/cbl/CBIMPORT.cbl:31

Acceptance criteria

IDCriterionChecks
AC-01Given records in export: 10 C, 12 A, 15 X, 40 T, 15 D, 2 unknown
When the import completes without abending
Then The totals displayed are Read 94, Customers 10, Accounts 12, XRefs 15, Transactions 40, Cards 15, Errors Written 2, Unknown Record Types 2.
REQ-F-024
Import run statistics and reconciliation counts
worked example 1 of the rule
AC-02Given outcome: abend on a write
When the import completes without abending
Then No totals are displayed.
REQ-F-024
Import run statistics and reconciliation counts
worked example 2 of the rule
AC-03Given Export file: accounts present but no matching card records; Records read: 1,200
When the customer data import has processed every record in the export file
Then The job log shows 'CBIMPORT: Import validation completed' and 'CBIMPORT: No validation errors detected'; no mismatch is reported.
REQ-F-025
Post-import validation and checksum step is a no-op
worked example 1 of the rule
AC-04Given Unknown record types in export file: 5; Errors written: 5
When the customer data import has processed every record in the export file
Then The job log still shows 'CBIMPORT: No validation errors detected' before the final totals list 'Errors Written' as 5.
REQ-F-025
Post-import validation and checksum step is a no-op
worked example 2 of the rule
AC-05Given unknown record types found: 3
When Imported records are copied verbatim with no business validation applies
Then The run still displays 'CBIMPORT: No validation errors detected'.
REQ-F-025
Imported records are copied verbatim with no business validation
worked example 1 of the rule

Screens

None: scheduled job.

Data contracts

CVACT01Y (file record; CBIMPORT), CVACT02Y (file record; CBIMPORT), CVACT03Y (file record; CBIMPORT), CVCUS01Y (file record; CBIMPORT), CVEXPORT (file record; CBIMPORT), CVTRA05Y (file record; CBIMPORT)

Decision tables

None.

Open questions

  • SME-026 Should the migration import apply the same checks as online maintenance (valid account status, balance within credit limit, FICO 300-850, valid dates, existing account and customer for cross-references and cards), or can the export be trusted as already valid? (Business analyst)
  • DEF-033 Is this intended? The program header promises validation and checksum checks, but the validation step only displays 'No validation errors detected' and no data is checked. (Subject-matter expert)
  • DEF-161 Confirm this is deliberate: The validation step always reports 'No validation errors detected', even when the run has written error records for unknown record types or the export was incomplete, so the job log can contradict the 'Errors Written' total printed right after it. (Subject-matter expert)

Design notes

None.

8. Abort the import on any file failuredraft · scheduled job · 4 requirements · 10 rules · 10 criteria · 1 gap

Stops the import on any failure to open, read or write a file, and discards the new target files so no partial migration is kept. It shows which file failed and its status, then ends abnormally without closing files or printing run statistics. A failed import must never leave behind target files that look complete.

As a branch migration operator, I want the import to stop and discard its target files on any file open, read or write failure, so that no partial migration is kept.

Draft: the function is not signed off yet. Risk high; touches audit, updates_records. rec/CustomerDataSetup/CustomerProfileBranchMigration#8

Requirements

CodeClassRequirementCriteria
REQ-F-026error handlingIf the export file or any of the output files cannot be opened, then the system shall display 'ERROR: Cannot open <file>, Status: ' with the file status and abend the run before any record is read.AC-07, AC-08
REQ-F-027error handlingIf reading the export file returns any status other than success or end of file, then the system shall display 'ERROR: Reading EXPORT-INPUT, Status: ' with the status and abend the run.AC-09, AC-10
REQ-F-028business ruleIf writing a customer, account, cross-reference, transaction or card record fails, then the system shall display 'ERROR: Writing <type> record, Status: ' with the status and 'CBIMPORT: ABENDING PROGRAM', and abend at once without closing files or printing the run statistics.AC-01, AC-02, AC-03
REQ-F-029error handlingWhen the import step ends abnormally, the system shall delete the new customer, account, cross-reference, transaction and error import files, so records written before the failure are not kept.AC-04, AC-05, AC-06

Business rules

RuleClassText, worked examples and evidence
Abort the whole import on any file open, read or target-write failure
rec/group:claude/RULE-160/1
error handling
error_handling, high
WHEN the export file or any of the output files cannot be opened, THE import batch SHALL display 'ERROR: Cannot open <file>, Status: ' with the file status and abend the run before any record is read.
app/cbl/CBIMPORT.cbl:196-245, app/cbl/CBIMPORT.cbl:288-320, app/cbl/CBIMPORT.cbl:341-347, app/cbl/CBIMPORT.cbl:481-484, app/jcl/CBIMPORT.jcl:33-60
Route export records by record type
rec/group:claude/RULE-213/7
error handling
error_handling, high
WHEN reading the export file returns any status other than success or end of file, THE import batch SHALL display 'ERROR: Reading EXPORT-INPUT, Status: ' with the status and abend the run.
app/cbl/CBIMPORT.cbl:37-41, app/cbl/CBIMPORT.cbl:248-285, app/cbl/CBIMPORT.cbl:351-446, app/cbl/CBIMPORT.cbl:152-160, app/cpy/CVEXPORT.cpy:9-19, app/jcl/CBIMPORT.jcl:22-60
Create customer record from export data
rec/group:claude/RULE-160/2
error handling
error_handling, high
WHEN writing a customer, account, cross-reference, transaction or card record fails, THE import batch SHALL display 'ERROR: Writing <type> record, Status: ' with the status and 'CBIMPORT: ABENDING PROGRAM', and abend at once without closing files or printing the run statistics.
app/cbl/CBIMPORT.cbl:196-245, app/cbl/CBIMPORT.cbl:288-320, app/cbl/CBIMPORT.cbl:341-347, app/cbl/CBIMPORT.cbl:481-484, app/jcl/CBIMPORT.jcl:33-60
Map and write imported account record
rec/group:claude/RULE-073/1
design note
technical, high
WHEN an account record ('A') is imported, THE import batch SHALL write an account record copying the exported account number, active status, current balance, credit limit, cash credit limit, open, expiration and reissue dates, current-cycle credit and debit, zip code and group id, and abend the run if the write fails.
  • account number: 00000000011; credit limit: 5000.00 → An account record with account 00000000011 and credit limit 5000.00 is written to ACCTOUT and the accounts-imported count goes up by 1.
app/cbl/CBIMPORT.cbl:288-422, app/cbl/CBIMPORT.cbl:323-349, app/cbl/CBIMPORT.cbl:449-452, app/cbl/CBIMPORT.cbl:8-11, app/cbl/CBIMPORT.cbl:31
Create customer record from export data
rec/group:claude/RULE-160/4
business rule
compliance, high
WHEN a customer record ('C') is imported, THE import batch SHALL write a customer record copying the exported customer number, first, middle and last name, three address lines, state, country, zip, two phone numbers, social security number, government id, date of birth, EFT account, primary card holder indicator and FICO score, and abend the run if the write fails.
  • social security number: 123456789; FICO score: 720 → A customer record with SSN 123456789 and FICO 720 is written to CUSTOUT and the customers-imported count goes up by 1.
app/cbl/CBIMPORT.cbl:196-245, app/cbl/CBIMPORT.cbl:288-320, app/cbl/CBIMPORT.cbl:341-347, app/cbl/CBIMPORT.cbl:481-484, app/jcl/CBIMPORT.jcl:33-60
Write card cross-reference record
rec/group:claude/RULE-213/4
design note
technical, high
WHEN a card cross-reference record ('X') is imported, THE import batch SHALL write a cross-reference record with the exported card number, customer number and account number, and abend the run if the write fails.
  • card number: 4111111111111111; customer number: 000000001; account number: 00000000011 → A cross-reference record with those three values is written to XREFOUT.
app/cbl/CBIMPORT.cbl:37-41, app/cbl/CBIMPORT.cbl:248-285, app/cbl/CBIMPORT.cbl:351-446, app/cbl/CBIMPORT.cbl:152-160, app/cpy/CVEXPORT.cpy:9-19, app/jcl/CBIMPORT.jcl:22-60
Write imported transaction record
rec/group:claude/RULE-213/5
design note
technical, high
WHEN a transaction record ('T') is imported, THE import batch SHALL write a transaction record copying the exported transaction id, type, category, source, description, amount, merchant id, name, city and zip, card number, origination and processing timestamps, and abend the run if the write fails.
app/cbl/CBIMPORT.cbl:37-41, app/cbl/CBIMPORT.cbl:248-285, app/cbl/CBIMPORT.cbl:351-446, app/cbl/CBIMPORT.cbl:152-160, app/cpy/CVEXPORT.cpy:9-19, app/jcl/CBIMPORT.jcl:22-60
Build and write card record
rec/group:claude/RULE-213/6
business rule
compliance, high
WHEN a card record ('D') is imported, THE import batch SHALL write a card record with the exported card number, account number, CVV code, embossed name, expiration date and active status, and abend the run if the write fails.
app/cbl/CBIMPORT.cbl:37-41, app/cbl/CBIMPORT.cbl:248-285, app/cbl/CBIMPORT.cbl:351-446, app/cbl/CBIMPORT.cbl:152-160, app/cpy/CVEXPORT.cpy:9-19, app/jcl/CBIMPORT.jcl:22-60
Abort the whole import on any file open, read or target-write failure
rec/group:claude/RULE-160/3
error handling
error_handling, high
WHEN the import step ends abnormally, THE import job SHALL delete the new customer, account, cross-reference, transaction and error import files, so records written before the failure are not kept.
  • customer records already written: 500; outcome: abend on account write → The customer import file holding the 500 records is deleted with the other new import files.
app/cbl/CBIMPORT.cbl:196-245, app/cbl/CBIMPORT.cbl:288-320, app/cbl/CBIMPORT.cbl:341-347, app/cbl/CBIMPORT.cbl:481-484, app/jcl/CBIMPORT.jcl:33-60
Split export into normalized import files
rec/aws:CustomerDataSetup/CustomerProfileBranchMigration/id-7d2a434cda/1
design note
technical, medium
THE import job SHALL run the import program against the shared export file (AWS.M2.CARDDEMO.EXPORT.DATA) and create new cataloged customer (500-byte), account (300-byte), card cross-reference (50-byte) and transaction (350-byte) import files plus a 132-byte import error file, all deleted if the step fails.
  • step outcome: normal end → AWS.M2.CARDDEMO.CUSTDATA.IMPORT, ACCTDATA.IMPORT, CARDXREF.IMPORT, TRANSACT.IMPORT and IMPORT.ERRORS are cataloged.
  • step outcome: abend → All five new import files are deleted.
app/jcl/CBIMPORT.jcl:22-60, app/cbl/CBIMPORT.cbl:63-66, app/cbl/CBIMPORT.cbl:81-109

Acceptance criteria

IDCriterionChecks
AC-01Given account number: 00000000011; credit limit: 5000.00
When an account record ('A') is imported
Then An account record with account 00000000011 and credit limit 5000.00 is written to ACCTOUT and the accounts-imported count goes up by 1.
REQ-F-028
Map and write imported account record
worked example 1 of the rule
AC-02Given social security number: 123456789; FICO score: 720
When a customer record ('C') is imported
Then A customer record with SSN 123456789 and FICO 720 is written to CUSTOUT and the customers-imported count goes up by 1.
REQ-F-028
Create customer record from export data
worked example 1 of the rule
AC-03Given card number: 4111111111111111; customer number: 000000001; account number: 00000000011
When a card cross-reference record ('X') is imported
Then A cross-reference record with those three values is written to XREFOUT.
REQ-F-028
Write card cross-reference record
worked example 1 of the rule
AC-04Given customer records already written: 500; outcome: abend on account write
When the import step ends abnormally
Then The customer import file holding the 500 records is deleted with the other new import files.
REQ-F-029
Abort the whole import on any file open, read or target-write failure
worked example 1 of the rule
AC-05Given step outcome: normal end
When import job runs
Then AWS.M2.CARDDEMO.CUSTDATA.IMPORT, ACCTDATA.IMPORT, CARDXREF.IMPORT, TRANSACT.IMPORT and IMPORT.ERRORS are cataloged.
REQ-F-029
Split export into normalized import files
worked example 1 of the rule
AC-06Given step outcome: abend
When import job runs
Then All five new import files are deleted.
REQ-F-029
Split export into normalized import files
worked example 2 of the rule
AC-07Given the migration file cannot be opened and the open returns a non-success status
When the import starts
Then the job log shows 'ERROR: Cannot open EXPORT-INPUT, Status: ' with that status, and the run ends abnormally before any record is read
REQ-F-026
Abort the whole import on any file open, read or target-write failure
written from the rule
AC-08Given the migration file opens but the account target file cannot be opened
When the import starts
Then the job log shows 'ERROR: Cannot open ACCOUNT-OUTPUT, Status: ' with that status, and the run ends abnormally with no record read or written
REQ-F-026
Abort the whole import on any file open, read or target-write failure
written from the rule
AC-09Given reading the migration file returns a status other than success or end of file
When the import reads the next record
Then the job log shows 'ERROR: Reading EXPORT-INPUT, Status: ' with that status, and the run ends abnormally
REQ-F-027
Route export records by record type
written from the rule
AC-10Given reading the migration file returns end of file after the last record
When the import reads past the last record
Then no read error is shown and the run does not end abnormally
REQ-F-027
Route export records by record type
written from the rule

Screens

None: scheduled job.

Data contracts

CVACT01Y (file record; CBIMPORT), CVACT02Y (file record; CBIMPORT), CVACT03Y (file record; CBIMPORT), CVCUS01Y (file record; CBIMPORT), CVEXPORT (file record; CBIMPORT), CVTRA05Y (file record; CBIMPORT)

Decision tables

Import file error handling

File operationResultImport actionRule
Open of the export file or any output fileCannot be openedDisplay 'ERROR: Cannot open <file>, Status: '; abend before any record is read; new import files deletedrec/group:claude/RULE-160/1
Read of the export fileAny status other than success or end of fileDisplay 'ERROR: Reading EXPORT-INPUT, Status: '; abend; new import files deletedrec/group:claude/RULE-213/7
Write of a customer, account, cross-reference, transaction or card recordFailsDisplay 'ERROR: Writing <type> record, Status: ' and 'CBIMPORT: ABENDING PROGRAM'; abend at once without closing files or printing statistics; new import files deletedrec/group:claude/RULE-160/2
Write of an error recordFailsDisplay 'ERROR: Writing error record, Status: '; carry on importing, still counting the error as writtenrec/group:claude/RULE-213/3
Close of any fileFailsGap: No rule says what happens if closing a file fails at the end of the import.

Open questions

  • SME-023 Imported card records go to a separate card output that is not listed among the import job's outputs. Where should imported card records be stored, and are they deleted on failure like the other import files? (Migration architecture team)
  • SME-024 After an export record with an unknown type is logged as an error, should the import carry on with the next record or stop? (Migration business analyst)
  • SME-025 If the import cannot write an entry to its error file, should the run stop? (Migration business analyst)
  • SME-026 Should the migration import apply the same checks as online maintenance (valid account status, balance within credit limit, FICO 300-850, valid dates, existing account and customer for cross-references and cards), or can the export be trusted as already valid? (Business analyst)
  • DEF-033 Is this intended? The program header promises validation and checksum checks, but the validation step only displays 'No validation errors detected' and no data is checked. (Subject-matter expert)
  • DEF-071 Is this intended? CEE3ABD is called with no abend code or timing arguments, so the abend code that results is not defined by the program. (Subject-matter expert)
  • DEF-089 Is this intended? The job (CBIMPORT.jcl) has no CARDOUT DD, so opening the card output is likely to fail and abend the run before any record is read; if the runtime allocates it dynamically, the card records go to a temporary file that is not kept. Also, a failed error-file write is still counted as written, and the 9-digit export sequence number is cut to 7 digits in the error record. (Subject-matter expert)
  • DEF-127 Is this intended? The job has no CARDOUT DD for the card output file the program opens and writes, so card records are not saved and the open may abend the run. (Subject-matter expert)

Design notes

  • The account write must report failure to the job, so that a failed write stops the whole import rather than being skipped. Map and write imported account record
  • The cross-reference write must report failure to the job, so that a failed write stops the whole import. Write card cross-reference record
  • The transaction write must report failure to the job, so that a failed write stops the whole import. Write imported transaction record
  • Make the import all-or-nothing: write the targets to staging (or inside a transaction) and publish them only when the step succeeds; on an abnormal end, remove the customer, account, cross-reference, transaction and error outputs. Split export into normalized import files

Master Data File Initialization

1. Load account masterdraft · scheduled job · 2 requirements · 2 rules · 2 criteria

Rebuilds the account master from the account flat file so that the operations team starts CardDemo processing from a fresh, complete set of accounts. Each run throws away the previous account store, creates an empty one keyed on the 11-digit account ID, and loads every account record from the file. It must never lose or skip a record, keep stale accounts from before the run, or fail just because no account store existed yet.

As a CardDemo operations team member, I want to rebuild the account master from the account flat file, so that all CardDemo processing starts from a fresh, complete set of account records.

Draft: the function is not signed off yet. Risk medium; touches updates_records. rec/CustomerDataSetup/MasterDataFileInitialization#1

Requirements

CodeClassRequirementCriteria
REQ-F-001design noteThe system shall delete any existing account master (AWS.M2.CARDDEMO.ACCTDATA.VSAM.KSDS), carrying on if it does not exist, and then define a new empty account master keyed on the 11-digit account ID.AC-01
REQ-F-002design noteThe system shall copy every account record from the account flat file (AWS.M2.CARDDEMO.ACCTDATA.PS) into the newly defined account master (AWS.M2.CARDDEMO.ACCTDATA.VSAM.KSDS).AC-02

Business rules

RuleClassText, worked examples and evidence
Load account master from account flat file
rec/aws:CustomerDataSetup/MasterDataFileInitialization/id-06e7215b1e/1
design note
technical, medium
THE Account Master Load SHALL delete any existing account master (AWS.M2.CARDDEMO.ACCTDATA.VSAM.KSDS), carrying on if it does not exist, and then define a new empty account master keyed on the 11-digit account ID.
  • Existing account master: present, from an earlier run → It is deleted and replaced by a new empty master, so no earlier account records remain
app/jcl/ACCTFILE.jcl:19-50, app/jcl/ACCTFILE.jcl:51-61
Load account master from account flat file
rec/aws:CustomerDataSetup/MasterDataFileInitialization/id-06e7215b1e/2
design note
technical, medium
THE Account Master Load SHALL copy every account record from the account flat file (AWS.M2.CARDDEMO.ACCTDATA.PS) into the newly defined account master (AWS.M2.CARDDEMO.ACCTDATA.VSAM.KSDS).
  • Account flat file: 50 account records → The account master holds the same 50 records, keyed by account ID
app/jcl/ACCTFILE.jcl:19-50, app/jcl/ACCTFILE.jcl:51-61

Acceptance criteria

IDCriterionChecks
AC-01Given Existing account master: present, from an earlier run
When Account Master Load runs
Then It is deleted and replaced by a new empty master, so no earlier account records remain
REQ-F-001
Load account master from account flat file
worked example 1 of the rule
AC-02Given Account flat file: 50 account records
When Account Master Load runs
Then The account master holds the same 50 records, keyed by account ID
REQ-F-002
Load account master from account flat file
worked example 1 of the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-001 When the account load meets account records that already exist in the account master, or input records with duplicate or out-of-order keys, should they be rejected, replaced or reported? (Data migration team)
  • SME-002 While the account master is being loaded, may other processes read or update it at the same time, or should the load have exclusive access? (Batch operations)

Design notes

  • The scheduled load job starts by clearing out the account store (drop and recreate, or truncate the accounts table). It must succeed whether or not the store already exists. The rebuilt store has the 11-digit account ID as its unique primary key, so later processing can look up an account by its ID. Load account master from account flat file
  • A bulk import that reads every record of the account extract file into the freshly emptied account store, keyed by account ID. The job should check that the number of rows loaded equals the number of input records, and it should fail visibly rather than load only part of the file. Load account master from account flat file
2. Load card master and its account indexdraft · scheduled job · 3 requirements · 3 rules · 3 criteria

Loads the card master from the card flat file and indexes it by account, so that a card can be read by its card number and all the cards of one account can be found. Every card record in the file must end up in the store. The by-account lookup must be built from the loaded data and stay in step with it, and it must allow many cards per account.

As a CardDemo operations team member, I want to load the card master from the card flat file and index it by account, so that cards can be read by card and found by account.

Draft: the function is not signed off yet. Risk medium; touches card_data, updates_records. rec/CustomerDataSetup/MasterDataFileInitialization#2

Requirements

CodeClassRequirementCriteria
REQ-F-003design noteThe system shall copy every card record from the card data flat file (AWS.M2.CARDDEMO.CARDDATA.PS) into the newly defined keyed card master (AWS.M2.CARDDEMO.CARDDATA.VSAM.KSDS), with both data sets opened in shared access.AC-01
REQ-F-004design noteThe system shall define a non-unique alternate index on the card master keyed on the 11-character account id at position 17, kept up to date with the master, together with a path relating it to the master.AC-02
REQ-F-005design noteWhen the card master has been loaded, the system shall build the alternate index (AWS.M2.CARDDEMO.CARDDATA.VSAM.AIX) from the card master records (AWS.M2.CARDDEMO.CARDDATA.VSAM.KSDS).AC-03

Business rules

RuleClassText, worked examples and evidence
Load card master from card flat file
rec/aws:CustomerDataSetup/MasterDataFileInitialization/id-7ccd3fcab6/1
design note
technical, medium
THE card master load job SHALL copy every card record from the card data flat file (AWS.M2.CARDDEMO.CARDDATA.PS) into the newly defined keyed card master (AWS.M2.CARDDEMO.CARDDATA.VSAM.KSDS), with both data sets opened in shared access.
  • records in card flat file: 50 → The card master holds the same 50 card records
app/jcl/CARDFILE.jcl:68-75, app/jcl/CARDFILE.jcl:33-63
Build card alternate index
rec/aws:CustomerDataSetup/MasterDataFileInitialization/id-5aac52da63/1
design note
technical, medium
THE card master load job SHALL define a non-unique alternate index on the card master keyed on the 11-character account id at position 17 (KEYS(11 16)), kept up to date with the master, together with a path relating it to the master.
  • cards on account 00000012345: 2 → Both cards can be found through the alternate index by account 00000012345
app/jcl/CARDFILE.jcl:78-112
Build card alternate index
rec/aws:CustomerDataSetup/MasterDataFileInitialization/id-5aac52da63/2
design note
technical, medium
WHEN the card master has been loaded, THE card master load job SHALL build the alternate index (AWS.M2.CARDDEMO.CARDDATA.VSAM.AIX) from the card master records (AWS.M2.CARDDEMO.CARDDATA.VSAM.KSDS).
  • cards loaded: 50 → The alternate index holds an entry for each of the 50 cards under its account id
app/jcl/CARDFILE.jcl:78-112

Acceptance criteria

IDCriterionChecks
AC-01Given records in card flat file: 50
When card master load job runs
Then The card master holds the same 50 card records
REQ-F-003
Load card master from card flat file
worked example 1 of the rule
AC-02Given cards on account 00000012345: 2
When card master load job runs
Then Both cards can be found through the alternate index by account 00000012345
REQ-F-004
Build card alternate index
worked example 1 of the rule
AC-03Given cards loaded: 50
When the card master has been loaded
Then The alternate index holds an entry for each of the 50 cards under its account id
REQ-F-005
Build card alternate index
worked example 1 of the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-003 While the card master is being loaded, may other processes read or update it at the same time, or should the load have exclusive access? (Batch operations)
  • SME-004 Which card record field is the secondary key for the card alternate index (the second way of looking up cards)? (Data architecture team)
  • SME-005 If the card load or the card alternate index build fails partway, how should the job restart and recover, and must the card master be empty before the load starts? (Batch operations)

Design notes

  • A scheduled bulk import that copies every record of the card extract file into the card store, keyed on card number. The shared access in the old job means the load must not lock out other readers of the source file. Row counts should be reconciled against the input. Load card master from card flat file
  • Add a non-unique secondary index on the card's 11-character account ID column, which sits right after the card number in the legacy record (position 17). The database must keep this index up to date automatically on every insert, update and delete, and it must be queryable as 'cards for account X'. Build card alternate index
  • Build or refresh the account-ID index only after the card load has finished, either as the last step of the load job or by creating the index after the bulk insert. That way, lookups by account show every loaded card. Build card alternate index
3. Refresh customer masterdraft · scheduled job · 3 requirements · 3 rules · 4 criteria

Rebuilds the customer master from the customer flat file while online access to customers is suspended, so that the reload is complete and no online user reads a half-built customer store. Each customer is keyed by a 9-character customer ID at the start of its 500-byte record. The refresh must load every record, print a report of what it copied, and always bring online access back once the load ends.

As a CardDemo operations team member, I want to rebuild the customer master from the customer flat file while online access to it is suspended, so that customer data is reloaded completely and online users do not read it mid-rebuild.

Draft: the function is not signed off yet. Risk medium; touches personal_data, updates_records. rec/CustomerDataSetup/MasterDataFileInitialization#3

Requirements

CodeClassRequirementCriteria
REQ-F-006design noteThe system shall close the customer file (CUSTDAT) in the online CICS region before the refresh and reopen it after the load, so that online users cannot read the customer master while it is rebuilt.AC-01
REQ-F-007design noteThe system shall delete the existing keyed customer master (AWS.M2.CARDDEMO.CUSTDATA.VSAM.KSDS) and define it anew with a 9-character customer key at the start of each 500-byte record, treating a master that does not yet exist as no error.AC-02, AC-03
REQ-F-008design noteThe system shall copy every record of the customer flat file (AWS.M2.CARDDEMO.CUSTDATA.PS) into the newly defined keyed customer master and print a processing report of the copy.AC-04

Business rules

RuleClassText, worked examples and evidence
Load customer master from flat file
rec/aws:CustomerDataSetup/MasterDataFileInitialization/id-7266f1ccba/1
design note
technical, medium
THE Customer Master Refresh job SHALL close the customer file (CUSTDAT) in the online CICS region before the refresh and reopen it after the load, so online users cannot read the customer master while it is rebuilt.
  • CICS region: CICSAWSA; file: CUSTDAT → The file is set closed ('CEMT SET FIL(CUSTDAT ) CLO') before the reload and opened ('CEMT SET FIL(CUSTDAT ) OPE') after it.
app/jcl/CUSTFILE.jcl:22-27, app/jcl/CUSTFILE.jcl:32-38, app/jcl/CUSTFILE.jcl:43-59, app/jcl/CUSTFILE.jcl:64-72, app/jcl/CUSTFILE.jcl:76-81
Load customer master from flat file
rec/aws:CustomerDataSetup/MasterDataFileInitialization/id-7266f1ccba/2
design note
technical, medium
THE Customer Master Refresh job SHALL delete the existing keyed customer master (AWS.M2.CARDDEMO.CUSTDATA.VSAM.KSDS) and define it anew with a 9-character customer key at the start of each 500-byte record, treating a master that does not yet exist as no error.
  • customer master: exists with old data → It is deleted and an empty master is defined with key length 9 at offset 0 and record size 500.
  • customer master: does not exist → The delete fails with a condition code of 8 or less, which is reset to 0, and the job goes on to define the master.
app/jcl/CUSTFILE.jcl:22-27, app/jcl/CUSTFILE.jcl:32-38, app/jcl/CUSTFILE.jcl:43-59, app/jcl/CUSTFILE.jcl:64-72, app/jcl/CUSTFILE.jcl:76-81
Load customer master from flat file
rec/aws:CustomerDataSetup/MasterDataFileInitialization/id-7266f1ccba/3
design note
technical, medium
THE Customer Master Refresh job SHALL copy every record of the customer flat file (AWS.M2.CARDDEMO.CUSTDATA.PS) into the newly defined keyed customer master and print a processing report of the copy.
  • customer flat file: 50 customer records → The customer master holds the same 50 records, keyed by customer ID, and the copy report is written to the job output.
app/jcl/CUSTFILE.jcl:22-27, app/jcl/CUSTFILE.jcl:32-38, app/jcl/CUSTFILE.jcl:43-59, app/jcl/CUSTFILE.jcl:64-72, app/jcl/CUSTFILE.jcl:76-81

Acceptance criteria

IDCriterionChecks
AC-01Given CICS region: CICSAWSA; file: CUSTDAT
When Customer Master Refresh job runs
Then The file is set closed ('CEMT SET FIL(CUSTDAT ) CLO') before the reload and opened ('CEMT SET FIL(CUSTDAT ) OPE') after it.
REQ-F-006
Load customer master from flat file
worked example 1 of the rule
AC-02Given customer master: exists with old data
When Customer Master Refresh job runs
Then It is deleted and an empty master is defined with key length 9 at offset 0 and record size 500.
REQ-F-007
Load customer master from flat file
worked example 1 of the rule
AC-03Given customer master: does not exist
When Customer Master Refresh job runs
Then The delete fails with a condition code of 8 or less, which is reset to 0, and the job goes on to define the master.
REQ-F-007
Load customer master from flat file
worked example 2 of the rule
AC-04Given customer flat file: 50 customer records
When Customer Master Refresh job runs
Then The customer master holds the same 50 records, keyed by customer ID, and the copy report is written to the job output.
REQ-F-008
Load customer master from flat file
worked example 1 of the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-240 When loading customers from the flat file, what should happen if a customer already exists in the customer master: replace it, reject the record, or stop the load? (Data migration)
  • SME-241 What must the customer load's processing report contain (counts, errors, statuses)? (Batch operations)
  • SME-242 If the customer load stops after writing some records, how should it be restarted or recovered? (Batch operations)
  • SME-243 During the customer load, other processes can read or change the customer files. Is that acceptable, or must the files be locked for the load? (Data migration)

Design notes

  • Before the reload starts, the job must tell the online application to stop serving customer data, for example with a maintenance flag, a message, or an admin API call that makes customer reads return 'temporarily unavailable'. When the load is done it must turn customer access back on. Alternatively, the job can load into a staging table and swap it in atomically, so online users never see a partial store. Load customer master from flat file
  • Recreate or empty the customer store with the 9-character customer ID as its unique key. Each customer record holds the fields of the 500-byte legacy layout. A store that does not exist yet must not make the job fail. Load customer master from flat file
  • A bulk import of every record in the customer extract file into the new customer store. It must produce a run report, at least the records read and written plus any errors, and keep it as the job's output or log for operations. Load customer master from flat file
4. Load card cross-reference master and its account indexdraft · scheduled job · 3 requirements · 3 rules · 3 criteria

Rebuilds the card cross-reference master, which links each card number to its account and customer, from its flat file and indexes it by account. This lets the rest of the application find an account from a card, and all the cards of an account. The store must be emptied before the load, must hold exactly the records in the file, and must allow many cards for one account in the by-account lookup.

As a CardDemo operations team member, I want to rebuild the card cross-reference master from its flat file and index it by account, so that cards can be found by card number and by account.

Draft: the function is not signed off yet. Risk medium; touches card_data, updates_records. rec/CustomerDataSetup/MasterDataFileInitialization#4

Requirements

CodeClassRequirementCriteria
REQ-F-009design noteThe system shall delete any existing card cross-reference master (AWS.M2.CARDDEMO.CARDXREF.VSAM.KSDS) and its alternate index, carrying on if they do not exist, and then define a new empty master keyed on the 16-character card number.AC-01
REQ-F-010design noteThe system shall copy every card cross-reference record from the flat file (AWS.M2.CARDDEMO.CARDXREF.PS) into the newly defined master (AWS.M2.CARDDEMO.CARDXREF.VSAM.KSDS).AC-02
REQ-F-011design noteWhen the card cross-reference master has been loaded from the flat file, the system shall define an alternate index on account ID (AWS.M2.CARDDEMO.CARDXREF.VSAM.AIX) where one account may have many cards, define its access path (AWS.M2.CARDDEMO.CARDXREF.VSAM.AIX.PATH), and build the index from every cross-reference record so that cards can be found by account.AC-03

Business rules

RuleClassText, worked examples and evidence
Load card cross-reference master from flat file
rec/aws:CustomerDataSetup/MasterDataFileInitialization/id-837c7ade49/1
design note
technical, medium
THE Card Cross-Reference Master Load SHALL delete any existing card cross-reference master (AWS.M2.CARDDEMO.CARDXREF.VSAM.KSDS) and its alternate index, carrying on if they do not exist, and then define a new empty master keyed on the 16-character card number.
  • Existing cross-reference master: none → The delete is ignored, and a new empty master keyed on card number is defined
app/jcl/XREFFILE.jcl:19-53, app/jcl/XREFFILE.jcl:54-64, app/cpy/CVACT03Y.cpy:4-8
Load card cross-reference master from flat file
rec/aws:CustomerDataSetup/MasterDataFileInitialization/id-837c7ade49/2
design note
technical, medium
THE Card Cross-Reference Master Load SHALL copy every card cross-reference record from the flat file (AWS.M2.CARDDEMO.CARDXREF.PS) into the newly defined master (AWS.M2.CARDDEMO.CARDXREF.VSAM.KSDS).
  • Flat file: 50 cross-reference records → The master holds the same 50 records, keyed by card number
app/jcl/XREFFILE.jcl:19-53, app/jcl/XREFFILE.jcl:54-64, app/cpy/CVACT03Y.cpy:4-8
Build card cross-reference alternate index
rec/aws:CustomerDataSetup/MasterDataFileInitialization/id-8ad9ff4b5b/1
design note
technical, medium
WHEN the card cross-reference master has been loaded from the flat file, THE Card Cross-Reference Master Load SHALL define an alternate index on account ID (AWS.M2.CARDDEMO.CARDXREF.VSAM.AIX), where one account may have many cards. It SHALL then define its access path (AWS.M2.CARDDEMO.CARDXREF.VSAM.AIX.PATH) and build the index from every cross-reference record, so cards can be found by account.
  • Cross-reference records: cards 4111111111111111 and 4111111111112222 both on account 00000000001 → The alternate index holds key 00000000001, which points to both card records
app/jcl/XREFFILE.jcl:66-102, app/cpy/CVACT03Y.cpy:4-8

Acceptance criteria

IDCriterionChecks
AC-01Given Existing cross-reference master: none
When Card Cross-Reference Master Load runs
Then The delete is ignored, and a new empty master keyed on card number is defined
REQ-F-009
Load card cross-reference master from flat file
worked example 1 of the rule
AC-02Given Flat file: 50 cross-reference records
When Card Cross-Reference Master Load runs
Then The master holds the same 50 records, keyed by card number
REQ-F-010
Load card cross-reference master from flat file
worked example 1 of the rule
AC-03Given Cross-reference records: cards 4111111111111111 and 4111111111112222 both on account 00000000001
When the card cross-reference master has been loaded from the flat file
Then The alternate index holds key 00000000001, which points to both card records
REQ-F-011
Build card cross-reference alternate index
worked example 1 of the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-310 At present the card cross-reference alternate index is built whenever the load does not end abnormally. Should the build be skipped when the load finishes with an error or warning status? (Batch operations team)
  • SME-311 When the card cross-reference file is loaded into the existing data store, what should happen to records already there (should they be absent, replaced or kept), and how should duplicate keys in the input file be handled? (Data migration team)

Design notes

  • The scheduled job drops or empties the cross-reference store and its by-account index, and it must succeed even if they do not exist yet. It then recreates the store with the 16-character card number as its unique primary key. Load card cross-reference master from flat file
  • A bulk import of every card cross-reference record from the extract file into the new store, keyed on card number. The loaded row count should be reconciled against the input file. Load card cross-reference master from flat file
  • After the load, create a non-unique secondary index on account ID over every cross-reference record. This supports the query 'all cards for account X', which can return many cards for one account. In a relational store, the index itself replaces the separate index and access-path objects of the old job. Build card cross-reference alternate index

Transaction Type Reference Data Maintenance

1. Batch maintenance of transaction typesdraft · scheduled job · 12 requirements · 13 rules · 16 criteria · 1 gap

A scheduled batch job lets reference data administrators add, update and delete transaction types from an input file. Each line holds a one-character action (A, U, D, or * for a comment), a two-character type code and a 50-character description. The job must never stop because one line is rejected: it reports each rejected line, keeps going, and ends with return code 4 if any line failed and 0 if none did.

As a reference data administrator, I want to add, update and delete transaction types from a batch input file, so that the transaction type table used to classify credit card transactions stays current.

Draft: the function is not signed off yet. Risk medium; touches updates_records. rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#1

Requirements

CodeClassRequirementCriteria
REQ-F-001business ruleThe system shall read each batch input record as a one-character action code (column 1), a two-character transaction type code (columns 2-3) and a 50-character description (columns 4-53), and shall apply 'A' as add, 'U' as update and 'D' as delete.AC-01, AC-02
REQ-F-002business ruleWhen an input record's action code is '*', the system shall treat the line as a comment, show 'IGNORING COMMENTED LINE' and change nothing.AC-03
REQ-F-003business ruleIf an input record's action code is anything other than 'A', 'U', 'D' or '*', then the system shall show 'ERROR: TYPE NOT VALID', set the job return code to 4, leave the table unchanged and continue with the next record.AC-04, AC-05
REQ-F-004business ruleWhen an input record has action 'A', the system shall add a transaction type with the record's two-character code and its description, and show 'RECORD INSERTED SUCCESSFULLY' when the database accepts it.AC-11
REQ-F-005error handlingIf the database rejects an add (for example because the type code already exists, DB2 code -803), then the system shall show 'Error accessing: TRANSACTION_TYPE table. SQLCODE:' with the database code, set the job return code to 4 and continue with the next record.AC-12
REQ-F-006business ruleWhen an input record has action 'U' and the transaction type code exists, the system shall replace that type's description with the record's description and show 'RECORD UPDATED SUCCESSFULLY'.AC-13
REQ-F-007error handlingIf an update or a delete names a transaction type code that does not exist, then the system shall show 'No records found.', set the job return code to 4 and continue with the next record.AC-06, AC-07
REQ-F-008error handlingIf the database returns an error on an update, then the system shall show 'Error accessing: TRANSACTION_TYPE table. SQLCODE:' with the database code, set the job return code to 4 and continue with the next record.AC-14
REQ-F-009business ruleWhen an input record has action 'D' and the transaction type exists with no categories referring to it, the system shall delete the type and show 'RECORD DELETED SUCCESSFULLY'.AC-08
REQ-F-010error handlingIf a delete names a transaction type that still has transaction type categories, then the system shall refuse the delete, show 'Error accessing: TRANSACTION_TYPE table. SQLCODE:' with the database code, set the job return code to 4 and continue.AC-15
REQ-F-011error handlingWhen any input record is rejected (invalid action code, type not found, or database error), the system shall keep processing the remaining records and end the job with return code 4, and otherwise shall end the job with return code 0.AC-09, AC-10
REQ-N-001formattingThe system shall show 'PROCESSING' followed by the input record for each record it reads, and 'OPEN FILE OK' or 'OPEN FILE NOT OK' when it opens the input file.AC-16

Business rules

RuleClassText, worked examples and evidence
Batch maintenance action code dispatch (Add / Update / Delete / Comment)
rec/group:claude/RULE-058/1
business rule
business, high
THE transaction type maintenance batch SHALL read each input record as a one-character action code (column 1), a two-character transaction type code (columns 2-3) and a 50-character description (columns 4-53), and SHALL apply 'A' as add, 'U' as update and 'D' as delete.
  • input record: A08Interest adjustment → 'ADDING RECORD' is shown and type '08' is added
  • input record: D08 → 'DELETING RECORD' is shown and the delete of type '08' is attempted
app/app-transaction-type-db2/cbl/COBTUPDT.cbl:71-77, app/app-transaction-type-db2/cbl/COBTUPDT.cbl:109-130, app/app-transaction-type-db2/cbl/COBTUPDT.cbl:230-233, app/app-transaction-type-db2/jcl/MNTTRDB2.jcl:8-18
Batch maintenance action code dispatch (Add / Update / Delete / Comment)
rec/group:claude/RULE-058/2
business rule
business, high
WHEN an input record's action code is '*', THE transaction type maintenance batch SHALL treat the line as a comment, show 'IGNORING COMMENTED LINE' and change nothing.
  • input record: *01Purchase → 'IGNORING COMMENTED LINE' is shown; the table is unchanged and the return code is not affected
app/app-transaction-type-db2/cbl/COBTUPDT.cbl:71-77, app/app-transaction-type-db2/cbl/COBTUPDT.cbl:109-130, app/app-transaction-type-db2/cbl/COBTUPDT.cbl:230-233, app/app-transaction-type-db2/jcl/MNTTRDB2.jcl:8-18
Reject unrecognized request types
rec/group:claude/RULE-058/3
business rule
validation, high
WHEN an input record's action code is anything other than 'A', 'U', 'D' or '*', THE transaction type maintenance batch SHALL show 'ERROR: TYPE NOT VALID', set the job return code to 4, leave the table unchanged and continue with the next record.
  • input record: X01Purchase → 'ERROR: TYPE NOT VALID' is shown, return code 4, nothing changed, the next record is still processed
  • input record: a01Purchase → lower-case 'a' is not accepted: 'ERROR: TYPE NOT VALID', return code 4
app/app-transaction-type-db2/cbl/COBTUPDT.cbl:71-77, app/app-transaction-type-db2/cbl/COBTUPDT.cbl:109-130, app/app-transaction-type-db2/cbl/COBTUPDT.cbl:230-233, app/app-transaction-type-db2/jcl/MNTTRDB2.jcl:8-18
Add a new transaction type
rec/group:claude/RULE-146/1
business rule
business, high
WHEN an input record has action 'A', THE transaction type maintenance batch SHALL add a transaction type with the record's two-character code and its description, and show 'RECORD INSERTED SUCCESSFULLY' when the database accepts it.
app/app-transaction-type-db2/cbl/COBTUPDT.cbl:132-164, app/app-transaction-type-db2/cbl/COBTUPDT.cbl:230-233, app/app-transaction-type-db2/ddl/TRNTYPE.ddl:1-4
Add a new transaction type
rec/group:claude/RULE-146/2
error handling
error_handling, high
WHEN the database rejects the add (for example because the type code already exists, DB2 code -803), THE transaction type maintenance batch SHALL show 'Error accessing: TRANSACTION_TYPE table. SQLCODE:' with the database code, set the job return code to 4 and continue with the next record.
app/app-transaction-type-db2/cbl/COBTUPDT.cbl:132-164, app/app-transaction-type-db2/cbl/COBTUPDT.cbl:230-233, app/app-transaction-type-db2/ddl/TRNTYPE.ddl:1-4
Update a transaction type description
rec/group:claude/RULE-147/1
business rule
business, high
WHEN an input record has action 'U' and the transaction type code exists, THE transaction type maintenance batch SHALL replace that type's description with the record's description and show 'RECORD UPDATED SUCCESSFULLY'.
app/app-transaction-type-db2/cbl/COBTUPDT.cbl:166-195, app/app-transaction-type-db2/cbl/COBTUPDT.cbl:230-233
Update a transaction type description
rec/group:claude/RULE-147/2
error handling
error_handling, high
WHEN an update names a transaction type code that does not exist, THE transaction type maintenance batch SHALL show 'No records found.', set the job return code to 4 and continue with the next record.
  • input record: U99New desc; type '99' exists: no → 'No records found.' is shown, return code 4, processing continues
app/app-transaction-type-db2/cbl/COBTUPDT.cbl:166-195, app/app-transaction-type-db2/cbl/COBTUPDT.cbl:230-233
Delete a transaction type
rec/group:claude/RULE-148/3
error handling
error_handling, high
WHEN a delete names a transaction type code that does not exist, THE transaction type maintenance batch SHALL show 'No records found.', set the job return code to 4 and continue with the next record.
  • input record: D99; type '99' exists: no → 'No records found.' is shown, return code 4
app/app-transaction-type-db2/cbl/COBTUPDT.cbl:196-226, app/app-transaction-type-db2/cbl/COBTUPDT.cbl:230-233, app/app-transaction-type-db2/ddl/TRNTYCAT.ddl:1-7
Update a transaction type description
rec/group:claude/RULE-147/3
error handling
error_handling, high
WHEN the database returns an error on an update, THE transaction type maintenance batch SHALL show 'Error accessing: TRANSACTION_TYPE table. SQLCODE:' with the database code, set the job return code to 4 and continue with the next record.
app/app-transaction-type-db2/cbl/COBTUPDT.cbl:166-195, app/app-transaction-type-db2/cbl/COBTUPDT.cbl:230-233
Delete a transaction type
rec/group:claude/RULE-148/1
business rule
business, high
WHEN an input record has action 'D' and the transaction type exists with no categories referring to it, THE transaction type maintenance batch SHALL delete the type and show 'RECORD DELETED SUCCESSFULLY'.
  • input record: D08; type '08' exists: yes; categories for '08': none → type '08' is removed; 'RECORD DELETED SUCCESSFULLY'
app/app-transaction-type-db2/cbl/COBTUPDT.cbl:196-226, app/app-transaction-type-db2/cbl/COBTUPDT.cbl:230-233, app/app-transaction-type-db2/ddl/TRNTYCAT.ddl:1-7
Delete a transaction type
rec/group:claude/RULE-148/2
error handling
error_handling, high
WHEN a delete names a transaction type that still has transaction type categories, THE database SHALL refuse the delete and THE transaction type maintenance batch SHALL show 'Error accessing: TRANSACTION_TYPE table. SQLCODE:' with the database code, set the job return code to 4 and continue.
app/app-transaction-type-db2/cbl/COBTUPDT.cbl:196-226, app/app-transaction-type-db2/cbl/COBTUPDT.cbl:230-233, app/app-transaction-type-db2/ddl/TRNTYCAT.ddl:1-7
Batch run outcome signalled by return code 4 on any rejected record
rec/claude:claude/RULE-202/1
error handling
error_handling, medium
WHEN any input record is rejected (invalid action code, type not found, or database error), THE transaction type maintenance batch SHALL keep processing the remaining records and end the job with return code 4; otherwise the job ends with return code 0.
  • record 1: A08Interest adjustment; record 2: X01Purchase; record 3: U01Retail purchase → records 1 and 3 are applied, 'ERROR: TYPE NOT VALID' is shown for record 2, the job ends with return code 4
  • record 1: U01Retail purchase; type '01' exists: yes → record applied, job ends with return code 0
app/app-transaction-type-db2/cbl/COBTUPDT.cbl:82-107, app/app-transaction-type-db2/cbl/COBTUPDT.cbl:230-236
Batch run outcome signalled by return code 4 on any rejected record
rec/claude:claude/RULE-202/2
formatting
display, medium
THE transaction type maintenance batch SHALL show 'PROCESSING' followed by the input record for each record it reads, and 'OPEN FILE OK' or 'OPEN FILE NOT OK' when it opens the input file.
app/app-transaction-type-db2/cbl/COBTUPDT.cbl:82-107, app/app-transaction-type-db2/cbl/COBTUPDT.cbl:230-236

Acceptance criteria

IDCriterionChecks
AC-01Given input record: A08Interest adjustment
When transaction type maintenance batch runs
Then 'ADDING RECORD' is shown and type '08' is added
REQ-F-001
Batch maintenance action code dispatch (Add / Update / Delete / Comment)
worked example 1 of the rule
AC-02Given input record: D08
When transaction type maintenance batch runs
Then 'DELETING RECORD' is shown and the delete of type '08' is attempted
REQ-F-001
Batch maintenance action code dispatch (Add / Update / Delete / Comment)
worked example 2 of the rule
AC-03Given input record: *01Purchase
When an input record's action code is '*'
Then 'IGNORING COMMENTED LINE' is shown; the table is unchanged and the return code is not affected
REQ-F-002
Batch maintenance action code dispatch (Add / Update / Delete / Comment)
worked example 1 of the rule
AC-04Given input record: X01Purchase
When an input record's action code is anything other than 'A', 'U', 'D' or '*'
Then 'ERROR: TYPE NOT VALID' is shown, return code 4, nothing changed, the next record is still processed
REQ-F-003
Reject unrecognized request types
worked example 1 of the rule
AC-05Given input record: a01Purchase
When an input record's action code is anything other than 'A', 'U', 'D' or '*'
Then lower-case 'a' is not accepted: 'ERROR: TYPE NOT VALID', return code 4
REQ-F-003
Reject unrecognized request types
worked example 2 of the rule
AC-06Given input record: U99New desc; type '99' exists: no
When an update names a transaction type code that does not exist
Then 'No records found.' is shown, return code 4, processing continues
REQ-F-007
Update a transaction type description
worked example 1 of the rule
AC-07Given input record: D99; type '99' exists: no
When a delete names a transaction type code that does not exist
Then 'No records found.' is shown, return code 4
REQ-F-007
Delete a transaction type
worked example 1 of the rule
AC-08Given input record: D08; type '08' exists: yes; categories for '08': none
When an input record has action 'D' and the transaction type exists with no categories referring to it
Then type '08' is removed; 'RECORD DELETED SUCCESSFULLY'
REQ-F-009
Delete a transaction type
worked example 1 of the rule
AC-09Given record 1: A08Interest adjustment; record 2: X01Purchase; record 3: U01Retail purchase
When any input record is rejected (invalid action code, type not found, or database error)
Then records 1 and 3 are applied, 'ERROR: TYPE NOT VALID' is shown for record 2, the job ends with return code 4
REQ-F-011
Batch run outcome signalled by return code 4 on any rejected record
worked example 1 of the rule
AC-10Given record 1: U01Retail purchase; type '01' exists: yes
When any input record is rejected (invalid action code, type not found, or database error)
Then record applied, job ends with return code 0
REQ-F-011
Batch run outcome signalled by return code 4 on any rejected record
worked example 2 of the rule
AC-11Given Transaction type code '99' does not exist in the transaction type table
When The batch processes the input record 'A99NEW TEST TYPE' (action 'A', code '99', description 'NEW TEST TYPE')
Then A transaction type with code '99' and description 'NEW TEST TYPE' exists in the table and the job shows 'RECORD INSERTED SUCCESSFULLY'
REQ-F-004
Add a new transaction type
written from the rule
AC-12Given Transaction type code '01' already exists in the transaction type table and another valid record follows in the input file
When The batch processes an input record with action 'A' and code '01'
Then The database rejects the add (duplicate key, DB2 code -803), the job shows 'Error accessing: TRANSACTION_TYPE table. SQLCODE:' followed by the database code, the existing type '01' is unchanged, the following record is still processed and the job ends with return code 4
REQ-F-005
Add a new transaction type
written from the rule
AC-13Given Transaction type code '01' exists with description 'Purchase'
When The batch processes an input record with action 'U', code '01' and description 'Retail Purchase'
Then The description of type '01' is 'Retail Purchase' and the job shows 'RECORD UPDATED SUCCESSFULLY'
REQ-F-006
Update a transaction type description
written from the rule
AC-14Given Transaction type code '01' exists, the database returns an error when it is updated, and another record follows in the input file
When The batch processes an input record with action 'U' and code '01'
Then The job shows 'Error accessing: TRANSACTION_TYPE table. SQLCODE:' followed by the database code, processes the following record and ends with return code 4
REQ-F-008
Update a transaction type description
written from the rule
AC-15Given Transaction type code '01' exists and at least one transaction type category refers to it
When The batch processes an input record with action 'D' and code '01'
Then The database refuses the delete, type '01' still exists, the job shows 'Error accessing: TRANSACTION_TYPE table. SQLCODE:' followed by the database code, continues with the next record and ends with return code 4
REQ-F-010
Delete a transaction type
written from the rule
AC-16Given An input file that can be opened and holds the two records 'A99NEW TEST TYPE' and '*COMMENT'
When The batch job runs
Then The job shows 'OPEN FILE OK', then 'PROCESSING' followed by 'A99NEW TEST TYPE', then 'PROCESSING' followed by '*COMMENT'; and when the input file cannot be opened the job shows 'OPEN FILE NOT OK'
REQ-N-001
Batch run outcome signalled by return code 4 on any rejected record
written from the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

Batch record outcome by action code

Action codeTransaction type code existsCategories refer to the typeDatabase accepts the changeBatch result for the recordRule
'*'---Show 'IGNORING COMMENTED LINE'; change nothingrec/group:claude/RULE-058/2
Other than 'A', 'U', 'D', '*'---Show 'ERROR: TYPE NOT VALID'; return code 4; table unchanged; continuerec/group:claude/RULE-058/3
'A'--YesAdd type; show 'RECORD INSERTED SUCCESSFULLY'rec/group:claude/RULE-146/1
'A'--No (e.g. code already exists, -803)Show 'Error accessing: TRANSACTION_TYPE table. SQLCODE:' with code; return code 4; continuerec/group:claude/RULE-146/2
'U'Yes-YesReplace description; show 'RECORD UPDATED SUCCESSFULLY'rec/group:claude/RULE-147/1
'U'No--Show 'No records found.'; return code 4; continuerec/group:claude/RULE-147/2
'U'--No (database error)Show 'Error accessing: TRANSACTION_TYPE table. SQLCODE:' with code; return code 4; continuerec/group:claude/RULE-147/3
'D'YesNoYesDelete type; show 'RECORD DELETED SUCCESSFULLY'rec/group:claude/RULE-148/1
'D'YesYesNo (refused)Show 'Error accessing: TRANSACTION_TYPE table. SQLCODE:' with code; return code 4; continuerec/group:claude/RULE-148/2
'D'No--Show 'No records found.'; return code 4; continuerec/group:claude/RULE-148/3
'D'YesNoNo (other database error)Gap: R1 says any database error gives return code 4, but no rule states the message shown when a delete fails for a reason other than referring categories.

Open questions

  • SME-090 In the transaction type maintenance batch, should comment records (type '*') be skipped without changing the transaction type table? (Business analyst)
  • SME-091 In the transaction type maintenance batch, what should be logged or confirmed when a new transaction type is added successfully? (Business analyst)
  • SME-092 The transaction type maintenance job is tied to database subsystem DAZ1 and application plan CARDDEMO. Should the new system keep these bindings, or treat them as deployment settings? (Platform team)
  • SME-093 When a request in the transaction type maintenance batch is rejected or the job ends abnormally, should the batch carry on and flag the problem (return code 4, earlier changes kept), or stop and roll back the whole batch? Which return code should each outcome give? (Batch operations lead)
  • SME-094 Please confirm the priority of the batch rule for adding a new transaction type. Is it critical to the system's core purpose, or a rule that would be costly if it were wrong? (Business SME (transaction type reference data))
  • SME-095 Should a transaction type also be protected from deletion while posted transactions still use it? Or is 'no transaction categories refer to it' the only check intended? (Business SME (transaction type reference data))
  • DEF-168 Is this intended? If the input file fails to open, the program only shows 'OPEN FILE NOT OK' and carries on into the read loop; reads on an unopened file never reach end of file, so the job can loop instead of stopping with an error. (Subject-matter expert)

Design notes

None.

2. Enter and leave the transaction type listdraft · online · 5 requirements · 8 rules · 11 criteria · 3 screens

Administrators reach the transaction type list from the admin menu (option 5) or come back to it from the add/change screen. Each time they arrive from elsewhere the list must start clean: no leftover filters, row selections or paging, showing page 1. Leaving the list must take them back to where they came from, or to the admin menu when there is no other caller.

As an administrator, I want the transaction type list to start fresh when I arrive and return me to where I came from when I leave, so that I always begin from a clean, predictable view.

Draft: the function is not signed off yet. Risk low; touches reporting_only. rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#2

Requirements

CodeClassRequirementCriteria
REQ-F-012business ruleWhen the transaction type list is entered from another program (such as option 5 of the admin menu), the system shall discard any earlier filters, row selections and paging position, start at the first page and treat the request as Enter.AC-01, AC-02, AC-03, AC-04
REQ-F-013business ruleWhen the operator returns to the list from the transaction type add/update screen (transaction 'CTTU') by pressing PF3, the system shall treat the key as Enter rather than exit and show the first page afresh, discarding previous filters, selections and paging.AC-01, AC-02, AC-05, AC-06
REQ-F-014design noteWhen the operator presses PF3 on the transaction type list, the system shall commit work and return to the program it was entered from, or to the admin menu (COADM01C, transaction 'CA00') when it was started directly or from itself.AC-07
REQ-F-015design noteWhen the transaction type list receives input from its own screen (caller data is present and the previous program was 'COTRTLIC'), the system shall read the screen and then check the row actions, the description filter, the type code filter and finally whether any records match the filters, in that order.AC-08, AC-09
REQ-F-016design noteWhen the first row of a page is read and the page number is still 0 (a fresh start of the list), the system shall set the page number to 1.AC-10, AC-11

Business rules

RuleClassText, worked examples and evidence
Start afresh from menu or add screen
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-67318d241e/1
business rule
business, medium
WHEN the list is newly entered from another program (such as the admin menu), or the user returns with PF3 from the add/update transaction 'CTTU', THE Transaction Type List SHALL discard its previous filters, selections and paging and show the first page as if Enter were pressed.
  • Coming from: Admin menu (COADM01C); Previous type filter: 05 → The filter is cleared and the first page of all types is shown.
  • Coming from transaction: CTTU; Key: PF3 → The list starts again on its first page instead of exiting.
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:544-554, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:870-878, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:51
Restart list on re-entry from another program
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-7975aef6ef/1
design note
technical, medium
WHEN the transaction type list is entered from another program (for example option 5 of the admin menu), THE transaction type list SHALL discard any earlier filters, row selections and paging position and show the first page of transaction types.
  • entered from: COADM01C → Page 1 of the transaction type list is shown with no filters
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:544-554, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:591-625, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:870-877, app/cbl/COADM01C.cbl:141-146, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:429-460
Start list afresh on entry from elsewhere
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-6916631f8f/1
design note
technical, medium
WHEN the list screen is first entered from another program (such as the admin menu), THE Transaction Type List screen SHALL drop any earlier filters and paging, start at the first page, and treat the request as Enter.
  • Came from: admin menu (COADM01C); Admin menu option: 5 → The list opens on the first page with no filters
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:544-554, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:51, app/cbl/COADM01C.cbl:141-148
Restart list on re-entry from another program
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-7975aef6ef/2
design note
technical, medium
WHEN the operator comes back from the transaction type add/update screen (transaction 'CTTU') by pressing PF3, THE transaction type list SHALL treat the key as Enter and show the first page afresh.
  • key: PF3; from transaction: CTTU → The list restarts at page 1 instead of exiting
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:544-554, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:591-625, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:870-877, app/cbl/COADM01C.cbl:141-146, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:429-460
Start list afresh on entry from elsewhere
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-6916631f8f/2
design note
technical, medium
WHEN the user presses F3 on the Transaction Type maintenance screen (transaction 'CTTU') and returns to the list, THE Transaction Type List screen SHALL start afresh on the first page and treat the key as Enter rather than exit.
  • Previous transaction: 'CTTU'; Key pressed: F3 → The list is shown from the first page; the user is not sent back to the menu
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:544-554, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:51, app/cbl/COADM01C.cbl:141-148
Restart list on re-entry from another program
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-7975aef6ef/3
design note
technical, medium
WHEN the operator presses PF3 on the transaction type list, THE transaction type list SHALL commit work and return to the program it was entered from, or to the admin menu (COADM01C, transaction 'CA00') when it was started directly or from itself.
  • key: PF3; entered from: COADM01C → Control passes to the admin menu
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:544-554, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:591-625, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:870-877, app/cbl/COADM01C.cbl:141-146, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:429-460
Process screen input on self re-entry
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-ee8e0f3905/1
design note
technical, medium
WHEN the transaction type list receives input from its own screen (caller data is present and the previous program was 'COTRTLIC'), THE transaction type list SHALL read the screen and then check the row actions, the description filter, the type code filter and finally whether any records match the filters, in that order.
  • previous program: COTRTLIC → Screen is read and all edits run
  • previous program: COADM01C → Screen is not read; the first page is shown
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:561-566, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:919-925, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:960-976
Number the first page on first row
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-21bb4ec7c7/1
design note
technical, medium
WHEN the first row of a page is read and the page number is still 0 (a fresh start of the list), THE transaction type list SHALL set the page number to 1.
  • page number: 0; first row read: 01 → Page number shown is 1
  • page number: 2; first row read: 08 → Page number stays 2
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1644-1653, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1318

Acceptance criteria

IDCriterionChecks
AC-01Given Coming from: Admin menu (COADM01C); Previous type filter: 05
When the list is newly entered from another program (such as the admin menu), or the user returns with PF3 from the add/update transaction 'CTTU'
Then The filter is cleared and the first page of all types is shown.
REQ-F-012, REQ-F-013
Start afresh from menu or add screen
worked example 1 of the rule
AC-02Given Coming from transaction: CTTU; Key: PF3
When the list is newly entered from another program (such as the admin menu), or the user returns with PF3 from the add/update transaction 'CTTU'
Then The list starts again on its first page instead of exiting.
REQ-F-012, REQ-F-013
Start afresh from menu or add screen
worked example 2 of the rule
AC-03Given entered from: COADM01C
When the transaction type list is entered from another program (for example option 5 of the admin menu)
Then Page 1 of the transaction type list is shown with no filters
REQ-F-012
Restart list on re-entry from another program
worked example 1 of the rule
AC-04Given Came from: admin menu (COADM01C); Admin menu option: 5
When the list screen is first entered from another program (such as the admin menu)
Then The list opens on the first page with no filters
REQ-F-012
Start list afresh on entry from elsewhere
worked example 1 of the rule
AC-05Given key: PF3; from transaction: CTTU
When the operator comes back from the transaction type add/update screen (transaction 'CTTU') by pressing PF3
Then The list restarts at page 1 instead of exiting
REQ-F-013
Restart list on re-entry from another program
worked example 1 of the rule
AC-06Given Previous transaction: 'CTTU'; Key pressed: F3
When the user presses F3 on the Transaction Type maintenance screen (transaction 'CTTU') and returns to the list
Then The list is shown from the first page; the user is not sent back to the menu
REQ-F-013
Start list afresh on entry from elsewhere
worked example 1 of the rule
AC-07Given key: PF3; entered from: COADM01C
When the operator presses PF3 on the transaction type list
Then Control passes to the admin menu
REQ-F-014
Restart list on re-entry from another program
worked example 1 of the rule
AC-08Given previous program: COTRTLIC
When the transaction type list receives input from its own screen (caller data is present and the previous program was 'COTRTLIC')
Then Screen is read and all edits run
REQ-F-015
Process screen input on self re-entry
worked example 1 of the rule
AC-09Given previous program: COADM01C
When the transaction type list receives input from its own screen (caller data is present and the previous program was 'COTRTLIC')
Then Screen is not read; the first page is shown
REQ-F-015
Process screen input on self re-entry
worked example 2 of the rule
AC-10Given page number: 0; first row read: 01
When the first row of a page is read and the page number is still 0 (a fresh start of the list)
Then Page number shown is 1
REQ-F-016
Number the first page on first row
worked example 1 of the rule
AC-11Given page number: 2; first row read: 08
When the first row of a page is read and the page number is still 0 (a fresh start of the list)
Then Page number stays 2
REQ-F-016
Number the first page on first row
worked example 2 of the rule

Screens

Data contracts

COCOM01Y (working storage; COTRTLIC), COTTL01Y (working storage; COTRTLIC), CSDAT01Y (working storage; COTRTLIC), CSDB2RPY (working storage; COTRTLIC), CSDB2RWY (working storage; COTRTLIC), CSMSG01Y (working storage; COTRTLIC), CSSTRPFY (working storage; COTRTLIC), CSUSR01Y (working storage; COTRTLIC), CVACT02Y (working storage; COTRTLIC), CVCRD01Y (working storage; COTRTLIC)

Decision tables

None.

Open questions

  • SME-182 On the transaction-type list, PF3 is described three ways: go to the destination program and end the list; restart the list on the first page when returning from the add/update screen; and clear everything and show the list from the start. Which applies in which situation, and which takes precedence? (Business analyst)
  • SME-183 The transaction-type code filter's error message says 'MUST BE A 2 DIGIT NUMBER', but the system only checks that the value is numeric. Should numbers that are not exactly 2 digits be refused? (Reference data product owner)
  • SME-186 When counting transaction types fails, what diagnostic details should the operator see, and does the failure end the session on that screen? (Reference data product owner)
  • SME-187 When one submission on the transaction-type list has several errors (an invalid action code, more than one action, or missing required text), which message should the operator see first? (Business analyst)
  • SME-188 The error message 'Error reading TRANSACTION_TYPE table ' ends with a space. Does that trailing space matter in the message shown to the operator? (Business analyst)
  • DEF-131 Is this intended? The EVALUATE branch for PF3 or re-entry from another program (lines 738-762) can never run: PF3 always leaves the program or is converted to Enter earlier, and no caller passes the 're-enter' context from another program. (Subject-matter expert)

Design notes

  • The list keeps per-user view state (filters, selected row, page number, first and last code on the page). When the user navigates to the list from any other screen, that state must be reset, not restored, and the first page loaded. Restart list on re-entry from another program
  • Opening the list from another screen is handled exactly like a plain refresh (Enter): clear filters and paging and load page 1 from the lowest type code. A route or entry parameter telling the list it was opened fresh is enough; no previous view state is carried over. Start list afresh on entry from elsewhere
  • Coming back from the add/change transaction type screen via its Back/Exit action counts as a fresh entry to the list: the list must not interpret it as its own exit, and must load page 1 with no filters. Restart list on re-entry from another program
  • Same as returning from the add/change screen: the back navigation lands on a freshly reset list (page 1, no filters, no selection); any earlier list state is discarded rather than restored. Start list afresh on entry from elsewhere
  • Exit from the list finishes any open unit of work (commit) and navigates back to the screen that opened it; if it was opened directly or there is no recorded caller other than itself, navigate to the admin menu. The navigation needs a recorded 'return to' target in the user's session. Restart list on re-entry from another program
  • When the list form is submitted, the server reads the submitted form and validates in a fixed order: row actions, then the description filter, then the type code filter, then a count of records matching the filters. Keep this order, since it decides which error message the user sees first. Process screen input on self re-entry
  • Page numbers start at 1: when the first page is loaded on a fresh start, the page number in the view state is set to 1, not left at 0. Number the first page on first row
3. Page through transaction typesdraft · online · 15 requirements · 16 rules · 21 criteria · 1 screen · 2 gaps

Administrators page forwards and backwards through transaction types seven at a time, in ascending type-code order, limited to any accepted filters. The list must never skip or repeat a type when paging, and must tell the user plainly when there are no more pages, no previous pages, or no records.

As an administrator, I want to page forwards and backwards through the transaction types, seven at a time, so that I can review every type in code order.

Draft: the function is not signed off yet. Risk low; touches reporting_only. rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#3

Requirements

CodeClassRequirementCriteria
REQ-F-017formattingThe system shall show at most 7 transaction types per page in ascending type-code order, limited to the type-code filter and the description pattern only when each filter has been accepted (type filter flag and description filter flag = '1').AC-01, AC-02
REQ-F-018business ruleWhen a page has been filled with 7 types and another matching type follows, the system shall record that a next page exists (next-page indicator 'Y') and keep that following type code as the start of the next page.AC-03
REQ-F-019business ruleWhen the database has no more matching transaction types before 7 rows are filled, the system shall stop reading and record that no next page exists.AC-04, AC-05, AC-06
REQ-F-020business ruleWhen the user presses F8 and a next page exists, the system shall show the page starting at the stored next type code (type code >= that code), add 1 to the page number and clear any row selections.AC-07
REQ-F-021business ruleWhen the matching transaction types run out after the operator pressed F8 and no other message is pending, the system shall show 'No more pages for these search conditions'.AC-05, AC-06, AC-08
REQ-F-022formattingWhen the operator presses PF8 and there is no further page and the last page had not already been shown, the system shall show the information message 'Type U to update, D to delete any record' and remember that the last page has now been shown.AC-09
REQ-F-023formattingWhen the user presses F8 again after the last page has already been shown, the system shall show the same page again with the message 'No more pages to display'.AC-10
REQ-F-024business ruleWhen the user presses F7 and the list is not on the first page, the system shall show the 7 matching types just before the current page's first code, in ascending order, subtract 1 from the page number, clear row selections and mark that a next page exists.AC-11
REQ-F-025formattingWhen the user presses F7 on the first page and there are no input errors, the system shall show the first page again from its first type code with the message 'No previous pages to display'.AC-12
REQ-F-026formattingWhen the operator presses PF7 and the page shown afterwards is page 1 (because page 1 was already shown, or because the list paged back from page 2), the system shall show 'No previous pages to display', unless a filter error or a completed delete or update message takes precedence.AC-13, AC-14
REQ-F-027formattingWhen the list is on page 1 and no transaction type is read, the system shall show 'No records found for this search condition.'.AC-15
REQ-F-028formattingWhen no input error, page up, page down, exit, or delete or update request applies, the system shall re-read the current page starting from its first type code and show it.AC-16, AC-17
REQ-F-029formattingWhen no delete or update outcome, filter error, delete or update prompt, or paging message applies, and either no informational message is set or another page exists, the system shall show the message 'Type U to update, D to delete any record'.AC-18, AC-19
REQ-F-030error handlingIf the database cannot open or read the forward list of transaction types, then the system shall show an empty or partly filled page and a database error message naming the failed step.AC-20
REQ-F-031error handlingIf a previous-page read stops before all 7 rows are filled, because fewer than 7 earlier types match or the database fails, then the system shall stop reading and report a database error ('Error on fetch Cursor C-TR-TYPE-BACKWARD').AC-21

Business rules

RuleClassText, worked examples and evidence
Start filtered forward page retrieval
rec/group:claude/RULE-014/1
formatting
display, high
THE transaction type list SHALL show at most 7 transaction types per page in ascending type-code order, limited to the type-code filter and the description pattern only when each filter has been accepted (type filter flag and description filter flag = '1').
  • Transaction types on file: 01 to 10; Filters: none → Page 1 shows types 01 to 07 in that order
  • Type code filter: 03 (accepted) → Only type 03 is listed
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:60, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:338-368, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:657-661, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:721-790, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:870-878, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1532-1549
Confirm next page when page is full
rec/group:claude/RULE-014/2
business rule
business, high
WHEN a page has been filled with 7 types and another matching type follows, THE transaction type list SHALL record that a next page exists (next-page indicator 'Y') and keep that following type code as the start of the next page.
  • Transaction types on file: 01 to 10; Page shown: 01 to 07 → A next page exists and it will start at type 08
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:60, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:338-368, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:657-661, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:721-790, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:870-878, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1532-1549
Handle end of transaction type data
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-6573387abe/1
design note
technical, medium
WHEN the database has no more matching transaction types before 7 rows are filled, THE transaction type list SHALL stop reading and record that no next page exists.
  • matching types left: 4 → 4 rows shown; no next page
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1694-1705, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:253-256, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1644-1648
Flag no next page after full page
rec/group:claude/RULE-014/4
business rule
business, high
WHEN a forward page read runs out of matching types, THE transaction type list SHALL record that no next page exists and, if the user pressed F8 and no other message is waiting, show 'No more pages for these search conditions'.
  • Transaction types on file: 01 to 10; Key: F8 from page 1 → Page 2 shows 08 to 10, no next page exists, message 'No more pages for these search conditions'
  • Transaction types on file: 01 to 14; Key: F8 from page 1 → Page 2 shows 08 to 14 and no next page exists, because the look-ahead read found nothing after 14
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:60, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:338-368, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:657-661, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:721-790, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:870-878, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1532-1549
Page down to next page
rec/group:claude/RULE-014/3
business rule
business, high
WHEN the user presses F8 and a next page exists, THE transaction type list SHALL show the page starting at the stored next type code (type code >= that code), add 1 to the page number and clear any row selections.
  • Transaction types on file: 01 to 10; Current page: 1 (01 to 07); Key: F8 → Page 2 shows types 08 to 10
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:60, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:338-368, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:657-661, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:721-790, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:870-878, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1532-1549
Handle end of transaction type data
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-6573387abe/2
formatting
display, medium
WHEN the matching transaction types run out after the operator pressed PF8 and no other message is pending, THE transaction type list SHALL show 'No more pages for these search conditions'.
  • key: PF8; rows on new page: 3 → Message 'No more pages for these search conditions'
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1694-1705, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:253-256, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1644-1648
Invite row actions on final page
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-c90447aad2/1
formatting
display, medium
WHEN the operator presses PF8 and there is no further page and the last page had not already been shown, THE transaction type list SHALL show the information message 'Type U to update, D to delete any record' and remember that the last page has now been shown.
  • key: PF8; next page: none; last page shown before: no → Information line shows 'Type U to update, D to delete any record'; a further PF8 gives 'No more pages to display'
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1536-1549, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1320, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:655-661, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:239-240
Report no more pages
rec/group:claude/RULE-014/5
formatting
display, high
WHEN the user presses F8 again after the last page has already been shown, THE transaction type list SHALL show the same page again with the message 'No more pages to display'.
  • Current page: last page, 08 to 10; Key: F8 → Types 08 to 10 are shown again with 'No more pages to display'
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:60, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:338-368, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:657-661, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:721-790, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:870-878, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1532-1549
Page up to previous page
rec/group:claude/RULE-014/6
business rule
business, high
WHEN the user presses F7 and the list is not on the first page, THE transaction type list SHALL show the 7 matching types just before the current page's first code, in ascending order, subtract 1 from the page number, clear row selections and mark that a next page exists.
  • Current page: 2 (08 to 10); Key: F7 → Page 1 shows 01 to 07, and a later F8 starts again at 08
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:60, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:338-368, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:657-661, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:721-790, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:870-878, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1532-1549
Handle page up on first page
rec/group:claude/RULE-014/7
formatting
display, high
WHEN the user presses F7 on the first page and there are no input errors, THE transaction type list SHALL show the first page again from its first type code with the message 'No previous pages to display'.
  • Current page: 1 (01 to 07); Key: F7 → Types 01 to 07 are shown again with 'No previous pages to display'
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:60, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:338-368, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:657-661, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:721-790, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:870-878, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1532-1549
Report no previous pages
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-83ffae11d3/1
formatting
display, medium
WHEN the operator presses PF7 and the page shown afterwards is page 1 (because page 1 was already shown, or because the list paged back from page 2), THE transaction type list SHALL show 'No previous pages to display', unless a filter error or a completed delete or update message takes precedence.
  • key: PF7; page shown: 1 → Page 1 is redisplayed with 'No previous pages to display'
  • key: PF7; page shown: 2 → Page 1 is shown, also with 'No previous pages to display'
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1532-1535, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:721-734, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:780-790, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:403-404, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1506-1513
Handle end of transaction type data
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-6573387abe/3
formatting
display, medium
WHEN the list is on page 1 and no transaction type is read, THE transaction type list SHALL show 'No records found for this search condition.'.
  • page number: 1; rows read: 0 → Message 'No records found for this search condition.'
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1694-1705, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:253-256, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1644-1648
Show current page by default
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-09d138b2f6/1
formatting
display, medium
WHEN no input error, page up, page down, exit, or delete or update request applies, THE Transaction Type List screen SHALL re-read the current page starting from its first type code and show it.
  • Key pressed: Enter; Rows marked: none; First type code on page: 01 → The page starting at type 01 is shown again
  • Key pressed: an unsupported key, treated as Enter → The current page is shown again
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:870-878, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:574-587
Invite row actions by default
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-a75a8d8a80/1
formatting
display, medium
WHEN no delete or update outcome, filter error, delete or update prompt, or paging message applies, and either no informational message is set or another page exists, THE Transaction Type List screen SHALL show the message 'Type U to update, D to delete any record'.
  • Key pressed: Enter; Rows marked: none → The screen shows 'Type U to update, D to delete any record'
  • Key pressed: F8; More pages: yes → The next page is shown with 'Type U to update, D to delete any record'
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1504-1555, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:237-240, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1274-1286
Start filtered forward page retrieval
rec/group:claude/RULE-014/8
error handling
error_handling, high
WHEN the database cannot open or read the forward list of transaction types, THE transaction type list SHALL show an empty or partly filled page and a database error message naming the failed step.
  • Database open of the list: fails → No rows are shown and a database error message for 'C-TR-TYPE-FORWARD Open' is displayed
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:60, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:338-368, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:657-661, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:721-790, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:870-878, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1532-1549
Fill previous page rows bottom-up
rec/group:claude/RULE-014/9
error handling
error_handling, high
WHEN a previous-page read stops before all 7 rows are filled, because fewer than 7 earlier types match or the database fails, THE transaction type list SHALL stop reading and report a database error ('Error on fetch Cursor C-TR-TYPE-BACKWARD').
  • Current page: 2; Matching types before the page's first code: 4; Key: F7 → Rows 7 to 4 are filled, and the screen reports a database error instead of the normal message
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:60, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:338-368, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:657-661, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:721-790, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:870-878, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1532-1549

Acceptance criteria

IDCriterionChecks
AC-01Given Transaction types on file: 01 to 10; Filters: none
When transaction type list runs
Then Page 1 shows types 01 to 07 in that order
REQ-F-017
Start filtered forward page retrieval
worked example 1 of the rule
AC-02Given Type code filter: 03 (accepted)
When transaction type list runs
Then Only type 03 is listed
REQ-F-017
Start filtered forward page retrieval
worked example 2 of the rule
AC-03Given Transaction types on file: 01 to 10; Page shown: 01 to 07
When a page has been filled with 7 types and another matching type follows
Then A next page exists and it will start at type 08
REQ-F-018
Confirm next page when page is full
worked example 1 of the rule
AC-04Given matching types left: 4
When the database has no more matching transaction types before 7 rows are filled
Then 4 rows shown; no next page
REQ-F-019
Handle end of transaction type data
worked example 1 of the rule
AC-05Given Transaction types on file: 01 to 10; Key: F8 from page 1
When a forward page read runs out of matching types
Then Page 2 shows 08 to 10, no next page exists, message 'No more pages for these search conditions'
REQ-F-019, REQ-F-021
Flag no next page after full page
worked example 1 of the rule
AC-06Given Transaction types on file: 01 to 14; Key: F8 from page 1
When a forward page read runs out of matching types
Then Page 2 shows 08 to 14 and no next page exists, because the look-ahead read found nothing after 14
REQ-F-019, REQ-F-021
Flag no next page after full page
worked example 2 of the rule
AC-07Given Transaction types on file: 01 to 10; Current page: 1 (01 to 07); Key: F8
When the user presses F8 and a next page exists
Then Page 2 shows types 08 to 10
REQ-F-020
Page down to next page
worked example 1 of the rule
AC-08Given key: PF8; rows on new page: 3
When the matching transaction types run out after the operator pressed PF8 and no other message is pending
Then Message 'No more pages for these search conditions'
REQ-F-021
Handle end of transaction type data
worked example 1 of the rule
AC-09Given key: PF8; next page: none; last page shown before: no
When the operator presses PF8 and there is no further page and the last page had not already been shown
Then Information line shows 'Type U to update, D to delete any record'; a further PF8 gives 'No more pages to display'
REQ-F-022
Invite row actions on final page
worked example 1 of the rule
AC-10Given Current page: last page, 08 to 10; Key: F8
When the user presses F8 again after the last page has already been shown
Then Types 08 to 10 are shown again with 'No more pages to display'
REQ-F-023
Report no more pages
worked example 1 of the rule
AC-11Given Current page: 2 (08 to 10); Key: F7
When the user presses F7 and the list is not on the first page
Then Page 1 shows 01 to 07, and a later F8 starts again at 08
REQ-F-024
Page up to previous page
worked example 1 of the rule
AC-12Given Current page: 1 (01 to 07); Key: F7
When the user presses F7 on the first page and there are no input errors
Then Types 01 to 07 are shown again with 'No previous pages to display'
REQ-F-025
Handle page up on first page
worked example 1 of the rule
AC-13Given key: PF7; page shown: 1
When the operator presses PF7 and the page shown afterwards is page 1 (because page 1 was already shown, or because the list paged back from page 2)
Then Page 1 is redisplayed with 'No previous pages to display'
REQ-F-026
Report no previous pages
worked example 1 of the rule
AC-14Given key: PF7; page shown: 2
When the operator presses PF7 and the page shown afterwards is page 1 (because page 1 was already shown, or because the list paged back from page 2)
Then Page 1 is shown, also with 'No previous pages to display'
REQ-F-026
Report no previous pages
worked example 2 of the rule
AC-15Given page number: 1; rows read: 0
When the list is on page 1 and no transaction type is read
Then Message 'No records found for this search condition.'
REQ-F-027
Handle end of transaction type data
worked example 1 of the rule
AC-16Given Key pressed: Enter; Rows marked: none; First type code on page: 01
When no input error, page up, page down, exit, or delete or update request applies
Then The page starting at type 01 is shown again
REQ-F-028
Show current page by default
worked example 1 of the rule
AC-17Given Key pressed: an unsupported key, treated as Enter
When no input error, page up, page down, exit, or delete or update request applies
Then The current page is shown again
REQ-F-028
Show current page by default
worked example 2 of the rule
AC-18Given Key pressed: Enter; Rows marked: none
When no delete or update outcome, filter error, delete or update prompt, or paging message applies, and either no informational message is set or another page exists
Then The screen shows 'Type U to update, D to delete any record'
REQ-F-029
Invite row actions by default
worked example 1 of the rule
AC-19Given Key pressed: F8; More pages: yes
When no delete or update outcome, filter error, delete or update prompt, or paging message applies, and either no informational message is set or another page exists
Then The next page is shown with 'Type U to update, D to delete any record'
REQ-F-029
Invite row actions by default
worked example 2 of the rule
AC-20Given Database open of the list: fails
When the database cannot open or read the forward list of transaction types
Then No rows are shown and a database error message for 'C-TR-TYPE-FORWARD Open' is displayed
REQ-F-030
Start filtered forward page retrieval
worked example 1 of the rule
AC-21Given Current page: 2; Matching types before the page's first code: 4; Key: F7
When a previous-page read stops before all 7 rows are filled, because fewer than 7 earlier types match or the database fails
Then Rows 7 to 4 are filled, and the screen reports a database error instead of the normal message
REQ-F-031
Fill previous page rows bottom-up
worked example 1 of the rule

Screens

  • Transaction types S-TRANTYPE-LIST · design · replaces CTRTLIA (4 kept, 42 merged, 1 split)
    • **data table** Transaction types checks: In-place description: 'Transaction Desc must be supplied. Enter a description.' or 'Transaction Desc can have numbers or alphabets only. Remove other characters.'; unchanged: 'No change detected with respect to values fetched.' Row actions replace action codes, so 'Action code selected is invalid' and 'Please select only 1 action' cannot occur. If a filter or the row changes while a dialog is open, the dialog closes and nothing changes.

Data contracts

COCOM01Y (working storage; COTRTLIC), COTTL01Y (working storage; COTRTLIC), CSDAT01Y (working storage; COTRTLIC), CSDB2RPY (working storage; COTRTLIC), CSDB2RWY (working storage; COTRTLIC), CSMSG01Y (working storage; COTRTLIC), CSSTRPFY (working storage; COTRTLIC), CSUSR01Y (working storage; COTRTLIC), CVACT02Y (working storage; COTRTLIC), CVCRD01Y (working storage; COTRTLIC)

Decision tables

Paging key outcome

Key pressedOn first pageNext page existsLast page already shownPage and message shownRule
F8-Yes-Show page from stored next type code; page number + 1; clear row selectionsrec/group:claude/RULE-014/3
F8-No (types run out while reading)-Record no next page; show 'No more pages for these search conditions' if no other message pendingrec/group:claude/RULE-014/4
F8-NoNoShow 'Type U to update, D to delete any record'; remember last page shownrec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-c90447aad2/1
F8-NoYesShow same page again with 'No more pages to display'rec/group:claude/RULE-014/5
F7No--Show the 7 types before current first code; page number - 1; clear selections; mark next page existsrec/group:claude/RULE-014/6
F7Yes--Show first page again with 'No previous pages to display' (if no input errors)rec/group:claude/RULE-014/7
F8-NoNoGap: R16 and R22/R46 both apply when F8 reaches the end for the first time: rules do not settle whether 'Type U to update, D to delete any record' or 'No more pages for these search conditions' is shown.
F7Yes--Gap: R49 applies only with no input errors; no rule states the page shown on F7 from the first page when an input error exists beyond R30/R31's general redisplay.

Open questions

  • SME-189 Could the transaction-type table ever need more than 9 pages (63 or more types)? When paging back gives fewer than 7 types, how should that page be shown? (Business SME (transaction type reference data))
  • DEF-006 Is this intended? On F7, the backward read treats running out of earlier records (end of data) as a database error. The program then shows a Db2 error message and a part-filled page instead of a short first page. It does this when fewer than 7 matching types come before the current page, for example after another user deletes types. The backward read also does not check whether the list failed to open. (Subject-matter expert)
  • DEF-132 Is this intended? The page number only becomes 1 when a first row is read, so when nothing at all is read on a fresh start the page number is still 0 and the 'No records found for this search condition.' message is not given. (Subject-matter expert)
  • DEF-133 Is this intended? Paging back from page 2 to page 1 with PF7 succeeds but still shows 'No previous pages to display', because the page number is decremented before the message is chosen. (Subject-matter expert)

Design notes

  • Page queries read in type-code order from the page's start code with a limit (fetching one extra row, e.g. 8, is a simple way to know whether a next page exists). If fewer rows come back than the page holds, stop and record that there is no next page. Handle end of transaction type data
4. Filter the transaction type listdraft · online · 9 requirements · 10 rules · 12 criteria · 1 screen · 2 gaps

Administrators narrow the transaction type list by an exact two-digit type code and/or by text the description contains. A blank, zero or '00' type code means no filter; a non-numeric one is rejected with a clear message. Changing a filter must restart paging from page 1 and must never let a pending update or delete go through against a different result set.

As an administrator, I want to filter the transaction type list by type code and by description text, so that I can find the types I need quickly.

Draft: the function is not signed off yet. Risk low; touches reporting_only. rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#4

Requirements

CodeClassRequirementCriteria
REQ-F-032business ruleWhen the type code filter is blank, empty (low-values), zeros or '00', the system shall treat it as not supplied and list all type codes, with no error.AC-01, AC-02, AC-03
REQ-F-033business ruleWhen a numeric type code filter is entered, the system shall list only the transaction type with that code.AC-04
REQ-F-034business ruleIf a type code filter is entered and is not numeric, then the system shall reject it with 'TYPE CODE FILTER,IF SUPPLIED MUST BE A 2 DIGIT NUMBER', show the filter in red with the cursor on it, lock the row selection fields and not re-read the list.AC-05
REQ-F-035design noteWhen the entered type code filter differs from the one last used, the system shall reset paging to the start, remember the new filter, and mark the filter as changed so that a pending F10 confirmation is treated as Enter.AC-06
REQ-F-036design noteWhen the entered type code filter equals the one last used, or both the entered and the previous filter are empty, the system shall keep the current paging and mark the filter as unchanged.AC-07, AC-08
REQ-F-037business ruleWhen the description filter is left blank, the system shall apply no description filter, so the list, paging and record count include every description.AC-09
REQ-F-038business ruleWhen a description filter is entered, the system shall list, page and count only transaction types whose description contains the entered text (trimmed and wrapped in '%' for a contains match).AC-12
REQ-F-039business ruleWhen the description filter entered differs from the one used for the previous screen (blank and blank count as the same), the system shall restart paging from the first page, remember the new filter and ignore any row actions entered on that screen.AC-10
REQ-F-040formattingWhen no delete or update has just completed and the type code filter or the description filter is in error, the system shall show no information message, so that only the filter error message (for example 'TYPE CODE FILTER,IF SUPPLIED MUST BE A 2 DIGIT NUMBER' or 'No Records found for these filter conditions') is shown.AC-11

Business rules

RuleClassText, worked examples and evidence
Treat blank type code filter as none
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-2f602f3092/1
business rule
validation, medium
WHEN the type code filter is blank, empty (low-values) or zeros, THE Transaction Type List screen SHALL treat it as not supplied and list all type codes, with no error.
  • Type code filter: blank → No type filter is applied
  • Type code filter: 00 → Treated as not supplied; no type filter is applied
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1096-1107
Type code filter must be a 2-digit number
rec/group:claude/RULE-060/3
business rule
business, high
WHEN the type code filter is left blank or entered as '00', THE Transaction Type List SHALL apply no type code filter.
  • Type code filter: 00 → All transaction types are listed (subject to any description filter).
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1096-1123, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1125-1137, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:699-720, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1477-1480, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1339-1341, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:338-352
Validate numeric type code filter
rec/group:claude/RULE-060/2
business rule
business, high
WHEN a numeric type code filter is entered, THE Transaction Type List SHALL list only the transaction type with that code.
  • Type code filter: 05; Key: Enter → Only type 05 is listed.
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1096-1123, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1125-1137, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:699-720, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1477-1480, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1339-1341, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:338-352
Validate numeric type code filter
rec/group:claude/RULE-060/1
business rule
validation, high
WHEN a type code filter is entered and is not numeric, THE Transaction Type List SHALL reject it with 'TYPE CODE FILTER,IF SUPPLIED MUST BE A 2 DIGIT NUMBER', show the filter in red with the cursor on it, lock the row selection fields and not re-read the list.
  • Type code filter: A1; Key: Enter → Message 'TYPE CODE FILTER,IF SUPPLIED MUST BE A 2 DIGIT NUMBER'; filter shown in red; row selection locked.
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1096-1123, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1125-1137, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:699-720, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1477-1480, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1339-1341, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:338-352
Restart paging when type filter changes
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-c6c37c526a/1
design note
technical, medium
WHEN the entered type code filter differs from the one last used, THE Transaction Type List screen SHALL reset paging to the start, remember the new filter, and mark the filter as changed (so a pending F10 confirmation is treated as Enter).
  • Previous type filter: 01; Entered type filter: 05 → Paging restarts and the filter is marked changed
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1125-1137, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:666-677, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:960-971
Restart paging when type filter changes
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-c6c37c526a/2
design note
technical, medium
WHEN the entered type code filter equals the one last used, or both the entered and the previous filter are empty, THE Transaction Type List screen SHALL keep the current paging and mark the filter as unchanged.
  • Previous type filter: 01; Entered type filter: 01 → Paging is kept; the filter is unchanged
  • Previous type filter: blank; Entered type filter: blank → Paging is kept; the filter is unchanged
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1125-1137, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:666-677, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:960-971
Treat blank description as no filter
rec/group:claude/RULE-013/1
business rule
business, high
WHEN the description filter is left blank, THE Transaction Type List screen SHALL apply no description filter, so the list, paging and record count include every description.
  • Description filter: (blank) → All transaction types are listed, subject to any type code filter
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1142-1178, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:107-110, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:338-368, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1801-1815
Build wildcard description filter
rec/group:claude/RULE-013/2
business rule
business, high
WHEN a description filter is entered, THE Transaction Type List screen SHALL list, page and count only transaction types whose description contains the entered text (trimmed and wrapped in '%' for a contains match).
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1142-1178, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:107-110, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:338-368, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1801-1815
Restart paging when description filter changes
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-78df2497d0/1
business rule
business, medium
WHEN the description filter entered differs from the one used for the previous screen (blank and blank count as the same), THE transaction type list SHALL restart paging from the first page, remember the new filter and ignore any row actions entered on that screen.
  • previous description filter: Pay; new description filter: Pay → Paging position is kept
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1165-1175, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:991-994, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:397-410
Suppress info message on filter error
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-d84c28d095/1
formatting
display, medium
WHEN no delete or update has just completed and the type code filter or the description filter is in error, THE transaction type list SHALL show no information message, so that only the filter error message (for example 'TYPE CODE FILTER,IF SUPPLIED MUST BE A 2 DIGIT NUMBER' or 'No Records found for these filter conditions') is shown.
  • type code filter: AB → Error 'TYPE CODE FILTER,IF SUPPLIED MUST BE A 2 DIGIT NUMBER' with a blank information line
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1506-1513, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1575-1578, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1111-1118, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1251-1266

Acceptance criteria

IDCriterionChecks
AC-01Given Type code filter: blank
When the type code filter is blank, empty (low-values) or zeros
Then No type filter is applied
REQ-F-032
Treat blank type code filter as none
worked example 1 of the rule
AC-02Given Type code filter: 00
When the type code filter is blank, empty (low-values) or zeros
Then Treated as not supplied; no type filter is applied
REQ-F-032
Treat blank type code filter as none
worked example 2 of the rule
AC-03Given Type code filter: 00
When the type code filter is left blank or entered as '00'
Then All transaction types are listed (subject to any description filter).
REQ-F-032
Type code filter must be a 2-digit number
worked example 1 of the rule
AC-04Given Type code filter: 05; Key: Enter
When a numeric type code filter is entered
Then Only type 05 is listed.
REQ-F-033
Validate numeric type code filter
worked example 1 of the rule
AC-05Given Type code filter: A1; Key: Enter
When a type code filter is entered and is not numeric
Then Message 'TYPE CODE FILTER,IF SUPPLIED MUST BE A 2 DIGIT NUMBER'; filter shown in red; row selection locked.
REQ-F-034
Validate numeric type code filter
worked example 1 of the rule
AC-06Given Previous type filter: 01; Entered type filter: 05
When the entered type code filter differs from the one last used
Then Paging restarts and the filter is marked changed
REQ-F-035
Restart paging when type filter changes
worked example 1 of the rule
AC-07Given Previous type filter: 01; Entered type filter: 01
When the entered type code filter equals the one last used, or both the entered and the previous filter are empty
Then Paging is kept; the filter is unchanged
REQ-F-036
Restart paging when type filter changes
worked example 1 of the rule
AC-08Given Previous type filter: blank; Entered type filter: blank
When the entered type code filter equals the one last used, or both the entered and the previous filter are empty
Then Paging is kept; the filter is unchanged
REQ-F-036
Restart paging when type filter changes
worked example 2 of the rule
AC-09Given Description filter: (blank)
When the description filter is left blank
Then All transaction types are listed, subject to any type code filter
REQ-F-037
Treat blank description as no filter
worked example 1 of the rule
AC-10Given previous description filter: Pay; new description filter: Pay
When the description filter entered differs from the one used for the previous screen (blank and blank count as the same)
Then Paging position is kept
REQ-F-039
Restart paging when description filter changes
worked example 1 of the rule
AC-11Given type code filter: AB
When no delete or update has just completed and the type code filter or the description filter is in error
Then Error 'TYPE CODE FILTER,IF SUPPLIED MUST BE A 2 DIGIT NUMBER' with a blank information line
REQ-F-040
Suppress info message on filter error
worked example 1 of the rule
AC-12Given The transaction types include 'Purchase', 'Retail Purchase' and 'Payment', and the type code filter is blank
When The user enters ' Purchase ' (with surrounding spaces) in the description filter and submits
Then The list, its paging and its record count include only the types whose description contains 'Purchase' ('Purchase' and 'Retail Purchase'), and 'Payment' is not shown
REQ-F-038
Build wildcard description filter
written from the rule

Screens

  • Transaction types S-TRANTYPE-LIST · design · replaces CTRTLIA (4 kept, 42 merged, 1 split)
    • **lookup field** Type code checks: 'Type code filter, if supplied, must be a 2 digit number. Enter two digits, for example 01, or leave it blank.' No type matches: 'No Records found for these filter conditions. Change or clear the filters.'
    • **lookup field** Description contains checks: Checked against the data only when a filter holds a value: 'No Records found for these filter conditions. Change or clear the filters.'

Data contracts

COCOM01Y (working storage; COTRTLIC), COTTL01Y (working storage; COTRTLIC), CSDAT01Y (working storage; COTRTLIC), CSDB2RPY (working storage; COTRTLIC), CSDB2RWY (working storage; COTRTLIC), CSMSG01Y (working storage; COTRTLIC), CSSTRPFY (working storage; COTRTLIC), CSUSR01Y (working storage; COTRTLIC), CVACT02Y (working storage; COTRTLIC), CVCRD01Y (working storage; COTRTLIC)

Decision tables

Type code filter handling

Type code filter enteredSame as filter last usedList behaviourRule
Blank, low-values or zeros-Treat as not supplied; list all type codes; no errorrec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-2f602f3092/1
'00'-Apply no type code filterrec/group:claude/RULE-060/3
Not numeric-Reject with 'TYPE CODE FILTER,IF SUPPLIED MUST BE A 2 DIGIT NUMBER'; filter red with cursor; lock row selections; no re-readrec/group:claude/RULE-060/1
Numeric-List only the transaction type with that coderec/group:claude/RULE-060/2
AnyNoReset paging to start; remember new filter; mark changed (pending F10 treated as Enter)rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-c6c37c526a/1
AnyYes (or both empty)Keep current paging; mark unchangedrec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-c6c37c526a/2
Numeric, one digit-Gap: The error message asks for a 2 digit number, but the rules only check that the filter is numeric; it is not stated whether a single-digit entry is accepted.
Not numericNoGap: No rule says whether a rejected type code filter is remembered as the last used filter or resets paging.

Open questions

  • SME-183 The transaction-type code filter's error message says 'MUST BE A 2 DIGIT NUMBER', but the system only checks that the value is numeric. Should numbers that are not exactly 2 digits be refused? (Reference data product owner)
  • SME-186 When counting transaction types fails, what diagnostic details should the operator see, and does the failure end the session on that screen? (Reference data product owner)
  • SME-187 When one submission on the transaction-type list has several errors (an invalid action code, more than one action, or missing required text), which message should the operator see first? (Business analyst)
  • SME-188 The error message 'Error reading TRANSACTION_TYPE table ' ends with a space. Does that trailing space matter in the message shown to the operator? (Business analyst)

Design notes

  • The view state keeps the type code filter used for the last page shown. When the submitted filter differs, reset paging to page 1, store the new filter and mark it changed; a pending update/delete confirmation must then be treated as a plain refresh, not applied. Restart paging when type filter changes
  • When the submitted type code filter equals the stored one (two empty values count as equal), keep the current page and mark the filter unchanged, so a pending confirmation can still proceed. Restart paging when type filter changes
5. Update transaction type descriptions from the listdraft · online · 11 requirements · 11 rules · 13 criteria · 1 screen · 2 gaps

On the transaction type list an administrator can mark one row 'U' and type a new description in place. The description is checked before anything is saved: it must be supplied, must actually differ from the stored one (ignoring case and surrounding spaces), and may hold only letters, digits and spaces. The screen must never save an invalid or unchanged description, and must show the user exactly which field is wrong.

As an administrator, I want to mark a listed transaction type for update or delete and change its description on the list screen, so that I can correct reference data online with clear validation feedback.

Draft: the function is not signed off yet. Risk medium; touches updates_records. rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#5

Requirements

CodeClassRequirementCriteria
REQ-F-041design noteWhen the operator submits the transaction type list screen, the system shall capture the type code and description filters and, for each of the 7 rows, the action code, the type code and the description.AC-01
REQ-F-042design noteWhen a row's description field holds only '*' or is blank, the system shall treat the description as not entered, and otherwise shall use the entered text with leading and trailing spaces removed.AC-01, AC-02
REQ-F-043business ruleWhen a transaction type row marked 'U' is submitted and the entered description matches the stored description, ignoring upper/lower case and leading or trailing spaces, the system shall show 'No change detected with respect to database values.' and skip the remaining description checks for that row.AC-03, AC-04
REQ-F-044business ruleWhen the entered description of a row marked 'U' differs from the stored description, the system shall treat the row as changed and check the first 50 characters of the description as a required letters-and-digits field named 'Transaction Desc'.AC-05
REQ-F-045business ruleIf a changed description is not entered (blank or '*'), then the system shall reject the input and show 'Transaction Desc must be supplied.', unless an earlier message has already been set.AC-12
REQ-F-046business ruleIf a changed description contains any character other than a letter, a digit or a space, then the system shall reject the input and show 'Transaction Desc can have numbers or alphabets only.', unless an earlier message has already been set.AC-06
REQ-F-047formattingIf a description entered for update fails its checks, then the system shall show that description in red with the cursor on it, and shall show a description that was not entered as '*'.AC-07
REQ-F-048formattingWhen a row is marked 'U' as the only valid action on the screen and the operator has typed a description that differs from the stored one and is not blank, the system shall show the operator's typed description on that row instead of the stored description.AC-13
REQ-F-049formattingWhen a row is not the single valid 'U' action on the screen, or it is but the typed description does not differ from the stored one, the system shall show the stored transaction type description on that row.AC-08
REQ-F-050business ruleIf the submitted screen has an input error, then the system shall show the error message and stay on the list screen rather than act on any key pressed.AC-09
REQ-F-051formattingIf the submitted screen has an input error but both the type code filter and the description filter are acceptable, then the system shall re-read the current page starting from its first type code before showing the error.AC-10, AC-11

Business rules

RuleClassText, worked examples and evidence
Capture filters and row entries
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-58e63abd6c/1
design note
technical, medium
WHEN the operator submits the transaction type list screen, THE transaction type list SHALL capture the type code and description filters and, for each of the 7 rows, the action code, the type code and the description, treating a description of '*' or all spaces as not entered and trimming any other description.
  • row 3 description: * → Row 3 description is treated as not entered
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:930-953, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:55, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:60
Treat blank or asterisk description as unsupplied
rec/group:claude/RULE-059/3
design note
technical, high
WHEN a row's description field holds only '*' or is blank, THE Transaction Type List screen SHALL treat the description as not entered; otherwise it SHALL use the entered text with leading and trailing spaces removed.
  • Entered description: * → The description counts as not entered
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:940-953, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1026-1031, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1060-1090, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1181-1234, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:65-72, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:261-262
Detect unchanged update description
rec/group:claude/RULE-059/1
business rule
validation, high
WHEN a transaction type row marked 'U' is submitted and the entered description matches the stored description, ignoring upper/lower case and leading or trailing spaces, THE Transaction Type List screen SHALL show 'No change detected with respect to database values.' and skip the remaining description checks for that row.
  • Stored description: Payment; Action: U; Entered description: payment → Message 'No change detected with respect to database values.'
  • Stored description: Payment; Action: U; Entered description: PAYMENT → Message 'No change detected with respect to database values.'
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:940-953, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1026-1031, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1060-1090, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1181-1234, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:65-72, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:261-262
Require valid updated description
rec/group:claude/RULE-059/2
business rule
validation, high
WHEN the entered description of a row marked 'U' differs from the stored description, THE Transaction Type List screen SHALL treat the row as changed and check the first 50 characters of the description as a required letters-and-digits field named 'Transaction Desc'.
  • Stored description: Payment; Action: U; Entered description: Bill Payment → The row counts as changed and the description passes the checks
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:940-953, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1026-1031, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1060-1090, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1181-1234, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:65-72, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:261-262
Reject missing required text
rec/group:claude/RULE-059/4
business rule
validation, high
WHEN a changed description is not entered (blank or '*'), THE Transaction Type List screen SHALL reject the input and show 'Transaction Desc must be supplied.', unless an earlier message has already been set.
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:940-953, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1026-1031, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1060-1090, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1181-1234, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:65-72, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:261-262
Restrict text to letters and digits
rec/group:claude/RULE-059/5
business rule
validation, high
WHEN a changed description contains any character other than a letter, a digit or a space, THE Transaction Type List screen SHALL reject the input and show 'Transaction Desc can have numbers or alphabets only.', unless an earlier message has already been set.
  • Action: U; Entered description: Cash Advance 2 → Description accepted
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:940-953, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1026-1031, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1060-1090, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1181-1234, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:65-72, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:261-262
Require transaction description for update
rec/group:claude/RULE-059/6
formatting
display, high
WHEN a description entered for update fails its checks, THE Transaction Type List screen SHALL show that description in red with the cursor on it, and SHALL show a description that was not entered as '*'.
  • Action: U; Entered description: → The description field shows '*' in red
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:940-953, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1026-1031, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1060-1090, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1181-1234, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:65-72, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:261-262
Show entered changed description
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-26e22ba660/1
formatting
display, medium
WHEN a row is marked 'U' as the only valid action on the screen and the operator has typed a description that differs from the stored one and is not blank, THE transaction type list SHALL show the operator's typed description on that row instead of the stored description.
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1404-1419, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1064-1076, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:944-951
Show stored description when unchanged
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-f44c4569eb/1
formatting
display, medium
WHEN a row is not the single valid 'U' action on the screen, or it is but the typed description does not differ from the stored one, THE transaction type list SHALL show the stored transaction type description on that row.
  • row action: D → Row shows the stored description
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1404-1425, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1062-1076
Redisplay list after input errors
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-538352a638/1
business rule
validation, medium
WHEN the submitted screen has an input error, THE Transaction Type List screen SHALL show the error message and stay on the list screen rather than act on any key pressed.
  • Type code filter: A1 → The list screen is shown again with 'TYPE CODE FILTER,IF SUPPLIED MUST BE A 2 DIGIT NUMBER'
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:698-720, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1111-1118
Redisplay list after input errors
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-538352a638/2
formatting
display, medium
WHEN the submitted screen has an input error but both the type code filter and the description filter are acceptable, THE Transaction Type List screen SHALL re-read the current page starting from its first type code before showing the error.
  • Type code filter: blank; Row error: invalid row action; First type code on page: 05 → The page is re-read from type 05 and shown with the error message
  • Type code filter: X9 → The list is not re-read; the screen is redisplayed with the filter error
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:698-720, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1111-1118

Acceptance criteria

IDCriterionChecks
AC-01Given row 3 description: *
When the operator submits the transaction type list screen
Then Row 3 description is treated as not entered
REQ-F-041, REQ-F-042
Capture filters and row entries
worked example 1 of the rule
AC-02Given Entered description: *
When a row's description field holds only '*' or is blank
Then The description counts as not entered
REQ-F-042
Treat blank or asterisk description as unsupplied
worked example 1 of the rule
AC-03Given Stored description: Payment; Action: U; Entered description: payment
When a transaction type row marked 'U' is submitted and the entered description matches the stored description, ignoring upper/lower case and leading or trailing spaces
Then Message 'No change detected with respect to database values.'
REQ-F-043
Detect unchanged update description
worked example 1 of the rule
AC-04Given Stored description: Payment; Action: U; Entered description: PAYMENT
When a transaction type row marked 'U' is submitted and the entered description matches the stored description, ignoring upper/lower case and leading or trailing spaces
Then Message 'No change detected with respect to database values.'
REQ-F-043
Detect unchanged update description
worked example 2 of the rule
AC-05Given Stored description: Payment; Action: U; Entered description: Bill Payment
When the entered description of a row marked 'U' differs from the stored description
Then The row counts as changed and the description passes the checks
REQ-F-044
Require valid updated description
worked example 1 of the rule
AC-06Given Action: U; Entered description: Cash Advance 2
When a changed description contains any character other than a letter, a digit or a space
Then Description accepted
REQ-F-046
Restrict text to letters and digits
worked example 1 of the rule
AC-07Given Action: U; Entered description:
When a description entered for update fails its checks
Then The description field shows '*' in red
REQ-F-047
Require transaction description for update
worked example 1 of the rule
AC-08Given row action: D
When a row is not the single valid 'U' action on the screen, or it is but the typed description does not differ from the stored one
Then Row shows the stored description
REQ-F-049
Show stored description when unchanged
worked example 1 of the rule
AC-09Given Type code filter: A1
When the submitted screen has an input error
Then The list screen is shown again with 'TYPE CODE FILTER,IF SUPPLIED MUST BE A 2 DIGIT NUMBER'
REQ-F-050
Redisplay list after input errors
worked example 1 of the rule
AC-10Given Type code filter: blank; Row error: invalid row action; First type code on page: 05
When the submitted screen has an input error but both the type code filter and the description filter are acceptable
Then The page is re-read from type 05 and shown with the error message
REQ-F-051
Redisplay list after input errors
worked example 1 of the rule
AC-11Given Type code filter: X9
When the submitted screen has an input error but both the type code filter and the description filter are acceptable
Then The list is not re-read; the screen is redisplayed with the filter error
REQ-F-051
Redisplay list after input errors
worked example 2 of the rule
AC-12Given Transaction type '01' is shown on the list with stored description 'Purchase' and no other message has been set
When The user marks the row for '01' with 'U', clears its description (or enters only '*') and presses Enter
Then The input is rejected, nothing is saved, and the message 'Transaction Desc must be supplied.' is shown
REQ-F-045
Reject missing required text
written from the rule
AC-13Given Transaction type '01' is shown on the list with stored description 'Purchase'
When The user marks only the row for '01' with 'U', types 'Retail Purchase' as its description and presses Enter
Then The redisplayed row for '01' shows 'Retail Purchase', not the stored 'Purchase'
REQ-F-048
Show entered changed description
written from the rule

Screens

  • Transaction types S-TRANTYPE-LIST · design · replaces CTRTLIA (4 kept, 42 merged, 1 split)
    • **data table** Transaction types checks: In-place description: 'Transaction Desc must be supplied. Enter a description.' or 'Transaction Desc can have numbers or alphabets only. Remove other characters.'; unchanged: 'No change detected with respect to values fetched.' Row actions replace action codes, so 'Action code selected is invalid' and 'Please select only 1 action' cannot occur. If a filter or the row changes while a dialog is open, the dialog closes and nothing changes.

Data contracts

COCOM01Y (working storage; COTRTLIC), COTTL01Y (working storage; COTRTLIC), CSDAT01Y (working storage; COTRTLIC), CSDB2RPY (working storage; COTRTLIC), CSDB2RWY (working storage; COTRTLIC), CSMSG01Y (working storage; COTRTLIC), CSSTRPFY (working storage; COTRTLIC), CSUSR01Y (working storage; COTRTLIC), CVACT02Y (working storage; COTRTLIC), CVCRD01Y (working storage; COTRTLIC)

Decision tables

Updated description check for a row marked 'U'

Entered description vs stored (ignoring case and leading/trailing spaces)Description entered (not blank or '*')Only letters, digits and spacesValidation resultRule
Same--Show 'No change detected with respect to database values.'; skip remaining checksrec/group:claude/RULE-059/1
DifferentNo-Reject; show 'Transaction Desc must be supplied.' unless an earlier message is setrec/group:claude/RULE-059/4
DifferentYesNoReject; show 'Transaction Desc can have numbers or alphabets only.' unless an earlier message is setrec/group:claude/RULE-059/5
DifferentYesYesTreat row as changed; first 50 characters checked as required 'Transaction Desc'rec/group:claude/RULE-059/2
DifferentYesYesGap: No rule states what happens next for a valid changed description (how the update is confirmed and saved), nor how a row marked 'D' is confirmed and deleted online.
DifferentYesYes (over 50 characters)Gap: Only the first 50 characters are checked; rules do not say what happens to text beyond 50 characters.

Open questions

  • SME-183 The transaction-type code filter's error message says 'MUST BE A 2 DIGIT NUMBER', but the system only checks that the value is numeric. Should numbers that are not exactly 2 digits be refused? (Reference data product owner)
  • SME-186 When counting transaction types fails, what diagnostic details should the operator see, and does the failure end the session on that screen? (Reference data product owner)
  • SME-187 When one submission on the transaction-type list has several errors (an invalid action code, more than one action, or missing required text), which message should the operator see first? (Business analyst)
  • SME-188 The error message 'Error reading TRANSACTION_TYPE table ' ends with a space. Does that trailing space matter in the message shown to the operator? (Business analyst)
  • DEF-029 Is this intended? The 'No change detected' case only sets a message and does not mark the input as an error, so the row stays ready for update; pressing F10 then still runs the database update. A change only in upper/lower case (e.g. 'Payment' to 'payment') is reported as no change but is saved on F10. (Subject-matter expert)

Design notes

  • The list form submits the two filters and, for each of up to 7 rows, the action code, type code and description. The server binds these into a request model, treating a description of '*' or only spaces as not entered and trimming any other description. Capture filters and row entries
  • Normalise each submitted row description on input: blank or a lone '*' becomes 'not entered' (null); any other value is trimmed of leading and trailing spaces before comparison and validation. Treat blank or asterisk description as unsupplied
6. Access to transaction type maintenancedraft · online · 2 requirements · 2 rules · 2 criteria · 2 screens

This records how access to transaction type update and delete works today: when the list is started directly with no sign-on context, the user is treated as an administrator, and update or delete is never checked against the user's type. The new application must not copy this gap silently; who may change transaction type reference data needs an explicit decision and enforcement.

As a security officer, I want to know how access to transaction type update and delete is controlled, so that only authorised users can change reference data.

Draft: the function is not signed off yet. Risk high; touches security, updates_records. rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#6

Requirements

CodeClassRequirementCriteria
REQ-N-002business ruleWhen transaction CTLI is started directly with no carried sign-on context, the system shall mark the user as an administrator (user type 'A') and offer list, update and delete without checking who signed on.AC-01
REQ-N-003business ruleThe system shall not check the user type before allowing updates or deletes of transaction types on the Transaction Type List screen.AC-02

Business rules

RuleClassText, worked examples and evidence
Screen assumes admin user type without checking
rec/claude:claude/RULE-203/1
business rule
compliance, medium
WHEN transaction CTLI is started directly with no carried sign-on context, THE Transaction Type List screen SHALL mark the user as an administrator (user type 'A') and offer list, update and delete without checking who signed on.
  • Start: CTLI typed at a blank terminal; Signed-on user type: none → The full list/update/delete screen is shown and the user is treated as 'A'
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:515-532, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:611, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:751, app/app-transaction-type-db2/csd/CRDDEMOD.csd:25-26
Screen assumes admin user type without checking
rec/claude:claude/RULE-203/2
business rule
compliance, medium
THE Transaction Type List screen SHALL never check the user type before allowing updates or deletes of transaction types.
  • Carried user type: 'U'; Action: D on a row, then F10 → The delete is carried out; user type is not checked
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:515-532, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:611, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:751, app/app-transaction-type-db2/csd/CRDDEMOD.csd:25-26

Acceptance criteria

IDCriterionChecks
AC-01Given Start: CTLI typed at a blank terminal; Signed-on user type: none
When transaction CTLI is started directly with no carried sign-on context
Then The full list/update/delete screen is shown and the user is treated as 'A'
REQ-N-002
Screen assumes admin user type without checking
worked example 1 of the rule
AC-02Given Carried user type: 'U'; Action: D on a row, then F10
When Transaction Type List screen runs
Then The delete is carried out; user type is not checked
REQ-N-003
Screen assumes admin user type without checking
worked example 1 of the rule

Screens

Data contracts

COCOM01Y (working storage; COTRTLIC), COTTL01Y (working storage; COTRTLIC), CSDAT01Y (working storage; COTRTLIC), CSDB2RPY (working storage; COTRTLIC), CSDB2RWY (working storage; COTRTLIC), CSMSG01Y (working storage; COTRTLIC), CSSTRPFY (working storage; COTRTLIC), CSUSR01Y (working storage; COTRTLIC), CVACT02Y (working storage; COTRTLIC), CVCRD01Y (working storage; COTRTLIC)

Decision tables

None.

Open questions

  • SME-193 Is the transaction-type maintenance screen (transaction CTLI) limited to administrators by system security settings, or should the program itself check that the user is an administrator? (Security officer)
  • DEF-169 Confirm this is deliberate: The list/update/delete screen grants administrator status on a direct start of CTLI and never checks the signed-on user type, so any user who can start the transaction can update or delete transaction types. (Subject-matter expert)

Design notes

None.

7. Filter the transaction type listdraft · online · 4 requirements · 4 rules · 4 criteria · 1 screen

When an administrator filters the transaction type list, the system first checks that the filters match at least one type. If none match, the user is told 'No Records found for these filter conditions' with the filters highlighted, and no row actions can be taken. A failed count must be reported as a database error, never shown as an empty result.

As an administrator, I want to filter the transaction type list by type code and description, so that I only see the transaction types I am looking for.

Draft: the function is not signed off yet. Risk low; touches reporting_only. rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#7

Requirements

CodeClassRequirementCriteria
REQ-F-052business ruleWhen neither the type filter nor the description filter holds a usable value (both blank, or the type filter is blank or not numeric with no description), the system shall skip the check that the filters match any record.AC-01
REQ-F-053business ruleWhen at least one filter holds a usable value, the system shall count the transaction types whose type code equals the type filter (if one was given) and whose description contains the description filter text (if one was given).AC-04
REQ-F-054business ruleIf no transaction type matches the supplied filters, then the system shall treat the input as an error, show 'No Records found for these filter conditions', show each supplied filter in red with the cursor on it, and lock the row selection fields.AC-02
REQ-F-055error handlingIf the database count of matching transaction types fails, then the system shall treat the input as an error and, unless another message is already set, show a database error message built from 'Error reading TRANSACTION_TYPE table ' and the SQL code.AC-03

Business rules

RuleClassText, worked examples and evidence
Check filters only when one is valid
rec/group:claude/RULE-061/1
business rule
validation, high
WHEN neither the type filter nor the description filter holds a usable value (both blank, or the type filter is blank or not numeric with no description), THE transaction type list SHALL skip the check that the filters match any record.
  • Type filter: blank; Description filter: blank → No match check is made; the full list is shown
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1239-1271, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1801-1836, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1096-1123, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1142-1164, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:103-110, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1477-1485
Count transaction types matching filters
rec/group:claude/RULE-061/2
business rule
business, high
WHEN at least one filter holds a usable value, THE transaction type list SHALL count the transaction types whose type code equals the type filter (if one was given) and whose description contains the description filter text (if one was given).
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1239-1271, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1801-1836, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1096-1123, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1142-1164, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:103-110, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1477-1485
Reject filters matching no records
rec/group:claude/RULE-061/3
business rule
validation, high
WHEN no transaction type matches the supplied filters, THE transaction type list SHALL treat the input as an error, show 'No Records found for these filter conditions', show each supplied filter in red with the cursor on it, and lock the row selection fields.
  • Type filter: 99; Type 99 exists: no; Key: Enter → 'No Records found for these filter conditions' is shown, the type filter is red and rows cannot be marked
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1239-1271, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1801-1836, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1096-1123, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1142-1164, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:103-110, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1477-1485
Count transaction types matching filters
rec/group:claude/RULE-061/4
error handling
error_handling, high
WHEN the database count of matching transaction types fails, THE transaction type list SHALL treat the input as an error and, unless another message is already set, show a database error message built from 'Error reading TRANSACTION_TYPE table ' and the SQL code.
  • Description filter: Refund; Database count: fails with SQL code -904 → The screen is shown again with an error message beginning 'Error reading TRANSACTION_TYPE table '
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1239-1271, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1801-1836, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1096-1123, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1142-1164, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:103-110, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1477-1485

Acceptance criteria

IDCriterionChecks
AC-01Given Type filter: blank; Description filter: blank
When neither the type filter nor the description filter holds a usable value (both blank, or the type filter is blank or not numeric with no description)
Then No match check is made; the full list is shown
REQ-F-052
Check filters only when one is valid
worked example 1 of the rule
AC-02Given Type filter: 99; Type 99 exists: no; Key: Enter
When no transaction type matches the supplied filters
Then 'No Records found for these filter conditions' is shown, the type filter is red and rows cannot be marked
REQ-F-054
Reject filters matching no records
worked example 1 of the rule
AC-03Given Description filter: Refund; Database count: fails with SQL code -904
When the database count of matching transaction types fails
Then The screen is shown again with an error message beginning 'Error reading TRANSACTION_TYPE table '
REQ-F-055
Count transaction types matching filters
worked example 1 of the rule
AC-04Given The transaction types include '01' 'Purchase', '02' 'Payment' and '03' 'Credit'
When The user submits type code filter '01' with description filter 'Purch'
Then The system counts 1 matching transaction type (code '01', description containing 'Purch') and no 'No Records found for these filter conditions' message is shown; with type code filter '02' and description filter 'Purch' the count is 0
REQ-F-053
Count transaction types matching filters
written from the rule

Screens

  • Transaction types S-TRANTYPE-LIST · design · replaces CTRTLIA (4 kept, 42 merged, 1 split)
    • **lookup field** Type code checks: 'Type code filter, if supplied, must be a 2 digit number. Enter two digits, for example 01, or leave it blank.' No type matches: 'No Records found for these filter conditions. Change or clear the filters.'
    • **lookup field** Description contains checks: Checked against the data only when a filter holds a value: 'No Records found for these filter conditions. Change or clear the filters.'

Data contracts

COCOM01Y (working storage; COTRTLIC), COTTL01Y (working storage; COTRTLIC), CSDAT01Y (working storage; COTRTLIC), CSDB2RPY (working storage; COTRTLIC), CSDB2RWY (working storage; COTRTLIC), CSMSG01Y (working storage; COTRTLIC), CSSTRPFY (working storage; COTRTLIC), CSUSR01Y (working storage; COTRTLIC), CVACT02Y (working storage; COTRTLIC), CVCRD01Y (working storage; COTRTLIC)

Decision tables

None.

Open questions

  • SME-183 The transaction-type code filter's error message says 'MUST BE A 2 DIGIT NUMBER', but the system only checks that the value is numeric. Should numbers that are not exactly 2 digits be refused? (Reference data product owner)
  • SME-186 When counting transaction types fails, what diagnostic details should the operator see, and does the failure end the session on that screen? (Reference data product owner)
  • SME-187 When one submission on the transaction-type list has several errors (an invalid action code, more than one action, or missing required text), which message should the operator see first? (Business analyst)
  • SME-188 The error message 'Error reading TRANSACTION_TYPE table ' ends with a space. Does that trailing space matter in the message shown to the operator? (Business analyst)

Design notes

None.

8. Mark a list row for update or deletedraft · online · 9 requirements · 9 rules · 12 criteria · 1 screen · 1 gap

An administrator marks exactly one listed transaction type with 'D' (delete) or 'U' (update) and presses Enter; the row is highlighted and the user is asked to confirm with F10. Invalid action codes and more than one marked row are rejected with clear messages. The screen must never prepare a change for more than one row, or for a row picked under filters the user has since changed.

As an administrator, I want to mark one transaction type on the list for update or delete and be asked to confirm, so that I can review the change before it is applied.

Draft: the function is not signed off yet. Risk low. rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#8

Requirements

CodeClassRequirementCriteria
REQ-F-056business ruleWhen the user has changed the transaction type filter or the description filter, the system shall clear every row action code and skip all row action checks for that submission.AC-01
REQ-F-057design noteWhen the filters are unchanged, the system shall count as an action every one of the 7 rows whose action code is not blank, and count separately the rows marked 'D' (delete) and 'U' (update).AC-02
REQ-F-058design noteWhen the filters are unchanged, the system shall remember the top-most row marked 'D' or 'U' as the selected row (0 if none) and note whether it differs from the row selected on the previous screen.AC-03, AC-04
REQ-F-059business ruleIf a row's action code is anything other than 'D', 'U' or blank (including lower-case 'd' or 'u'), then the system shall highlight that row in error, reject the input and show 'Action code selected is invalid'.AC-05, AC-06
REQ-F-060business ruleIf two to seven rows carry a non-blank action code, then the system shall highlight every row marked 'D' or 'U' in error, reject the input and show 'Please select only 1 action', replacing any 'Action code selected is invalid' message.AC-07, AC-08
REQ-F-061business ruleWhen a row is marked 'U', the system shall check that row's description, even if other rows are also marked.AC-09
REQ-F-062business ruleWhen the user presses Enter with exactly one row marked 'D', no other row action and neither filter changed, the system shall highlight that row, remember that a delete is pending (delete-requested flag 'Y') and show 'Delete HIGHLIGHTED row ? Press F10 to confirm'.AC-10
REQ-F-063business ruleWhen the user presses Enter with exactly one row marked 'U', no other row action and neither filter changed, the system shall highlight that row, remember that an update is pending (update-requested flag 'Y') and show 'Update HIGHLIGHTED row. Press F10 to save'.AC-11
REQ-F-064formattingWhen the user presses Enter with a row marked 'D' or 'U', the system shall show the same page again from its first type code, re-reading the list only when neither filter is in error.AC-12

Business rules

RuleClassText, worked examples and evidence
Tally row actions and route updates
rec/group:claude/RULE-062/1
business rule
business, high
WHEN the user has changed the transaction type filter or the description filter, THE transaction type list screen SHALL clear every row action code and skip all row action checks for that submission.
  • Type filter: changed from blank to 05; Row 2 action: 'D' → The 'D' on row 2 is cleared; no row action is checked or carried out.
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:982-1053, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:180-188, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:202-220, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:58-60, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:257-260, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1060-1076
Tally row actions and route updates
rec/group:claude/RULE-062/2
design note
technical, high
WHEN the filters are unchanged, THE transaction type list screen SHALL count as an action every one of the 7 rows whose action code is not blank, and count separately the rows marked 'D' (delete) and 'U' (update).
  • Row 1 action: 'D'; Row 4 action: 'X'; Other rows: blank → 2 actions are counted: 1 delete, 0 updates.
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:982-1053, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:180-188, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:202-220, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:58-60, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:257-260, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1060-1076
Count row actions and identify selected row
rec/group:claude/RULE-062/5
design note
technical, high
WHEN the filters are unchanged, THE transaction type list screen SHALL remember the top-most row marked 'D' or 'U' as the selected row (0 if none) and note whether it differs from the row selected on the previous screen.
  • Previously selected row: 0; Row 3 action: 'D' → Row 3 becomes the selected row and the selection is noted as changed.
  • Previously selected row: 3; Row 3 action: 'D' → Row 3 stays selected and the selection is noted as unchanged.
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:982-1053, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:180-188, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:202-220, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:58-60, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:257-260, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1060-1076
Reject invalid row action code
rec/group:claude/RULE-062/3
business rule
validation, high
WHEN a row's action code is anything other than 'D', 'U' or blank (including lower-case 'd' or 'u'), THE transaction type list screen SHALL highlight that row in error, reject the input and show 'Action code selected is invalid'.
  • Row 3 action: 'X'; Other rows: blank → Row 3 is highlighted and the message is 'Action code selected is invalid'.
  • Row 5 action: 'u' → Row 5 is highlighted and the message is 'Action code selected is invalid'.
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:982-1053, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:180-188, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:202-220, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:58-60, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:257-260, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1060-1076
Reject multiple row actions
rec/group:claude/RULE-062/4
business rule
validation, high
WHEN two to seven rows carry a non-blank action code, THE transaction type list screen SHALL highlight every row marked 'D' or 'U' in error, reject the input and show 'Please select only 1 action', which replaces any 'Action code selected is invalid' message.
  • Row 1 action: 'D'; Row 4 action: 'U' → Rows 1 and 4 are highlighted and the message is 'Please select only 1 action'.
  • Row 2 action: 'D'; Row 6 action: 'X' → Rows 2 and 6 are highlighted and the message is 'Please select only 1 action'.
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:982-1053, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:180-188, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:202-220, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:58-60, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:257-260, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1060-1076
Tally row actions and route updates
rec/group:claude/RULE-062/6
business rule
validation, high
WHEN a row is marked 'U', THE transaction type list screen SHALL check that row's description, even if other rows are also marked.
  • Row 2 action: 'U'; Row 2 description: unchanged from the database → The description is checked and the message is 'No change detected with respect to database values.'
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:982-1053, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:180-188, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:202-220, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:58-60, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:257-260, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1060-1076
Prompt delete confirmation
rec/group:claude/RULE-151/1
business rule
business, high
WHEN the user presses Enter with exactly one row marked 'D', no other row action and neither filter changed, THE transaction type list SHALL highlight that row, remember that a delete is pending (delete-requested flag 'Y') and show 'Delete HIGHLIGHTED row ? Press F10 to confirm'.
  • Row 3 action: D; Row 3 type code: 05; Key: Enter; Filters: unchanged → Row 3 is highlighted and the message 'Delete HIGHLIGHTED row ? Press F10 to confirm' is shown; nothing is deleted yet
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:574-587, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:666-678, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:794-866, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:991-1047, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1391-1411, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1514-1531
Prompt update confirmation
rec/group:claude/RULE-151/2
business rule
business, high
WHEN the user presses Enter with exactly one row marked 'U', no other row action and neither filter changed, THE transaction type list SHALL highlight that row, remember that an update is pending (update-requested flag 'Y') and show 'Update HIGHLIGHTED row. Press F10 to save'.
  • Row 2 action: U; Row 2 new description: Cash Advance; Key: Enter → Row 2 is highlighted and 'Update HIGHLIGHTED row. Press F10 to save' is shown; nothing is saved yet
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:574-587, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:666-678, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:794-866, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:991-1047, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1391-1411, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1514-1531
Present delete request for confirmation
rec/group:claude/RULE-151/3
formatting
display, high
WHEN the user presses Enter with a row marked 'D' or 'U', THE transaction type list SHALL show the same page again from its first type code, re-reading the list only when neither filter is in error, so the user can review the marked row before confirming.
  • Page shown: types 01 to 07; Row 4 action: D; Key: Enter → The page of types 01 to 07 is shown again with row 4 highlighted
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:574-587, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:666-678, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:794-866, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:991-1047, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1391-1411, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1514-1531

Acceptance criteria

IDCriterionChecks
AC-01Given Type filter: changed from blank to 05; Row 2 action: 'D'
When the user has changed the transaction type filter or the description filter
Then The 'D' on row 2 is cleared; no row action is checked or carried out.
REQ-F-056
Tally row actions and route updates
worked example 1 of the rule
AC-02Given Row 1 action: 'D'; Row 4 action: 'X'; Other rows: blank
When the filters are unchanged
Then 2 actions are counted: 1 delete, 0 updates.
REQ-F-057
Tally row actions and route updates
worked example 1 of the rule
AC-03Given Previously selected row: 0; Row 3 action: 'D'
When the filters are unchanged
Then Row 3 becomes the selected row and the selection is noted as changed.
REQ-F-058
Count row actions and identify selected row
worked example 1 of the rule
AC-04Given Previously selected row: 3; Row 3 action: 'D'
When the filters are unchanged
Then Row 3 stays selected and the selection is noted as unchanged.
REQ-F-058
Count row actions and identify selected row
worked example 2 of the rule
AC-05Given Row 3 action: 'X'; Other rows: blank
When a row's action code is anything other than 'D', 'U' or blank (including lower-case 'd' or 'u')
Then Row 3 is highlighted and the message is 'Action code selected is invalid'.
REQ-F-059
Reject invalid row action code
worked example 1 of the rule
AC-06Given Row 5 action: 'u'
When a row's action code is anything other than 'D', 'U' or blank (including lower-case 'd' or 'u')
Then Row 5 is highlighted and the message is 'Action code selected is invalid'.
REQ-F-059
Reject invalid row action code
worked example 2 of the rule
AC-07Given Row 1 action: 'D'; Row 4 action: 'U'
When two to seven rows carry a non-blank action code
Then Rows 1 and 4 are highlighted and the message is 'Please select only 1 action'.
REQ-F-060
Reject multiple row actions
worked example 1 of the rule
AC-08Given Row 2 action: 'D'; Row 6 action: 'X'
When two to seven rows carry a non-blank action code
Then Rows 2 and 6 are highlighted and the message is 'Please select only 1 action'.
REQ-F-060
Reject multiple row actions
worked example 2 of the rule
AC-09Given Row 2 action: 'U'; Row 2 description: unchanged from the database
When a row is marked 'U'
Then The description is checked and the message is 'No change detected with respect to database values.'
REQ-F-061
Tally row actions and route updates
worked example 1 of the rule
AC-10Given Row 3 action: D; Row 3 type code: 05; Key: Enter; Filters: unchanged
When the user presses Enter with exactly one row marked 'D', no other row action and neither filter changed
Then Row 3 is highlighted and the message 'Delete HIGHLIGHTED row ? Press F10 to confirm' is shown; nothing is deleted yet
REQ-F-062
Prompt delete confirmation
worked example 1 of the rule
AC-11Given Row 2 action: U; Row 2 new description: Cash Advance; Key: Enter
When the user presses Enter with exactly one row marked 'U', no other row action and neither filter changed
Then Row 2 is highlighted and 'Update HIGHLIGHTED row. Press F10 to save' is shown; nothing is saved yet
REQ-F-063
Prompt update confirmation
worked example 1 of the rule
AC-12Given Page shown: types 01 to 07; Row 4 action: D; Key: Enter
When the user presses Enter with a row marked 'D' or 'U'
Then The page of types 01 to 07 is shown again with row 4 highlighted
REQ-F-064
Present delete request for confirmation
worked example 1 of the rule

Screens

  • Transaction types S-TRANTYPE-LIST · design · replaces CTRTLIA (4 kept, 42 merged, 1 split)
    • **data table** Transaction types checks: In-place description: 'Transaction Desc must be supplied. Enter a description.' or 'Transaction Desc can have numbers or alphabets only. Remove other characters.'; unchanged: 'No change detected with respect to values fetched.' Row actions replace action codes, so 'Action code selected is invalid' and 'Please select only 1 action' cannot occur. If a filter or the row changes while a dialog is open, the dialog closes and nothing changes.

Data contracts

COCOM01Y (working storage; COTRTLIC), COTTL01Y (working storage; COTRTLIC), CSDAT01Y (working storage; COTRTLIC), CSDB2RPY (working storage; COTRTLIC), CSDB2RWY (working storage; COTRTLIC), CSMSG01Y (working storage; COTRTLIC), CSSTRPFY (working storage; COTRTLIC), CSUSR01Y (working storage; COTRTLIC), CVACT02Y (working storage; COTRTLIC), CVCRD01Y (working storage; COTRTLIC)

Decision tables

Row action checks on Enter

Filters changedRows with a non-blank action codeAction codeResult of the row action checksRule
YesAnyAnyClear every row action code and skip all row action checksrec/group:claude/RULE-062/1
NoAnyOther than 'D', 'U' or blankHighlight row in error, reject input, show 'Action code selected is invalid'rec/group:claude/RULE-062/3
No2 to 7'D' or 'U'Highlight every marked row in error, reject input, show 'Please select only 1 action'rec/group:claude/RULE-062/4
No1'D'Highlight row, delete pending, show 'Delete HIGHLIGHTED row ? Press F10 to confirm'rec/group:claude/RULE-151/1
No1'U'Highlight row, update pending, show 'Update HIGHLIGHTED row. Press F10 to save'rec/group:claude/RULE-151/2
No0BlankGap: No rule states what message or behaviour applies when filters are unchanged and no row carries an action code.

Open questions

  • SME-183 The transaction-type code filter's error message says 'MUST BE A 2 DIGIT NUMBER', but the system only checks that the value is numeric. Should numbers that are not exactly 2 digits be refused? (Reference data product owner)
  • SME-184 Updating a transaction type is explicitly committed when it succeeds, but deleting one is not described as committed. Should a successful delete be committed in the same way? (Data owner)
  • SME-185 A transaction type cannot be deleted while it has 'dependent child records'. Which records count as dependents of a transaction type, and where are they stored? (Data owner)
  • SME-186 When counting transaction types fails, what diagnostic details should the operator see, and does the failure end the session on that screen? (Reference data product owner)
  • SME-187 When one submission on the transaction-type list has several errors (an invalid action code, more than one action, or missing required text), which message should the operator see first? (Business analyst)
  • SME-188 The error message 'Error reading TRANSACTION_TYPE table ' ends with a space. Does that trailing space matter in the message shown to the operator? (Business analyst)
  • SME-190 How important is the rule that the operator must confirm with F10 before a transaction type is deleted or updated? Is it critical to the system's core purpose, or is it a rule that would be costly to get wrong? (Business SME (transaction type reference data))
  • DEF-065 Is this intended? The 'nothing changed' check compares only the row position and the filters, not the action letter. If the user is prompted to update a row, then changes its 'U' to 'D' and presses F10, the delete runs without the delete prompt ever being shown. The reverse (D changed to U) saves an update without the update prompt. (Subject-matter expert)

Design notes

  • When the filters are unchanged, validation counts the non-blank row actions across the 7 submitted rows, and separately the 'D' and 'U' rows; these counts drive the 'only one action' and confirmation-prompt rules. Tally row actions and route updates
  • The view state records the selected row (the top-most row marked 'D' or 'U', or none) and compares it with the selection stored from the previous screen; a changed selection cancels any pending confirmation. Count row actions and identify selected row
9. Confirm and apply a list update or deletedraft · online · 13 requirements · 13 rules · 15 criteria · 1 screen · 2 gaps

After a row is marked and the prompt shown, the administrator presses F10 to delete the transaction type or save its new description. The change goes through only if nothing has changed since the prompt: same filters, same selected row. It must never delete a type that other records still refer to, and must report a missing record, a deadlock or any other database failure without losing the pending request.

As an administrator, I want to confirm a pending update or delete with F10, so that the transaction type table is changed only when I have reviewed the marked row.

Draft: the function is not signed off yet. Risk medium; touches updates_records. rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#9

Requirements

CodeClassRequirementCriteria
REQ-F-065business ruleWhen the user presses F10 and no delete or update is pending from the previous Enter, the system shall treat the key as Enter and just show the list again.AC-01
REQ-F-066business ruleWhen the user presses F10 while a delete or update is pending but has changed the type filter, the description filter or which row is selected since the confirmation prompt, the system shall treat the key as Enter instead of carrying out the change.AC-02, AC-03
REQ-F-067business ruleWhen the user presses F10 while a delete or update is pending and neither filter nor the selected row has changed, the system shall delete the marked transaction type if the row is marked 'D', or save the new description if it is marked 'U'.AC-04, AC-05, AC-06
REQ-F-068business ruleWhen the user presses PF10 to confirm a row marked 'U', and the type filter, description filter and row selection are unchanged since the screen was shown, the system shall replace that type code's stored description with the entered description, trimmed, in the transaction type table (CARDDEMO.TRANSACTION_TYPE), and commit the change.AC-07
REQ-F-069formattingWhen an update has been confirmed with PF10, the system shall re-read the list starting from the first type code on the current page and redisplay it, whether or not the update succeeded.AC-08
REQ-F-070formattingWhen the confirmed update succeeds and no deletion was confirmed in the same request, the system shall show the message 'HIGHLIGHTED row was updated'.AC-09
REQ-F-071error handlingIf the database finds no row for the type code being updated (SQLCODE +100), then the system shall show a message starting 'Record not found. Deleted by others ?' and leave the update pending for confirmation.AC-10
REQ-F-072error handlingIf the update hits a deadlock (SQLCODE -911), then the system shall show a message starting 'Deadlock. Someone else updating ?', treat the request as an input error and leave the update pending for confirmation.AC-11
REQ-F-073error handlingIf the update fails with any other negative database code, then the system shall show a message starting 'Update failed with' followed by the database error details, and leave the update pending for confirmation.AC-12
REQ-F-074business ruleWhen the operator has marked one transaction type for delete and presses F10 without changing the filters or the selection, the system shall delete that type from the transaction type table (CARDDEMO.TRANSACTION_TYPE).AC-06
REQ-F-075business ruleWhen the delete succeeds, the system shall commit the change, show 'HIGHLIGHTED row deleted.Hit Enter to continue', and start the next interaction from the first page with filters cleared.AC-13
REQ-F-076error handlingIf the database refuses the delete because other records still refer to the transaction type (SQLCODE -532), then the system shall delete nothing, keep the delete request pending, and show 'Please delete associated child records first:' followed by the database error details.AC-14
REQ-F-077error handlingIf the delete fails for any other database reason, then the system shall show 'Delete failed with message:' followed by the database error details and treat the delete as not done.AC-15

Business rules

RuleClassText, worked examples and evidence
Cancel confirmation when criteria changed
rec/group:claude/RULE-151/4
business rule
validation, high
WHEN the user presses F10 and no delete or update is pending from the previous Enter, THE transaction type list SHALL treat the key as Enter and just show the list again.
  • Pending delete/update: none; Key: F10 → Nothing is deleted or updated; the list is shown as for Enter
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:574-587, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:666-678, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:794-866, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:991-1047, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1391-1411, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1514-1531
Cancel confirmation when criteria changed
rec/group:claude/RULE-151/5
business rule
validation, high
WHEN the user presses F10 while a delete or update is pending but has changed the type filter, the description filter or which row is selected since the confirmation prompt, THE transaction type list SHALL treat the key as Enter instead of carrying out the change.
  • Pending: delete of row 3; Row selected now: row 5 marked 'D'; Key: F10 → No delete runs; row 5 is highlighted with 'Delete HIGHLIGHTED row ? Press F10 to confirm'
  • Pending: delete of row 3; Type filter: changed from blank to '05'; Key: F10 → No delete runs; the filtered list is shown
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:574-587, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:666-678, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:794-866, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:991-1047, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1391-1411, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1514-1531
Two-step confirmation required before deleting or updating a transaction type
rec/group:claude/RULE-151/6
business rule
business, high
WHEN the user presses F10 while a delete or update is pending and neither filter nor the selected row has changed, THE transaction type list SHALL delete the marked transaction type if the row is marked 'D', or save the new description if it is marked 'U'.
  • Previous message: 'Delete HIGHLIGHTED row ? Press F10 to confirm'; Row 3 action: D; Key: F10 → Transaction type 05 is deleted
  • Previous message: 'Update HIGHLIGHTED row. Press F10 to save'; Row 2 action: U; Key: F10 → The new description is saved for row 2
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:574-587, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:666-678, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:794-866, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:991-1047, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1391-1411, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1514-1531
Delete selected transaction type
rec/group:claude/RULE-150/1
business rule
business, high
WHEN the operator has marked one transaction type for delete and presses F10 without changing the filters or the selection, THE Transaction Type List screen SHALL delete that type from the transaction type table (CARDDEMO.TRANSACTION_TYPE).
  • Row action: D on type '05'; Key pressed: F10 → Type '05' is deleted from the transaction type table
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1896-1940, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:810-834, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1504-1508, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:245-246, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:666-678
Update selected transaction type description
rec/group:claude/RULE-149/1
business rule
business, high
WHEN the user presses PF10 to confirm a row marked 'U', and the type filter, description filter and row selection are unchanged since the screen was shown, THE Transaction Type List SHALL replace that type code's stored description with the entered description, trimmed (table CARDDEMO.TRANSACTION_TYPE), and commit the change.
  • Row 2 action: U; Type filter: changed from blank to '05' before PF10; Key: PF10 → No update is made; PF10 is handled as Enter and the list is redisplayed.
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:575-582, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:666-677, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:854-868, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1837-1894, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1504-1510, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:247-248
Confirm and apply description update
rec/group:claude/RULE-149/2
formatting
display, high
WHEN an update has been confirmed with PF10, THE Transaction Type List SHALL re-read the list starting from the first type code on the current page and redisplay it, whether or not the update succeeded.
  • First type code on page: 01; Update result: success → The page is shown again from type 01 onward with the new description.
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:575-582, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:666-677, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:854-868, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1837-1894, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1504-1510, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:247-248
Confirm successful row update
rec/group:claude/RULE-149/3
formatting
display, high
WHEN the confirmed update succeeds and no deletion was confirmed in the same request, THE Transaction Type List SHALL show the message 'HIGHLIGHTED row was updated'.
  • Row 2 action: U; Key: PF10; Database result: SQLCODE 0 → The message 'HIGHLIGHTED row was updated' is shown.
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:575-582, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:666-677, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:854-868, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1837-1894, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1504-1510, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:247-248
Update transaction type description
rec/group:claude/RULE-149/4
error handling
error_handling, high
WHEN the database finds no row for the type code being updated (SQLCODE +100), THE Transaction Type List SHALL show a message starting 'Record not found. Deleted by others ?' and leave the update pending for confirmation.
  • Row action: U; Key: PF10; Database result: SQLCODE +100 (type deleted by another user) → Message 'Record not found. Deleted by others ?' is shown; the row is still marked for update.
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:575-582, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:666-677, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:854-868, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1837-1894, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1504-1510, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:247-248
Update transaction type description
rec/group:claude/RULE-149/5
error handling
error_handling, high
WHEN the update hits a deadlock (SQLCODE -911), THE Transaction Type List SHALL show a message starting 'Deadlock. Someone else updating ?', treat the request as an input error and leave the update pending for confirmation.
  • Key: PF10; Database result: SQLCODE -911 → Message 'Deadlock. Someone else updating ?' is shown; the update is still pending.
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:575-582, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:666-677, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:854-868, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1837-1894, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1504-1510, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:247-248
Update transaction type description
rec/group:claude/RULE-149/6
error handling
error_handling, high
WHEN the update fails with any other negative database code, THE Transaction Type List SHALL show a message starting 'Update failed with' followed by the database error details, and leave the update pending for confirmation.
  • Key: PF10; Database result: SQLCODE -805 → A message starting 'Update failed with' is shown; the update is still pending.
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:575-582, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:666-677, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:854-868, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1837-1894, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1504-1510, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:247-248
Confirm successful row deletion
rec/group:claude/RULE-150/2
business rule
business, high
WHEN the delete succeeds, THE Transaction Type List screen SHALL commit the change, show 'HIGHLIGHTED row deleted.Hit Enter to continue', and start the next interaction from the first page with filters cleared.
  • Type deleted: '05'; Database result: success → Message 'HIGHLIGHTED row deleted.Hit Enter to continue'; pressing Enter shows page 1
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1896-1940, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:810-834, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1504-1508, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:245-246, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:666-678
Block delete with dependent records
rec/group:claude/RULE-150/3
error handling
error_handling, high
WHEN the database refuses the delete because other records still refer to the transaction type (SQLCODE -532), THE Transaction Type List screen SHALL delete nothing, keep the delete request pending, and show 'Please delete associated child records first:' followed by the database error details.
  • Type to delete: '01'; Database result: SQLCODE -532 → Type '01' stays; message starts 'Please delete associated child records first:'
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1896-1940, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:810-834, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1504-1508, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:245-246, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:666-678
Apply confirmed delete and record outcome
rec/group:claude/RULE-150/4
error handling
error_handling, high
WHEN the delete fails for any other database reason, THE Transaction Type List screen SHALL show 'Delete failed with message:' followed by the database error details and treat the delete as not done.
  • Type to delete: '03'; Database result: SQLCODE -911 → Message starts 'Delete failed with message:'; type '03' not deleted
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1896-1940, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:810-834, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1504-1508, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:245-246, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:666-678

Acceptance criteria

IDCriterionChecks
AC-01Given Pending delete/update: none; Key: F10
When the user presses F10 and no delete or update is pending from the previous Enter
Then Nothing is deleted or updated; the list is shown as for Enter
REQ-F-065
Cancel confirmation when criteria changed
worked example 1 of the rule
AC-02Given Pending: delete of row 3; Row selected now: row 5 marked 'D'; Key: F10
When the user presses F10 while a delete or update is pending but has changed the type filter
Then No delete runs; row 5 is highlighted with 'Delete HIGHLIGHTED row ? Press F10 to confirm'
REQ-F-066
Cancel confirmation when criteria changed
worked example 1 of the rule
AC-03Given Pending: delete of row 3; Type filter: changed from blank to '05'; Key: F10
When the user presses F10 while a delete or update is pending but has changed the type filter
Then No delete runs; the filtered list is shown
REQ-F-066
Cancel confirmation when criteria changed
worked example 2 of the rule
AC-04Given Previous message: 'Delete HIGHLIGHTED row ? Press F10 to confirm'; Row 3 action: D; Key: F10
When the user presses F10 while a delete or update is pending and neither filter nor the selected row has changed
Then Transaction type 05 is deleted
REQ-F-067
Two-step confirmation required before deleting or updating a transaction type
worked example 1 of the rule
AC-05Given Previous message: 'Update HIGHLIGHTED row. Press F10 to save'; Row 2 action: U; Key: F10
When the user presses F10 while a delete or update is pending and neither filter nor the selected row has changed
Then The new description is saved for row 2
REQ-F-067
Two-step confirmation required before deleting or updating a transaction type
worked example 2 of the rule
AC-06Given Row action: D on type '05'; Key pressed: F10
When the operator has marked one transaction type for delete and presses F10 without changing the filters or the selection
Then Type '05' is deleted from the transaction type table
REQ-F-067, REQ-F-074
Delete selected transaction type
worked example 1 of the rule
AC-07Given Row 2 action: U; Type filter: changed from blank to '05' before PF10; Key: PF10
When the user presses PF10 to confirm a row marked 'U', and the type filter, description filter and row selection are unchanged since the screen was shown
Then No update is made; PF10 is handled as Enter and the list is redisplayed.
REQ-F-068
Update selected transaction type description
worked example 1 of the rule
AC-08Given First type code on page: 01; Update result: success
When an update has been confirmed with PF10
Then The page is shown again from type 01 onward with the new description.
REQ-F-069
Confirm and apply description update
worked example 1 of the rule
AC-09Given Row 2 action: U; Key: PF10; Database result: SQLCODE 0
When the confirmed update succeeds and no deletion was confirmed in the same request
Then The message 'HIGHLIGHTED row was updated' is shown.
REQ-F-070
Confirm successful row update
worked example 1 of the rule
AC-10Given Row action: U; Key: PF10; Database result: SQLCODE +100 (type deleted by another user)
When the database finds no row for the type code being updated (SQLCODE +100)
Then Message 'Record not found. Deleted by others ?' is shown; the row is still marked for update.
REQ-F-071
Update transaction type description
worked example 1 of the rule
AC-11Given Key: PF10; Database result: SQLCODE -911
When the update hits a deadlock (SQLCODE -911)
Then Message 'Deadlock. Someone else updating ?' is shown; the update is still pending.
REQ-F-072
Update transaction type description
worked example 1 of the rule
AC-12Given Key: PF10; Database result: SQLCODE -805
When the update fails with any other negative database code
Then A message starting 'Update failed with' is shown; the update is still pending.
REQ-F-073
Update transaction type description
worked example 1 of the rule
AC-13Given Type deleted: '05'; Database result: success
When the delete succeeds
Then Message 'HIGHLIGHTED row deleted.Hit Enter to continue'; pressing Enter shows page 1
REQ-F-075
Confirm successful row deletion
worked example 1 of the rule
AC-14Given Type to delete: '01'; Database result: SQLCODE -532
When the database refuses the delete because other records still refer to the transaction type (SQLCODE -532)
Then Type '01' stays; message starts 'Please delete associated child records first:'
REQ-F-076
Block delete with dependent records
worked example 1 of the rule
AC-15Given Type to delete: '03'; Database result: SQLCODE -911
When the delete fails for any other database reason
Then Message starts 'Delete failed with message:'; type '03' not deleted
REQ-F-077
Apply confirmed delete and record outcome
worked example 1 of the rule

Screens

  • Transaction types S-TRANTYPE-LIST · design · replaces CTRTLIA (4 kept, 42 merged, 1 split)
    • **data table** Transaction types checks: In-place description: 'Transaction Desc must be supplied. Enter a description.' or 'Transaction Desc can have numbers or alphabets only. Remove other characters.'; unchanged: 'No change detected with respect to values fetched.' Row actions replace action codes, so 'Action code selected is invalid' and 'Please select only 1 action' cannot occur. If a filter or the row changes while a dialog is open, the dialog closes and nothing changes.

Data contracts

COCOM01Y (working storage; COTRTLIC), COTTL01Y (working storage; COTRTLIC), CSDAT01Y (working storage; COTRTLIC), CSDB2RPY (working storage; COTRTLIC), CSDB2RWY (working storage; COTRTLIC), CSMSG01Y (working storage; COTRTLIC), CSSTRPFY (working storage; COTRTLIC), CSUSR01Y (working storage; COTRTLIC), CVACT02Y (working storage; COTRTLIC), CVCRD01Y (working storage; COTRTLIC)

Decision tables

F10 confirmation handling

Delete or update pendingFilters or selected row changed since promptEffect of F10Rule
NoAnyTreat F10 as Enter and show the list againrec/group:claude/RULE-151/4
YesYesTreat F10 as Enter instead of carrying out the changerec/group:claude/RULE-151/5
YesNoDelete the type if marked 'D', or save the new description if marked 'U'rec/group:claude/RULE-151/6

Outcome of the confirmed database change

Confirmed actionDatabase resultMessage and state after the changeRule
Update ('U')SuccessCommit; show 'HIGHLIGHTED row was updated' (if no deletion confirmed in same request); redisplay pagerec/group:claude/RULE-149/3
Update ('U')SQLCODE +100Show 'Record not found. Deleted by others ?'; update stays pendingrec/group:claude/RULE-149/4
Update ('U')SQLCODE -911Show 'Deadlock. Someone else updating ?'; input error; update stays pendingrec/group:claude/RULE-149/5
Update ('U')Any other negative codeShow 'Update failed with' and error details; update stays pendingrec/group:claude/RULE-149/6
Delete ('D')SuccessCommit; show 'HIGHLIGHTED row deleted.Hit Enter to continue'; restart from first page with filters clearedrec/group:claude/RULE-150/2
Delete ('D')SQLCODE -532Delete nothing; delete stays pending; show 'Please delete associated child records first:' and error detailsrec/group:claude/RULE-150/3
Delete ('D')Any other database reasonShow 'Delete failed with message:' and error details; delete not donerec/group:claude/RULE-150/4
Delete ('D')SQLCODE +100Gap: No rule says whether deleting a type code that no longer exists is treated as success or as 'any other database reason'.
Update ('U')Positive code other than +100Gap: No rule covers an update returning a positive warning code other than +100.

Open questions

  • SME-184 Updating a transaction type is explicitly committed when it succeeds, but deleting one is not described as committed. Should a successful delete be committed in the same way? (Data owner)
  • SME-185 A transaction type cannot be deleted while it has 'dependent child records'. Which records count as dependents of a transaction type, and where are they stored? (Data owner)
  • SME-190 How important is the rule that the operator must confirm with F10 before a transaction type is deleted or updated? Is it critical to the system's core purpose, or is it a rule that would be costly to get wrong? (Business SME (transaction type reference data))
  • SME-191 How important is the rule for updating a transaction type's description from the list screen? Is it critical to the system's core purpose, or is it a rule that would be costly to get wrong? (Business SME (transaction type reference data))
  • SME-192 How important is the rule for deleting a transaction type from the list screen, which is blocked when dependent records exist? Is it critical to the system's core purpose, or is it a rule that would be costly to get wrong? (Business SME (transaction type reference data))
  • DEF-064 Is this intended? The description length sent to the database is always the full 50-character field length, not the length of the trimmed text, so a shorter description is stored padded with trailing spaces. (Subject-matter expert)
  • DEF-065 Is this intended? The 'nothing changed' check compares only the row position and the filters, not the action letter. If the user is prompted to update a row, then changes its 'U' to 'D' and presses F10, the delete runs without the delete prompt ever being shown. The reverse (D changed to U) saves an update without the update prompt. (Subject-matter expert)

Design notes

None.

10. Navigate from the transaction type listdraft · online · 2 requirements · 2 rules · 2 criteria · 3 screens

From the transaction type list, the administrator presses F3 to go back to the admin menu or F2 to open the add/change transaction type screen. Leaving by F3 must commit any finished work first.

As an administrator, I want to leave the list or go to the add screen with a function key, so that I can return to the admin menu or add a new transaction type.

Draft: the function is not signed off yet. Risk low. rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#10

Requirements

CodeClassRequirementCriteria
REQ-F-078business ruleWhen the user presses PF3 on the list screen, the system shall commit and transfer control, with the shared context, to the admin menu program 'COADM01C'.AC-01
REQ-F-079business ruleWhen the user presses PF2 on the list screen, the system shall transfer control, with the shared context, to the transaction type add/update program 'COTRTUPC'.AC-02

Business rules

RuleClassText, worked examples and evidence
Exit to the calling program
rec/group:claude/RULE-236/1
business rule
business, high
WHEN the user presses PF3 on the list screen, THE Transaction Type List SHALL commit and transfer control, with the shared context, to the admin menu program 'COADM01C'. It would go to another recorded caller, but the list always records itself as the caller when it shows its screen.
  • Reached from: Admin menu option 5; Key: PF3 → Work is committed and the admin menu (COADM01C) is shown.
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:591-625, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:630-652, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:899-903, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:43-50
Navigate to the add screen
rec/group:claude/RULE-236/2
business rule
business, high
WHEN the user presses PF2 on the list screen, THE Transaction Type List SHALL transfer control, with the shared context, to the transaction type add/update program 'COTRTUPC'.
  • Screen: Transaction Type List; Key: PF2 → The add/update screen (COTRTUPC) is shown.
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:591-625, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:630-652, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:899-903, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:43-50

Acceptance criteria

IDCriterionChecks
AC-01Given Reached from: Admin menu option 5; Key: PF3
When the user presses PF3 on the list screen
Then Work is committed and the admin menu (COADM01C) is shown.
REQ-F-078
Exit to the calling program
worked example 1 of the rule
AC-02Given Screen: Transaction Type List; Key: PF2
When the user presses PF2 on the list screen
Then The add/update screen (COTRTUPC) is shown.
REQ-F-079
Navigate to the add screen
worked example 1 of the rule

Screens

Data contracts

COCOM01Y (working storage; COTRTLIC), COTTL01Y (working storage; COTRTLIC), CSDAT01Y (working storage; COTRTLIC), CSDB2RPY (working storage; COTRTLIC), CSDB2RWY (working storage; COTRTLIC), CSMSG01Y (working storage; COTRTLIC), CSSTRPFY (working storage; COTRTLIC), CSUSR01Y (working storage; COTRTLIC), CVACT02Y (working storage; COTRTLIC), CVCRD01Y (working storage; COTRTLIC)

Decision tables

None.

Open questions

  • SME-182 On the transaction-type list, PF3 is described three ways: go to the destination program and end the list; restart the list on the first page when returning from the add/update screen; and clear everything and show the list from the start. Which applies in which situation, and which takes precedence? (Business analyst)
  • SME-183 The transaction-type code filter's error message says 'MUST BE A 2 DIGIT NUMBER', but the system only checks that the value is numeric. Should numbers that are not exactly 2 digits be refused? (Reference data product owner)
  • SME-186 When counting transaction types fails, what diagnostic details should the operator see, and does the failure end the session on that screen? (Reference data product owner)
  • SME-187 When one submission on the transaction-type list has several errors (an invalid action code, more than one action, or missing required text), which message should the operator see first? (Business analyst)
  • SME-188 The error message 'Error reading TRANSACTION_TYPE table ' ends with a space. Does that trailing space matter in the message shown to the operator? (Business analyst)
  • SME-194 When PF2 opens the add-transaction-type screen, the user type passed along is USER. Should it be ADMIN instead? (Security officer)

Design notes

None.

11. Look up a transaction type to maintaindraft · online · 11 requirements · 14 rules · 11 criteria · 2 screens · 1 gap

On the add/change transaction type screen, the administrator enters a two-digit type code, which is checked (supplied, numeric, not zero) and then looked up. If it exists, its current description is shown for maintenance; if not, the user is offered to add it with F5. The screen must never look up or act on an invalid code, and must keep the stored values to tell whether the user changed anything.

As an administrator, I want to enter a transaction type code on the maintenance screen and have it looked up, so that I can maintain an existing type or add one that is not on file.

Draft: the function is not signed off yet. Risk low. rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#11

Requirements

CodeClassRequirementCriteria
REQ-F-080business ruleWhile the state is neither new-record entry ('R') nor awaiting save confirmation ('N'), when the transaction type code is blank, the system shall show 'Tran Type code must be supplied.', mark the code field '*' in red, return to asking for a code and skip all other checks.AC-08
REQ-F-081business ruleWhile the state is neither 'R' nor 'N', when the transaction type code is not numeric, the system shall show 'Tran Type code must be numeric.', highlight the code in red, return to asking for a code and skip all other checks.AC-09
REQ-F-082business ruleWhile the state is neither 'R' nor 'N', when the transaction type code is zero, the system shall show 'Tran Type code must not be zero.', highlight the code in red, return to asking for a code and skip all other checks.AC-10
REQ-F-083formattingWhen a transaction type code fails these checks, the system shall return to the 'details not fetched' state rather than keep an invalid-search-key state ('K').AC-01
REQ-F-084business ruleWhile the state is neither 'R' nor 'N', when the code is a valid non-zero number and no record has been fetched yet, the system shall store the code as two digits with a leading zero and stop editing, so that the table is searched for that code.AC-02
REQ-F-085design noteWhen the maintenance screen looks up a transaction type code, the system shall first clear the previously held original details and the information message.AC-11
REQ-F-086design noteWhen the transaction type table (CARDDEMO.TRANSACTION_TYPE) returns a row for the requested code, the system shall mark the type as found and keep its code and description (to its stored length) as the original values used for display and for detecting the operator's later edits.AC-03
REQ-F-087design noteIf the looked-up transaction type is not found or the read fails, then the system shall keep no original values.AC-03
REQ-F-088business ruleIf no transaction type row exists for the entered code, then the system shall mark the code as in error, show 'No record found for this key in database' unless another message is already set, and offer to add the record with 'Press F05 to add. F12 to cancel'.AC-04
REQ-F-089business ruleWhen the entered code was not found ('X') and the operator submits the same code again without pressing F5, the system shall keep the previously captured code and description, ignore what was typed on the screen, skip all other checks, treat the code as valid and return to the 'details not fetched' state so the code is looked up again in the transaction type table.AC-05, AC-06
REQ-F-090historical artifactWhen F5 is pressed in the not-found state ('X'), the system shall switch straight to new-record entry.AC-07

Business rules

RuleClassText, worked examples and evidence
Gate edits on search key validity
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-b1d31f0ae8/1
business rule
validation, medium
WHEN the state is neither new-record entry ('R') nor awaiting save confirmation ('N') and the transaction type code is blank, THE input editing SHALL show 'Tran Type code must be supplied.', mark the code field '*' in red, return to asking for a code and skip all other checks.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:712-737, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:820-842, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:907-973, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1331-1340, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:984-1007
Gate edits on search key validity
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-b1d31f0ae8/2
business rule
validation, medium
WHEN the state is neither 'R' nor 'N' and the transaction type code is not numeric, THE input editing SHALL show 'Tran Type code must be numeric.', highlight the code in red, return to asking for a code and skip all other checks.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:712-737, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:820-842, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:907-973, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1331-1340, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:984-1007
Gate edits on search key validity
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-b1d31f0ae8/3
business rule
validation, medium
WHEN the state is neither 'R' nor 'N' and the transaction type code is zero, THE input editing SHALL show 'Tran Type code must not be zero.', highlight the code in red, return to asking for a code and skip all other checks.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:712-737, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:820-842, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:907-973, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1331-1340, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:984-1007
Accept recognised edit states for redisplay
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-6af0e95b57/2
historical artifact
leftover, medium
THE next-action decision SHALL also leave the invalid-search-key state ('K') unchanged, but this branch never runs because input editing replaces 'K' with 'details not fetched' as soon as it sets it.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1035-1036, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1046-1047, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1060-1061, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:753, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:772-776, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:728-731
Prompt for key when details not fetched
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-d73c55c056/1
formatting
display, medium
WHEN the operator returns to the Transaction Type Maintenance screen and no transaction type has been fetched yet (including after a blank or invalid type code), THE maintenance screen SHALL show the message 'Enter transaction type to be maintained'.
  • Transaction type code entered: (blank); Key pressed: Enter → The screen shows 'Enter transaction type to be maintained'.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1210-1218, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:147-148, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:296-301, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:720-731
Gate edits on search key validity
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-b1d31f0ae8/4
business rule
business, medium
WHEN the state is neither 'R' nor 'N', the code is a valid non-zero number and no record has been fetched yet, THE input editing SHALL store the code as two digits with a leading zero and stop editing, so that the table is searched for that code.
  • Entered code: '5'; Maintenance state: not fetched → The code is stored as '05' and the table is searched for '05'.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:712-737, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:820-842, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:907-973, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1331-1340, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:984-1007
Capture fetched transaction type as original
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-08c4b243a8/1
design note
technical, medium
WHEN the maintenance screen looks up a transaction type code, THE maintenance screen SHALL first clear the previously held original details and the information message.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1447-1463, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1486-1509, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1517-1527
Find transaction type by code
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-d97842ad6d/1
design note
technical, medium
WHEN the transaction type table (CARDDEMO.TRANSACTION_TYPE) returns a row for the requested code, THE transaction type lookup SHALL mark the type as found and keep its code and description as the values on file, used for display and for detecting changes.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1469-1488, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1447-1462, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1517-1527, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:993-994
Capture fetched transaction type as original
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-08c4b243a8/2
design note
technical, medium
WHEN the looked-up transaction type is found in the transaction type table, THE maintenance screen SHALL keep its type code and description (to its stored length) as the original values against which the operator's later edits are compared; WHEN it is not found or the read fails, it SHALL keep no original values.
  • Transaction type code entered: 99; Table row: none → No original details are kept and the type is treated as not found.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1447-1463, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1486-1509, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1517-1527
Flag transaction type not found
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-ae1a69d390/1
business rule
validation, medium
WHEN no transaction type row exists for the entered code, THE transaction type lookup SHALL mark the code as in error, show 'No record found for this key in database' unless another message is already set, and offer to add the record with 'Press F05 to add. F12 to cancel'.
  • Entered code: '25'; Row for '25' in the transaction type table: none → The error line shows 'No record found for this key in database' and the information line shows 'Press F05 to add. F12 to cancel'.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1489-1494, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:175-176, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:984-997, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1219-1220, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:149-150
Accept repeated not-found search key
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-0ba23d9aee/1
business rule
business, medium
WHEN the entered code was not found ('X') and the operator presses Enter with the same code again, THE input editing SHALL skip all other checks, treat the code as valid and return to the 'details not fetched' state, so the table is searched for that code again.
  • Maintenance state: 'X'; Entered code: '25' (same as before); Key pressed: Enter → The table is searched for '25' again. If it is still absent, 'No record found for this key in database' is shown again.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:698-710, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:503-508, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:984-997, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1235-1236
Skip staging for repeated not-found key
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-d3d847b25f/1
design note
technical, medium
WHEN the entered code was not found ('X'), F5 was not pressed and the same code is entered again, THE screen input staging SHALL keep the previously captured code and description and ignore what was typed on the screen, including any description.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:652-663
Handle resubmitted not-found key
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-a8e65bb037/1
business rule
validation, medium
WHEN a transaction type code was not found and the operator submits the same code again without pressing F5, THE maintenance screen SHALL accept the code without re-editing it, return to the not-fetched state and look the code up again in the transaction type table.
  • Previous result: type code '99' not found; Transaction type code entered: 99; Key pressed: Enter → The code is not re-validated; it is looked up again and, still not found, the screen again offers 'Press F05 to add. F12 to cancel'.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:689-710, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:984-997, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:503-508, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1219-1220
Accept repeated not-found search key
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-0ba23d9aee/2
historical artifact
leftover, medium
THE input editing SHALL keep the not-found state when F5 is pressed with the same code, but this branch never runs because F5 in the not-found state is handled earlier by switching straight to new-record entry.
  • Maintenance state: 'X'; Key pressed: F5 → The screen switches to new-record entry ('R') with 'Enter new transaction type details.' and input editing does not run.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:698-710, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:503-508, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:984-997, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1235-1236

Acceptance criteria

IDCriterionChecks
AC-01Given Transaction type code entered: (blank); Key pressed: Enter
When the operator returns to the Transaction Type Maintenance screen and no transaction type has been fetched yet (including after a blank or invalid type code)
Then The screen shows 'Enter transaction type to be maintained'.
REQ-F-083
Prompt for key when details not fetched
worked example 1 of the rule
AC-02Given Entered code: '5'; Maintenance state: not fetched
When the state is neither 'R' nor 'N'
Then The code is stored as '05' and the table is searched for '05'.
REQ-F-084
Gate edits on search key validity
worked example 1 of the rule
AC-03Given Transaction type code entered: 99; Table row: none
When the looked-up transaction type is found in the transaction type table
Then No original details are kept and the type is treated as not found.
REQ-F-086, REQ-F-087
Capture fetched transaction type as original
worked example 1 of the rule
AC-04Given Entered code: '25'; Row for '25' in the transaction type table: none
When no transaction type row exists for the entered code
Then The error line shows 'No record found for this key in database' and the information line shows 'Press F05 to add. F12 to cancel'.
REQ-F-088
Flag transaction type not found
worked example 1 of the rule
AC-05Given Maintenance state: 'X'; Entered code: '25' (same as before); Key pressed: Enter
When the entered code was not found ('X') and the operator presses Enter with the same code again
Then The table is searched for '25' again. If it is still absent, 'No record found for this key in database' is shown again.
REQ-F-089
Accept repeated not-found search key
worked example 1 of the rule
AC-06Given Previous result: type code '99' not found; Transaction type code entered: 99; Key pressed: Enter
When a transaction type code was not found and the operator submits the same code again without pressing F5
Then The code is not re-validated; it is looked up again and, still not found, the screen again offers 'Press F05 to add. F12 to cancel'.
REQ-F-089
Handle resubmitted not-found key
worked example 1 of the rule
AC-07Given Maintenance state: 'X'; Key pressed: F5
When input editing runs
Then The screen switches to new-record entry ('R') with 'Enter new transaction type details.' and input editing does not run.
REQ-F-090
Accept repeated not-found search key
worked example 1 of the rule
AC-08Given The maintenance screen is waiting for a transaction type code (not in new-record entry or awaiting save confirmation)
When The user leaves the type code blank and presses Enter
Then The message 'Tran Type code must be supplied.' is shown, the code field shows '*' in red, the screen asks for a code again and no lookup or other check is done
REQ-F-080
Gate edits on search key validity
written from the rule
AC-09Given The maintenance screen is waiting for a transaction type code (not in new-record entry or awaiting save confirmation)
When The user enters 'AB' as the type code and presses Enter
Then The message 'Tran Type code must be numeric.' is shown, the code is highlighted in red, the screen asks for a code again and no lookup or other check is done
REQ-F-081
Gate edits on search key validity
written from the rule
AC-10Given The maintenance screen is waiting for a transaction type code (not in new-record entry or awaiting save confirmation)
When The user enters '00' as the type code and presses Enter
Then The message 'Tran Type code must not be zero.' is shown, the code is highlighted in red, the screen asks for a code again and no lookup or other check is done
REQ-F-082
Gate edits on search key validity
written from the rule
AC-11Given The maintenance screen holds type '01' with description 'Purchase' as the original values and an information message from that lookup
When The user enters type code '02' and it is looked up
Then Before the lookup, the original values for '01' and the earlier information message are cleared, so nothing from '01' is shown or compared against '02'
REQ-F-085
Capture fetched transaction type as original
written from the rule

Screens

  • Transaction types S-TRANTYPE-LIST · design · replaces CTRTLIA (4 kept, 42 merged, 1 split)
  • Add or change a transaction type S-TRANTYPE-EDIT · design · replaces CTRTUPA (3 kept, 17 merged, 1 split, 1 dropped)
    • **lookup field** Transaction type code checks: 'Tran Type code must be supplied. Enter a two-digit code.'; 'Tran Type code must be numeric. Enter digits only.'; 'Tran Type code must not be zero. Enter a code from 01 to 99.' Only the first failing check is shown.

Data contracts

CSMSG02Y (file record; COTRTUPC), COCOM01Y (working storage; COTRTUPC), COTTL01Y (working storage; COTRTUPC), CSDAT01Y (working storage; COTRTUPC), CSMSG01Y (working storage; COTRTUPC), CSSETATY (working storage; COTRTUPC), CSSTRPFY (working storage; COTRTUPC), CSUSR01Y (working storage; COTRTUPC), CSUTLDWY (working storage; COTRTUPC), CVCRD01Y (working storage; COTRTUPC)

Decision tables

Search key checks (state neither 'R' nor 'N')

Transaction type codeRecord already fetchedResult of search key editingRule
BlankAnyShow 'Tran Type code must be supplied.', mark code '*' in red, ask for a coderec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-b1d31f0ae8/1
Not numericAnyShow 'Tran Type code must be numeric.', highlight code in red, ask for a coderec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-b1d31f0ae8/2
ZeroAnyShow 'Tran Type code must not be zero.', highlight code in red, ask for a coderec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-b1d31f0ae8/3
Valid non-zero numberNoStore code as two digits with leading zero and search the tablerec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-b1d31f0ae8/4
Valid non-zero numberYesGap: These rules do not say how the code is handled once a record has been fetched; change detection rules (R54, R58) may apply but do not state the code checks.

Open questions

  • SME-195 On the transaction type maintenance screen, when the operator's key and the screen's current state match none of the recognised combinations, should the system go straight to deciding the next action, or first process what the operator typed on the screen? (Business analyst (transaction type maintenance))
  • SME-196 Change outcomes 'L' and 'F' are both described as "changes failed". Is there any business difference between them, and if so, what is it? (Business analyst (transaction type maintenance))
  • SME-197 When the transaction type description is missing or contains characters other than letters and numbers, what message should the operator see? (Business analyst (transaction type maintenance))
  • SME-204 Please confirm this rule: when the transaction type maintenance screen is opened for the first time from the administration menu or the transaction type list (or details were not fetched), and PF3 was not pressed, the system clears its working data and the account identifier, shows an empty search screen, and waits for input. (Business analyst (transaction type maintenance))
  • DEF-134 Is this intended? Two branches have no effect. The 'No input received' message for a blank code is never shown, because the code edit has already set 'Tran Type code must be supplied.' and the message is no longer empty. The invalid-search-key state 'K' is set and then overwritten on the next line by 'details not fetched', so the screen handling written for 'K' never applies. (Subject-matter expert)
  • DEF-135 Is this intended? The invalid-search-key state ('K') is set and immediately overwritten with the not-fetched state, so the program's separate handling of 'K' (here and in 2000-DECIDE-ACTION) never takes effect. (Subject-matter expert)

Design notes

  • Each lookup starts by clearing the 'original' snapshot and the information message held in the screen's state, so a failed lookup can never leave the previous type's values behind. Capture fetched transaction type as original
  • A keyed read of the transaction type table by its two-digit code. On a hit, return a 'found' result with code and description; the description is used both for display and as the baseline for change detection. Find transaction type by code
  • Hold the fetched code and description, at their stored length, as an 'original' snapshot in the edit session (or as a version/ETag) to compare against the user's later edits. On not-found or a read error, leave the snapshot empty. Capture fetched transaction type as original
  • In the not-found state, if the same code is submitted again without choosing Add, keep the code and description already held in the edit session and ignore the submitted form values, including any description typed. Skip staging for repeated not-found key
12. Show maintenance screen values and messagesdraft · online · 9 requirements · 10 rules · 12 criteria · 2 screens

The add/change transaction type screen shows the right values and guidance message for each step: asking for a code, editing a found type, confirming a save, or after a delete. Where the record was just read, deleted or a change cancelled, it must show the values stored on file, not stale typed values; while the user is entering changes, it must keep what they typed.

As an administrator, I want the maintenance screen to show the right values and guidance message for where I am in the process, so that I know what to do next.

Draft: the function is not signed off yet. Risk low. rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#12

Requirements

CodeClassRequirementCriteria
REQ-F-091formattingWhen the maintenance screen is shown for a fresh start (on arrival from the admin menu or the transaction type list, or when a finished, failed or cancelled action restarts the screen), the system shall show the information message 'Enter transaction type to be maintained'.AC-01, AC-02
REQ-F-092formattingWhen the operator returns to the maintenance screen and no transaction type has been fetched yet (including after a blank or invalid type code), the system shall show the message 'Enter transaction type to be maintained'.AC-03
REQ-F-093formattingWhen the maintenance screen is showing a fetched transaction type, or a cancelled change has no original transaction type held, the system shall show the message 'Enter transaction type to be maintained'.AC-04
REQ-F-094formattingWhen the maintenance screen is redisplayed in a state that has no information message of its own and no message is already set (for example after a delete the database refused because child records exist), the system shall show the information message 'Enter transaction type to be maintained'.AC-05
REQ-F-095formattingWhen the operator's changes failed validation, or the operator cancelled a validated change while an original transaction type is still held, the system shall show the message 'Update transaction type details shown.'AC-06, AC-07
REQ-F-096formattingWhen the screen is redisplayed after the first entry and the state is record shown ('S'), awaiting delete confirmation ('9'), delete failed ('6'), delete done ('7'), update cancelled ('B') or any state without its own display rule, the system shall show the code and description as stored on the table, discarding typed values and clearing description error marks.AC-12
REQ-F-097formattingWhen the screen is redisplayed after the first entry and the state is changes entered ('E', 'N', 'L' or 'F'), not found ('X'), invalid key ('K'), new record ('R') or update done ('C'), the system shall show the transaction type code and description as the operator entered them.AC-08
REQ-F-098business ruleWhen the entered details have failed validation ('E') or have passed validation and are waiting for F5 confirmation ('N'), the system shall leave the maintenance state unchanged, so the screen is shown again with the entered values and the message for that state.AC-09
REQ-F-099design noteWhen a key press is not an exit, a first entry, a delete, save or cancel step handled on its own, or a key not allowed in the current state, the system shall read the screen input, validate it, decide the next action and redisplay the screen.AC-10, AC-11

Business rules

RuleClassText, worked examples and evidence
Prompt for key on first entry
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-bb372050ad/1
formatting
display, medium
WHEN the maintenance screen is shown for a fresh start (on arrival from the admin menu or the transaction type list, or when a finished, failed or cancelled action restarts the screen), THE transaction type maintenance screen SHALL show the information message 'Enter transaction type to be maintained'.
  • Arrived from: admin menu option 'Transaction Type Maintenance (Db2)' → An empty screen shows 'Enter transaction type to be maintained'.
  • Key pressed: F12; Maintenance state: 'S' (record shown) → The screen restarts and shows 'Enter transaction type to be maintained'.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:366-374, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:405-418, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:465-478, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1210-1215, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:147-148
Prompt for key when details not fetched
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-d73c55c056/1
formatting
display, medium
WHEN the operator returns to the Transaction Type Maintenance screen and no transaction type has been fetched yet (including after a blank or invalid type code), THE maintenance screen SHALL show the message 'Enter transaction type to be maintained'.
  • Transaction type code entered: (blank); Key pressed: Enter → The screen shows 'Enter transaction type to be maintained'.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1210-1218, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:147-148, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:296-301, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:720-731
Prompt for key on shown or blank backout
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-989fbb50fc/1
formatting
display, medium
WHEN the maintenance screen is showing a fetched transaction type, or a cancelled change has no original transaction type held, THE maintenance screen SHALL show the message 'Enter transaction type to be maintained'.
  • State: change cancelled; Original type held: (blank) → The screen shows 'Enter transaction type to be maintained'.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1221-1225, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:147-148, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:303, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:327
Default to key prompt when no message
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-728e889b95/1
formatting
display, medium
WHEN the maintenance screen is redisplayed in a state that has no information message of its own and no message is already set (for example after a delete the database refused because child records exist), THE transaction type maintenance screen SHALL show the information message 'Enter transaction type to be maintained'.
  • Maintenance state: '8' (delete started); Database response to the delete: SQLCODE -532 (child records exist) → The error line starts 'Please delete associated child records first:' and the information line shows 'Enter transaction type to be maintained'.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1210-1247, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:142-148, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:352-354, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:482-489, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1634-1649
Prompt operator to edit details
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-cc69ca8255/1
formatting
display, medium
WHEN the operator's changes failed validation, or the operator cancelled a validated change while an original transaction type is still held, THE maintenance screen SHALL show the message 'Update transaction type details shown.'
  • Transaction type: 01; Description entered: (invalid, fails the description edit) → The screen shows 'Update transaction type details shown.'
  • State: changes validated, awaiting F5; Key pressed: F12; Original type held: 01 → The change is backed out and the screen shows 'Update transaction type details shown.'
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1221-1228, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:155-156, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:318, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:327, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1003-1005
Show stored transaction type values
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-27c9562ee8/1
formatting
display, medium
WHEN the screen is redisplayed after the first entry and the state is record shown ('S'), awaiting delete confirmation ('9'), delete failed ('6'), delete done ('7'), update cancelled ('B') or any state without its own display rule, THE maintenance screen SHALL show the code and description as stored on the table, discarding typed values and clearing description error marks.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1140-1171, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1185-1192, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1517-1527
Show operator-entered transaction type values
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-45b44b4179/1
formatting
display, medium
WHEN the screen is redisplayed after the first entry and the state is changes entered ('E', 'N', 'L' or 'F'), not found ('X'), invalid key ('K'), new record ('R') or update done ('C'), THE maintenance screen SHALL show the transaction type code and description as the operator entered them.
  • Maintenance state: 'X' (not found); Entered code: '25' → The screen shows code '25' as entered.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1157-1164, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1197-1201, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:315-326
Accept recognised edit states for redisplay
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-6af0e95b57/1
business rule
business, medium
WHEN the entered details have failed validation ('E') or have passed validation and are waiting for F5 confirmation ('N'), THE next-action decision SHALL leave the maintenance state unchanged, so the screen is shown again with the entered values and the message for that state.
  • Maintenance state after editing: 'N' → The state stays 'N' and the screen shows 'Changes validated.Press F5 to save'.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1035-1036, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1046-1047, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1060-1061, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:753, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:772-776, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:728-731
Process operator input in other cases
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-0c2c35fe1e/1
design note
technical, medium
WHEN a key press is not an exit, a first entry, a delete, save or cancel step handled on its own, or a key not allowed in the current state, THE transaction type maintenance screen SHALL read the screen input, validate it, decide the next action and redisplay the screen.
  • Key pressed: Enter; Maintenance state: 'S' (record shown); Description changed: yes → The input is read and validated, and the screen is redisplayed asking for confirmation with 'Changes validated.Press F5 to save'.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:548-556, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:625-636
Route request by key and update state
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-7c2d30318c/3
design note
technical, medium
WHEN a key press matches none of the specific key-and-state steps, THE maintenance screen SHALL read and validate the screen input, then decide the next action and redisplay the screen.
  • Key pressed: Enter; Maintenance state: not fetched; Entered code: '01' → The input is validated and the record for '01' is looked up and shown.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:524-533, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:548-556, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:405-418, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:465-478, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:352-354, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:94-97

Acceptance criteria

IDCriterionChecks
AC-01Given Arrived from: admin menu option 'Transaction Type Maintenance (Db2)'
When the maintenance screen is shown for a fresh start (on arrival from the admin menu or the transaction type list, or when a finished, failed or cancelled action restarts the screen)
Then An empty screen shows 'Enter transaction type to be maintained'.
REQ-F-091
Prompt for key on first entry
worked example 1 of the rule
AC-02Given Key pressed: F12; Maintenance state: 'S' (record shown)
When the maintenance screen is shown for a fresh start (on arrival from the admin menu or the transaction type list, or when a finished, failed or cancelled action restarts the screen)
Then The screen restarts and shows 'Enter transaction type to be maintained'.
REQ-F-091
Prompt for key on first entry
worked example 2 of the rule
AC-03Given Transaction type code entered: (blank); Key pressed: Enter
When the operator returns to the Transaction Type Maintenance screen and no transaction type has been fetched yet (including after a blank or invalid type code)
Then The screen shows 'Enter transaction type to be maintained'.
REQ-F-092
Prompt for key when details not fetched
worked example 1 of the rule
AC-04Given State: change cancelled; Original type held: (blank)
When the maintenance screen is showing a fetched transaction type, or a cancelled change has no original transaction type held
Then The screen shows 'Enter transaction type to be maintained'.
REQ-F-093
Prompt for key on shown or blank backout
worked example 1 of the rule
AC-05Given Maintenance state: '8' (delete started); Database response to the delete: SQLCODE -532 (child records exist)
When the maintenance screen is redisplayed in a state that has no information message of its own and no message is already set (for example after a delete the database refused because child records exist)
Then The error line starts 'Please delete associated child records first:' and the information line shows 'Enter transaction type to be maintained'.
REQ-F-094
Default to key prompt when no message
worked example 1 of the rule
AC-06Given Transaction type: 01; Description entered: (invalid, fails the description edit)
When the operator's changes failed validation, or the operator cancelled a validated change while an original transaction type is still held
Then The screen shows 'Update transaction type details shown.'
REQ-F-095
Prompt operator to edit details
worked example 1 of the rule
AC-07Given State: changes validated, awaiting F5; Key pressed: F12; Original type held: 01
When the operator's changes failed validation, or the operator cancelled a validated change while an original transaction type is still held
Then The change is backed out and the screen shows 'Update transaction type details shown.'
REQ-F-095
Prompt operator to edit details
worked example 2 of the rule
AC-08Given Maintenance state: 'X' (not found); Entered code: '25'
When the screen is redisplayed after the first entry and the state is changes entered ('E', 'N', 'L' or 'F'), not found ('X'), invalid key ('K'), new record ('R') or update done ('C')
Then The screen shows code '25' as entered.
REQ-F-097
Show operator-entered transaction type values
worked example 1 of the rule
AC-09Given Maintenance state after editing: 'N'
When the entered details have failed validation ('E') or have passed validation and are waiting for F5 confirmation ('N')
Then The state stays 'N' and the screen shows 'Changes validated.Press F5 to save'.
REQ-F-098
Accept recognised edit states for redisplay
worked example 1 of the rule
AC-10Given Key pressed: Enter; Maintenance state: 'S' (record shown); Description changed: yes
When a key press is not an exit, a first entry, a delete, save or cancel step handled on its own, or a key not allowed in the current state
Then The input is read and validated, and the screen is redisplayed asking for confirmation with 'Changes validated.Press F5 to save'.
REQ-F-099
Process operator input in other cases
worked example 1 of the rule
AC-11Given Key pressed: Enter; Maintenance state: not fetched; Entered code: '01'
When a key press matches none of the specific key-and-state steps
Then The input is validated and the record for '01' is looked up and shown.
REQ-F-099
Route request by key and update state
worked example 1 of the rule
AC-12Given Transaction type '01' is stored with description 'Purchase', the user has typed 'Retail Purchase' in the description, which was marked in error, and the screen is in the update-cancelled state ('B')
When The maintenance screen is redisplayed
Then The screen shows code '01' and description 'Purchase' as stored, the typed 'Retail Purchase' is discarded and the description error mark is cleared; the same holds in the record-shown ('S'), awaiting-delete-confirmation ('9'), delete-failed ('6') and delete-done ('7') states
REQ-F-096
Show stored transaction type values
written from the rule

Screens

Data contracts

CSMSG02Y (file record; COTRTUPC), COCOM01Y (working storage; COTRTUPC), COTTL01Y (working storage; COTRTUPC), CSDAT01Y (working storage; COTRTUPC), CSMSG01Y (working storage; COTRTUPC), CSSETATY (working storage; COTRTUPC), CSSTRPFY (working storage; COTRTUPC), CSUSR01Y (working storage; COTRTUPC), CSUTLDWY (working storage; COTRTUPC), CVCRD01Y (working storage; COTRTUPC)

Decision tables

None.

Open questions

  • SME-195 On the transaction type maintenance screen, when the operator's key and the screen's current state match none of the recognised combinations, should the system go straight to deciding the next action, or first process what the operator typed on the screen? (Business analyst (transaction type maintenance))
  • SME-196 Change outcomes 'L' and 'F' are both described as "changes failed". Is there any business difference between them, and if so, what is it? (Business analyst (transaction type maintenance))
  • SME-197 When the transaction type description is missing or contains characters other than letters and numbers, what message should the operator see? (Business analyst (transaction type maintenance))
  • SME-198 When a transaction type description is updated successfully, does anything else need to happen (for example notifications, logging or other updates) before the screen reports the save result? (Reference data business owner)
  • SME-199 The 'update failed' outcome is tied to the message 'Update of record failed', but the actual update error shows 'Error updating: TRANSACTION_TYPE Table'. Which situation should count as 'update failed', and which message should the operator see? (Application development lead)
  • SME-200 When a transaction type cannot be deleted because other records still use it, what state should the screen be left in, and what should the operator be told? (Reference data business owner)
  • SME-201 If the transaction type maintenance screen finds itself in an unrecognised state, the legacy system terminates abnormally. Should the new system do the same, or recover and show the operator an error message? (Application development lead)
  • SME-202 PF5 is allowed while a transaction type delete is awaiting confirmation, but nothing says what it does then. What should PF5 do in that situation? (Reference data business owner)
  • SME-204 Please confirm this rule: when the transaction type maintenance screen is opened for the first time from the administration menu or the transaction type list (or details were not fetched), and PF3 was not pressed, the system clears its working data and the account identifier, shows an empty search screen, and waits for input. (Business analyst (transaction type maintenance))
  • DEF-128 Is this intended? When the database refuses a delete because child records exist (SQLCODE -532), the program does not set the delete-failed state ('6') as it does for other delete errors. The state stays at '8', so the screen shows the generic 'Enter transaction type to be maintained' prompt instead of 'Changes unsuccessful'. (Subject-matter expert)
  • DEF-135 Is this intended? The invalid-search-key state ('K') is set and immediately overwritten with the not-fetched state, so the program's separate handling of 'K' (here and in 2000-DECIDE-ACTION) never takes effect. (Subject-matter expert)

Design notes

  • The screen's controller has a default path: any action not handled by a dedicated step (exit, first entry, delete, save, cancel, or a key not allowed in the current state) binds the submitted form, validates it, works out the next state and re-renders the screen. Process operator input in other cases
  • Route requests by action and current edit state; when no specific action-and-state handler matches, fall through to the default bind, validate, decide-next-state and re-render path rather than raising an error. Route request by key and update state
13. Detect changes to a fetched transaction typedraft · online · 3 requirements · 4 rules · 6 criteria · 2 screens

When an administrator presses Enter on a fetched transaction type, the maintenance screen compares the type code and description with the values fetched, ignoring case and surrounding spaces, and decides whether anything has changed. If nothing has changed it says so and offers no save. It must never treat a record that differs only in case or spacing as changed, and it must never re-validate changes that are already validated or already saved.

As an administrator, I want the maintenance screen to tell me when I have not changed anything, so that I do not save a record that is the same as the one on file.

Draft: the function is not signed off yet. Risk low. rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#13

Requirements

CodeClassRequirementCriteria
REQ-F-100business ruleWhen the operator presses Enter on a transaction type, the system shall treat it as unchanged if the type code and the description match the values fetched, ignoring upper/lower case and leading or trailing spaces, and otherwise record that a change has occurred.AC-01, AC-02
REQ-F-101business ruleWhen no change is found, the system shall show 'No change detected with respect to values fetched.', leave the record in the show-details state without offering a save, and skip the description checks.AC-03, AC-04, AC-05
REQ-F-102business ruleWhile the changes are already validated and awaiting F5 confirmation (state 'N') or already committed (state 'C'), the system shall skip the description checks and keep the current state.AC-04, AC-05, AC-06

Business rules

RuleClassText, worked examples and evidence
Detect changes versus fetched values
rec/group:claude/RULE-063/1
business rule
business, high
WHEN the operator presses Enter on a transaction type, THE transaction type maintenance screen SHALL treat it as unchanged if the type code and the description match the values fetched, ignoring upper/lower case and leading or trailing spaces; otherwise it SHALL record that a change has occurred.
  • stored description: Purchase; entered description: PURCHASE → Treated as no change
  • stored description: Purchase; entered description: Purchases → Change recorded; description validation runs
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:783-812, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:741-751, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:179-180, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1023-1030, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:678-684
Detect changes versus fetched values
rec/group:claude/RULE-063/2
business rule
validation, high
WHEN no change is found, THE transaction type maintenance screen SHALL show 'No change detected with respect to values fetched.', leave the record in the show-details state without offering a save, and skip the description checks.
  • type code: 01; stored description: Purchase; entered description: PURCHASE → Message 'No change detected with respect to values fetched.'; F5 save not offered
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:783-812, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:741-751, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:179-180, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1023-1030, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:678-684
Stop edits when nothing changed
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-a3fe881c6a/1
business rule
validation, medium
WHEN the type code and description the operator submits match the original record (compared ignoring upper/lower case and surrounding spaces), or the changes were already validated and are waiting for F5 to save, THE maintenance screen SHALL stop editing without validating the description.
  • Original description: Purchase; Description entered: PURCHASE → No change is detected; the description is not validated and the details stay shown.
  • State: 'Changes validated.Press F5 to save' shown; Key pressed: Enter → The description is not validated again; the screen still waits for F5.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:741-753, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:783-811, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:319, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:326, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:405-418
Stop edits when nothing changed
rec/group:claude/RULE-063/3
design note
technical, high
WHEN the changes are already validated and awaiting confirmation (state 'N') or already committed (state 'C'), THE transaction type maintenance screen SHALL skip the description checks and keep the current state.
  • state: N; key: Enter → No re-validation; prompt 'Changes validated.Press F5 to save' stays
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:783-812, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:741-751, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:179-180, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1023-1030, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:678-684

Acceptance criteria

IDCriterionChecks
AC-01Given stored description: Purchase; entered description: PURCHASE
When the operator presses Enter on a transaction type
Then Treated as no change
REQ-F-100
Detect changes versus fetched values
worked example 1 of the rule
AC-02Given stored description: Purchase; entered description: Purchases
When the operator presses Enter on a transaction type
Then Change recorded; description validation runs
REQ-F-100
Detect changes versus fetched values
worked example 2 of the rule
AC-03Given type code: 01; stored description: Purchase; entered description: PURCHASE
When no change is found
Then Message 'No change detected with respect to values fetched.'; F5 save not offered
REQ-F-101
Detect changes versus fetched values
worked example 1 of the rule
AC-04Given Original description: Purchase; Description entered: PURCHASE
When the type code and description the operator submits match the original record (compared ignoring upper/lower case and surrounding spaces), or the changes were already validated and are waiting for F5 to save
Then No change is detected; the description is not validated and the details stay shown.
REQ-F-101, REQ-F-102
Stop edits when nothing changed
worked example 1 of the rule
AC-05Given State: 'Changes validated.Press F5 to save' shown; Key pressed: Enter
When the type code and description the operator submits match the original record (compared ignoring upper/lower case and surrounding spaces), or the changes were already validated and are waiting for F5 to save
Then The description is not validated again; the screen still waits for F5.
REQ-F-101, REQ-F-102
Stop edits when nothing changed
worked example 2 of the rule
AC-06Given state: N; key: Enter
When the changes are already validated and awaiting confirmation (state 'N') or already committed (state 'C')
Then No re-validation; prompt 'Changes validated.Press F5 to save' stays
REQ-F-102
Stop edits when nothing changed
worked example 1 of the rule

Screens

  • Transaction types S-TRANTYPE-LIST · design · replaces CTRTLIA (4 kept, 42 merged, 1 split)
  • Add or change a transaction type S-TRANTYPE-EDIT · design · replaces CTRTUPA (3 kept, 17 merged, 1 split, 1 dropped)
    • **primary button** Save transaction type checks: Code and description match what is stored (ignoring case and surrounding spaces): 'No change detected with respect to values fetched.'

Data contracts

CSMSG02Y (file record; COTRTUPC), COCOM01Y (working storage; COTRTUPC), COTTL01Y (working storage; COTRTUPC), CSDAT01Y (working storage; COTRTUPC), CSMSG01Y (working storage; COTRTUPC), CSSETATY (working storage; COTRTUPC), CSSTRPFY (working storage; COTRTUPC), CSUSR01Y (working storage; COTRTUPC), CSUTLDWY (working storage; COTRTUPC), CVCRD01Y (working storage; COTRTUPC)

Decision tables

None.

Open questions

  • SME-195 On the transaction type maintenance screen, when the operator's key and the screen's current state match none of the recognised combinations, should the system go straight to deciding the next action, or first process what the operator typed on the screen? (Business analyst (transaction type maintenance))
  • SME-196 Change outcomes 'L' and 'F' are both described as "changes failed". Is there any business difference between them, and if so, what is it? (Business analyst (transaction type maintenance))
  • SME-197 When the transaction type description is missing or contains characters other than letters and numbers, what message should the operator see? (Business analyst (transaction type maintenance))

Design notes

  • The maintenance screen needs an explicit edit state that is kept between requests, either in the server-side session or in a signed token sent with the form. Change detection and description checks run only in the editing states. In 'validated, awaiting confirmation' (N) and 'committed' (C) they are skipped and the state is carried over unchanged, so pressing Enter again cannot reset or re-validate a pending save. Stop edits when nothing changed
14. Cancel a pending maintenance changedraft · online · 3 requirements · 3 rules · 3 criteria · 2 screens · 2 gaps

An administrator can cancel a pending update or delete with F12. Nothing is written to the transaction type table: a cancelled update shows the stored values again for editing, and a cancelled delete goes back to the search. Cancelling must never apply any change, and it must ignore whatever was typed on the screen at the time.

As an administrator, I want to cancel a pending update or delete with F12, so that nothing is changed when I decide not to go ahead.

Draft: the function is not signed off yet. Risk low. rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#14

Requirements

CodeClassRequirementCriteria
REQ-F-103business ruleWhen F12 is pressed while a validated change is waiting for F5 confirmation ('N'), the system shall ignore the screen input, show 'Update was cancelled' and redisplay the stored values for editing with 'Update transaction type details shown.'.AC-01
REQ-F-104business ruleWhen F12 is pressed while a delete is waiting for confirmation ('9'), the system shall ignore the screen input, show 'Delete was cancelled' and return to asking for a transaction type.AC-02
REQ-F-105historical artifactWhen F12 is pressed on a shown record ('S'), the system shall restart the screen to ask for a new transaction type.AC-03

Business rules

RuleClassText, worked examples and evidence
Route request by key and update state
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-7c2d30318c/1
business rule
business, medium
WHEN F12 is pressed while a validated change is waiting for F5 confirmation ('N'), THE maintenance screen SHALL ignore the screen input, show 'Update was cancelled' and redisplay the stored values for editing with 'Update transaction type details shown.'.
  • Maintenance state: 'N'; Key pressed: F12 → The screen shows 'Update was cancelled' with the stored description, and nothing is saved.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:524-533, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:548-556, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:405-418, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:465-478, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:352-354, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:94-97
Route request by key and update state
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-7c2d30318c/2
business rule
business, medium
WHEN F12 is pressed while a delete is waiting for confirmation ('9'), THE maintenance screen SHALL ignore the screen input, show 'Delete was cancelled' and return to asking for a transaction type.
  • Maintenance state: '9'; Key pressed: F12 → The record is not deleted. The screen shows 'Delete was cancelled' and 'Enter transaction type to be maintained'.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:524-533, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:548-556, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:405-418, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:465-478, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:352-354, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:94-97
Route request by key and update state
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-7c2d30318c/4
historical artifact
leftover, medium
THE cancel step also lists the record-shown state ('S'), but that case never reaches it because F12 on a shown record first restarts the screen to ask for a new transaction type.
  • Maintenance state: 'S'; Key pressed: F12 → The screen is cleared and shows 'Enter transaction type to be maintained'. The cancel step is not used.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:524-533, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:548-556, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:405-418, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:465-478, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:352-354, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:94-97

Acceptance criteria

IDCriterionChecks
AC-01Given Maintenance state: 'N'; Key pressed: F12
When F12 is pressed while a validated change is waiting for F5 confirmation ('N')
Then The screen shows 'Update was cancelled' with the stored description, and nothing is saved.
REQ-F-103
Route request by key and update state
worked example 1 of the rule
AC-02Given Maintenance state: '9'; Key pressed: F12
When F12 is pressed while a delete is waiting for confirmation ('9')
Then The record is not deleted. The screen shows 'Delete was cancelled' and 'Enter transaction type to be maintained'.
REQ-F-104
Route request by key and update state
worked example 1 of the rule
AC-03Given Maintenance state: 'S'; Key pressed: F12
When Route request by key and update state applies
Then The screen is cleared and shows 'Enter transaction type to be maintained'. The cancel step is not used.
REQ-F-105
Route request by key and update state
worked example 1 of the rule

Screens

Data contracts

CSMSG02Y (file record; COTRTUPC), COCOM01Y (working storage; COTRTUPC), COTTL01Y (working storage; COTRTUPC), CSDAT01Y (working storage; COTRTUPC), CSMSG01Y (working storage; COTRTUPC), CSSETATY (working storage; COTRTUPC), CSSTRPFY (working storage; COTRTUPC), CSUSR01Y (working storage; COTRTUPC), CSUTLDWY (working storage; COTRTUPC), CVCRD01Y (working storage; COTRTUPC)

Decision tables

F12 cancel by maintenance state

Key pressedMaintenance stateEffect of cancelRule
F12Awaiting save confirmation ('N')Show 'Update was cancelled'; redisplay stored values with 'Update transaction type details shown.'rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-7c2d30318c/1
F12Awaiting delete confirmation ('9')Show 'Delete was cancelled'; ask for a transaction typerec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-7c2d30318c/2
F12Record shown ('S')Restart the screen to ask for a new transaction typerec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-7c2d30318c/4
F12Not found ('X')Gap: 'Press F05 to add. F12 to cancel' is offered (R35), but no rule says what F12 does in the not-found state.
F12New record entry ('R') or changes failed validation ('E')Gap: No rule states the effect of F12 in these states.

Open questions

  • SME-195 On the transaction type maintenance screen, when the operator's key and the screen's current state match none of the recognised combinations, should the system go straight to deciding the next action, or first process what the operator typed on the screen? (Business analyst (transaction type maintenance))
  • SME-196 Change outcomes 'L' and 'F' are both described as "changes failed". Is there any business difference between them, and if so, what is it? (Business analyst (transaction type maintenance))
  • SME-197 When the transaction type description is missing or contains characters other than letters and numbers, what message should the operator see? (Business analyst (transaction type maintenance))

Design notes

None.

15. Exit the maintenance screendraft · online · 2 requirements · 2 rules · 3 criteria · 3 screens

F3 takes the administrator out of transaction type maintenance. Any open database work is completed first, then the administrator goes back to the caller recorded for the session, or to the Admin menu when none is recorded. When the screen was entered from the Admin menu or the transaction type list, F3 must always return to the Admin menu and never to the list.

As an administrator, I want F3 to save my work and return me to the admin menu, so that I can leave transaction type maintenance safely.

Draft: the function is not signed off yet. Risk medium; touches updates_records. rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#15

Requirements

CodeClassRequirementCriteria
REQ-F-106design noteWhen the operator presses F3 on the Transaction Type Maintenance screen, the system shall commit the database work (SYNCPOINT) and transfer control to the calling program and transaction recorded for the session, or to the Admin menu (COADM01C, transaction 'CA00') when none is recorded.AC-01
REQ-F-107business ruleWhen the maintenance screen is entered from the Admin menu (COADM01C) or the Transaction Type list (COTRTLIC), the system shall clear the recorded caller, so that F3 always returns the operator to the Admin menu (COADM01C, 'CA00') and never to the Transaction Type list.AC-02, AC-03

Business rules

RuleClassText, worked examples and evidence
Exit (F3) returns to caller or Admin menu and commits work
rec/claude:claude/RULE-204/1
design note
technical, medium
WHEN the operator presses F3 on the Transaction Type Maintenance screen, THE maintenance screen SHALL commit the database work (SYNCPOINT) and transfer control to the calling program and transaction recorded for the session, or to the Admin menu (COADM01C, transaction 'CA00') when none is recorded.
  • Key pressed: F3; Recorded caller: (blank) → Work is committed and the Admin menu COADM01C is started with transaction 'CA00'.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:366-374, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:429-460, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:209-212, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:559-571
Exit (F3) returns to caller or Admin menu and commits work
rec/claude:claude/RULE-204/2
business rule
business, medium
WHEN the maintenance screen is entered from the Admin menu (COADM01C) or the Transaction Type list (COTRTLIC), THE maintenance screen SHALL clear the recorded caller, so that F3 always returns the operator to the Admin menu (COADM01C, 'CA00') and never to the Transaction Type list.
  • Arrived from: Transaction Type list COTRTLIC (F2); Key pressed: F3 → The operator lands on the Admin menu COADM01C, not on the list.
  • Arrived from: Admin menu option 6; Key pressed: F3 → The operator lands on the Admin menu COADM01C.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:366-374, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:429-460, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:209-212, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:559-571

Acceptance criteria

IDCriterionChecks
AC-01Given Key pressed: F3; Recorded caller: (blank)
When the operator presses F3 on the Transaction Type Maintenance screen
Then Work is committed and the Admin menu COADM01C is started with transaction 'CA00'.
REQ-F-106
Exit (F3) returns to caller or Admin menu and commits work
worked example 1 of the rule
AC-02Given Arrived from: Transaction Type list COTRTLIC (F2); Key pressed: F3
When the maintenance screen is entered from the Admin menu (COADM01C) or the Transaction Type list (COTRTLIC)
Then The operator lands on the Admin menu COADM01C, not on the list.
REQ-F-107
Exit (F3) returns to caller or Admin menu and commits work
worked example 1 of the rule
AC-03Given Arrived from: Admin menu option 6; Key pressed: F3
When the maintenance screen is entered from the Admin menu (COADM01C) or the Transaction Type list (COTRTLIC)
Then The operator lands on the Admin menu COADM01C.
REQ-F-107
Exit (F3) returns to caller or Admin menu and commits work
worked example 2 of the rule

Screens

Data contracts

CSMSG02Y (file record; COTRTUPC), COCOM01Y (working storage; COTRTUPC), COTTL01Y (working storage; COTRTUPC), CSDAT01Y (working storage; COTRTUPC), CSMSG01Y (working storage; COTRTUPC), CSSETATY (working storage; COTRTUPC), CSSTRPFY (working storage; COTRTUPC), CSUSR01Y (working storage; COTRTUPC), CSUTLDWY (working storage; COTRTUPC), CVCRD01Y (working storage; COTRTUPC)

Decision tables

None.

Open questions

  • SME-208 When a user leaves the transaction type maintenance screen, the session is always marked as an administrator. Is that intended, or should the user's original type be kept? (Security officer)
  • DEF-170 Is this intended? The caller is wiped on first entry (INITIALIZE CARDDEMO-COMMAREA), so an operator who came from the Transaction Type list is always sent to the Admin menu on F3. The F3 code's use of the recorded caller suggests the intent was to return to the list. (Subject-matter expert)

Design notes

  • On exit, the new application must commit or close any open database transaction for the session before navigating. It then redirects to the return route stored in the session, falling back to the Admin menu route when none is stored. No unit of work may be left open across the navigation. Exit (F3) returns to caller or Admin menu and commits work
16. Find a transaction type to maintaindraft · online · 9 requirements · 9 rules · 12 criteria · 2 screens

An administrator enters a transaction type code to find the type they want to maintain. The code must be supplied, numeric and non-zero, and is normalised to two digits with a leading zero before the lookup. The screen then shows the type's details or reports that it was not found and offers to add it. An invalid code must never trigger a lookup, and only the first error found is shown.

As an administrator, I want to enter a transaction type code and see its details, so that I can choose the transaction type I need to maintain.

Draft: the function is not signed off yet. Risk low. rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#16

Requirements

CodeClassRequirementCriteria
REQ-F-108formattingWhen the maintenance screen is entered for the first time from the Admin menu or the transaction type list, or is started with no prior context, the system shall clear any saved maintenance context and show an empty search screen asking 'Enter transaction type to be maintained'.AC-01
REQ-F-109design noteWhen the operator presses Enter on the Transaction Type Maintenance screen while not adding a new record and not awaiting confirmation of changes, the system shall check the entered transaction type code before looking it up.AC-02, AC-03
REQ-F-110business ruleIf the transaction type code is left blank or entered as '*', then the system shall show 'Tran Type code must be supplied.' and keep waiting for a search code without looking anything up.AC-09
REQ-F-111business ruleIf the transaction type code is supplied but is not a number, then the system shall show 'Tran Type code must be numeric.', mark the search code as invalid and not look anything up.AC-10
REQ-F-112business ruleIf the transaction type code is a number equal to zero, then the system shall show 'Tran Type code must not be zero.', mark the search code as invalid and not look anything up.AC-11
REQ-F-113business ruleWhen the transaction type code is a supplied, non-zero number, the system shall accept it, convert it to a two-digit code padded with a leading zero, and use that as the lookup key.AC-04, AC-05
REQ-F-114formattingIf more than one check fails on the same entry, then the system shall show only the first error message found.AC-12
REQ-F-115business ruleWhen a valid transaction type code is entered on the search screen, the system shall look it up in the transaction type table and show its details (state 'S') if found, or report it as not found (state 'X') with the prompt 'Press F05 to add. F12 to cancel'.AC-06, AC-07
REQ-F-116business ruleWhile the searched code was not found, when the operator re-sends the same code without pressing F5, the system shall treat it as a new search and look the code up again.AC-08

Business rules

RuleClassText, worked examples and evidence
Show blank search screen on first entry
rec/group:claude/RULE-154/1
formatting
display, high
WHEN the maintenance screen is entered for the first time from the Admin menu or the transaction type list, or is started with no prior context, THE transaction type maintenance screen SHALL clear any saved maintenance context and show an empty search screen asking 'Enter transaction type to be maintained'.
  • Arriving from: Admin menu option 6 → An empty search screen is shown with 'Enter transaction type to be maintained'.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:366-374, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:405-419, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:465-478, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:503-533, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:577-608, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:698-776
Validate transaction type search key
rec/group:claude/RULE-065/1
design note
technical, high
WHEN the operator presses Enter on the Transaction Type Maintenance screen while not adding a new record and not awaiting confirmation of changes, THE transaction type maintenance screen SHALL check the entered transaction type code before looking it up.
  • screen state: no record shown yet; Transaction Type: 05 → The code is checked and then used to look up the transaction type.
  • screen state: changes entered, awaiting F5 confirmation; Transaction Type: 05 → The code is not checked again.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:362, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:663-684, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:712-737, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:820-842, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:907-973, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:94-97
Reject missing required numeric value
rec/group:claude/RULE-065/2
business rule
validation, high
WHEN the transaction type code is left blank or entered as '*', THE transaction type maintenance screen SHALL show 'Tran Type code must be supplied.' and keep waiting for a search code without looking anything up.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:362, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:663-684, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:712-737, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:820-842, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:907-973, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:94-97
Reject non-numeric required value
rec/group:claude/RULE-065/4
business rule
validation, high
WHEN the transaction type code is supplied but is not a number, THE transaction type maintenance screen SHALL show 'Tran Type code must be numeric.', mark the search code as invalid and not look anything up.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:362, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:663-684, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:712-737, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:820-842, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:907-973, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:94-97
Reject zero code, else accept as valid
rec/group:claude/RULE-065/5
business rule
validation, high
WHEN the transaction type code is a number equal to zero, THE transaction type maintenance screen SHALL show 'Tran Type code must not be zero.', mark the search code as invalid and not look anything up.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:362, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:663-684, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:712-737, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:820-842, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:907-973, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:94-97
Edit and normalise transaction type code
rec/group:claude/RULE-065/6
business rule
business, high
WHEN the transaction type code is a supplied, non-zero number, THE transaction type maintenance screen SHALL accept it, convert it to a two-digit code padded with a leading zero, and use that as the lookup key.
  • Transaction Type: 5 → Accepted and looked up as '05'.
  • Transaction Type: 12 → Accepted and looked up as '12'.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:362, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:663-684, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:712-737, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:820-842, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:907-973, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:94-97
Reject missing required numeric value
rec/group:claude/RULE-065/7
formatting
display, high
WHEN more than one check fails on the same entry, THE transaction type maintenance screen SHALL show only the first error message found.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:362, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:663-684, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:712-737, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:820-842, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:907-973, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:94-97
Look up transaction type when filter valid
rec/group:claude/RULE-154/3
business rule
business, high
WHEN a valid transaction type code is entered on the search screen, THE maintenance screen SHALL look it up in the transaction type table and show its details (state 'S') if found, or report it as not found (state 'X') with the prompt 'Press F05 to add. F12 to cancel'.
  • Transaction type code: 01; Exists in table: yes → The type's description is shown for editing.
  • Transaction type code: 42; Exists in table: no → The screen shows 'Press F05 to add. F12 to cancel'.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:366-374, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:405-419, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:465-478, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:503-533, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:577-608, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:698-776
Transaction type maintenance screen state machine
rec/group:claude/RULE-154/4
business rule
business, high
WHEN the searched code was not found and the operator re-sends the same code without pressing F5, THE maintenance screen SHALL treat it as a new search and look the code up again.
  • Screen state: not found (X) for code 42; Key pressed: Enter; Code on screen: 42 → Code 42 is looked up again.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:366-374, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:405-419, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:465-478, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:503-533, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:577-608, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:698-776

Acceptance criteria

IDCriterionChecks
AC-01Given Arriving from: Admin menu option 6
When the maintenance screen is entered for the first time from the Admin menu or the transaction type list, or is started with no prior context
Then An empty search screen is shown with 'Enter transaction type to be maintained'.
REQ-F-108
Show blank search screen on first entry
worked example 1 of the rule
AC-02Given screen state: no record shown yet; Transaction Type: 05
When the operator presses Enter on the Transaction Type Maintenance screen while not adding a new record and not awaiting confirmation of changes
Then The code is checked and then used to look up the transaction type.
REQ-F-109
Validate transaction type search key
worked example 1 of the rule
AC-03Given screen state: changes entered, awaiting F5 confirmation; Transaction Type: 05
When the operator presses Enter on the Transaction Type Maintenance screen while not adding a new record and not awaiting confirmation of changes
Then The code is not checked again.
REQ-F-109
Validate transaction type search key
worked example 2 of the rule
AC-04Given Transaction Type: 5
When the transaction type code is a supplied, non-zero number
Then Accepted and looked up as '05'.
REQ-F-113
Edit and normalise transaction type code
worked example 1 of the rule
AC-05Given Transaction Type: 12
When the transaction type code is a supplied, non-zero number
Then Accepted and looked up as '12'.
REQ-F-113
Edit and normalise transaction type code
worked example 2 of the rule
AC-06Given Transaction type code: 01; Exists in table: yes
When a valid transaction type code is entered on the search screen
Then The type's description is shown for editing.
REQ-F-115
Look up transaction type when filter valid
worked example 1 of the rule
AC-07Given Transaction type code: 42; Exists in table: no
When a valid transaction type code is entered on the search screen
Then The screen shows 'Press F05 to add. F12 to cancel'.
REQ-F-115
Look up transaction type when filter valid
worked example 2 of the rule
AC-08Given Screen state: not found (X) for code 42; Key pressed: Enter; Code on screen: 42
When the searched code was not found and the operator re-sends the same code without pressing F5
Then Code 42 is looked up again.
REQ-F-116
Transaction type maintenance screen state machine
worked example 1 of the rule
AC-09Given The empty search screen asking 'Enter transaction type to be maintained'
When The operator leaves the transaction type code blank, or enters '*', and presses Enter
Then The screen shows 'Tran Type code must be supplied.', no lookup is made against the transaction type table, and the screen keeps waiting for a search code
REQ-F-110
Reject missing required numeric value
written from the rule
AC-10Given The search screen
When The operator enters the transaction type code 'AB' and presses Enter
Then The screen shows 'Tran Type code must be numeric.', the search code is marked as invalid, and no lookup is made
REQ-F-111
Reject non-numeric required value
written from the rule
AC-11Given The search screen
When The operator enters the transaction type code '00' (or '0') and presses Enter
Then The screen shows 'Tran Type code must not be zero.', the search code is marked as invalid, and no lookup is made
REQ-F-112
Reject zero code, else accept as valid
written from the rule
AC-12Given The search screen, with an entry that fails more than one check
When The operator presses Enter
Then Exactly one error message is shown, the one from the first check that failed, and the messages from later failing checks are not shown
REQ-F-114
Reject missing required numeric value
written from the rule

Screens

  • Transaction types S-TRANTYPE-LIST · design · replaces CTRTLIA (4 kept, 42 merged, 1 split)
  • Add or change a transaction type S-TRANTYPE-EDIT · design · replaces CTRTUPA (3 kept, 17 merged, 1 split, 1 dropped)
    • **lookup field** Transaction type code checks: 'Tran Type code must be supplied. Enter a two-digit code.'; 'Tran Type code must be numeric. Enter digits only.'; 'Tran Type code must not be zero. Enter a code from 01 to 99.' Only the first failing check is shown.

Data contracts

CSMSG02Y (file record; COTRTUPC), COCOM01Y (working storage; COTRTUPC), COTTL01Y (working storage; COTRTUPC), CSDAT01Y (working storage; COTRTUPC), CSMSG01Y (working storage; COTRTUPC), CSSETATY (working storage; COTRTUPC), CSSTRPFY (working storage; COTRTUPC), CSUSR01Y (working storage; COTRTUPC), CSUTLDWY (working storage; COTRTUPC), CVCRD01Y (working storage; COTRTUPC)

Decision tables

Transaction type search code check

Code supplied (not blank or '*')Code is a numberCode equals zeroSearch resultRule
No--Show 'Tran Type code must be supplied.'; no lookuprec/group:claude/RULE-065/2
YesNo-Show 'Tran Type code must be numeric.'; search code invalid; no lookuprec/group:claude/RULE-065/4
YesYesYesShow 'Tran Type code must not be zero.'; search code invalid; no lookuprec/group:claude/RULE-065/5
YesYesNoAccept; pad to two digits with leading zero; use as lookup keyrec/group:claude/RULE-065/6

Open questions

  • SME-195 On the transaction type maintenance screen, when the operator's key and the screen's current state match none of the recognised combinations, should the system go straight to deciding the next action, or first process what the operator typed on the screen? (Business analyst (transaction type maintenance))
  • SME-196 Change outcomes 'L' and 'F' are both described as "changes failed". Is there any business difference between them, and if so, what is it? (Business analyst (transaction type maintenance))
  • SME-197 When the transaction type description is missing or contains characters other than letters and numbers, what message should the operator see? (Business analyst (transaction type maintenance))
  • SME-203 The screen treats 'entered but details not fetched' the same as a first entry. What situation leads to this, for example a previous lookup that failed or one that was never attempted? (Transaction type reference data business owner)
  • SME-204 Please confirm this rule: when the transaction type maintenance screen is opened for the first time from the administration menu or the transaction type list (or details were not fetched), and PF3 was not pressed, the system clears its working data and the account identifier, shows an empty search screen, and waits for input. (Business analyst (transaction type maintenance))
  • SME-205 How important is the rule that a transaction type code must be a non-zero two-digit number, stored with a leading zero? Is it critical to the system's core purpose, or costly only if it is wrong? (Business SME (transaction type reference data))
  • SME-207 Should a new transaction type go through a review or confirmation step before it is created? Or is the intended flow: search, get 'not found', enter the details, then press PF5 to save? (Business SME (transaction type reference data))
  • DEF-030 Is this intended? The 'No input received' message for a blank search code can never be shown, because the blank check always sets 'Tran Type code must be supplied.' first. Also, the number check accepts signs and decimals, so '-5' is accepted as '05' and '.5' passes the not-zero check but is stored as '00'. (Subject-matter expert)
  • DEF-068 Is this intended? Several branches of the decision step can never run: after a save (state 'C') the program always resets to the search screen before the decision step, so its 'C -> show details' branch is dead; F12 never reaches the decision step with a validated key, so F12 never re-reads the table; the 'delete pending + F12' branch is shadowed by the earlier F12 branch; and the invalid-search-key state 'K' is overwritten by 'not fetched' immediately after it is set, so it never persists. The check for 'Invalid Key pressed. ' also tests a message nothing sets (the code that set it is commented out). (Subject-matter expert)

Design notes

  • The search request needs server-side validation of the type code (supplied, numeric, non-zero) that runs before any database lookup. It applies only when the screen is in search mode, meaning not while adding a new record and not while awaiting confirmation. The validator stops at the first failure. Only a valid code, normalised to two digits, is used as the key for the single-row lookup by primary key. Validate transaction type search key
17. Change a transaction type descriptiondraft · online · 13 requirements · 13 rules · 14 criteria · 2 screens · 1 gap

An administrator changes a transaction type's description. The new description must be supplied and contain only letters, digits and spaces, up to 50 characters. The administrator confirms with F5 before it is written to the transaction type table, and can cancel with F12 before then. Nothing may be saved without that confirmation, a record lock must be reported as unsuccessful, and the screen must report the outcome of every save.

As an administrator, I want to change a transaction type's description and confirm it before saving, so that the transaction type reference data stays correct.

Draft: the function is not signed off yet. Risk medium; touches updates_records. rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#17

Requirements

CodeClassRequirementCriteria
REQ-F-117business ruleWhen the operator presses Enter after changing the description of a displayed or new transaction type, the system shall mark the changes as not OK (state 'E') and then validate the description (up to 50 characters).AC-01
REQ-F-118design noteWhen the operator enters '*' or leaves the transaction type description blank, the system shall treat the description as not supplied, and otherwise keep the entry with leading and trailing spaces removed.AC-02
REQ-F-119business ruleIf the changed description is blank (spaces or '*'), then the system shall show 'Transaction Desc must be supplied.' and keep the changes-not-OK state ('E').AC-12
REQ-F-120business ruleIf the changed description contains any character other than letters, digits and spaces, then the system shall show 'Transaction Desc can have numbers or alphabets only.' and keep the changes-not-OK state ('E').AC-13
REQ-F-121business ruleWhen the changed description passes validation, the system shall move to changes-validated-awaiting-confirmation (state 'N') and show 'Changes validated.Press F5 to save'.AC-03, AC-04, AC-05
REQ-F-122business ruleWhen the operator changes the shown or new details and the changes fail an edit, the system shall move to changes not OK (state 'E'), and when nothing changed, the system shall keep showing the details.AC-04, AC-05
REQ-F-123business ruleWhen the operator presses F5 after the changes have been validated and are awaiting confirmation (state 'N'), the system shall update that type's description in the transaction type table and then show the outcome on the screen.AC-06, AC-07
REQ-F-124business ruleWhen the description update succeeds, the system shall commit the change, set the outcome to committed ('C') and show 'Changes committed to database'.AC-06, AC-07, AC-08
REQ-F-125business ruleIf the update cannot lock the row (SQLCODE -911), then the system shall set the outcome to lock error ('L'), show 'Changes unsuccessful' and give the error 'Could not lock record for update'.AC-06, AC-07, AC-09
REQ-F-126error handlingIf the update fails with any other negative SQLCODE, then the system shall show the error 'Error updating: TRANSACTION_TYPE Table. SQLCODE:…' with the database error text, yet set the outcome to committed ('C') and show 'Changes committed to database' instead of 'Changes unsuccessful'.AC-14
REQ-F-127business ruleIf the save fails for any other database reason, then the system shall end in state 'F' showing 'Changes unsuccessful'.AC-06, AC-07
REQ-F-128business ruleWhen F12 is pressed while validated changes await confirmation (state 'N'), the system shall discard the pending save, show 'Update was cancelled' and mark the changes as backed out (state 'B').AC-10
REQ-F-129business ruleWhile changes are backed out (state 'B') and the next input brings no new change, the system shall return to changes not OK (state 'E') so the operator can edit again, keeping states 'E' and 'N' otherwise unchanged in the decision step.AC-11

Business rules

RuleClassText, worked examples and evidence
Validate description and approve changes
rec/group:claude/RULE-064/1
business rule
business, high
WHEN the operator presses Enter after changing the description of a displayed or new transaction type, THE transaction type maintenance screen SHALL mark the changes as not OK (state 'E') and then validate the description (up to 50 characters).
  • stored description: Purchase; entered description: Purchases; key: Enter → The description is validated; the state is 'E' until it passes
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:678-684, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:746-776, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:849-902, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:230-237, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1237-1238, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:160-161
Treat asterisk or blank as not supplied
rec/group:claude/RULE-065/3
design note
technical, high
WHEN the operator enters '*' or leaves the transaction type description blank, THE transaction type maintenance screen SHALL treat the description as not supplied; otherwise it SHALL keep the entry with leading and trailing spaces removed.
  • Description: * → The description is treated as not supplied.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:362, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:663-684, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:712-737, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:820-842, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:907-973, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:94-97
Require alphanumeric value
rec/group:claude/RULE-064/2
business rule
validation, high
WHEN the changed description is blank (spaces or '*'), THE transaction type maintenance screen SHALL show 'Transaction Desc must be supplied.' and keep the changes-not-OK state ('E').
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:678-684, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:746-776, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:849-902, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:230-237, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1237-1238, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:160-161
Require alphanumeric value
rec/group:claude/RULE-064/3
business rule
validation, high
WHEN the changed description contains any character other than letters, digits and spaces, THE transaction type maintenance screen SHALL show 'Transaction Desc can have numbers or alphabets only.' and keep the changes-not-OK state ('E').
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:678-684, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:746-776, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:849-902, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:230-237, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1237-1238, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:160-161
Validate description and approve changes
rec/group:claude/RULE-064/4
formatting
display, high
WHEN the changed description passes validation, THE transaction type maintenance screen SHALL move to changes-validated-awaiting-confirmation (state 'N') and show 'Changes validated.Press F5 to save'.
  • entered description: Cash back 2 → State 'N'; info message 'Changes validated.Press F5 to save'
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:678-684, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:746-776, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:849-902, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:230-237, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1237-1238, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:160-161
Request save confirmation for valid changes
rec/group:claude/RULE-154/6
business rule
business, high
WHEN the operator changes the shown or new details and the changes pass all edits, THE maintenance screen SHALL move to awaiting save confirmation (state 'N') and prompt 'Changes validated.Press F5 to save'; WHEN the changes fail an edit it SHALL move to changes not OK (state 'E'); WHEN nothing changed it SHALL keep showing the details.
  • Original description: Purchase; New description: Purchase Retail → The screen shows 'Changes validated.Press F5 to save'.
  • Original description: Purchase; New description: purchase → No change is detected; the details stay shown with 'No change detected with respect to values fetched.'.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:366-374, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:405-419, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:465-478, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:503-533, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:577-608, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:698-776
Save confirmed transaction type changes
rec/group:claude/RULE-152/1
business rule
business, high
WHEN the operator presses F5 after the changes have been validated and are awaiting confirmation (state 'N'), THE Transaction Type Maintenance screen SHALL update that type's description in the transaction type table and then show the outcome on the screen.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:514-520, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1538-1548, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1553-1589, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1596-1620, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1239-1244, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1262-1264
Transaction type maintenance screen state machine
rec/group:claude/RULE-154/7
business rule
business, high
WHEN F5 is pressed while validated changes await confirmation (state 'N'), THE maintenance screen SHALL save the changes and end in state 'C' with 'Changes committed to database' on success, 'L' on a record lock error, or 'F' on any other database failure, the last two showing 'Changes unsuccessful'.
  • Screen state: awaiting confirmation (N); Key pressed: F5; Database result: success → 'Changes committed to database' is shown.
  • Screen state: awaiting confirmation (N); Key pressed: F5; Database result: record locked (SQLCODE -911) → State becomes lock error and 'Changes unsuccessful' is shown.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:366-374, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:405-419, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:465-478, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:503-533, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:577-608, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:698-776
Confirm successful update
rec/group:claude/RULE-152/2
business rule
business, high
WHEN the description update succeeds, THE Transaction Type Maintenance screen SHALL commit the change, set the outcome to committed ('C') and show 'Changes committed to database'.
  • Type: 07; Row exists: yes; Key pressed: F5 → The change is committed and the screen shows 'Changes committed to database'.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:514-520, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1538-1548, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1553-1589, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1596-1620, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1239-1244, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1262-1264
Report update blocked by record lock
rec/group:claude/RULE-152/4
error handling
error_handling, high
WHEN the update cannot lock the row (SQLCODE -911), THE Transaction Type Maintenance screen SHALL set the outcome to lock error ('L'), show 'Changes unsuccessful' and give the error 'Could not lock record for update'.
  • Type: 07; SQLCODE: -911 → The screen shows 'Changes unsuccessful' with the error 'Could not lock record for update', and nothing is committed.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:514-520, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1538-1548, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1553-1589, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1596-1620, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1239-1244, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1262-1264
Report approved update that failed
rec/group:claude/RULE-152/5
error handling
error_handling, high
WHEN the update fails with any other negative SQLCODE, or the insert of a new type fails, THE Transaction Type Maintenance screen SHALL show the error 'Error updating: TRANSACTION_TYPE Table. SQLCODE:…' or 'Error inserting record into: TRANSACTION_TYPE Table. SQLCODE:…' with the database error text, yet set the outcome to committed ('C') and show 'Changes committed to database' instead of 'Changes unsuccessful'.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:514-520, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1538-1548, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1553-1589, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1596-1620, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1239-1244, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1262-1264
Process cancel request on PF12
rec/group:claude/RULE-154/8
business rule
business, high
WHEN F12 is pressed while validated changes await confirmation (state 'N'), THE maintenance screen SHALL discard the pending save, show 'Update was cancelled' and mark the changes as backed out (state 'B').
  • Screen state: awaiting confirmation (N); Key pressed: F12 → Nothing is saved and 'Update was cancelled' is shown.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:366-374, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:405-419, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:465-478, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:503-533, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:577-608, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:698-776
Return backed-out changes to editing
rec/group:claude/RULE-154/10
business rule
business, high
WHEN changes were backed out (state 'B') and the next input brings no new change, THE maintenance screen SHALL return to changes not OK (state 'E') so the operator can edit again; states 'E' and 'N' are otherwise kept unchanged by the decision step.
  • Screen state: backed out (B); Key pressed: Enter; Details changed: no → State becomes changes not OK and 'Update transaction type details shown.' is shown.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:366-374, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:405-419, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:465-478, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:503-533, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:577-608, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:698-776

Acceptance criteria

IDCriterionChecks
AC-01Given stored description: Purchase; entered description: Purchases; key: Enter
When the operator presses Enter after changing the description of a displayed or new transaction type
Then The description is validated; the state is 'E' until it passes
REQ-F-117
Validate description and approve changes
worked example 1 of the rule
AC-02Given Description: *
When the operator enters '*' or leaves the transaction type description blank
Then The description is treated as not supplied.
REQ-F-118
Treat asterisk or blank as not supplied
worked example 1 of the rule
AC-03Given entered description: Cash back 2
When the changed description passes validation
Then State 'N'; info message 'Changes validated.Press F5 to save'
REQ-F-121
Validate description and approve changes
worked example 1 of the rule
AC-04Given Original description: Purchase; New description: Purchase Retail
When the operator changes the shown or new details and the changes pass all edits
Then The screen shows 'Changes validated.Press F5 to save'.
REQ-F-121, REQ-F-122
Request save confirmation for valid changes
worked example 1 of the rule
AC-05Given Original description: Purchase; New description: purchase
When the operator changes the shown or new details and the changes pass all edits
Then No change is detected; the details stay shown with 'No change detected with respect to values fetched.'.
REQ-F-121, REQ-F-122
Request save confirmation for valid changes
worked example 2 of the rule
AC-06Given Screen state: awaiting confirmation (N); Key pressed: F5; Database result: success
When F5 is pressed while validated changes await confirmation (state 'N')
Then 'Changes committed to database' is shown.
REQ-F-123, REQ-F-124, REQ-F-125, REQ-F-127
Transaction type maintenance screen state machine
worked example 1 of the rule
AC-07Given Screen state: awaiting confirmation (N); Key pressed: F5; Database result: record locked (SQLCODE -911)
When F5 is pressed while validated changes await confirmation (state 'N')
Then State becomes lock error and 'Changes unsuccessful' is shown.
REQ-F-123, REQ-F-124, REQ-F-125, REQ-F-127
Transaction type maintenance screen state machine
worked example 2 of the rule
AC-08Given Type: 07; Row exists: yes; Key pressed: F5
When the description update succeeds
Then The change is committed and the screen shows 'Changes committed to database'.
REQ-F-124
Confirm successful update
worked example 1 of the rule
AC-09Given Type: 07; SQLCODE: -911
When the update cannot lock the row (SQLCODE -911)
Then The screen shows 'Changes unsuccessful' with the error 'Could not lock record for update', and nothing is committed.
REQ-F-125
Report update blocked by record lock
worked example 1 of the rule
AC-10Given Screen state: awaiting confirmation (N); Key pressed: F12
When F12 is pressed while validated changes await confirmation (state 'N')
Then Nothing is saved and 'Update was cancelled' is shown.
REQ-F-128
Process cancel request on PF12
worked example 1 of the rule
AC-11Given Screen state: backed out (B); Key pressed: Enter; Details changed: no
When changes were backed out (state 'B') and the next input brings no new change
Then State becomes changes not OK and 'Update transaction type details shown.' is shown.
REQ-F-129
Return backed-out changes to editing
worked example 1 of the rule
AC-12Given A transaction type's details are on screen for editing
When The operator clears the description (all spaces), or enters '*', and presses Enter
Then The screen shows 'Transaction Desc must be supplied.', the state stays changes-not-OK ('E'), and no save is offered
REQ-F-119
Require alphanumeric value
written from the rule
AC-13Given A transaction type's details are on screen for editing
When The operator changes the description to 'Cash-Advance!' and presses Enter
Then The screen shows 'Transaction Desc can have numbers or alphabets only.', the state stays changes-not-OK ('E'), and no save is offered
REQ-F-120
Require alphanumeric value
written from the rule
AC-14Given A changed description has been validated and is awaiting confirmation (state 'N')
When The operator presses F5 and the update of the transaction type table fails with a negative SQLCODE other than -911
Then The error 'Error updating: TRANSACTION_TYPE Table. SQLCODE:' is shown, followed by the code and the database error text; the outcome is set to committed ('C') and the information message is 'Changes committed to database', not 'Changes unsuccessful'
REQ-F-126
Report approved update that failed
written from the rule

Screens

  • Transaction types S-TRANTYPE-LIST · design · replaces CTRTLIA (4 kept, 42 merged, 1 split)
  • Add or change a transaction type S-TRANTYPE-EDIT · design · replaces CTRTUPA (3 kept, 17 merged, 1 split, 1 dropped)
    • **summary card** Description checks: 'Transaction Desc must be supplied. Enter a description.' or 'Transaction Desc can have numbers or alphabets only. Remove other characters.'
    • **primary button** Save transaction type checks: Code and description match what is stored (ignoring case and surrounding spaces): 'No change detected with respect to values fetched.'

Data contracts

CSMSG02Y (file record; COTRTUPC), COCOM01Y (working storage; COTRTUPC), COTTL01Y (working storage; COTRTUPC), CSDAT01Y (working storage; COTRTUPC), CSMSG01Y (working storage; COTRTUPC), CSSETATY (working storage; COTRTUPC), CSSTRPFY (working storage; COTRTUPC), CSUSR01Y (working storage; COTRTUPC), CSUTLDWY (working storage; COTRTUPC), CVCRD01Y (working storage; COTRTUPC)

Decision tables

Description check

Description blank (spaces or '*')Description has characters other than letters, digits and spacesScreen resultRule
Yes-Show 'Transaction Desc must be supplied.'; stay in state 'E'rec/group:claude/RULE-064/2
NoYesShow 'Transaction Desc can have numbers or alphabets only.'; stay in state 'E'rec/group:claude/RULE-064/3
NoNoMove to state 'N'; show 'Changes validated.Press F5 to save'rec/group:claude/RULE-064/4

Outcome of saving a confirmed description change

Database result of the updateSaved state and messageRule
SuccessCommit; state 'C'; 'Changes committed to database'rec/group:claude/RULE-152/2
No row found (SQLCODE +100)Insert as new row; commit; 'Changes committed to database'rec/group:claude/RULE-152/3
Record lock (SQLCODE -911)State 'L'; 'Changes unsuccessful'; 'Could not lock record for update'rec/group:claude/RULE-152/4
Other negative SQLCODEError 'Error updating: TRANSACTION_TYPE Table. SQLCODE:…' yet state 'C' and 'Changes committed to database'rec/group:claude/RULE-152/5
Other database failureState 'F'; 'Changes unsuccessful'rec/group:claude/RULE-154/7
Other negative SQLCODEGap: R16 says the outcome is set to committed ('C') with 'Changes committed to database', while R31 says any other database failure ends in state 'F' with 'Changes unsuccessful'; an expert must confirm which outcome is intended.

Open questions

  • SME-195 On the transaction type maintenance screen, when the operator's key and the screen's current state match none of the recognised combinations, should the system go straight to deciding the next action, or first process what the operator typed on the screen? (Business analyst (transaction type maintenance))
  • SME-196 Change outcomes 'L' and 'F' are both described as "changes failed". Is there any business difference between them, and if so, what is it? (Business analyst (transaction type maintenance))
  • SME-197 When the transaction type description is missing or contains characters other than letters and numbers, what message should the operator see? (Business analyst (transaction type maintenance))
  • SME-198 When a transaction type description is updated successfully, does anything else need to happen (for example notifications, logging or other updates) before the screen reports the save result? (Reference data business owner)
  • SME-199 The 'update failed' outcome is tied to the message 'Update of record failed', but the actual update error shows 'Error updating: TRANSACTION_TYPE Table'. Which situation should count as 'update failed', and which message should the operator see? (Application development lead)
  • SME-200 When a transaction type cannot be deleted because other records still use it, what state should the screen be left in, and what should the operator be told? (Reference data business owner)
  • SME-201 If the transaction type maintenance screen finds itself in an unrecognised state, the legacy system terminates abnormally. Should the new system do the same, or recover and show the operator an error message? (Application development lead)
  • SME-202 PF5 is allowed while a transaction type delete is awaiting confirmation, but nothing says what it does then. What should PF5 do in that situation? (Reference data business owner)
  • SME-204 Please confirm this rule: when the transaction type maintenance screen is opened for the first time from the administration menu or the transaction type list (or details were not fetched), and PF3 was not pressed, the system clears its working data and the account identifier, shows an empty search screen, and waits for input. (Business analyst (transaction type maintenance))
  • SME-206 How important is the rule that saving a transaction type updates its description, or creates the type if it does not yet exist? Is it critical to the system's core purpose, or costly only if it is wrong? (Business SME (transaction type reference data))
  • SME-207 Should a new transaction type go through a review or confirmation step before it is created? Or is the intended flow: search, get 'not found', enter the details, then press PF5 to save? (Business SME (transaction type reference data))
  • DEF-030 Is this intended? The 'No input received' message for a blank search code can never be shown, because the blank check always sets 'Tran Type code must be supplied.' first. Also, the number check accepts signs and decimals, so '-5' is accepted as '05' and '.5' passes the not-zero check but is stored as '00'. (Subject-matter expert)
  • DEF-066 Is this intended? When the update fails with an SQL error other than -911, or the insert of a new type fails, the program writes the SQL error text into the same field that holds the 'Update of record failed' flag. That flag is lost, so the program sets the outcome to committed and the screen shows 'Changes committed to database' alongside the error text. The failed outcome 'Changes unsuccessful' is never shown. In addition, the insert error message shows the update's SQLCODE (+100), not the insert's. (Subject-matter expert)
  • DEF-068 Is this intended? Several branches of the decision step can never run: after a save (state 'C') the program always resets to the search screen before the decision step, so its 'C -> show details' branch is dead; F12 never reaches the decision step with a validated key, so F12 never re-reads the table; the 'delete pending + F12' branch is shadowed by the earlier F12 branch; and the invalid-search-key state 'K' is overwritten by 'not fetched' immediately after it is set, so it never persists. The check for 'Invalid Key pressed. ' also tests a message nothing sets (the code that set it is commented out). (Subject-matter expert)

Design notes

  • Input normalisation for the description field: trim leading and trailing spaces, and treat an empty result or a lone '*' as 'not supplied' before any validation or change comparison. Put this in one shared helper so that change detection and description validation see the same value. Treat asterisk or blank as not supplied
18. Add a new transaction typedraft · online · 3 requirements · 3 rules · 3 criteria · 2 screens

When a searched transaction type code is not on file, the administrator can press F5 to create it, enter a description, and save it as a new type in the transaction type table. The new row must carry exactly the code that was searched and the validated description. The screen must report the outcome of the save.

As an administrator, I want to add a transaction type that is not yet on file, so that new kinds of transactions can be classified.

Draft: the function is not signed off yet. Risk medium; touches updates_records. rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#18

Requirements

CodeClassRequirementCriteria
REQ-F-130business ruleWhen F5 is pressed after the searched code was not found (state 'X'), the system shall switch to creating a new record (state 'R') and prompt 'Enter new transaction type details.'.AC-01
REQ-F-131business ruleWhen the save finds no row for the type (SQLCODE +100), the system shall insert the type code and description as a new row in CARDDEMO.TRANSACTION_TYPE, commit it and show 'Changes committed to database'.AC-02
REQ-F-132error handlingIf the insert of a new type fails, then the system shall show the error 'Error inserting record into: TRANSACTION_TYPE Table. SQLCODE:…' with the database error text, yet set the outcome to committed ('C') and show 'Changes committed to database' instead of 'Changes unsuccessful'.AC-03

Business rules

RuleClassText, worked examples and evidence
Begin new transaction type creation
rec/group:claude/RULE-154/5
business rule
business, high
WHEN F5 is pressed after the searched code was not found (state 'X'), THE maintenance screen SHALL switch to creating a new record (state 'R') and prompt 'Enter new transaction type details.'.
  • Screen state: not found (X) for code 42; Key pressed: F5 → The screen shows 'Enter new transaction type details.'.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:366-374, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:405-419, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:465-478, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:503-533, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:577-608, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:698-776
Insert new transaction type
rec/group:claude/RULE-152/3
business rule
business, high
WHEN the save finds no row for the type (SQLCODE +100), THE Transaction Type Maintenance screen SHALL insert the type code and description as a new row in CARDDEMO.TRANSACTION_TYPE, commit it and show 'Changes committed to database'.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:514-520, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1538-1548, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1553-1589, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1596-1620, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1239-1244, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1262-1264
Report approved update that failed
rec/group:claude/RULE-152/5
error handling
error_handling, high
WHEN the update fails with any other negative SQLCODE, or the insert of a new type fails, THE Transaction Type Maintenance screen SHALL show the error 'Error updating: TRANSACTION_TYPE Table. SQLCODE:…' or 'Error inserting record into: TRANSACTION_TYPE Table. SQLCODE:…' with the database error text, yet set the outcome to committed ('C') and show 'Changes committed to database' instead of 'Changes unsuccessful'.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:514-520, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1538-1548, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1553-1589, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1596-1620, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1239-1244, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1262-1264

Acceptance criteria

IDCriterionChecks
AC-01Given Screen state: not found (X) for code 42; Key pressed: F5
When F5 is pressed after the searched code was not found (state 'X')
Then The screen shows 'Enter new transaction type details.'.
REQ-F-130
Begin new transaction type creation
worked example 1 of the rule
AC-02Given Transaction type code '15' is not in the transaction type table, the operator has pressed F5 to add it, and has entered the valid description 'Balance Transfer', which awaits confirmation
When The operator presses F5 to save, and the save finds no existing row for '15' (SQLCODE +100)
Then A new row with type code '15' and description 'Balance Transfer' is inserted into CARDDEMO.TRANSACTION_TYPE and committed, and the screen shows 'Changes committed to database'
REQ-F-131
Insert new transaction type
written from the rule
AC-03Given A new transaction type with a valid description is awaiting confirmation
When The operator presses F5 and the insert into the transaction type table fails
Then The error 'Error inserting record into: TRANSACTION_TYPE Table. SQLCODE:' is shown, followed by the code and the database error text; the outcome is set to committed ('C') and the information message is 'Changes committed to database', not 'Changes unsuccessful'
REQ-F-132
Report approved update that failed
written from the rule

Screens

  • Transaction types S-TRANTYPE-LIST · design · replaces CTRTLIA (4 kept, 42 merged, 1 split)
  • Add or change a transaction type S-TRANTYPE-EDIT · design · replaces CTRTUPA (3 kept, 17 merged, 1 split, 1 dropped)
    • **lookup field** Transaction type code checks: 'Tran Type code must be supplied. Enter a two-digit code.'; 'Tran Type code must be numeric. Enter digits only.'; 'Tran Type code must not be zero. Enter a code from 01 to 99.' Only the first failing check is shown.
    • **primary button** Save transaction type checks: Code and description match what is stored (ignoring case and surrounding spaces): 'No change detected with respect to values fetched.'

Data contracts

CSMSG02Y (file record; COTRTUPC), COCOM01Y (working storage; COTRTUPC), COTTL01Y (working storage; COTRTUPC), CSDAT01Y (working storage; COTRTUPC), CSMSG01Y (working storage; COTRTUPC), CSSETATY (working storage; COTRTUPC), CSSTRPFY (working storage; COTRTUPC), CSUSR01Y (working storage; COTRTUPC), CSUTLDWY (working storage; COTRTUPC), CVCRD01Y (working storage; COTRTUPC)

Decision tables

None.

Open questions

  • SME-206 How important is the rule that saving a transaction type updates its description, or creates the type if it does not yet exist? Is it critical to the system's core purpose, or costly only if it is wrong? (Business SME (transaction type reference data))
  • SME-207 Should a new transaction type go through a review or confirmation step before it is created? Or is the intended flow: search, get 'not found', enter the details, then press PF5 to save? (Business SME (transaction type reference data))
  • DEF-066 Is this intended? When the update fails with an SQL error other than -911, or the insert of a new type fails, the program writes the SQL error text into the same field that holds the 'Update of record failed' flag. That flag is lost, so the program sets the outcome to committed and the screen shows 'Changes committed to database' alongside the error text. The failed outcome 'Changes unsuccessful' is never shown. In addition, the insert error message shows the update's SQLCODE (+100), not the insert's. (Subject-matter expert)
  • DEF-068 Is this intended? Several branches of the decision step can never run: after a save (state 'C') the program always resets to the search screen before the decision step, so its 'C -> show details' branch is dead; F12 never reaches the decision step with a validated key, so F12 never re-reads the table; the 'delete pending + F12' branch is shadowed by the earlier F12 branch; and the invalid-search-key state 'K' is overwritten by 'not fetched' immediately after it is set, so it never persists. The check for 'Invalid Key pressed. ' also tests a message nothing sets (the code that set it is commented out). (Subject-matter expert)

Design notes

None.

19. Delete a transaction typedraft · online · 7 requirements · 7 rules · 7 criteria · 2 screens

An administrator deletes a transaction type in two steps: F4 asks for confirmation, and a second F4 deletes the type that was originally fetched. F12 cancels the delete. A type that other records still refer to must never be deleted, and the delete must never act on a code typed after the record was fetched.

As an administrator, I want to delete a transaction type after confirming it, so that obsolete transaction types are removed without accidental loss.

Draft: the function is not signed off yet. Risk medium; touches updates_records. rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#19

Requirements

CodeClassRequirementCriteria
REQ-F-133business ruleWhen a transaction type's details are on screen and the operator presses F4, the system shall not delete yet but shall ask for confirmation with the message 'Delete this record ? Press F4 to confirm', with all fields protected.AC-01
REQ-F-134business ruleWhen the operator presses F4 again while the delete confirmation is pending, the system shall delete the transaction type with the code originally fetched for display (not any code typed since) from the transaction type table.AC-02
REQ-F-135business ruleWhen the confirmed delete succeeds, the system shall commit the deletion and show 'Delete successful.'.AC-03
REQ-F-136error handlingIf the confirmed delete is refused because other records still refer to the transaction type (SQLCODE -532), then the system shall not delete it and shall show an error starting 'Please delete associated child records first:' followed by the SQL code and database message.AC-06
REQ-F-137error handlingIf the confirmed delete fails for any other database reason, then the system shall mark the delete as failed, show 'Changes unsuccessful' as the information message, and show an error starting 'Delete failed with message:' followed by the SQL code and database message.AC-07
REQ-F-138business ruleWhen F12 is pressed while a delete awaits confirmation (state '9'), the system shall not delete the record, show 'Delete was cancelled' and return to the search state with details not fetched.AC-04
REQ-F-139formattingWhen the operator presses a key after a delete has succeeded or failed, the system shall start over and prompt for a new transaction type to search for.AC-05

Business rules

RuleClassText, worked examples and evidence
Request delete confirmation
rec/group:claude/RULE-153/1
business rule
business, high
WHEN a transaction type's details are on screen and the operator presses F4, THE Transaction Type Maintenance screen SHALL not delete yet but SHALL ask for confirmation with the message 'Delete this record ? Press F4 to confirm', with all fields protected.
  • Screen state: details of type '03' shown; Key pressed: F4 → Nothing is deleted; the screen shows 'Delete this record ? Press F4 to confirm'.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:482-498, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:405-419, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1229-1234, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1293-1295, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1624-1663, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:151-165
Execute confirmed transaction type deletion
rec/group:claude/RULE-153/2
business rule
business, high
WHEN the operator presses F4 again while the delete confirmation is pending, THE Transaction Type Maintenance screen SHALL delete the transaction type with the code originally fetched for display (not any code typed since) from the transaction type table.
  • Fetched type: 03; Screen state: awaiting delete confirmation; Key pressed: F4 → Transaction type '03' is deleted from CARDDEMO.TRANSACTION_TYPE.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:482-498, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:405-419, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1229-1234, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1293-1295, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1624-1663, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:151-165
Confirm successful deletion
rec/group:claude/RULE-153/3
business rule
business, high
WHEN the confirmed delete succeeds, THE Transaction Type Maintenance screen SHALL commit the deletion and show 'Delete successful.'.
  • Type: 03; Database result: SQLCODE 0 → The deletion is committed and the screen shows 'Delete successful.'
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:482-498, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:405-419, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1229-1234, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1293-1295, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1624-1663, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:151-165
Delete transaction type
rec/group:claude/RULE-153/4
error handling
error_handling, high
WHEN the confirmed delete is refused because other records still refer to the transaction type (SQLCODE -532), THE Transaction Type Maintenance screen SHALL not delete it and SHALL show an error starting 'Please delete associated child records first:' followed by the SQL code and database message.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:482-498, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:405-419, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1229-1234, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1293-1295, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1624-1663, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:151-165
Report failed transaction type delete
rec/group:claude/RULE-153/5
error handling
error_handling, high
WHEN the confirmed delete fails for any other database reason, THE Transaction Type Maintenance screen SHALL mark the delete as failed, show 'Changes unsuccessful' as the information message, and show an error starting 'Delete failed with message:' followed by the SQL code and database message.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:482-498, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:405-419, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1229-1234, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1293-1295, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1624-1663, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:151-165
Process cancel request on PF12
rec/group:claude/RULE-154/9
business rule
business, high
WHEN F12 is pressed while a delete awaits confirmation (state '9'), THE maintenance screen SHALL not delete the record, show 'Delete was cancelled' and return to the search state with details not fetched.
  • Screen state: delete confirmation (9); Key pressed: F12 → The record is kept and 'Delete was cancelled' is shown.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:366-374, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:405-419, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:465-478, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:503-533, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:577-608, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:698-776
Deleting a transaction type requires two-step F4 confirmation and is blocked by child records
rec/group:claude/RULE-153/6
formatting
display, high
WHEN the operator presses a key after a delete has succeeded or failed, THE Transaction Type Maintenance screen SHALL start over and prompt for a new transaction type to search for.
  • Previous result: 'Delete successful.'; Key pressed: Enter → The screen is cleared and asks for a transaction type to search for.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:482-498, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:405-419, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1229-1234, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1293-1295, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:1624-1663, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:151-165

Acceptance criteria

IDCriterionChecks
AC-01Given Screen state: details of type '03' shown; Key pressed: F4
When a transaction type's details are on screen and the operator presses F4
Then Nothing is deleted; the screen shows 'Delete this record ? Press F4 to confirm'.
REQ-F-133
Request delete confirmation
worked example 1 of the rule
AC-02Given Fetched type: 03; Screen state: awaiting delete confirmation; Key pressed: F4
When the operator presses F4 again while the delete confirmation is pending
Then Transaction type '03' is deleted from CARDDEMO.TRANSACTION_TYPE.
REQ-F-134
Execute confirmed transaction type deletion
worked example 1 of the rule
AC-03Given Type: 03; Database result: SQLCODE 0
When the confirmed delete succeeds
Then The deletion is committed and the screen shows 'Delete successful.'
REQ-F-135
Confirm successful deletion
worked example 1 of the rule
AC-04Given Screen state: delete confirmation (9); Key pressed: F12
When F12 is pressed while a delete awaits confirmation (state '9')
Then The record is kept and 'Delete was cancelled' is shown.
REQ-F-138
Process cancel request on PF12
worked example 1 of the rule
AC-05Given Previous result: 'Delete successful.'; Key pressed: Enter
When the operator presses a key after a delete has succeeded or failed
Then The screen is cleared and asks for a transaction type to search for.
REQ-F-139
Deleting a transaction type requires two-step F4 confirmation and is blocked by child records
worked example 1 of the rule
AC-06Given Transaction type '01' is shown, other records still refer to it, and the operator has pressed F4 once (delete awaiting confirmation)
When The operator presses F4 again and the database refuses the delete (SQLCODE -532)
Then Transaction type '01' is still in the transaction type table, and the error shown starts with 'Please delete associated child records first:', followed by the SQL code and the database message
REQ-F-136
Delete transaction type
written from the rule
AC-07Given A transaction type is shown and its delete is awaiting confirmation
When The operator presses F4 again and the delete fails with a database error other than SQLCODE -532
Then The delete is marked as failed, the information message is 'Changes unsuccessful', and the error shown starts with 'Delete failed with message:', followed by the SQL code and the database message
REQ-F-137
Report failed transaction type delete
written from the rule

Screens

  • Transaction types S-TRANTYPE-LIST · design · replaces CTRTLIA (4 kept, 42 merged, 1 split)
    • **data table** Transaction types checks: In-place description: 'Transaction Desc must be supplied. Enter a description.' or 'Transaction Desc can have numbers or alphabets only. Remove other characters.'; unchanged: 'No change detected with respect to values fetched.' Row actions replace action codes, so 'Action code selected is invalid' and 'Please select only 1 action' cannot occur. If a filter or the row changes while a dialog is open, the dialog closes and nothing changes.
  • Add or change a transaction type S-TRANTYPE-EDIT · design · replaces CTRTUPA (3 kept, 17 merged, 1 split, 1 dropped)

Data contracts

CSMSG02Y (file record; COTRTUPC), COCOM01Y (working storage; COTRTUPC), COTTL01Y (working storage; COTRTUPC), CSDAT01Y (working storage; COTRTUPC), CSMSG01Y (working storage; COTRTUPC), CSSETATY (working storage; COTRTUPC), CSSTRPFY (working storage; COTRTUPC), CSUSR01Y (working storage; COTRTUPC), CSUTLDWY (working storage; COTRTUPC), CVCRD01Y (working storage; COTRTUPC)

Decision tables

Outcome of a confirmed delete

Database result of the deleteDelete result and messageRule
SuccessCommit deletion; 'Delete successful.'rec/group:claude/RULE-153/3
Child records still refer to the type (SQLCODE -532)Not deleted; 'Please delete associated child records first:' with SQL code and messagerec/group:claude/RULE-153/4
Any other database failureDelete failed; 'Changes unsuccessful'; 'Delete failed with message:' with SQL code and messagerec/group:claude/RULE-153/5

Open questions

  • SME-198 When a transaction type description is updated successfully, does anything else need to happen (for example notifications, logging or other updates) before the screen reports the save result? (Reference data business owner)
  • SME-199 The 'update failed' outcome is tied to the message 'Update of record failed', but the actual update error shows 'Error updating: TRANSACTION_TYPE Table'. Which situation should count as 'update failed', and which message should the operator see? (Application development lead)
  • SME-200 When a transaction type cannot be deleted because other records still use it, what state should the screen be left in, and what should the operator be told? (Reference data business owner)
  • SME-201 If the transaction type maintenance screen finds itself in an unrecognised state, the legacy system terminates abnormally. Should the new system do the same, or recover and show the operator an error message? (Application development lead)
  • SME-202 PF5 is allowed while a transaction type delete is awaiting confirmation, but nothing says what it does then. What should PF5 do in that situation? (Reference data business owner)
  • DEF-067 Is this intended? On a referential-constraint refusal (SQLCODE -532), the code does not set the delete-failed state ('6'). The screen stays in state '8' (start delete), so no 'Changes unsuccessful' information message is shown and the next key press does not reset the screen the way it does after other failures. The error text also concatenates the database message (SQLERRM) twice into a 75-character field, so it is cut off. (Subject-matter expert)
  • DEF-068 Is this intended? Several branches of the decision step can never run: after a save (state 'C') the program always resets to the search screen before the decision step, so its 'C -> show details' branch is dead; F12 never reaches the decision step with a validated key, so F12 never re-reads the table; the 'delete pending + F12' branch is shadowed by the earlier F12 branch; and the invalid-search-key state 'K' is overwritten by 'not fetched' immediately after it is set, so it never persists. The check for 'Invalid Key pressed. ' also tests a message nothing sets (the code that set it is commented out). (Subject-matter expert)

Design notes

None.

20. Control maintenance screen keys and flowdraft · online · 5 requirements · 5 rules · 7 criteria · 2 screens · 1 gap

The maintenance screen accepts only the keys and actions that make sense in its current step. Any other key gets 'Invalid key pressed' and nothing else happens. After a completed, failed or cancelled action the screen starts over at an empty search. No action may ever run out of sequence, such as a save without validation or a delete without confirmation.

As an administrator, I want the maintenance screen to accept only the keys that make sense at each step and to start over cleanly, so that I cannot trigger an action out of sequence.

Draft: the function is not signed off yet. Risk low. rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#20

Requirements

CodeClassRequirementCriteria
REQ-F-140business ruleThe system shall accept F3 (exit) in every state, and Enter in every state except while a delete is awaiting confirmation.AC-01
REQ-F-141business ruleThe system shall accept F4 only when record details are shown or a delete is awaiting confirmation; F5 only when changes are validated, the record was not found, or a delete is in progress; and F12 only when changes are validated, details are shown, the record was not found, a delete is awaiting confirmation, or a new record is being created.AC-02, AC-03
REQ-F-142business ruleIf the key pressed is not allowed in the current state, then the system shall redisplay with the message 'Invalid key pressed' (when no other message is already set) and take no other action.AC-04
REQ-F-143business ruleWhen F12 is pressed while details are shown, a new record is being entered or the searched type was not found, or the previous step ended in a saved change, a failed save, a lock error, a completed or failed delete, or a cancelled change with no original details, the system shall start over at the empty search screen.AC-05, AC-06
REQ-F-144error handlingIf the decision step meets a screen state it does not handle, then the system shall abend with code '0001' and message 'UNEXPECTED DATA SCENARIO'.AC-07

Business rules

RuleClassText, worked examples and evidence
Function keys allowed depend on screen state
rec/group:claude/RULE-237/1
business rule
validation, high
THE transaction type maintenance screen SHALL accept F3 (exit) in every state, and Enter in every state except while a delete is awaiting confirmation.
  • state: delete confirmation pending; key: Enter → 'Invalid key pressed'
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:577-608, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:398-401, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:539-542, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:193-194, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:307-310
Function keys allowed depend on screen state
rec/group:claude/RULE-237/2
business rule
validation, high
THE transaction type maintenance screen SHALL accept F4 only when record details are shown or a delete is awaiting confirmation; F5 only when changes are validated, the record was not found, or a delete is in progress; and F12 only when changes are validated, details are shown, the record was not found, a delete is awaiting confirmation, or a new record is being created.
  • state: details shown; key: F5 → 'Invalid key pressed'
  • state: record not found; key: F5 → Accepted; screen moves to entering a new record
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:577-608, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:398-401, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:539-542, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:193-194, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:307-310
Reject keys not allowed in current state
rec/group:claude/RULE-237/3
business rule
validation, high
WHEN the key pressed is not allowed in the current state, THE transaction type maintenance screen SHALL redisplay with the message 'Invalid key pressed' (when no other message is already set) and take no other action.
  • state: creating new record; key: F4 → Screen redisplayed with 'Invalid key pressed'
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:577-608, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:398-401, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:539-542, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:193-194, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:307-310
Restart after completed or cancelled actions
rec/group:claude/RULE-154/2
business rule
business, high
WHEN F12 is pressed while details are shown, a new record is being entered or the searched type was not found, or the previous step ended in a saved change, a failed save, a lock error, a completed or failed delete, or a cancelled change with no original details, THE maintenance screen SHALL start over at the empty search screen.
  • Previous result: 'Changes committed to database'; Key pressed: Enter → The empty search screen is shown, ready for a new transaction type code.
  • Screen state: details shown (S); Key pressed: F12 → The empty search screen is shown.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:366-374, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:405-419, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:465-478, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:503-533, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:577-608, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:698-776
Redisplay after commit or abend on unknown state
rec/group:claude/RULE-154/11
error handling
error_handling, high
WHEN the decision step meets a screen state it does not handle, THE maintenance screen SHALL abend with code '0001' and message 'UNEXPECTED DATA SCENARIO'.
  • Screen state: review new (V); Key pressed: Enter → The program abends with code '0001', 'UNEXPECTED DATA SCENARIO'.
app/app-transaction-type-db2/cbl/COTRTUPC.cbl:366-374, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:405-419, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:465-478, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:503-533, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:577-608, app/app-transaction-type-db2/cbl/COTRTUPC.cbl:698-776

Acceptance criteria

IDCriterionChecks
AC-01Given state: delete confirmation pending; key: Enter
When transaction type maintenance screen runs
Then 'Invalid key pressed'
REQ-F-140
Function keys allowed depend on screen state
worked example 1 of the rule
AC-02Given state: details shown; key: F5
When transaction type maintenance screen runs
Then 'Invalid key pressed'
REQ-F-141
Function keys allowed depend on screen state
worked example 1 of the rule
AC-03Given state: record not found; key: F5
When transaction type maintenance screen runs
Then Accepted; screen moves to entering a new record
REQ-F-141
Function keys allowed depend on screen state
worked example 2 of the rule
AC-04Given state: creating new record; key: F4
When the key pressed is not allowed in the current state
Then Screen redisplayed with 'Invalid key pressed'
REQ-F-142
Reject keys not allowed in current state
worked example 1 of the rule
AC-05Given Previous result: 'Changes committed to database'; Key pressed: Enter
When F12 is pressed while details are shown, a new record is being entered or the searched type was not found, or the previous step ended in a saved change, a failed save, a lock error, a completed or failed delete, or a cancelled change with no original details
Then The empty search screen is shown, ready for a new transaction type code.
REQ-F-143
Restart after completed or cancelled actions
worked example 1 of the rule
AC-06Given Screen state: details shown (S); Key pressed: F12
When F12 is pressed while details are shown, a new record is being entered or the searched type was not found, or the previous step ended in a saved change, a failed save, a lock error, a completed or failed delete, or a cancelled change with no original details
Then The empty search screen is shown.
REQ-F-143
Restart after completed or cancelled actions
worked example 2 of the rule
AC-07Given Screen state: review new (V); Key pressed: Enter
When the decision step meets a screen state it does not handle
Then The program abends with code '0001', 'UNEXPECTED DATA SCENARIO'.
REQ-F-144
Redisplay after commit or abend on unknown state
worked example 1 of the rule

Screens

  • Transaction types S-TRANTYPE-LIST · design · replaces CTRTLIA (4 kept, 42 merged, 1 split)
  • Add or change a transaction type S-TRANTYPE-EDIT · design · replaces CTRTUPA (3 kept, 17 merged, 1 split, 1 dropped)
    • **primary button** Save transaction type checks: Code and description match what is stored (ignoring case and surrounding spaces): 'No change detected with respect to values fetched.'

Data contracts

CSMSG02Y (file record; COTRTUPC), COCOM01Y (working storage; COTRTUPC), COTTL01Y (working storage; COTRTUPC), CSDAT01Y (working storage; COTRTUPC), CSMSG01Y (working storage; COTRTUPC), CSSETATY (working storage; COTRTUPC), CSSTRPFY (working storage; COTRTUPC), CSUSR01Y (working storage; COTRTUPC), CSUTLDWY (working storage; COTRTUPC), CVCRD01Y (working storage; COTRTUPC)

Decision tables

Keys allowed by screen state

Key pressedScreen stateKey handlingRule
F3Any stateAccepted (exit)rec/group:claude/RULE-237/1
EnterAny state except delete awaiting confirmationAcceptedrec/group:claude/RULE-237/1
F4Details shown or delete awaiting confirmationAcceptedrec/group:claude/RULE-237/2
F5Changes validated, record not found, or delete in progressAcceptedrec/group:claude/RULE-237/2
F12Changes validated, details shown, record not found, delete awaiting confirmation, or new record being createdAcceptedrec/group:claude/RULE-237/2
Any keyState where the key is not allowed (e.g. Enter while delete awaiting confirmation)Redisplay with 'Invalid key pressed'; no other actionrec/group:claude/RULE-237/3
F5Delete in progressGap: F5 is allowed while a delete is in progress, but no rule says what F5 does in that state; deletion itself is confirmed with F4.

Open questions

  • SME-195 On the transaction type maintenance screen, when the operator's key and the screen's current state match none of the recognised combinations, should the system go straight to deciding the next action, or first process what the operator typed on the screen? (Business analyst (transaction type maintenance))
  • SME-196 Change outcomes 'L' and 'F' are both described as "changes failed". Is there any business difference between them, and if so, what is it? (Business analyst (transaction type maintenance))
  • SME-197 When the transaction type description is missing or contains characters other than letters and numbers, what message should the operator see? (Business analyst (transaction type maintenance))
  • SME-198 When a transaction type description is updated successfully, does anything else need to happen (for example notifications, logging or other updates) before the screen reports the save result? (Reference data business owner)
  • SME-199 The 'update failed' outcome is tied to the message 'Update of record failed', but the actual update error shows 'Error updating: TRANSACTION_TYPE Table'. Which situation should count as 'update failed', and which message should the operator see? (Application development lead)
  • SME-200 When a transaction type cannot be deleted because other records still use it, what state should the screen be left in, and what should the operator be told? (Reference data business owner)
  • SME-201 If the transaction type maintenance screen finds itself in an unrecognised state, the legacy system terminates abnormally. Should the new system do the same, or recover and show the operator an error message? (Application development lead)
  • SME-202 PF5 is allowed while a transaction type delete is awaiting confirmation, but nothing says what it does then. What should PF5 do in that situation? (Reference data business owner)
  • SME-207 Should a new transaction type go through a review or confirmation step before it is created? Or is the intended flow: search, get 'not found', enter the details, then press PF5 to save? (Business SME (transaction type reference data))
  • DEF-068 Is this intended? Several branches of the decision step can never run: after a save (state 'C') the program always resets to the search screen before the decision step, so its 'C -> show details' branch is dead; F12 never reaches the decision step with a validated key, so F12 never re-reads the table; the 'delete pending + F12' branch is shadowed by the earlier F12 branch; and the invalid-search-key state 'K' is overwritten by 'not fetched' immediately after it is set, so it never persists. The check for 'Invalid Key pressed. ' also tests a message nothing sets (the code that set it is commented out). (Subject-matter expert)
  • DEF-096 Is this intended? F5 is accepted while a delete is in progress (delete confirm/start/done/failed), but the on-screen key legend does not show F5 in that state and no branch handles F5 there, so it falls through to ordinary input processing; the comment says the two paragraphs should mirror each other. (Subject-matter expert)

Design notes

None.

21. Maintain transaction types in batchdraft · scheduled job · 2 requirements · 2 rules · 2 criteria

Operations staff can apply a file of transaction type add, update and delete requests in one batch run instead of keying them in one at a time. Each line of the file carries an action, a two-digit type code and a description, and the run reports its messages in the job output. The run must apply each request exactly as the line states.

As an operations user, I want to apply a file of transaction type add, update and delete requests in a batch job, so that many reference data changes can be made at once.

Draft: the function is not signed off yet. Risk medium; touches updates_records. rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#21

Requirements

CodeClassRequirementCriteria
REQ-F-145design noteThe system shall run the transaction type update program (COBTUPDT) under Db2 subsystem 'DAZ1' with plan 'CARDDEMO', reading the maintenance request file (INPFILE) as shared input and writing the run's messages to the job output.AC-02
REQ-F-146business ruleThe system shall read the maintenance request file as one request per line, where column 1 is the action ('A' add, 'D' delete, 'U' update, '*' comment), columns 2-3 the numeric transaction type, and columns 4-53 the transaction description.AC-01

Business rules

RuleClassText, worked examples and evidence
Apply transaction type maintenance requests
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-69a3cbb861/1
design note
technical, medium
THE Transaction Type Table Maintenance job SHALL run the transaction type update program (COBTUPDT) under Db2 subsystem 'DAZ1' with plan 'CARDDEMO', reading the maintenance request file (INPFILE) as shared input and writing the run's messages to the job output.
app/app-transaction-type-db2/jcl/MNTTRDB2.jcl:5-30, app/app-transaction-type-db2/cbl/COBTUPDT.cbl:31, app/app-transaction-type-db2/cbl/COBTUPDT.cbl:82-87
Apply transaction type maintenance requests
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-69a3cbb861/2
business rule
validation, medium
THE maintenance request file SHALL hold one request per line: column 1 is the action ('A' add, 'D' delete, 'U' update, '*' comment), columns 2-3 the numeric transaction type, and columns 4-53 the transaction description.
  • request line: * weekly refresh → the line is treated as a comment
app/app-transaction-type-db2/jcl/MNTTRDB2.jcl:5-30, app/app-transaction-type-db2/cbl/COBTUPDT.cbl:31, app/app-transaction-type-db2/cbl/COBTUPDT.cbl:82-87

Acceptance criteria

IDCriterionChecks
AC-01Given request line: * weekly refresh
When maintenance request file runs
Then the line is treated as a comment
REQ-F-146
Apply transaction type maintenance requests
worked example 1 of the rule
AC-02Given A maintenance request file (INPFILE) is available and the transaction type update program (COBTUPDT) is configured against Db2 subsystem 'DAZ1' with plan 'CARDDEMO'
When The transaction type maintenance job is run
Then The program reads the request file as shared input, so other readers are not locked out, applies the requests to the transaction type table, and the run's messages appear in the job output
REQ-F-145
Apply transaction type maintenance requests
written from the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-090 In the transaction type maintenance batch, should comment records (type '*') be skipped without changing the transaction type table? (Business analyst)
  • SME-091 In the transaction type maintenance batch, what should be logged or confirmed when a new transaction type is added successfully? (Business analyst)
  • SME-092 The transaction type maintenance job is tied to database subsystem DAZ1 and application plan CARDDEMO. Should the new system keep these bindings, or treat them as deployment settings? (Platform team)
  • SME-093 When a request in the transaction type maintenance batch is rejected or the job ends abnormally, should the batch carry on and flag the problem (return code 4, earlier changes kept), or stop and roll back the whole batch? Which return code should each outcome give? (Batch operations lead)

Design notes

  • A scheduled or on-demand batch job that reads a request file without taking it exclusively. It connects to the reference data database with the application's own credentials and applies each request to the transaction types table. It writes a per-run log of messages that operations can review. The subsystem and plan names have no counterpart: they become the job's database connection configuration. Apply transaction type maintenance requests
22. Set up reference data backupsdraft · scheduled job · 4 requirements · 4 rules · 7 criteria

A one-time setup job for operations that creates the backup history for the transaction type, transaction category and disclosure group reference data, and stores a first backup copy of each. Each backup runs only when the earlier steps succeeded, and the transaction type history keeps at most five copies.

As an operations user, I want to create the backup generations for transaction type, category and disclosure group reference data, so that earlier versions of the reference data can be kept.

Draft: the function is not signed off yet. Risk medium; touches updates_records. rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#22

Requirements

CodeClassRequirementCriteria
REQ-F-147design noteThe system shall first define the transaction type backup generation group (AWS.M2.CARDDEMO.TRANTYPE.BKUP), keeping at most 5 generations and deleting the oldest when a sixth is added, before any reference data is loaded.AC-01
REQ-F-148design noteWhen the step that defines the transaction type backup group ended with return code 0, the system shall copy the transaction type reference data (AWS.M2.CARDDEMO.TRANTYPE.PS) into a new, cataloged first generation of the transaction type backup (AWS.M2.CARDDEMO.TRANTYPE.BKUP), with fixed-length 60-byte records.AC-02, AC-03
REQ-F-149design noteWhen every earlier step of the setup job ended with return code 0, the system shall copy the transaction category reference data (AWS.M2.CARDDEMO.TRANCATG.PS) into a new, cataloged first generation of the transaction category backup (AWS.M2.CARDDEMO.TRANCATG.PS.BKUP), with fixed-length 60-byte records.AC-04, AC-05
REQ-F-150design noteWhen every earlier step of the setup job ended with return code 0, the system shall copy the disclosure group reference data (AWS.M2.CARDDEMO.DISCGRP.PS) into a new, cataloged first generation of the disclosure group backup (AWS.M2.CARDDEMO.DISCGRP.BKUP), with fixed-length 50-byte records.AC-06, AC-07

Business rules

RuleClassText, worked examples and evidence
Prepare the transaction type backup
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-e348d1b2a1/1
design note
technical, medium
THE Transaction Reference Backup Setup SHALL first define the transaction type backup generation group (AWS.M2.CARDDEMO.TRANTYPE.BKUP), keeping at most 5 generations and deleting the oldest when a sixth is added, before any reference data is loaded.
  • generations of AWS.M2.CARDDEMO.TRANTYPE.BKUP: 5 already exist; new backup: 1 more created → The oldest generation is removed and scratched, leaving 5
app/jcl/DEFGDGD.jcl:22-32
Load first transaction type backup generation
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-56eae6c06a/1
design note
technical, medium
WHEN the step that defines the transaction type backup group ended with return code 0, THE Transaction Reference Backup Setup SHALL copy the transaction type reference data (AWS.M2.CARDDEMO.TRANTYPE.PS) into a new, cataloged first generation of the transaction type backup (AWS.M2.CARDDEMO.TRANTYPE.BKUP), with fixed-length 60-byte records.
  • step 10 return code: 0 → A new generation of AWS.M2.CARDDEMO.TRANTYPE.BKUP is created and cataloged, holding a copy of AWS.M2.CARDDEMO.TRANTYPE.PS
  • step 10 return code: 12 → The copy step is skipped
app/jcl/DEFGDGD.jcl:24-43
Load first transaction category generation
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-961dcca939/1
design note
technical, medium
WHEN every earlier step of the setup job ended with return code 0, THE Transaction Reference Backup Setup SHALL copy the transaction category reference data (AWS.M2.CARDDEMO.TRANCATG.PS) into a new, cataloged first generation of the transaction category backup (AWS.M2.CARDDEMO.TRANCATG.PS.BKUP), with fixed-length 60-byte records.
  • return codes of steps 10-30: all 0 → A new generation of AWS.M2.CARDDEMO.TRANCATG.PS.BKUP is created and cataloged, holding a copy of AWS.M2.CARDDEMO.TRANCATG.PS
  • step 30 return code: 12 → The copy step is skipped
app/jcl/DEFGDGD.jcl:47-66
Load first disclosure group generation
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-2b62d00e4a/1
design note
technical, medium
WHEN every earlier step of the setup job ended with return code 0, THE Transaction Reference Backup Setup SHALL copy the disclosure group reference data (AWS.M2.CARDDEMO.DISCGRP.PS) into a new, cataloged first generation of the disclosure group backup (AWS.M2.CARDDEMO.DISCGRP.BKUP), with fixed-length 50-byte records.
  • return codes of steps 10-50: all 0 → A new generation of AWS.M2.CARDDEMO.DISCGRP.BKUP is created and cataloged, holding a copy of AWS.M2.CARDDEMO.DISCGRP.PS
  • step 10 return code: 12 (transaction type backup group already defined) → The disclosure group copy step is skipped
app/jcl/DEFGDGD.jcl:82-89

Acceptance criteria

IDCriterionChecks
AC-01Given generations of AWS.M2.CARDDEMO.TRANTYPE.BKUP: 5 already exist; new backup: 1 more created
When Transaction Reference Backup Setup runs
Then The oldest generation is removed and scratched, leaving 5
REQ-F-147
Prepare the transaction type backup
worked example 1 of the rule
AC-02Given step 10 return code: 0
When the step that defines the transaction type backup group ended with return code 0
Then A new generation of AWS.M2.CARDDEMO.TRANTYPE.BKUP is created and cataloged, holding a copy of AWS.M2.CARDDEMO.TRANTYPE.PS
REQ-F-148
Load first transaction type backup generation
worked example 1 of the rule
AC-03Given step 10 return code: 12
When the step that defines the transaction type backup group ended with return code 0
Then The copy step is skipped
REQ-F-148
Load first transaction type backup generation
worked example 2 of the rule
AC-04Given return codes of steps 10-30: all 0
When every earlier step of the setup job ended with return code 0
Then A new generation of AWS.M2.CARDDEMO.TRANCATG.PS.BKUP is created and cataloged, holding a copy of AWS.M2.CARDDEMO.TRANCATG.PS
REQ-F-149
Load first transaction category generation
worked example 1 of the rule
AC-05Given step 30 return code: 12
When every earlier step of the setup job ended with return code 0
Then The copy step is skipped
REQ-F-149
Load first transaction category generation
worked example 2 of the rule
AC-06Given return codes of steps 10-50: all 0
When every earlier step of the setup job ended with return code 0
Then A new generation of AWS.M2.CARDDEMO.DISCGRP.BKUP is created and cataloged, holding a copy of AWS.M2.CARDDEMO.DISCGRP.PS
REQ-F-150
Load first disclosure group generation
worked example 1 of the rule
AC-07Given step 10 return code: 12 (transaction type backup group already defined)
When every earlier step of the setup job ended with return code 0
Then The disclosure group copy step is skipped
REQ-F-150
Load first disclosure group generation
worked example 2 of the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-249 How many versions of each reference data backup (transaction types, categories, disclosure groups) must be kept, and what happens when that limit is reached? (Batch operations)
  • SME-250 Are 'disclosure group' and 'discount group' the same business data, and which name should the new system use? (Business data owner)
  • SME-251 The reference data backups use fixed-length records of different lengths. Must the new backups keep that fixed layout, or only the same content? (Data architecture)
  • SME-252 The backup job notes it can be restarted at the transaction category step. Is restarting from that point required, and what happens to a transaction type backup already made before the restart? (Batch operations)
  • SME-253 Must the backup job set up the transaction type backup history first, before any reference data is copied into any backup? (Batch operations)
  • DEF-129 Is this intended? STEP50, which defines the disclosure group backup group, has no COND, so it runs even after an earlier step fails. STEP60, which loads that group, is then skipped because of the earlier failure, so the job can leave an empty disclosure group backup group behind. (Subject-matter expert)

Design notes

  • A versioned backup location for transaction type snapshots, such as a versioned object-store prefix or a backup table keyed by snapshot date. It needs a retention policy that keeps the five newest versions and removes the oldest when a sixth is written. It must exist before the first snapshot is taken. Prepare the transaction type backup
  • A job step that runs only when the backup location was set up successfully. It writes a first snapshot of the current transaction type reference data, unchanged and in its 60-character record layout, as a new recorded version in that location. Load first transaction type backup generation
  • A job step that runs only when every earlier step succeeded. It writes a first snapshot of the current transaction category reference data, unchanged and in its 60-character record layout, as a new recorded version in the category backup location. Load first transaction category generation
  • A job step that runs only when every earlier step succeeded. It writes a first snapshot of the current disclosure group reference data, unchanged and in its 50-character record layout, as a new recorded version in the disclosure group backup location. Load first disclosure group generation
23. Extract transaction types and categories to filesdraft · scheduled job · 9 requirements · 9 rules · 11 criteria · 2 gaps

A scheduled job for operations that backs up the current transaction type and category extract files and then writes fresh extracts from the database, for downstream processing such as the transaction report. The extracts must hold exactly the database contents in code order and in a fixed 60-character layout. A failed extract must never leave a partial file behind.

As an operations user, I want to back up the current transaction type and category files and unload fresh copies from the database, so that downstream processing such as the transaction report has current reference data.

Draft: the function is not signed off yet. Risk medium; touches updates_records. rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#23

Requirements

CodeClassRequirementCriteria
REQ-F-151design noteThe system shall first copy the current transaction type file (AWS.M2.CARDDEMO.TRANTYPE.PS) into a new cataloged generation of the transaction type backup (AWS.M2.CARDDEMO.TRANTYPE.BKUP) of fixed 60-byte records.AC-01
REQ-F-152design noteWhen every earlier step of the transaction type extract job (TRANEXTR) ended with return code 0, the system shall copy the current transaction category file (AWS.M2.CARDDEMO.TRANCATG.PS) into a new cataloged generation of the category backup (AWS.M2.CARDDEMO.TRANCATG.PS.BKUP) of fixed 60-byte records.AC-02
REQ-F-153error handlingIf any earlier step of the transaction type extract job ended with a return code other than 0, then the system shall skip the transaction category backup.AC-03
REQ-F-154side effectWhen every earlier step of the transaction type extract job ended with return code 0, the system shall unload all transaction types from the Db2 table CARDDEMO.TRANSACTION_TYPE, in type code order, to a new transaction type file (AWS.M2.CARDDEMO.TRANTYPE.PS) for the transaction report.AC-04, AC-05
REQ-F-155design noteThe system shall write each extracted transaction type as one 60-character record: the type code, the description padded to 50 characters, then eight '0' characters.AC-10
REQ-F-156error handlingIf the transaction type unload fails, then the system shall delete the new transaction type file instead of keeping it.AC-06
REQ-F-157side effectWhen no earlier step of the transaction type extract job ended with a return code above 4, the system shall unload all transaction categories from the Db2 table CARDDEMO.TRANSACTION_TYPE_CATEGORY, in type code then category order, to a new transaction category file (AWS.M2.CARDDEMO.TRANCATG.PS).AC-07, AC-08
REQ-F-158design noteThe system shall write each extracted category as one 60-character record: the type code, the category code, the category description padded to 50 characters, then four '0' characters.AC-11
REQ-F-159error handlingIf the transaction category unload fails, then the system shall delete the new transaction category file instead of keeping it.AC-09

Business rules

RuleClassText, worked examples and evidence
Back up previous transaction type file
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-21a24e7b9e/1
design note
technical, medium
THE transaction type extract job (TRANEXTR) SHALL first copy the current transaction type file (AWS.M2.CARDDEMO.TRANTYPE.PS) into a new cataloged generation of the transaction type backup (AWS.M2.CARDDEMO.TRANTYPE.BKUP) of fixed 60-byte records.
  • Transaction type file: AWS.M2.CARDDEMO.TRANTYPE.PS from the previous run → A new generation of AWS.M2.CARDDEMO.TRANTYPE.BKUP holds a copy of it.
app/app-transaction-type-db2/jcl/TRANEXTR.jcl:29-38
Back up previous transaction category file
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-c858e8fc3a/1
design note
technical, medium
WHEN every earlier step of the transaction type extract job (TRANEXTR) ended with return code 0, THE job SHALL copy the current transaction category file (AWS.M2.CARDDEMO.TRANCATG.PS) into a new cataloged generation of the category backup (AWS.M2.CARDDEMO.TRANCATG.PS.BKUP) of fixed 60-byte records.
  • Return code of the transaction type backup step: 0 → The current category file is copied into a new backup generation.
app/app-transaction-type-db2/jcl/TRANEXTR.jcl:42-49
Back up previous transaction category file
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-c858e8fc3a/2
error handling
error_handling, medium
WHEN any earlier step of the transaction type extract job ended with a return code other than 0, THE job SHALL skip the transaction category backup.
  • Return code of the transaction type backup step: 12 → No new category backup generation is created.
app/app-transaction-type-db2/jcl/TRANEXTR.jcl:42-49
Unload transaction types to flat file
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-59ee71ac7e/1
side effect
side_effect, medium
WHEN every earlier step of the transaction type extract job ended with return code 0, THE job SHALL unload all transaction types from the Db2 table CARDDEMO.TRANSACTION_TYPE, in type code order, to a new transaction type file (AWS.M2.CARDDEMO.TRANTYPE.PS) for the transaction report.
  • Earlier step return codes: all 0; Transaction types in the table: '02', '01' → The new file holds type '01' then type '02'.
  • Earlier step return codes: one step ended 8 → The unload is skipped and no new transaction type file is written.
app/app-transaction-type-db2/jcl/TRANEXTR.jcl:65-91, app/app-transaction-type-db2/jcl/TRANEXTR.jcl:19-21
Unload transaction types to flat file
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-59ee71ac7e/2
design note
technical, medium
THE transaction type extract SHALL write each type as one 60-character record: the type code, the description padded to 50 characters, then eight '0' characters.
app/app-transaction-type-db2/jcl/TRANEXTR.jcl:65-91, app/app-transaction-type-db2/jcl/TRANEXTR.jcl:19-21
Unload transaction types to flat file
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-59ee71ac7e/3
error handling
error_handling, medium
WHEN the transaction type unload fails, THE job SHALL delete the new transaction type file instead of keeping it.
  • Unload step: abends → AWS.M2.CARDDEMO.TRANTYPE.PS is deleted, not cataloged.
app/app-transaction-type-db2/jcl/TRANEXTR.jcl:65-91, app/app-transaction-type-db2/jcl/TRANEXTR.jcl:19-21
Unload transaction categories to flat file
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-89849cd099/1
side effect
side_effect, medium
WHEN no earlier step of the transaction type extract job ended with a return code above 4, THE job SHALL unload all transaction categories from the Db2 table CARDDEMO.TRANSACTION_TYPE_CATEGORY, in type code then category order, to a new transaction category file (AWS.M2.CARDDEMO.TRANCATG.PS).
  • Highest earlier step return code: 4 → The category unload still runs.
  • Highest earlier step return code: 8 → The category unload is skipped.
app/app-transaction-type-db2/jcl/TRANEXTR.jcl:95-122
Unload transaction categories to flat file
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-89849cd099/2
design note
technical, medium
THE transaction category extract SHALL write each category as one 60-character record: the type code, the category code, the category description padded to 50 characters, then four '0' characters.
app/app-transaction-type-db2/jcl/TRANEXTR.jcl:95-122
Unload transaction categories to flat file
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-89849cd099/3
error handling
error_handling, medium
WHEN the transaction category unload fails, THE job SHALL delete the new transaction category file instead of keeping it.
  • Unload step: abends → AWS.M2.CARDDEMO.TRANCATG.PS is deleted, not cataloged.
app/app-transaction-type-db2/jcl/TRANEXTR.jcl:95-122

Acceptance criteria

IDCriterionChecks
AC-01Given Transaction type file: AWS.M2.CARDDEMO.TRANTYPE.PS from the previous run
When transaction type extract job (TRANEXTR) runs
Then A new generation of AWS.M2.CARDDEMO.TRANTYPE.BKUP holds a copy of it.
REQ-F-151
Back up previous transaction type file
worked example 1 of the rule
AC-02Given Return code of the transaction type backup step: 0
When every earlier step of the transaction type extract job (TRANEXTR) ended with return code 0
Then The current category file is copied into a new backup generation.
REQ-F-152
Back up previous transaction category file
worked example 1 of the rule
AC-03Given Return code of the transaction type backup step: 12
When any earlier step of the transaction type extract job ended with a return code other than 0
Then No new category backup generation is created.
REQ-F-153
Back up previous transaction category file
worked example 1 of the rule
AC-04Given Earlier step return codes: all 0; Transaction types in the table: '02', '01'
When every earlier step of the transaction type extract job ended with return code 0
Then The new file holds type '01' then type '02'.
REQ-F-154
Unload transaction types to flat file
worked example 1 of the rule
AC-05Given Earlier step return codes: one step ended 8
When every earlier step of the transaction type extract job ended with return code 0
Then The unload is skipped and no new transaction type file is written.
REQ-F-154
Unload transaction types to flat file
worked example 2 of the rule
AC-06Given Unload step: abends
When the transaction type unload fails
Then AWS.M2.CARDDEMO.TRANTYPE.PS is deleted, not cataloged.
REQ-F-156
Unload transaction types to flat file
worked example 1 of the rule
AC-07Given Highest earlier step return code: 4
When no earlier step of the transaction type extract job ended with a return code above 4
Then The category unload still runs.
REQ-F-157
Unload transaction categories to flat file
worked example 1 of the rule
AC-08Given Highest earlier step return code: 8
When no earlier step of the transaction type extract job ended with a return code above 4
Then The category unload is skipped.
REQ-F-157
Unload transaction categories to flat file
worked example 2 of the rule
AC-09Given Unload step: abends
When the transaction category unload fails
Then AWS.M2.CARDDEMO.TRANCATG.PS is deleted, not cataloged.
REQ-F-159
Unload transaction categories to flat file
worked example 1 of the rule
AC-10Given The transaction type table holds type code '01' with description 'Purchase'
When The transaction type extract runs
Then The extract contains one 60-character record for it: '01', then 'Purchase' padded with spaces to 50 characters, then '00000000'
REQ-F-155
Unload transaction types to flat file
written from the rule
AC-11Given The transaction category table holds type code '01', category code '0001', description 'Regular Sales Draft'
When The transaction category extract runs
Then The extract contains one 60-character record for it: '01', then '0001', then 'Regular Sales Draft' padded with spaces to 50 characters, then '0000'
REQ-F-158
Unload transaction categories to flat file
written from the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

Extract job steps by earlier return codes

Highest return code of earlier stepsStep actionRule
0Back up transaction category filerec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-c858e8fc3a/1
0Unload transaction types to new filerec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-59ee71ac7e/1
0 to 4Unload transaction categories to new filerec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-89849cd099/1
Other than 0Skip transaction category backuprec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-c858e8fc3a/2
Other than 0Gap: No rule states what happens to the transaction type unload when an earlier step ended with a non-zero return code.
Above 4Gap: No rule states explicitly that the transaction category unload is skipped when an earlier step ended above 4.

Open questions

  • SME-288 The transaction category unload runs if earlier steps ended with return code 4 or lower, while the other steps in the job need return code 0. Is the looser threshold intended, or should every step require return code 0? (Batch operations / application owner)
  • SME-289 The extract job removes the existing transaction type and category files between backup and rebuild. Should the modernized flow guarantee that a file is never removed unless its backup succeeded? (Batch operations / data owner)
  • SME-290 Who uses the transaction type and category extracts, and must the modernized extracts keep the exact fixed-length layout, including padding and trailing '0' characters? (Integration team)
  • DEF-136 Is this intended? Unlike every other step, the category unload runs when an earlier step ended with return code 4, so a warning in the transaction type unload still produces a category file while the earlier steps would have been skipped; the step's comment is also copied from the transaction type step. (Subject-matter expert)

Design notes

  • The extract job's first step copies the current transaction type extract, unchanged and in its 60-character records, into a new version in the versioned transaction type backup location before anything is overwritten. Back up previous transaction type file
  • A conditional job step that runs only when every earlier step succeeded. It copies the current transaction category extract, unchanged and in its 60-character records, into a new version in the category backup location. The orchestrator must skip it after any earlier failure. Back up previous transaction category file
  • A fixed-width writer for the sorted transaction type extract (ordered by type code). Each record has the 2-character type code, the description right-padded with spaces to 50 characters, then the literal '00000000', 60 characters in all. Downstream consumers depend on this exact layout. Unload transaction types to flat file
  • A fixed-width writer for the sorted transaction category extract (ordered by type code, then category code). Each record has the type code, the category code, the category description right-padded with spaces to 50 characters, then the literal '0000', 60 characters in all. Unload transaction categories to flat file
24. Load reference data into keyed filesdraft · scheduled job · 2 requirements · 2 rules · 3 criteria

A scheduled job for operations that rebuilds the keyed transaction type and transaction category stores from their flat extract files, so that online screens and batch programs read current reference data. Each store is emptied and reloaded with every record from its file. No record may be lost or left over from the previous load.

As an operations user, I want to reload the keyed transaction type and category files from their flat files, so that online and batch programs read current reference data.

Draft: the function is not signed off yet. Risk medium; touches updates_records. rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#24

Requirements

CodeClassRequirementCriteria
REQ-F-160design noteThe system shall copy every record of the transaction category flat file (AWS.M2.CARDDEMO.TRANCATG.PS, read shared) into the keyed transaction category file (AWS.M2.CARDDEMO.TRANCATG.VSAM.KSDS, held exclusively), which the same job has just deleted and redefined empty, keyed on the first 6 characters of each 60-character record.AC-01, AC-02
REQ-F-161design noteThe system shall copy every record of the transaction type flat file (AWS.M2.CARDDEMO.TRANTYPE.PS, read shared) into the keyed transaction type file (AWS.M2.CARDDEMO.TRANTYPE.VSAM.KSDS, held exclusively), which the same job has just deleted and redefined empty, keyed on the first 2 characters of each 60-character record.AC-03

Business rules

RuleClassText, worked examples and evidence
Load transaction categories into keyed store
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-2d2e5cd304/1
design note
technical, medium
THE Transaction Category Reference Load SHALL copy every record of the transaction category flat file (AWS.M2.CARDDEMO.TRANCATG.PS, read shared) into the keyed transaction category file (AWS.M2.CARDDEMO.TRANCATG.VSAM.KSDS, held exclusively), which the same job has just deleted and redefined empty, keyed on the first 6 characters of each 60-character record.
  • transaction category flat file: 18 category records; keyed category file before the run: exists with older records → The keyed file is deleted, redefined empty and loaded with exactly the 18 records from the flat file; the older records are gone.
  • keyed category file before the run: does not exist → The failed delete is ignored (return code reset to 0), the file is defined and the flat-file records are loaded.
app/jcl/TRANCATG.jcl:22-27, app/jcl/TRANCATG.jcl:33-49, app/jcl/TRANCATG.jcl:54-61
Load transaction type master from flat file
rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-91f5e597f2/1
design note
technical, medium
THE Transaction Type Reference Load SHALL copy every record of the transaction type flat file (AWS.M2.CARDDEMO.TRANTYPE.PS, read shared) into the keyed transaction type file (AWS.M2.CARDDEMO.TRANTYPE.VSAM.KSDS, held exclusively), which the same job has just deleted and redefined empty, keyed on the first 2 characters of each 60-character record.
  • transaction type flat file: 7 type records (codes 01 to 07); keyed type file before the run: exists with older records → The keyed file is deleted, redefined empty and loaded with exactly the 7 records; earlier contents are not kept.
app/jcl/TRANTYPE.jcl:22-27, app/jcl/TRANTYPE.jcl:33-49, app/jcl/TRANTYPE.jcl:54-61

Acceptance criteria

IDCriterionChecks
AC-01Given transaction category flat file: 18 category records; keyed category file before the run: exists with older records
When Transaction Category Reference Load runs
Then The keyed file is deleted, redefined empty and loaded with exactly the 18 records from the flat file; the older records are gone.
REQ-F-160
Load transaction categories into keyed store
worked example 1 of the rule
AC-02Given keyed category file before the run: does not exist
When Transaction Category Reference Load runs
Then The failed delete is ignored (return code reset to 0), the file is defined and the flat-file records are loaded.
REQ-F-160
Load transaction categories into keyed store
worked example 2 of the rule
AC-03Given transaction type flat file: 7 type records (codes 01 to 07); keyed type file before the run: exists with older records
When Transaction Type Reference Load runs
Then The keyed file is deleted, redefined empty and loaded with exactly the 7 records; earlier contents are not kept.
REQ-F-161
Load transaction type master from flat file
worked example 1 of the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-286 When loading transaction categories, should records already in the store be replaced, merged, or rejected as duplicates? (Reference data owner)
  • SME-287 If the transaction category load fails partway, should the partly loaded store be restored, or the load rerun from the start? (Batch operations team)
  • SME-296 When loading the transaction type store, should records already present be cleared, replaced, or kept? (Reference data owner)
  • SME-297 For the transaction type load, what should happen when a record cannot be written (for example, a duplicate key) or the load is interrupted, and must it be safe to rerun? (Batch operations team)

Design notes

  • A full-refresh load of the transaction category lookup store (a table or cache keyed by type code plus category code, the first 6 characters of each 60-character record). Truncate or recreate it, then load every record from the category extract, which is read without locking it. Hold the store exclusively, or swap it in atomically, so readers never see a half-loaded store. Load transaction categories into keyed store
  • A full-refresh load of the transaction type lookup store, keyed by the 2-character type code at the start of each 60-character record. Truncate or recreate it, then load every record from the transaction type extract, which is read without locking it. Hold the store exclusively, or swap it in atomically, so readers never see a half-loaded store. Load transaction type master from flat file

Unclassified

Card Authorization and Fraud Management

1. Purge expired pending authorizationsdraft · scheduled job · 14 requirements · 12 rules · 18 criteria

A scheduled batch job for the card operations team. It works through every account's pending authorizations, removes each one that has reached the expiry age, and removes an account's summary once it has no approved authorizations left. It must never delete an authorization younger than the expiry days. If a deletion fails it must stop at once with return code 16, so the store is never left half-purged without anyone knowing.

As a card operations team, I want pending authorizations that have reached their expiry age removed from the authorization database by a batch job, so that the pending authorization store holds only current authorizations.

Draft: the function is not signed off yet. Risk high; touches money, updates_records. rec/No domain/CardAuthorizationandFraudManagement#1

Requirements

CodeClassRequirementCriteria
REQ-F-001design noteThe system shall capture the current date, use the supplied expiry days when numeric or else default them to 5, and default the checkpoint frequency to 5 when it is spaces, 0 or low-values.AC-01, AC-02, AC-03
REQ-N-001design noteThe system shall run the purge program (CBPAUP0C) as an IMS batch message program with program specification block PSBPAUTB, using the IMS PSB and DBD libraries.AC-04
REQ-F-002business ruleThe system shall run the expired-authorization purge job with the control values '00,00001,00001,Y', meaning authorizations 0 or more days old count as expired, a checkpoint is taken after more than 1 authorization summary is processed, every checkpoint is reported, and debug messages are on.AC-05, AC-06
REQ-F-003design noteThe system shall read each account's pending authorization summary in turn until the end of the database, check every authorization detail under that summary for expiry, delete each detail that qualifies, and then move on to the next summary.AC-07
REQ-F-004business ruleThe system shall work out each authorization's date as 99999 minus its stored inverted date key (Julian YYDDD), and its age as today's Julian date (YYDDD) minus that date.AC-08
REQ-F-005business ruleWhen an authorization's age is at least the expiry days, the system shall mark it as qualified for deletion.AC-09, AC-10
REQ-F-006business ruleWhen an authorization's age is less than the expiry days, the system shall mark it as not qualified and keep it.AC-09, AC-10
REQ-F-007business ruleWhen an authorization detail qualifies for deletion, the system shall delete it from the pending authorization detail segment (PAUTDTL1) and add 1 to the details-deleted count.AC-11
REQ-F-008error handlingIf deleting an authorization detail fails, then the system shall display 'AUTH DETAIL DELETE FAILED :' with the status and 'AUTH APP ID :' with the account, then display 'CBPAUP0C ABENDING ...' and end the run with return code 16.AC-12
REQ-F-009business ruleWhen an authorization detail qualifies for purge and its response code is '00' (approved), the system shall subtract 1 from the account summary's approved count and subtract the detail's approved amount from the summary's approved total.AC-13
REQ-F-010business ruleWhen an authorization detail qualifies for purge and its response code is anything other than '00', the system shall subtract 1 from the account summary's declined count and subtract the detail's transaction amount from the summary's declined total.AC-18
REQ-F-011business ruleThe system shall make the approved and declined count and total reductions in its working copy of the summary only and shall never rewrite the summary record.AC-13
REQ-F-012business ruleWhen all of an account summary's details have been checked and the adjusted approved authorization count is zero or below, the system shall delete the pending authorization summary from the summary store (DLI:PAUTSUM0).AC-14, AC-15, AC-16, AC-17
REQ-F-013business ruleIf deleting the pending authorization summary fails, then the system shall abend the run.AC-15, AC-16, AC-17

Business rules

RuleClassText, worked examples and evidence
Load run date and purge parameters
rec/agreed:No domain/CardAuthorizationandFraudManagement/id-d2d36e26db/1
design note
technical, medium
THE Purge Parameter Setup SHALL capture the current date, use the supplied expiry days (`P-EXPIRY-DAYS`) when numeric or else default to 5, and default the checkpoint frequency (`P-CHKP-FREQ`) to 5 when it is spaces, 0 or low-values
  • SYSIN: 00,00001,00001,Y → Expiry days is 0 (numeric, so used as given) and checkpoint frequency stays '00001'.
  • P-EXPIRY-DAYS: 'AB'; P-CHKP-FREQ: spaces → Expiry days defaults to 5 and checkpoint frequency defaults to 5.
  • P-EXPIRY-DAYS: 30; P-CHKP-FREQ: 00000 → Expiry days is 30 and checkpoint frequency is set to 5.
app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:183,187,189,196-203, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:196-209
Run the expired authorization purge program
rec/aws:No domain/CardAuthorizationandFraudManagement/id-7fd9041e9b/1
design note
technical, medium
THE expired-authorization purge job SHALL run the purge program (CBPAUP0C) as an IMS batch message program (BMP) with program specification block PSBPAUTB, using the IMS PSB and DBD libraries.
  • Job: CBPAUP0J → Step STEP01 runs DFSRRC00 with PARM 'BMP,CBPAUP0C,PSBPAUTB'.
app/app-authorization-ims-db2-mq/jcl/CBPAUP0J.jcl:21-37, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:98-107, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:189-209, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:160-163, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:280-284, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:355-363
Run the expired authorization purge program
rec/aws:No domain/CardAuthorizationandFraudManagement/id-7fd9041e9b/2
business rule
business, medium
THE expired-authorization purge job SHALL pass the control values '00,00001,00001,Y', meaning: authorizations 0 or more days old count as expired, take a checkpoint after more than 1 authorization summary is processed, report every checkpoint, and turn debug messages on.
  • Control values: 00,00001,00001,Y; Authorization age: 0 days (made today) → The authorization qualifies for deletion, because its age is not less than 0 expiry days.
  • Control values: 00,00001,00001,Y → Debug lines such as 'DEBUG: AUTH SMRY READ : ' are printed and 'CHKP SUCCESS: AUTH COUNT - ' is shown after every checkpoint.
app/app-authorization-ims-db2-mq/jcl/CBPAUP0J.jcl:21-37, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:98-107, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:189-209, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:160-163, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:280-284, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:355-363
Traverse summaries and purge expired details
rec/aws:No domain/CardAuthorizationandFraudManagement/id-6e9db38fe1/1
design note
technical, medium
THE pending authorization purge SHALL read each account's pending authorization summary in turn until the end of the database, check every authorization detail under that summary for expiry, delete each detail that qualifies, and then move on to the next summary.
  • Summaries in database: 2; Details under first summary: 3, of which 1 expired → All 3 details of the first summary are checked and 1 is deleted before the second summary is read; the run stops when the summary read returns end of database.
app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:136-167, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:216-241, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:248-271
Determine authorization detail expiry
rec/group:claude/RULE-187/1
business rule
business, high
THE pending authorization purge SHALL work out each authorization's date as 99999 minus its stored inverted date key (Julian YYDDD), and its age as today's Julian date (YYDDD) minus that date.
  • Stored date key: 74964; Today (YYDDD): 25040 → Authorization date is 25035 and age is 5 days.
app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:277-296, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:303-321, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:377-383, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:186-200, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:20
Determine authorization detail expiry
rec/group:claude/RULE-187/2
business rule
business, high
WHEN an authorization's age is at least the expiry days, THE pending authorization purge SHALL mark it as qualified for deletion; otherwise it SHALL mark it as not qualified and keep it.
  • Expiry days: 5; Age: 5 → Qualified for deletion.
  • Expiry days: 5; Age: 4 → Kept.
app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:277-296, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:303-321, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:377-383, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:186-200, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:20
Delete expired authorization detail
rec/group:claude/RULE-187/3
business rule
business, high
WHEN an authorization detail qualifies for deletion, THE pending authorization purge SHALL delete it from the pending authorization detail segment (PAUTDTL1) and add 1 to the details-deleted count.
  • Qualified for deletion: Yes; Delete status: blank (success) → Detail removed and '# DETAILS REC DELETED' count increases by 1.
app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:277-296, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:303-321, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:377-383, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:186-200, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:20
Delete expired authorization detail
rec/group:claude/RULE-187/4
error handling
error_handling, high
WHEN deleting an authorization detail fails, THE pending authorization purge SHALL display 'AUTH DETAIL DELETE FAILED :' with the status and 'AUTH APP ID :' with the account, then display 'CBPAUP0C ABENDING ...' and end the run with return code 16.
  • Delete status: any non-blank code → Messages 'AUTH DETAIL DELETE FAILED :' and 'CBPAUP0C ABENDING ...' are shown and the job ends with return code 16.
app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:277-296, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:303-321, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:377-383, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:186-200, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:20
Reduce approved totals for expired detail
rec/group:claude/RULE-007/1
business rule
business, high
WHEN an authorization detail qualifies for purge and its response code is '00' (approved), THE pending authorization purge SHALL subtract 1 from the account summary's approved count and subtract the detail's approved amount from the summary's approved total, in its working copy of the summary only (the summary record is never rewritten).
  • Summary approved count: 3; Summary approved total: $450.00; Detail response code: '00'; Detail approved amount: $120.00 → Approved count becomes 2 and approved total becomes $330.00 in the run's working copy; the stored summary is unchanged.
app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:284-296, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:156-158, app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:27-30, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:30-35
Reduce declined totals for expired detail
rec/group:claude/RULE-007/2
business rule
business, high
WHEN an authorization detail qualifies for purge and its response code is anything other than '00', THE pending authorization purge SHALL subtract 1 from the account summary's declined count and subtract the detail's transaction amount from the summary's declined total, in its working copy of the summary only (the summary record is never rewritten).
app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:284-296, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:156-158, app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:27-30, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:30-35
Reverse summary totals for purged authorizations
rec/group:claude/RULE-007/3
business rule
business, high
WHEN all of an account summary's details have been checked, THE pending authorization purge SHALL use the adjusted approved count to decide whether to delete the summary, deleting it when the approved count is zero or less.
  • Approved count after purge: 0; Declined count after purge: 2 → The summary is deleted even though declined authorizations remain.
app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:284-296, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:156-158, app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:27-30, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:30-35
Delete summary with no remaining approvals
rec/agreed:No domain/CardAuthorizationandFraudManagement/id-a00f34ba5f/1
business rule
business, medium
WHEN the approved authorization count (`PA-APPROVED-AUTH-CNT`) of the processed summary is zero or below, THE Pending Authorization Purge SHALL delete the pending authorization summary from the summary store (`DLI:PAUTSUM0`), and abend the run if the deletion fails
  • PA-APPROVED-AUTH-CNT: 0; DIBSTAT: spaces → The summary segment is deleted and '# SUMMARY REC DELETED :' at end of run counts it.
  • PA-APPROVED-AUTH-CNT: 2 → The summary is kept.
  • PA-APPROVED-AUTH-CNT: 0; DIBSTAT: GE → 'AUTH SUMMARY DELETE FAILED :' is displayed with the account id, then 'CBPAUP0C ABENDING ...' and the run ends with return code 16.
app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:156-158,328,335-338,340,342,345-346, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:142-167

Acceptance criteria

IDCriterionChecks
AC-01Given SYSIN: 00,00001,00001,Y
When Purge Parameter Setup runs
Then Expiry days is 0 (numeric, so used as given) and checkpoint frequency stays '00001'.
REQ-F-001
Load run date and purge parameters
worked example 1 of the rule
AC-02Given P-EXPIRY-DAYS: 'AB'; P-CHKP-FREQ: spaces
When Purge Parameter Setup runs
Then Expiry days defaults to 5 and checkpoint frequency defaults to 5.
REQ-F-001
Load run date and purge parameters
worked example 2 of the rule
AC-03Given P-EXPIRY-DAYS: 30; P-CHKP-FREQ: 00000
When Purge Parameter Setup runs
Then Expiry days is 30 and checkpoint frequency is set to 5.
REQ-F-001
Load run date and purge parameters
worked example 3 of the rule
AC-04Given Job: CBPAUP0J
When expired-authorization purge job runs
Then Step STEP01 runs DFSRRC00 with PARM 'BMP,CBPAUP0C,PSBPAUTB'.
REQ-N-001
Run the expired authorization purge program
worked example 1 of the rule
AC-05Given Control values: 00,00001,00001,Y; Authorization age: 0 days (made today)
When expired-authorization purge job runs
Then The authorization qualifies for deletion, because its age is not less than 0 expiry days.
REQ-F-002
Run the expired authorization purge program
worked example 1 of the rule
AC-06Given Control values: 00,00001,00001,Y
When expired-authorization purge job runs
Then Debug lines such as 'DEBUG: AUTH SMRY READ : ' are printed and 'CHKP SUCCESS: AUTH COUNT - ' is shown after every checkpoint.
REQ-F-002
Run the expired authorization purge program
worked example 2 of the rule
AC-07Given Summaries in database: 2; Details under first summary: 3, of which 1 expired
When pending authorization purge runs
Then All 3 details of the first summary are checked and 1 is deleted before the second summary is read; the run stops when the summary read returns end of database.
REQ-F-003
Traverse summaries and purge expired details
worked example 1 of the rule
AC-08Given Stored date key: 74964; Today (YYDDD): 25040
When pending authorization purge runs
Then Authorization date is 25035 and age is 5 days.
REQ-F-004
Determine authorization detail expiry
worked example 1 of the rule
AC-09Given Expiry days: 5; Age: 5
When an authorization's age is at least the expiry days
Then Qualified for deletion.
REQ-F-005, REQ-F-006
Determine authorization detail expiry
worked example 1 of the rule
AC-10Given Expiry days: 5; Age: 4
When an authorization's age is at least the expiry days
Then Kept.
REQ-F-005, REQ-F-006
Determine authorization detail expiry
worked example 2 of the rule
AC-11Given Qualified for deletion: Yes; Delete status: blank (success)
When an authorization detail qualifies for deletion
Then Detail removed and '# DETAILS REC DELETED' count increases by 1.
REQ-F-007
Delete expired authorization detail
worked example 1 of the rule
AC-12Given Delete status: any non-blank code
When deleting an authorization detail fails
Then Messages 'AUTH DETAIL DELETE FAILED :' and 'CBPAUP0C ABENDING ...' are shown and the job ends with return code 16.
REQ-F-008
Delete expired authorization detail
worked example 1 of the rule
AC-13Given Summary approved count: 3; Summary approved total: $450.00; Detail response code: '00'; Detail approved amount: $120.00
When an authorization detail qualifies for purge and its response code is '00' (approved)
Then Approved count becomes 2 and approved total becomes $330.00 in the run's working copy; the stored summary is unchanged.
REQ-F-009, REQ-F-011
Reduce approved totals for expired detail
worked example 1 of the rule
AC-14Given Approved count after purge: 0; Declined count after purge: 2
When all of an account summary's details have been checked
Then The summary is deleted even though declined authorizations remain.
REQ-F-012
Reverse summary totals for purged authorizations
worked example 1 of the rule
AC-15Given PA-APPROVED-AUTH-CNT: 0; DIBSTAT: spaces
When the approved authorization count (`PA-APPROVED-AUTH-CNT`) of the processed summary is zero or below
Then The summary segment is deleted and '# SUMMARY REC DELETED :' at end of run counts it.
REQ-F-012, REQ-F-013
Delete summary with no remaining approvals
worked example 1 of the rule
AC-16Given PA-APPROVED-AUTH-CNT: 2
When the approved authorization count (`PA-APPROVED-AUTH-CNT`) of the processed summary is zero or below
Then The summary is kept.
REQ-F-012, REQ-F-013
Delete summary with no remaining approvals
worked example 2 of the rule
AC-17Given PA-APPROVED-AUTH-CNT: 0; DIBSTAT: GE
When the approved authorization count (`PA-APPROVED-AUTH-CNT`) of the processed summary is zero or below
Then 'AUTH SUMMARY DELETE FAILED :' is displayed with the account id, then 'CBPAUP0C ABENDING ...' and the run ends with return code 16.
REQ-F-012, REQ-F-013
Delete summary with no remaining approvals
worked example 3 of the rule
AC-18Given An account summary with a declined count of 3 and a declined total of 150.00, and under it an authorization detail with response code '05' and a transaction amount of 40.00 whose age is at least the expiry days
When The purge checks that detail and it qualifies for purge
Then In the purge's working copy of the summary, the declined count is 2 and the declined total is 110.00. The approved count and approved total are unchanged, and the stored summary record is not rewritten.
REQ-F-010
Reduce declined totals for expired detail
written from the rule

Screens

None: scheduled job.

Data contracts

CIPAUSMY (file record; CBPAUP0C), CIPAUDTY (working storage; CBPAUP0C)

Decision tables

Purge outcome for an authorization detail

Age at least expiry daysResponse code is '00'Purge actionRule
YesYesDelete detail; subtract 1 from approved count and approved amount from approved total (working copy)rec/group:claude/RULE-007/1
YesNoDelete detail; subtract 1 from declined count and transaction amount from declined total (working copy)rec/group:claude/RULE-007/2
NoAnyMark not qualified and keep the detailrec/group:claude/RULE-187/2

Open questions

  • SME-028 The authorization purge job receives the parameters '00,00001,00001,Y'. What does each value mean (for example expiry days or checkpoint frequency), and would '00' mean authorizations expire after zero days? (Card authorization operations)
  • SME-029 When should a pending-authorization summary be deleted: only when both the approved and declined counts are zero and no unexpired details remain under it? (Today the code checks the approved count twice.) (Card authorization business analyst)
  • DEF-004 Is this intended? The summary-delete test checks the approved count twice ('PA-APPROVED-AUTH-CNT <= 0 AND PA-APPROVED-AUTH-CNT <= 0'), so a summary is deleted when no approved authorizations remain even if declined ones do; the declined count was almost certainly meant for the second test. (Subject-matter expert)
  • DEF-081 Is this intended? The age is a plain subtraction of YYDDD values, so across a year end it is wrong: an authorization dated 25365 checked on 26001 gets an age of 636 days and is purged after one day. Also, the shipped job passes '00' as expiry days, which is numeric, so the default of 5 is skipped and every detail is purged on every run. (Subject-matter expert)
  • DEF-140 Is this intended? The job passes 00 expiry days, which CBPAUP0C accepts as numeric, so every authorization (including ones made today) qualifies for deletion instead of the program default of 5 days. (Subject-matter expert)

Design notes

  • At start-up the job takes the run date from the system clock and reads two run parameters. Expiry days is used when numeric and defaults to 5 otherwise. Checkpoint frequency defaults to 5 when it is blank, zero or missing. Check both values before any data is touched. Load run date and purge parameters
  • Run the purge as a scheduled batch job that has update access to the pending authorization store, both summaries and details. It runs alongside the online authorization service, so it must commit in small batches (see the checkpoint frequency) rather than locking the whole store. Run the expired authorization purge program
  • Read every account summary in turn and, for each one, all of its authorization details. Delete the details that qualify, then decide whether the summary goes too, before moving to the next account. A parent-child query or keyset cursor over summaries with their details is enough. Commit every checkpoint-frequency summaries so a restart can resume from the last committed account. Traverse summaries and purge expired details
2. Answer account inquiry requests from the queuedraft · online · 16 requirements · 18 rules · 20 criteria

A message-driven service for other systems. It answers an account inquiry request with the account's status, balances, limits and dates on the account reply queue, without the caller needing direct access to the account file. Each reply must carry the request's message and correlation identifiers and must show the stored values exactly as held. A bad request gets an 'INVALID REQUEST PARAMETERS' reply, never another account's data.

As a requesting system, I want to send an account inquiry message and receive the account's details on a reply queue, so that I can see an account's status, balances and limits without direct file access.

Draft: the function is not signed off yet. Risk high; touches money. rec/No domain/CardAuthorizationandFraudManagement#2

Requirements

CodeClassRequirementCriteria
REQ-F-014design noteWhen the account inquiry transaction (CDRA) is started by an MQ trigger, the system shall read requests from the queue named in the trigger message, send replies to the queue 'CARD.DEMO.REPLY.ACCT' and send error records to the queue 'CARD.DEMO.ERROR'.AC-01
REQ-F-015business ruleThe system shall take request messages one at a time, waiting up to 5 seconds for each, process and answer each one, and stop when no message arrives within 5 seconds, then close the queues it opened and end the task.AC-02, AC-03
REQ-N-002design noteThe system shall take each request and put its reply as one unit of work committed before the next request is taken, with the last request's unit of work committed when the task ends.AC-04
REQ-F-016design noteWhen a request is taken successfully, the system shall keep its message id and correlation id for the reply and read the first 4 characters as the function code and the next 11 digits as the account number.AC-05
REQ-F-017historical artifactThe system shall always send replies to 'CARD.DEMO.REPLY.ACCT' and shall not use the reply-to queue named in the request.AC-06
REQ-F-018design noteWhen a reply is ready for the current request, the system shall put the reply on the account reply queue carrying the request's message and correlation identifiers.AC-07, AC-08
REQ-F-019design noteIf putting the reply fails, then the system shall record 'MQPUT ERR', publish the error and end the run.AC-07, AC-08
REQ-F-020business ruleIf the function code is not 'INQA' or the account number is zero or less, then the system shall reply 'INVALID REQUEST PARAMETERS ACCT ID : ' with the account number, followed by 'FUNCTION : ' with the function code, without reading the account file.AC-09
REQ-F-021business ruleWhen a request has function code 'INQA' and an account number greater than zero, the system shall read that account from the account file (ACCTDAT).AC-10
REQ-F-022formattingWhen the account is found, the system shall reply with 'ACCOUNT ID : ', 'ACCOUNT STATUS : ', 'BALANCE : ', 'CREDIT LIMIT : ', 'CASH LIMIT : ', 'OPEN DATE : ', 'EXPR DATE : ', 'REIS DATE : ', 'CREDIT BAL : ', 'DEBIT BAL : ' and 'GROUP ID : ', each followed by the stored value unchanged, the credit and debit balances being the current billing cycle's.AC-18
REQ-F-023formattingThe system shall show amounts in the reply as 12 digits with two implied decimal places, no decimal point and the sign carried in the last digit, exactly as stored.AC-19
REQ-F-024business ruleWhen the account is not on the account file, the system shall reply 'INVALID REQUEST PARAMETERS ACCT ID : ' followed by the 11-digit account number.AC-20
REQ-F-025error handlingIf reading the account file returns anything other than found or not found, then the system shall put an error record on 'CARD.DEMO.ERROR' holding the message 'ERROR WHILE READING ACCTF' (cut to 25 characters), the file response and reason codes and the input queue name, send no reply, close the open queues and end the task, with the request just taken committed as consumed.AC-11, AC-12, AC-13
REQ-F-026error handlingIf taking a request fails for any reason other than no message being available, then the system shall put an error record with 'INP MQGET ERR:', the condition and reason codes and the input queue name on the error queue, close the open queues and end the task.AC-14
REQ-F-027error handlingIf the trigger data cannot be retrieved, or the input or reply queue cannot be opened, then the system shall put an error record ('CICS RETREIVE' with the response codes, 'INP MQOPEN ERR' or 'OUT MQOPEN ERR' respectively) on the error queue and end the task.AC-15, AC-16
REQ-F-028error handlingIf the error queue 'CARD.DEMO.ERROR' cannot be opened, then the system shall write 'ERR MQOPEN ERR' with the condition and reason codes to the job log and end the task.AC-17

Business rules

RuleClassText, worked examples and evidence
Process inquiry requests until queue empty
rec/group:claude/RULE-155/1
design note
technical, high
WHEN the account inquiry transaction (CDRA) is started by an MQ trigger, THE account inquiry service SHALL read requests from the queue named in the trigger message, send replies to the queue 'CARD.DEMO.REPLY.ACCT' and send error records to the queue 'CARD.DEMO.ERROR'.
  • trigger message queue name: CARD.DEMO.REQUEST.ACCT → Requests are read from CARD.DEMO.REQUEST.ACCT; replies go to 'CARD.DEMO.REPLY.ACCT'; errors go to 'CARD.DEMO.ERROR'.
app/app-vsam-mq/cbl/COACCT01.cbl:178-218, app/app-vsam-mq/cbl/COACCT01.cbl:222-253, app/app-vsam-mq/cbl/COACCT01.cbl:255-287, app/app-vsam-mq/cbl/COACCT01.cbl:289-322, app/app-vsam-mq/cbl/COACCT01.cbl:325-331, app/app-vsam-mq/cbl/COACCT01.cbl:334-388
Process inquiry requests until queue empty
rec/group:claude/RULE-155/2
business rule
business, high
THE account inquiry service SHALL take request messages one at a time, waiting up to 5 seconds for each, process and answer each one, and stop when no message arrives within 5 seconds (reason MQRC-NO-MSG-AVAILABLE), then close the queues it opened and end the task.
  • requests waiting: 3 → All 3 requests are answered; after a further 5 seconds with no message the queues are closed and the task ends.
  • requests waiting: 0 → The service waits 5 seconds, finds nothing, closes the queues and ends without sending any reply.
app/app-vsam-mq/cbl/COACCT01.cbl:178-218, app/app-vsam-mq/cbl/COACCT01.cbl:222-253, app/app-vsam-mq/cbl/COACCT01.cbl:255-287, app/app-vsam-mq/cbl/COACCT01.cbl:289-322, app/app-vsam-mq/cbl/COACCT01.cbl:325-331, app/app-vsam-mq/cbl/COACCT01.cbl:334-388
Queue-driven request processing loop with per-message commit
rec/group:claude/RULE-155/3
design note
technical, high
THE account inquiry service SHALL take each request and put its reply as one unit of work, committed (CICS SYNCPOINT) before the next request is taken; the last request's unit of work is committed when the task ends.
  • requests waiting: 2 → Request 1 and its reply are committed before request 2 is taken; request 2 and its reply are committed when the task ends.
app/app-vsam-mq/cbl/COACCT01.cbl:178-218, app/app-vsam-mq/cbl/COACCT01.cbl:222-253, app/app-vsam-mq/cbl/COACCT01.cbl:255-287, app/app-vsam-mq/cbl/COACCT01.cbl:289-322, app/app-vsam-mq/cbl/COACCT01.cbl:325-331, app/app-vsam-mq/cbl/COACCT01.cbl:334-388
Retrieve next inquiry request
rec/group:claude/RULE-155/4
design note
technical, high
WHEN a request is taken successfully, THE account inquiry service SHALL keep its message id and correlation id for the reply and read the first 4 characters as the function code and the next 11 digits as the account number.
  • request message: INQA00000012345 → Function code is 'INQA' and account number is 00000012345; the reply carries the request's message id and correlation id.
app/app-vsam-mq/cbl/COACCT01.cbl:178-218, app/app-vsam-mq/cbl/COACCT01.cbl:222-253, app/app-vsam-mq/cbl/COACCT01.cbl:255-287, app/app-vsam-mq/cbl/COACCT01.cbl:289-322, app/app-vsam-mq/cbl/COACCT01.cbl:325-331, app/app-vsam-mq/cbl/COACCT01.cbl:334-388
Queue-driven request processing loop with per-message commit
rec/group:claude/RULE-155/5
historical artifact
leftover, high
THE account inquiry service SHALL always send replies to 'CARD.DEMO.REPLY.ACCT' and SHALL NOT use the reply-to queue named in the request, although it saves that name (SAVE-REPLY2Q).
  • request reply-to queue: MY.REPLY.Q → The reply still goes to 'CARD.DEMO.REPLY.ACCT'.
app/app-vsam-mq/cbl/COACCT01.cbl:178-218, app/app-vsam-mq/cbl/COACCT01.cbl:222-253, app/app-vsam-mq/cbl/COACCT01.cbl:255-287, app/app-vsam-mq/cbl/COACCT01.cbl:289-322, app/app-vsam-mq/cbl/COACCT01.cbl:325-331, app/app-vsam-mq/cbl/COACCT01.cbl:334-388
Send reply to requester
rec/agreed:No domain/CardAuthorizationandFraudManagement/id-2c08dca83b/1
design note
technical, medium
WHEN a reply is ready for the current request, THE Inquiry Reply Delivery SHALL put the reply on the account reply queue carrying the request's message and correlation identifiers; on failure record 'MQPUT ERR', publish the error and end the run (physical store: `CARD.DEMO.REPLY.ACCT`)
  • request message ID: MSG0001; request correlation ID: CORR0001; MQPUT result: OK → The reply is put on 'CARD.DEMO.REPLY.ACCT' with message ID MSG0001 and correlation ID CORR0001
  • reply queue: 'CARD.DEMO.REPLY.ACCT'; MQPUT result: failed (queue full) → 'MQPUT ERR' is recorded with the condition and reason codes, the error is sent to the error queue, and the queues are closed and the run ends
app/app-vsam-mq/cbl/COACCT01.cbl:462,467-471,473,475-477,479-486,488-499, app/app-vsam-mq/cbl/COACCT01.cbl:462-499
Reject invalid inquiry request
rec/agreed:No domain/CardAuthorizationandFraudManagement/id-e16e301e83/1
business rule
validation, medium
IF the function code is not 'INQA' or the account key is zero or less, THEN THE Account Inquiry SHALL send an 'INVALID REQUEST PARAMETERS' reply quoting the account ID and function code
  • function code: 'INQA'; account ID: 00000000001 → The request is accepted and the account file is read for account 00000000001
app/app-vsam-mq/cbl/COACCT01.cbl:448-457, app/app-vsam-mq/cbl/COACCT01.cbl:390-457
Reply with account details
rec/group:claude/RULE-205/5
business rule
validation, high
WHEN the function code is not 'INQA' or the account number is zero, THE account inquiry service SHALL reply 'INVALID REQUEST PARAMETERS ACCT ID : ' with the account number, followed by 'FUNCTION : ' with the function code, without reading the account file.
app/app-vsam-mq/cbl/COACCT01.cbl:130-169, app/app-vsam-mq/cbl/COACCT01.cbl:390-457, app/app-vsam-mq/cbl/COACCT01.cbl:109-112, app/cpy/CVACT01Y.cpy:4-17
Reply with account details
rec/group:claude/RULE-205/1
business rule
business, high
WHEN a request has function code 'INQA' and an account number greater than zero, THE account inquiry service SHALL read that account from the account file (ACCTDAT).
  • function code: INQA; account number: 00000012345 → Account 00000012345 is looked up in ACCTDAT.
app/app-vsam-mq/cbl/COACCT01.cbl:130-169, app/app-vsam-mq/cbl/COACCT01.cbl:390-457, app/app-vsam-mq/cbl/COACCT01.cbl:109-112, app/cpy/CVACT01Y.cpy:4-17
Reply with account details
rec/group:claude/RULE-205/2
formatting
display, high
WHEN the account is found, THE account inquiry service SHALL reply with 'ACCOUNT ID : ', 'ACCOUNT STATUS : ', 'BALANCE : ', 'CREDIT LIMIT : ', 'CASH LIMIT : ', 'OPEN DATE : ', 'EXPR DATE : ', 'REIS DATE : ', 'CREDIT BAL : ', 'DEBIT BAL : ' and 'GROUP ID : ', each followed by the stored value unchanged, the credit and debit balances being the current billing cycle's.
app/app-vsam-mq/cbl/COACCT01.cbl:130-169, app/app-vsam-mq/cbl/COACCT01.cbl:390-457, app/app-vsam-mq/cbl/COACCT01.cbl:109-112, app/cpy/CVACT01Y.cpy:4-17
Account inquiry lookup and reply content
rec/group:claude/RULE-205/3
formatting
display, high
THE account inquiry service SHALL show amounts in the reply as 12 digits with two implied decimal places, no decimal point and the sign carried in the last digit, exactly as stored.
app/app-vsam-mq/cbl/COACCT01.cbl:130-169, app/app-vsam-mq/cbl/COACCT01.cbl:390-457, app/app-vsam-mq/cbl/COACCT01.cbl:109-112, app/cpy/CVACT01Y.cpy:4-17
Reply account not found
rec/group:claude/RULE-205/4
business rule
validation, high
WHEN the account is not on the account file, THE account inquiry service SHALL reply 'INVALID REQUEST PARAMETERS ACCT ID : ' followed by the 11-digit account number.
app/app-vsam-mq/cbl/COACCT01.cbl:130-169, app/app-vsam-mq/cbl/COACCT01.cbl:390-457, app/app-vsam-mq/cbl/COACCT01.cbl:109-112, app/cpy/CVACT01Y.cpy:4-17
Fatal error reporting to error queue and termination
rec/claude:claude/RULE-207/1
error handling
error_handling, medium
WHEN reading the account file returns anything other than found or not found, THE account inquiry service SHALL put an error record on 'CARD.DEMO.ERROR' holding the message 'ERROR WHILE READING ACCTF' (cut to 25 characters), the file response and reason codes, and the input queue name.
  • account file response: DISABLED (84) → Error record with 'ERROR WHILE READING ACCTF', condition 84 and the input queue name is put to 'CARD.DEMO.ERROR'.
app/app-vsam-mq/cbl/COACCT01.cbl:58-67, app/app-vsam-mq/cbl/COACCT01.cbl:437-445, app/app-vsam-mq/cbl/COACCT01.cbl:501-536, app/app-vsam-mq/cbl/COACCT01.cbl:538-550
Fatal error reporting to error queue and termination
rec/claude:claude/RULE-207/2
error handling
error_handling, medium
WHEN such an account file error occurs, THE account inquiry service SHALL send no reply to the requester, close the open queues and end the task, and the request just taken is committed as consumed when the task ends.
  • account file response: DISABLED (84); requests waiting: 2 → No reply is sent for the first request; the task ends and the second request stays on the queue for the next trigger.
app/app-vsam-mq/cbl/COACCT01.cbl:58-67, app/app-vsam-mq/cbl/COACCT01.cbl:437-445, app/app-vsam-mq/cbl/COACCT01.cbl:501-536, app/app-vsam-mq/cbl/COACCT01.cbl:538-550
Account inquiry lookup and reply content
rec/group:claude/RULE-205/6
error handling
error_handling, high
WHEN reading the account file fails for any reason other than account not found, THE account inquiry service SHALL send no reply, put an error record on the error queue and end the task.
  • account file: disabled → No reply is sent; an error record goes to 'CARD.DEMO.ERROR' and the task ends.
app/app-vsam-mq/cbl/COACCT01.cbl:130-169, app/app-vsam-mq/cbl/COACCT01.cbl:390-457, app/app-vsam-mq/cbl/COACCT01.cbl:109-112, app/cpy/CVACT01Y.cpy:4-17
Retrieve next inquiry request
rec/group:claude/RULE-155/6
error handling
error_handling, high
WHEN taking a request fails for any reason other than no message being available, THE account inquiry service SHALL put an error record with 'INP MQGET ERR:', the condition and reason codes and the input queue name on the error queue, close the open queues and end the task.
  • MQGET condition code: 2 (failed); reason code: 2016 (get inhibited) → Error record 'INP MQGET ERR:' with codes 02 and 02016 is put to 'CARD.DEMO.ERROR'; the task ends.
app/app-vsam-mq/cbl/COACCT01.cbl:178-218, app/app-vsam-mq/cbl/COACCT01.cbl:222-253, app/app-vsam-mq/cbl/COACCT01.cbl:255-287, app/app-vsam-mq/cbl/COACCT01.cbl:289-322, app/app-vsam-mq/cbl/COACCT01.cbl:325-331, app/app-vsam-mq/cbl/COACCT01.cbl:334-388
Process inquiry requests until queue empty
rec/group:claude/RULE-155/7
error handling
error_handling, high
WHEN the trigger data cannot be retrieved, or the input or reply queue cannot be opened, THE account inquiry service SHALL put an error record ('CICS RETREIVE' with the response codes, 'INP MQOPEN ERR' or 'OUT MQOPEN ERR' respectively) on the error queue and end the task.
  • input queue open: fails → Error record 'INP MQOPEN ERR' with the input queue name goes to 'CARD.DEMO.ERROR'; no requests are processed.
  • reply queue open: fails → Error record 'OUT MQOPEN ERR' with queue 'CARD.DEMO.REPLY.ACCT' goes to 'CARD.DEMO.ERROR'; the task ends.
app/app-vsam-mq/cbl/COACCT01.cbl:178-218, app/app-vsam-mq/cbl/COACCT01.cbl:222-253, app/app-vsam-mq/cbl/COACCT01.cbl:255-287, app/app-vsam-mq/cbl/COACCT01.cbl:289-322, app/app-vsam-mq/cbl/COACCT01.cbl:325-331, app/app-vsam-mq/cbl/COACCT01.cbl:334-388
Process inquiry requests until queue empty
rec/group:claude/RULE-155/8
error handling
error_handling, high
WHEN the error queue 'CARD.DEMO.ERROR' cannot be opened, THE account inquiry service SHALL write 'ERR MQOPEN ERR' with the condition and reason codes to the job log and end the task.
  • error queue open: fails → 'ERR MQOPEN ERR' is written to the log and the task ends before any request is read.
app/app-vsam-mq/cbl/COACCT01.cbl:178-218, app/app-vsam-mq/cbl/COACCT01.cbl:222-253, app/app-vsam-mq/cbl/COACCT01.cbl:255-287, app/app-vsam-mq/cbl/COACCT01.cbl:289-322, app/app-vsam-mq/cbl/COACCT01.cbl:325-331, app/app-vsam-mq/cbl/COACCT01.cbl:334-388

Acceptance criteria

IDCriterionChecks
AC-01Given trigger message queue name: CARD.DEMO.REQUEST.ACCT
When the account inquiry transaction (CDRA) is started by an MQ trigger
Then Requests are read from CARD.DEMO.REQUEST.ACCT; replies go to 'CARD.DEMO.REPLY.ACCT'; errors go to 'CARD.DEMO.ERROR'.
REQ-F-014
Process inquiry requests until queue empty
worked example 1 of the rule
AC-02Given requests waiting: 3
When account inquiry service runs
Then All 3 requests are answered; after a further 5 seconds with no message the queues are closed and the task ends.
REQ-F-015
Process inquiry requests until queue empty
worked example 1 of the rule
AC-03Given requests waiting: 0
When account inquiry service runs
Then The service waits 5 seconds, finds nothing, closes the queues and ends without sending any reply.
REQ-F-015
Process inquiry requests until queue empty
worked example 2 of the rule
AC-04Given requests waiting: 2
When account inquiry service runs
Then Request 1 and its reply are committed before request 2 is taken; request 2 and its reply are committed when the task ends.
REQ-N-002
Queue-driven request processing loop with per-message commit
worked example 1 of the rule
AC-05Given request message: INQA00000012345
When a request is taken successfully
Then Function code is 'INQA' and account number is 00000012345; the reply carries the request's message id and correlation id.
REQ-F-016
Retrieve next inquiry request
worked example 1 of the rule
AC-06Given request reply-to queue: MY.REPLY.Q
When account inquiry service runs
Then The reply still goes to 'CARD.DEMO.REPLY.ACCT'.
REQ-F-017
Queue-driven request processing loop with per-message commit
worked example 1 of the rule
AC-07Given request message ID: MSG0001; request correlation ID: CORR0001; MQPUT result: OK
When a reply is ready for the current request
Then The reply is put on 'CARD.DEMO.REPLY.ACCT' with message ID MSG0001 and correlation ID CORR0001
REQ-F-018, REQ-F-019
Send reply to requester
worked example 1 of the rule
AC-08Given reply queue: 'CARD.DEMO.REPLY.ACCT'; MQPUT result: failed (queue full)
When a reply is ready for the current request
Then 'MQPUT ERR' is recorded with the condition and reason codes, the error is sent to the error queue, and the queues are closed and the run ends
REQ-F-018, REQ-F-019
Send reply to requester
worked example 2 of the rule
AC-09Given function code: 'INQA'; account ID: 00000000001
When the function code is not 'INQA' or the account key is zero or less
Then The request is accepted and the account file is read for account 00000000001
REQ-F-020
Reject invalid inquiry request
worked example 1 of the rule
AC-10Given function code: INQA; account number: 00000012345
When a request has function code 'INQA' and an account number greater than zero
Then Account 00000012345 is looked up in ACCTDAT.
REQ-F-021
Reply with account details
worked example 1 of the rule
AC-11Given account file response: DISABLED (84)
When reading the account file returns anything other than found or not found
Then Error record with 'ERROR WHILE READING ACCTF', condition 84 and the input queue name is put to 'CARD.DEMO.ERROR'.
REQ-F-025
Fatal error reporting to error queue and termination
worked example 1 of the rule
AC-12Given account file response: DISABLED (84); requests waiting: 2
When such an account file error occurs
Then No reply is sent for the first request; the task ends and the second request stays on the queue for the next trigger.
REQ-F-025
Fatal error reporting to error queue and termination
worked example 1 of the rule
AC-13Given account file: disabled
When reading the account file fails for any reason other than account not found
Then No reply is sent; an error record goes to 'CARD.DEMO.ERROR' and the task ends.
REQ-F-025
Account inquiry lookup and reply content
worked example 1 of the rule
AC-14Given MQGET condition code: 2 (failed); reason code: 2016 (get inhibited)
When taking a request fails for any reason other than no message being available
Then Error record 'INP MQGET ERR:' with codes 02 and 02016 is put to 'CARD.DEMO.ERROR'; the task ends.
REQ-F-026
Retrieve next inquiry request
worked example 1 of the rule
AC-15Given input queue open: fails
When the trigger data cannot be retrieved, or the input or reply queue cannot be opened
Then Error record 'INP MQOPEN ERR' with the input queue name goes to 'CARD.DEMO.ERROR'; no requests are processed.
REQ-F-027
Process inquiry requests until queue empty
worked example 1 of the rule
AC-16Given reply queue open: fails
When the trigger data cannot be retrieved, or the input or reply queue cannot be opened
Then Error record 'OUT MQOPEN ERR' with queue 'CARD.DEMO.REPLY.ACCT' goes to 'CARD.DEMO.ERROR'; the task ends.
REQ-F-027
Process inquiry requests until queue empty
worked example 2 of the rule
AC-17Given error queue open: fails
When the error queue 'CARD.DEMO.ERROR' cannot be opened
Then 'ERR MQOPEN ERR' is written to the log and the task ends before any request is read.
REQ-F-028
Process inquiry requests until queue empty
worked example 1 of the rule
AC-18Given Account 00000000001 is on the account file
When A request arrives with function code 'INQA' and account number 00000000001
Then The reply holds 'ACCOUNT ID : ', 'ACCOUNT STATUS : ', 'BALANCE : ', 'CREDIT LIMIT : ', 'CASH LIMIT : ', 'OPEN DATE : ', 'EXPR DATE : ', 'REIS DATE : ', 'CREDIT BAL : ', 'DEBIT BAL : ' and 'GROUP ID : ', in that order, each followed by the account's stored value unchanged. 'CREDIT BAL : ' and 'DEBIT BAL : ' show the current billing cycle's credit and debit.
REQ-F-022
Reply with account details
written from the rule
AC-19Given Account 00000000001 is on the account file with a stored current balance of 1234.56
When An 'INQA' request for account 00000000001 is answered
Then The value after 'BALANCE : ' is 12 digits with two implied decimal places and no decimal point, with the sign carried in the last digit, exactly as stored (not shown as '1234.56'). Every other amount in the reply follows the same layout.
REQ-F-023
Account inquiry lookup and reply content
written from the rule
AC-20Given Account 00000000099 is not on the account file
When A request arrives with function code 'INQA' and account number 00000000099
Then The reply is 'INVALID REQUEST PARAMETERS ACCT ID : ' followed by '00000000099', and no account details are returned.
REQ-F-024
Reply account not found
written from the rule

Screens

None: online.

Data contracts

CVACT01Y (file record; COACCT01)

Decision tables

Account inquiry reply

Function code is 'INQA'Account number greater than zeroAccount file read resultReply sentRule
NoAnyNot readReply 'INVALID REQUEST PARAMETERS ACCT ID : ' with account number and 'FUNCTION : ' with function coderec/group:claude/RULE-205/5
YesNoNot readReply 'INVALID REQUEST PARAMETERS ACCT ID : ' with account number and 'FUNCTION : ' with function coderec/agreed:No domain/CardAuthorizationandFraudManagement/id-e16e301e83/1
YesYesFoundReply with account detailsrec/group:claude/RULE-205/2
YesYesNot foundReply 'INVALID REQUEST PARAMETERS ACCT ID : ' with the 11-digit account numberrec/group:claude/RULE-205/4
YesYesOther errorNo reply; error record on 'CARD.DEMO.ERROR'; end taskrec/group:claude/RULE-205/6

Open questions

  • SME-048 For the account inquiry service, when should the work of reading a request and sending its reply be committed or rolled back: per request, at the end of the run, or on error? (Integration architecture team)
  • SME-049 What are the exact labels and layout for every field in the account inquiry reply? Only 'ACCOUNT ID : ' and 'BALANCE : ' are known. (Card authorization business analyst)
  • SME-050 Where do the function code and account number sit within an account inquiry request message, and how should a non-numeric account number be treated? (Integration architecture team)
  • SME-051 How should the account inquiry service handle an account file read failure other than 'not found', and failures opening or closing queues? What should the published error record contain? (Card authorization business analyst)
  • SME-052 How important is the account inquiry lookup and the content of its reply? Is it critical to the system's core purpose, or a rule that is costly if it goes wrong? (Business owner (account servicing))
  • SME-053 Should account inquiry replies go to the reply queue the requester names, or always to the fixed queue CARD.DEMO.REPLY.ACCT for every consumer? (Integration architect)
  • DEF-069 Is this intended? When the trigger data cannot be retrieved, the code moves the RESP2 code onto itself instead of into its display field, so the error record always shows a RESP2 of 00000000. Also, 'CICS RETREIVE' is misspelled in the error record. (Subject-matter expert)
  • DEF-171 Is this intended? The error text 'ERROR WHILE READING ACCTFILE' (28 characters) is moved into a 25-character field, so the record says 'ERROR WHILE READING ACCTF'; the paragraph field is never filled on this path, and the request is consumed with no reply to the requester. (Subject-matter expert)

Design notes

  • Run the account inquiry as a consumer on the account inquiry request queue, started when messages arrive. It replies on the fixed account reply queue ('CARD.DEMO.REPLY.ACCT') and reports failures to a shared error queue ('CARD.DEMO.ERROR'). Queue names come from configuration, and the request queue is whichever one triggered the consumer. Process inquiry requests until queue empty
  • Take a request and send its reply in one transaction, so that a request counts as consumed only when its reply is sent. Commit before taking the next request, and commit the final request's transaction when the consumer stops. Queue-driven request processing loop with per-message commit
  • Keep each request's message id and correlation id for its reply. Read the request body as fixed positions: characters 1–4 are the function code and the next 11 digits are the account number. Validate the account number as numeric before looking it up. Retrieve next inquiry request
  • Publish the reply to the account reply queue with the request's message and correlation identifiers, so the caller can match it to its request. If publishing fails, send an 'MQPUT ERR' record to the error queue and stop the consumer. Send reply to requester
3. Answer system date requests from the queuedraft · online · 11 requirements · 11 rules · 13 criteria

A message-driven service that tells calling systems the host's current date and time. Each request gets one reply reading 'SYSTEM DATE : <mm-dd-yyyy>SYSTEM TIME : <time>' on the date reply queue, carrying the request's message and correlation identifiers. Every queue failure must be reported on the error queue, or on the console if the error queue itself is unavailable.

As a requesting system, I want to send a date request message and receive the system date and time on a reply queue, so that I can obtain the host system's current date and time.

Draft: the function is not signed off yet. Risk low; touches reporting_only. rec/No domain/CardAuthorizationandFraudManagement#3

Requirements

CodeClassRequirementCriteria
REQ-F-029design noteWhen the date inquiry transaction (CDRD) is started by a message arriving on its request queue, the system shall read the triggering queue's name, use it as the request queue, and always use 'CARD.DEMO.REPLY.DATE' as the reply queue.AC-01
REQ-F-030design noteWhen the date inquiry transaction starts, the system shall read and answer request messages one after another, committing each read-and-reply before reading the next, until no message arrives within 5 seconds, and then close its queues and end.AC-02, AC-03
REQ-F-031formattingWhen a date request message has been received, the system shall compose a reply reading 'SYSTEM DATE : <mm-dd-yyyy>SYSTEM TIME : <time>' from the current system clock and send it.AC-04
REQ-F-032design noteWhen a date reply has been composed, the system shall put it on 'CARD.DEMO.REPLY.DATE' carrying the request's message ID and correlation ID, as a text-format message in the queue manager's code page, within the current unit of work, without using the requester's own reply-to queue.AC-05
REQ-F-033design noteWhen the date inquiry service ends, the system shall close each of the request, reply and error queues that it opened successfully, with no special close options, and then return control to CICS.AC-06, AC-07
REQ-F-034error handlingIf the trigger information cannot be retrieved at start-up, then the system shall send an error record with location 'CICS RETRIEVE' and the CICS response codes to the error queue 'CARD.DEMO.ERROR', close any open queues and end.AC-08
REQ-F-035error handlingIf reading a request fails for any reason other than no message being available, then the system shall send an error record 'INP MQGET ERR:' with the condition and reason codes and the request queue name to 'CARD.DEMO.ERROR', close its queues and end.AC-09
REQ-F-036error handlingIf putting the date reply fails, then the system shall send an error record with message 'MQPUT ERR', the condition and reason codes and the reply queue name to 'CARD.DEMO.ERROR', close its open queues and end.AC-10
REQ-F-037error handlingIf a queue operation fails, then the system shall put an error record (failing step text, condition code, reason code and queue name) as a text message on 'CARD.DEMO.ERROR' within the unit of work, then close its open queues and end.AC-11
REQ-F-038error handlingIf the error queue itself cannot be opened or written to, then the system shall write the error record to the system console ('ERR MQOPEN ERR' or 'MQPUT ERR') and end.AC-12
REQ-F-039error handlingIf closing a queue fails, then the system shall record 'MQCLOSE ERR' with the condition and reason codes and run termination again, sending only a failed error-queue close to 'CARD.DEMO.ERROR'.AC-13

Business rules

RuleClassText, worked examples and evidence
Identify request queue from trigger
rec/group:claude/RULE-208/1
design note
technical, high
WHEN the date inquiry transaction (CDRD) is started by a message arriving on its request queue, THE date inquiry service SHALL read the triggering queue's name, use it as the request queue, and always use 'CARD.DEMO.REPLY.DATE' as the reply queue.
  • triggering queue name: CARD.DEMO.REQUEST.DATE → Requests are read from CARD.DEMO.REQUEST.DATE and replies go to 'CARD.DEMO.REPLY.DATE'
app/app-vsam-mq/cbl/CODATE01.cbl:140-159, app/app-vsam-mq/cbl/CODATE01.cbl:312-322, app/app-vsam-mq/cbl/CODATE01.cbl:366-403, app/app-vsam-mq/cbl/CODATE01.cbl:243
Triggered drain-the-queue processing loop with per-message commit
rec/claude:claude/RULE-156/1
design note
technical, medium
WHEN the date inquiry transaction starts, THE date inquiry service SHALL read and answer request messages one after another, committing each read-and-reply before reading the next, until no message arrives within 5 seconds, and then close its queues and end.
  • requests waiting: 3 → 3 replies are sent, each committed before the next read; after 5 seconds with no new message the transaction closes its queues and ends
  • requests waiting: 0 → The first read waits 5 seconds, finds nothing, and the transaction ends without sending a reply
app/app-vsam-mq/cbl/CODATE01.cbl:163-167, app/app-vsam-mq/cbl/CODATE01.cbl:274-337
Build system date and time reply
rec/agreed:No domain/CardAuthorizationandFraudManagement/id-9e2fb390ac/1
formatting
display, medium
WHEN a date request message has been received, THE Date Reply Composition SHALL compose a reply reading 'SYSTEM DATE : <mm-dd-yyyy>SYSTEM TIME : <time>' from the current system clock and send it
  • Input queue: empty (no message available) → No reply is composed; the program stops reading and ends.
app/app-vsam-mq/cbl/CODATE01.cbl:339-340,343-345,347-353,355-364, app/app-vsam-mq/cbl/CODATE01.cbl:339-364
Send date reply to requester
rec/group:claude/RULE-208/3
design note
technical, high
WHEN a date reply has been composed, THE date inquiry service SHALL put it on 'CARD.DEMO.REPLY.DATE' carrying the request's message ID and correlation ID, as a text-format message in the queue manager's code page, within the current unit of work; the requester's own reply-to queue is not used.
  • request message ID: X; request correlation ID: Y; request reply-to queue: CLIENT.Q → Reply is put on CARD.DEMO.REPLY.DATE with message ID X and correlation ID Y; nothing goes to CLIENT.Q
app/app-vsam-mq/cbl/CODATE01.cbl:140-159, app/app-vsam-mq/cbl/CODATE01.cbl:312-322, app/app-vsam-mq/cbl/CODATE01.cbl:366-403, app/app-vsam-mq/cbl/CODATE01.cbl:243
Queue open/close resource lifecycle at termination
rec/claude:claude/RULE-184/1
design note
technical, medium
WHEN the date inquiry service ends, THE date inquiry service SHALL close each of the request, reply and error queues that it opened successfully, with no special close options, and then return control to CICS.
  • queues opened: error, request and reply → All three are closed and the transaction returns
  • queues opened: error only (request queue open failed) → Only the error queue is closed and the transaction returns
app/app-vsam-mq/cbl/CODATE01.cbl:442-523, app/app-vsam-mq/cbl/CODATE01.cbl:194, app/app-vsam-mq/cbl/CODATE01.cbl:228, app/app-vsam-mq/cbl/CODATE01.cbl:263
Identify request queue from trigger
rec/group:claude/RULE-208/2
error handling
error_handling, high
WHEN the trigger information cannot be retrieved at start-up, THE date inquiry service SHALL send an error record with location 'CICS RETRIEVE' and the CICS response codes to the error queue 'CARD.DEMO.ERROR', close any open queues and end.
  • CICS RETRIEVE response: not NORMAL → Error record 'CICS RETRIEVE' 'RESP: ...END' is put on CARD.DEMO.ERROR and the transaction ends
app/app-vsam-mq/cbl/CODATE01.cbl:140-159, app/app-vsam-mq/cbl/CODATE01.cbl:312-322, app/app-vsam-mq/cbl/CODATE01.cbl:366-403, app/app-vsam-mq/cbl/CODATE01.cbl:243
Triggered drain-the-queue processing loop with per-message commit
rec/claude:claude/RULE-156/2
error handling
error_handling, medium
WHEN reading a request fails for any reason other than no message being available, THE date inquiry service SHALL send an error record 'INP MQGET ERR:' with the condition and reason codes and the request queue name to 'CARD.DEMO.ERROR', close its queues and end.
  • read condition code: 2; reason code: 2009 → Error record 'INP MQGET ERR:' 02 02009 with the request queue name goes to CARD.DEMO.ERROR and the transaction ends
app/app-vsam-mq/cbl/CODATE01.cbl:163-167, app/app-vsam-mq/cbl/CODATE01.cbl:274-337
Send date reply to requester
rec/group:claude/RULE-208/4
error handling
error_handling, high
WHEN putting the date reply fails, THE date inquiry service SHALL send an error record with message 'MQPUT ERR', the condition and reason codes and the reply queue name to 'CARD.DEMO.ERROR', close its open queues and end.
  • reply put condition code: 2; reason code: 2053 → Error record 'MQPUT ERR' 02 02053 CARD.DEMO.REPLY.DATE goes to CARD.DEMO.ERROR and the transaction ends
app/app-vsam-mq/cbl/CODATE01.cbl:140-159, app/app-vsam-mq/cbl/CODATE01.cbl:312-322, app/app-vsam-mq/cbl/CODATE01.cbl:366-403, app/app-vsam-mq/cbl/CODATE01.cbl:243
MQ failure reporting to error queue and termination
rec/claude:claude/RULE-209/1
error handling
error_handling, medium
WHEN a queue operation fails, THE date inquiry service SHALL put an error record (failing step text, condition code, reason code and queue name) as a text message on 'CARD.DEMO.ERROR' within the unit of work, then close its open queues and end.
  • failure: reply put; condition code: 2; reason code: 2053 → Error record 'MQPUT ERR' 02 02053 CARD.DEMO.REPLY.DATE is put on CARD.DEMO.ERROR and the transaction ends
app/app-vsam-mq/cbl/CODATE01.cbl:58-67, app/app-vsam-mq/cbl/CODATE01.cbl:264-270, app/app-vsam-mq/cbl/CODATE01.cbl:396-402, app/app-vsam-mq/cbl/CODATE01.cbl:405-440
MQ failure reporting to error queue and termination
rec/claude:claude/RULE-209/2
error handling
error_handling, medium
WHEN the error queue itself cannot be opened or written to, THE date inquiry service SHALL write the error record to the system console ('ERR MQOPEN ERR' or 'MQPUT ERR') and end.
  • error queue open condition code: 2 → 'ERR MQOPEN ERR' with CARD.DEMO.ERROR is displayed on the console and the transaction ends
app/app-vsam-mq/cbl/CODATE01.cbl:58-67, app/app-vsam-mq/cbl/CODATE01.cbl:264-270, app/app-vsam-mq/cbl/CODATE01.cbl:396-402, app/app-vsam-mq/cbl/CODATE01.cbl:405-440
Queue open/close resource lifecycle at termination
rec/claude:claude/RULE-184/2
error handling
error_handling, medium
WHEN closing a queue fails, THE date inquiry service SHALL record 'MQCLOSE ERR' with the condition and reason codes and run termination again; only a failed error-queue close is also sent to 'CARD.DEMO.ERROR'.
  • error queue close condition code: 2 → 'MQCLOSE ERR' with CARD.DEMO.ERROR is put to the error queue and termination is re-run
app/app-vsam-mq/cbl/CODATE01.cbl:442-523, app/app-vsam-mq/cbl/CODATE01.cbl:194, app/app-vsam-mq/cbl/CODATE01.cbl:228, app/app-vsam-mq/cbl/CODATE01.cbl:263

Acceptance criteria

IDCriterionChecks
AC-01Given triggering queue name: CARD.DEMO.REQUEST.DATE
When the date inquiry transaction (CDRD) is started by a message arriving on its request queue
Then Requests are read from CARD.DEMO.REQUEST.DATE and replies go to 'CARD.DEMO.REPLY.DATE'
REQ-F-029
Identify request queue from trigger
worked example 1 of the rule
AC-02Given requests waiting: 3
When the date inquiry transaction starts
Then 3 replies are sent, each committed before the next read; after 5 seconds with no new message the transaction closes its queues and ends
REQ-F-030
Triggered drain-the-queue processing loop with per-message commit
worked example 1 of the rule
AC-03Given requests waiting: 0
When the date inquiry transaction starts
Then The first read waits 5 seconds, finds nothing, and the transaction ends without sending a reply
REQ-F-030
Triggered drain-the-queue processing loop with per-message commit
worked example 2 of the rule
AC-04Given Input queue: empty (no message available)
When a date request message has been received
Then No reply is composed; the program stops reading and ends.
REQ-F-031
Build system date and time reply
worked example 1 of the rule
AC-05Given request message ID: X; request correlation ID: Y; request reply-to queue: CLIENT.Q
When a date reply has been composed
Then Reply is put on CARD.DEMO.REPLY.DATE with message ID X and correlation ID Y; nothing goes to CLIENT.Q
REQ-F-032
Send date reply to requester
worked example 1 of the rule
AC-06Given queues opened: error, request and reply
When the date inquiry service ends
Then All three are closed and the transaction returns
REQ-F-033
Queue open/close resource lifecycle at termination
worked example 1 of the rule
AC-07Given queues opened: error only (request queue open failed)
When the date inquiry service ends
Then Only the error queue is closed and the transaction returns
REQ-F-033
Queue open/close resource lifecycle at termination
worked example 2 of the rule
AC-08Given CICS RETRIEVE response: not NORMAL
When the trigger information cannot be retrieved at start-up
Then Error record 'CICS RETRIEVE' 'RESP: ...END' is put on CARD.DEMO.ERROR and the transaction ends
REQ-F-034
Identify request queue from trigger
worked example 1 of the rule
AC-09Given read condition code: 2; reason code: 2009
When reading a request fails for any reason other than no message being available
Then Error record 'INP MQGET ERR:' 02 02009 with the request queue name goes to CARD.DEMO.ERROR and the transaction ends
REQ-F-035
Triggered drain-the-queue processing loop with per-message commit
worked example 1 of the rule
AC-10Given reply put condition code: 2; reason code: 2053
When putting the date reply fails
Then Error record 'MQPUT ERR' 02 02053 CARD.DEMO.REPLY.DATE goes to CARD.DEMO.ERROR and the transaction ends
REQ-F-036
Send date reply to requester
worked example 1 of the rule
AC-11Given failure: reply put; condition code: 2; reason code: 2053
When a queue operation fails
Then Error record 'MQPUT ERR' 02 02053 CARD.DEMO.REPLY.DATE is put on CARD.DEMO.ERROR and the transaction ends
REQ-F-037
MQ failure reporting to error queue and termination
worked example 1 of the rule
AC-12Given error queue open condition code: 2
When the error queue itself cannot be opened or written to
Then 'ERR MQOPEN ERR' with CARD.DEMO.ERROR is displayed on the console and the transaction ends
REQ-F-038
MQ failure reporting to error queue and termination
worked example 1 of the rule
AC-13Given error queue close condition code: 2
When closing a queue fails
Then 'MQCLOSE ERR' with CARD.DEMO.ERROR is put to the error queue and termination is re-run
REQ-F-039
Queue open/close resource lifecycle at termination
worked example 1 of the rule

Screens

None: online.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-117 The date/time service's error messages contain old-platform texts such as 'CICS RETRIEVE' and 'MQPUT ERR'. Do downstream consumers of the error queue rely on these exact texts, or can they be replaced with neutral wording? (Operations / integration team)
  • SME-118 What exact time format must the date/time service's reply contain (separators, precision)? (Integration team)
  • SME-119 The date/time reply is built in a fixed-size buffer. Do consumers depend on a maximum reply length? (Integration team)
  • SME-120 The date/time reply service is filed under 'Card Authorization and Fraud Management'. Should it be moved to a different business function? (Business analyst)
  • SME-121 Is the content of the system date/time reply critical to the system's core purpose, or costly if wrong, so that it must be matched exactly? (Business owner)
  • SME-122 Should date/time replies go to the reply queue named by the requester instead of the fixed queue CARD.DEMO.REPLY.DATE, and should replies be matched to requests by the request's message ID instead of its correlation ID? (Integration architect)
  • SME-123 If the date/time service fails midway, should the request be put back on the queue to retry, instead of being consumed with no reply as today? (Operations / support lead)
  • SME-124 In the date/time service, is the 'reply queue open' flag (which actually tracks the input queue) only a naming quirk? And if closing a queue fails, should the transaction end without trying to close it again? (Technical lead / MQ administrator)
  • DEF-087 Is this intended? On a CICS RETRIEVE failure the second response code is moved onto itself instead of into its display field, so the error record always shows RESP2 as zero; also the requester's reply-to queue is saved but ignored, so all replies go to the fixed queue. (Subject-matter expert)
  • DEF-166 Is this intended? A close failure re-performs termination while the open flags are still set, so it retries the same close recursively. A failed reply-queue close is labelled with the request queue name, and request/reply close failures are never sent to the error queue. (Subject-matter expert)
  • DEF-172 Is this intended? The error-location field is set only for the trigger-retrieve failure, so for every queue failure the record's location is blank and the step can only be read from the message text. (Subject-matter expert)

Design notes

  • Run the date inquiry as a consumer on the queue whose arrival started it. It always replies on the fixed date reply queue ('CARD.DEMO.REPLY.DATE') and ignores any reply-to queue the requester names. Identify request queue from trigger
  • Process requests one at a time until the queue is empty: wait up to 5 seconds for each, and stop when none arrives. Take a request and send its reply in one transaction, committed before the next request is taken. Triggered drain-the-queue processing loop with per-message commit
  • Send the reply as a text message in the broker's standard character set, carrying the request's message ID and correlation ID, inside the same transaction that consumed the request. Send date reply to requester
  • On shutdown, normal or after an error, release every queue connection that was opened (request, reply and error). Release only the ones that opened successfully, then end the task. Queue open/close resource lifecycle at termination
4. Receive and prepare card authorization requestsdraft · online · 12 requirements · 12 rules · 15 criteria

The intake side of real-time card authorization for the card payment network. It takes authorization requests off the queue, splits them into fields, and gathers the card's account, customer and pending-authorization summary so the request can be decided. A missing account or customer must not stop the request, which goes on to be declined. A real read failure must end the task before any reply is sent for that request.

As a card payment network, I want authorization request messages taken from the queue, parsed and matched to the card's account, customer and pending authorization summary, so that each request can be decided and answered.

Draft: the function is not signed off yet. Risk medium; touches card_data, personal_data, updates_records. rec/No domain/CardAuthorizationandFraudManagement#4

Requirements

CodeClassRequirementCriteria
REQ-F-040design noteWhen triggered, the system shall process request messages one at a time, committing after each, and shall stop after 501 messages (the limit 500 is checked as 'more than'), leaving the rest on the queue for a later trigger.AC-01, AC-02
REQ-F-041design noteWhen no request message arrives within 5 seconds of a read, the system shall stop processing and end the task.AC-03
REQ-F-042design noteWhen a request message is received, the system shall split the comma-delimited request into its fields and convert the amount text into the numeric transaction amount.AC-15
REQ-F-043design noteWhen a card is found in the cross-reference, the system shall read the account master (ACCTDAT) using the account id from the cross-reference and mark the account found when it exists.AC-04
REQ-F-044error handlingWhen the account is not in the account master, the system shall mark it not found, log warning 'A002' with message 'ACCT NOT FOUND IN XREF' and continue processing the request.AC-05
REQ-F-045error handlingIf reading the account master fails for any other reason, then the system shall log critical error 'C002' with message 'FAILED TO READ ACCT FILE', ending the task before a reply is sent for that request.AC-06
REQ-F-046design noteWhen a card is found in the cross-reference, the system shall read the customer master (CUSTDAT) using the customer id from the cross-reference and mark the customer found when it exists.AC-07
REQ-F-047error handlingWhen the customer is not in the customer master, the system shall mark it not found, log warning 'A003' with message 'CUST NOT FOUND IN XREF' and continue processing the request.AC-08
REQ-F-048error handlingIf reading the customer master fails for any other reason, then the system shall log critical error 'C003' with message 'FAILED TO READ CUST FILE', ending the task before a reply is sent for that request.AC-09
REQ-F-049design noteWhen a card is found in the cross-reference, the system shall read the pending authorization summary for the card's account and treat IMS status blank or 'FW' as found and 'GE' as not found.AC-10, AC-11
REQ-F-050error handlingIf reading the pending authorization summary returns any other IMS status, then the system shall log critical error 'I002' with message 'IMS GET SUMMARY FAILED', ending the task before a reply is sent for that request.AC-12
REQ-F-051design noteWhen an authorization detail is about to be recorded, the system shall set the key date to 99999 minus the year/day value and the key time to 999999999 minus (time x 1000 + milliseconds).AC-13, AC-14

Business rules

RuleClassText, worked examples and evidence
Per-trigger processing limit and queue wait
rec/claude:claude/RULE-235/1
design note
technical, medium
WHEN triggered, THE authorization processor SHALL process request messages one at a time, committing after each, and SHALL stop after 501 messages (the limit 500 is checked as 'more than'), leaving the rest on the queue for a later trigger.
  • Messages on request queue: 800 → 501 messages are processed, each committed; 299 remain on the queue.
  • Messages on request queue: 20 → All 20 are processed.
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:40-42, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:242-246, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:323-345, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:389-417
Per-trigger processing limit and queue wait
rec/claude:claude/RULE-235/2
design note
technical, medium
WHEN no request message arrives within 5 seconds of a read, THE authorization processor SHALL stop processing and end the task.
  • Queue: empty for 5 seconds after the last message → The processor closes the queue and ends.
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:40-42, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:242-246, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:323-345, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:389-417
Parse comma-delimited authorization request
rec/agreed:No domain/CardAuthorizationandFraudManagement/id-195deaa034/1
design note
technical, medium
WHEN a request message is received, THE Authorization Request Parsing SHALL split the comma-delimited request into its fields and convert the amount text into the numeric transaction amount
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:351,354-374,376-377,379-380, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:351-380
Look up account master record
rec/aws:No domain/CardAuthorizationandFraudManagement/id-53bc6be235/1
design note
technical, medium
WHEN a card is found in the cross-reference, THE account lookup SHALL read the account master (ACCTDAT) using the account id from the cross-reference and mark the account found when it exists.
  • Cross-reference account id: 00000000011; Account record: exists → The account is marked found and its credit limit and balance are available to the decision.
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:450-451, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:520-561, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:672-682, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:1008-1010
Look up account master record
rec/aws:No domain/CardAuthorizationandFraudManagement/id-53bc6be235/2
error handling
error_handling, medium
WHEN the account is not in the account master, THE account lookup SHALL mark it not found and log warning 'A002' with message 'ACCT NOT FOUND IN XREF', and processing of the request SHALL continue.
  • Account record: not found; Pending summary: not found → Warning 'A002' 'ACCT NOT FOUND IN XREF' is logged and the request is declined with reason '3100'.
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:450-451, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:520-561, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:672-682, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:1008-1010
Look up account master record
rec/aws:No domain/CardAuthorizationandFraudManagement/id-53bc6be235/3
error handling
error_handling, medium
WHEN reading the account master fails for any other reason, THE account lookup SHALL log critical error 'C002' with message 'FAILED TO READ ACCT FILE', which ends the task before a reply is sent for that request.
  • Account file read result: file disabled → Critical error 'C002' 'FAILED TO READ ACCT FILE' is logged and the task ends with no reply for this request.
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:450-451, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:520-561, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:672-682, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:1008-1010
Look up customer master record
rec/aws:No domain/CardAuthorizationandFraudManagement/id-37569b6efc/1
design note
technical, medium
WHEN a card is found in the cross-reference, THE customer lookup SHALL read the customer master (CUSTDAT) using the customer id from the cross-reference and mark the customer found when it exists.
  • Card cross-reference customer id: 000000050; Customer record: exists → The customer is marked found and processing continues.
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:450-452, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:568-609, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:698-704, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:1008-1010
Look up customer master record
rec/aws:No domain/CardAuthorizationandFraudManagement/id-37569b6efc/2
error handling
error_handling, medium
WHEN the customer is not in the customer master, THE customer lookup SHALL mark it not found and log warning 'A003' with message 'CUST NOT FOUND IN XREF', and processing of the request SHALL continue.
  • Customer record: not found → Warning 'A003' 'CUST NOT FOUND IN XREF' is logged; if the request is declined its reason is '3100'.
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:450-452, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:568-609, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:698-704, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:1008-1010
Look up customer master record
rec/aws:No domain/CardAuthorizationandFraudManagement/id-37569b6efc/3
error handling
error_handling, medium
WHEN reading the customer master fails for any other reason, THE customer lookup SHALL log critical error 'C003' with message 'FAILED TO READ CUST FILE', which ends the task before a reply is sent for that request.
  • Customer file read result: file not open → Critical error 'C003' 'FAILED TO READ CUST FILE' is logged and the task ends with no reply for this request.
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:450-452, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:568-609, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:698-704, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:1008-1010
Retrieve pending authorization summary
rec/aws:No domain/CardAuthorizationandFraudManagement/id-ed3d8c490e/1
design note
technical, medium
WHEN a card is found in the cross-reference, THE pending authorization summary lookup SHALL read the summary for the card's account and treat IMS status blank or 'FW' as found and 'GE' as not found.
  • IMS status: ' ' → The summary is found and its credit limit and balance are used for the decision.
  • IMS status: 'GE' → The summary is not found; the decision uses the account master and a new summary is inserted later.
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:86-87, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:616-640, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:1008-1010
Retrieve pending authorization summary
rec/aws:No domain/CardAuthorizationandFraudManagement/id-ed3d8c490e/2
error handling
error_handling, medium
WHEN reading the pending authorization summary returns any other IMS status, THE summary lookup SHALL log critical error 'I002' with message 'IMS GET SUMMARY FAILED', which ends the task before a reply is sent for that request.
  • IMS status: 'AI' → Critical error 'I002' 'IMS GET SUMMARY FAILED' is logged and the task ends.
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:86-87, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:616-640, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:1008-1010
Compute inverted authorization timestamp key
rec/agreed:No domain/CardAuthorizationandFraudManagement/id-5c57d8a961/1
design note
technical, medium
WHEN an authorization detail is about to be recorded, THE Authorization Detail Keying SHALL set the key date to 99999 minus the year/day value and the key time to 999999999 minus (time x 1000 + milliseconds)
  • Current date (YYDDD): 25330; Current time: 143015; Milliseconds: 250 → Key date = 99999 - 25330 = 74669; key time = 999999999 - 143015250 = 856984749.
  • Current date (YYDDD): 25001; Current time: 000000; Milliseconds: 0 → Key date = 74998; key time = 999999999, so newer authorizations sort first.
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:854,857-859,861-866,868-869,871-872,874-875, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:857-875

Acceptance criteria

IDCriterionChecks
AC-01Given Messages on request queue: 800
When triggered
Then 501 messages are processed, each committed; 299 remain on the queue.
REQ-F-040
Per-trigger processing limit and queue wait
worked example 1 of the rule
AC-02Given Messages on request queue: 20
When triggered
Then All 20 are processed.
REQ-F-040
Per-trigger processing limit and queue wait
worked example 2 of the rule
AC-03Given Queue: empty for 5 seconds after the last message
When no request message arrives within 5 seconds of a read
Then The processor closes the queue and ends.
REQ-F-041
Per-trigger processing limit and queue wait
worked example 1 of the rule
AC-04Given Cross-reference account id: 00000000011; Account record: exists
When a card is found in the cross-reference
Then The account is marked found and its credit limit and balance are available to the decision.
REQ-F-043
Look up account master record
worked example 1 of the rule
AC-05Given Account record: not found; Pending summary: not found
When the account is not in the account master
Then Warning 'A002' 'ACCT NOT FOUND IN XREF' is logged and the request is declined with reason '3100'.
REQ-F-044
Look up account master record
worked example 1 of the rule
AC-06Given Account file read result: file disabled
When reading the account master fails for any other reason
Then Critical error 'C002' 'FAILED TO READ ACCT FILE' is logged and the task ends with no reply for this request.
REQ-F-045
Look up account master record
worked example 1 of the rule
AC-07Given Card cross-reference customer id: 000000050; Customer record: exists
When a card is found in the cross-reference
Then The customer is marked found and processing continues.
REQ-F-046
Look up customer master record
worked example 1 of the rule
AC-08Given Customer record: not found
When the customer is not in the customer master
Then Warning 'A003' 'CUST NOT FOUND IN XREF' is logged; if the request is declined its reason is '3100'.
REQ-F-047
Look up customer master record
worked example 1 of the rule
AC-09Given Customer file read result: file not open
When reading the customer master fails for any other reason
Then Critical error 'C003' 'FAILED TO READ CUST FILE' is logged and the task ends with no reply for this request.
REQ-F-048
Look up customer master record
worked example 1 of the rule
AC-10Given IMS status: ' '
When a card is found in the cross-reference
Then The summary is found and its credit limit and balance are used for the decision.
REQ-F-049
Retrieve pending authorization summary
worked example 1 of the rule
AC-11Given IMS status: 'GE'
When a card is found in the cross-reference
Then The summary is not found; the decision uses the account master and a new summary is inserted later.
REQ-F-049
Retrieve pending authorization summary
worked example 2 of the rule
AC-12Given IMS status: 'AI'
When reading the pending authorization summary returns any other IMS status
Then Critical error 'I002' 'IMS GET SUMMARY FAILED' is logged and the task ends.
REQ-F-050
Retrieve pending authorization summary
worked example 1 of the rule
AC-13Given Current date (YYDDD): 25330; Current time: 143015; Milliseconds: 250
When an authorization detail is about to be recorded
Then Key date = 99999 - 25330 = 74669; key time = 999999999 - 143015250 = 856984749.
REQ-F-051
Compute inverted authorization timestamp key
worked example 1 of the rule
AC-14Given Current date (YYDDD): 25001; Current time: 000000; Milliseconds: 0
When an authorization detail is about to be recorded
Then Key date = 74998; key time = 999999999, so newer authorizations sort first.
REQ-F-051
Compute inverted authorization timestamp key
worked example 2 of the rule
AC-15Given A comma-delimited authorization request message whose amount field holds the text '125.50'
When The request message is received
Then Each comma-separated value goes into its own request field, and the transaction amount is the number 125.50, ready for the credit check.
REQ-F-042
Parse comma-delimited authorization request
written from the rule

Screens

None: online.

Data contracts

CCPAUERY (file record; COPAUA0C), CCPAURQY (file record; COPAUA0C), CVACT01Y (file record; COPAUA0C), CVACT03Y (file record; COPAUA0C), CVCUS01Y (file record; COPAUA0C), CCPAURLY (working storage; COPAUA0C), CIPAUDTY (working storage; COPAUA0C), CIPAUSMY (working storage; COPAUA0C)

Decision tables

Master record lookup outcome

Master file readRead resultLookup handlingRule
Account master (ACCTDAT)FoundMark account foundrec/aws:No domain/CardAuthorizationandFraudManagement/id-53bc6be235/1
Account master (ACCTDAT)Not foundMark not found, log warning 'A002', continuerec/aws:No domain/CardAuthorizationandFraudManagement/id-53bc6be235/2
Account master (ACCTDAT)Other failureLog critical error 'C002', end task with no replyrec/aws:No domain/CardAuthorizationandFraudManagement/id-53bc6be235/3
Customer master (CUSTDAT)FoundMark customer foundrec/aws:No domain/CardAuthorizationandFraudManagement/id-37569b6efc/1
Customer master (CUSTDAT)Not foundMark not found, log warning 'A003', continuerec/aws:No domain/CardAuthorizationandFraudManagement/id-37569b6efc/2
Customer master (CUSTDAT)Other failureLog critical error 'C003', end task with no replyrec/aws:No domain/CardAuthorizationandFraudManagement/id-37569b6efc/3

Open questions

  • SME-131 The authorization reply expiry is given as 50 with no unit. What unit and timeout should the new messaging platform use? (Integration team)
  • SME-132 In the pending authorization summary, an approval sets the cash balance to zero instead of adding to it, and the declined-amount total may not use the current request's amount. Is each of these intended, or is it a defect? (Card authorization product owner)
  • SME-133 Decline reasons 4200 (card not active), 4300 (account closed), 5100 (card fraud) and 5200 (merchant fraud) are defined, but nothing triggers them. Should these checks be implemented, and what data should drive them? (Card authorization product owner / fraud management team)
  • SME-134 The authorization summary is saved before the authorization detail is recorded, so if recording the detail fails, the totals already include it. Must the summary update and the detail record succeed or fail together? (Card authorization business owner)
  • SME-135 When a lookup during authorization logs a critical error (C001, C002, C003, I002), should the decision, reply and recording still go ahead for that request? (Card authorization business owner)
  • DEF-138 Is this intended? The summary found/not-found flag is never reset per message, so when a later request's card is not in the cross-reference (lookup skipped) the decision reuses the previous request's summary credit limit and balance and can approve an unknown card. (Subject-matter expert)

Design notes

  • Consume authorization requests from the request queue one at a time, committing after each. Stop after 501 messages in one activation (the limit is 500, checked as 'more than') and leave the rest for the next activation. Make the limit a configuration value. Per-trigger processing limit and queue wait
  • Wait up to 5 seconds for each next request, and end the consumer cleanly when none arrives. Per-trigger processing limit and queue wait
  • Read the request as comma-separated text in this field order: auth date, auth time, card number, auth type, card expiry, message type, message source, processing code, amount, merchant category code, acquirer country code, POS entry mode, merchant id, merchant name, merchant city, merchant state, merchant zip, transaction id. Convert the amount text to a decimal number. Parse comma-delimited authorization request
  • Once the card is found, look up the account by the account id from the card cross-reference (a keyed lookup by account id) and record whether it was found. Look up account master record
  • Once the card is found, look up the customer by the customer id from the card cross-reference (a keyed lookup by customer id) and record whether it was found. Look up customer master record
  • Look up the pending-authorization summary by the card's account id. Keep three outcomes apart: found, not found (a valid state, after which a new summary is created) and read failure (critical error 'I002'). Retrieve pending authorization summary
  • Authorization details must list newest first under their account. The legacy key does this with an inverted date (99999 minus YYDDD) and an inverted time (999999999 minus time×1000+milliseconds). A modern store can order by a full timestamp descending instead, but the purge's age calculation and the paging keys must use the same date. Compute inverted authorization timestamp key
5. Decide and reply to card authorization requestsdraft · online · 9 requirements · 7 rules · 9 criteria · 1 gap

Approves or declines each card authorization request in real time against the account's available credit, and sends the answer back to the card payment network. Available credit is the credit limit minus the credit balance, taken from the pending-authorization summary when there is one and from the account otherwise. A request is declined only when the amount is strictly greater than that. A decline must always reply '05' with approved amount 0, and an approval '00' with the full amount.

As a card payment network, I want each authorization request approved or declined against the account's available credit and answered on my reply queue, so that the merchant transaction can proceed or be refused in real time.

Draft: the function is not signed off yet. Risk high; touches card_data, money. rec/No domain/CardAuthorizationandFraudManagement#5

Requirements

CodeClassRequirementCriteria
REQ-F-052business ruleWhen the account has a pending-authorization summary, the system shall compute available credit as the summary credit limit minus the summary credit balance and shall decline for insufficient funds when the requested amount is strictly greater than that available credit.AC-01, AC-02
REQ-F-053business ruleWhen the account has no pending-authorization summary but the account record was found, the system shall compute available credit as the account credit limit minus the account current balance and shall decline for insufficient funds when the amount is strictly greater.AC-03
REQ-F-054business ruleWhen neither a pending-authorization summary nor the account record is found, the system shall decline the request without an insufficient-funds reason, the reply then carrying reason '3100' because the account is not found.AC-04
REQ-F-055business ruleWhen the authorization decision is decline ('D'), the system shall set response code '05' with approved amount 0, and default the reason to '0000'.AC-05, AC-06
REQ-F-056business ruleWhen the authorization decision is approve, the system shall set response code '00' with the full transaction amount as the approved amount, and default the reason to '0000'.AC-05, AC-06
REQ-F-057business ruleThe system shall carry the request's card number and transaction id in the authorization reply and shall use the request's authorization time as the authorization id code.AC-07
REQ-F-058formattingThe system shall format the authorization reply as comma-delimited text of card number, transaction id, authorization id, response code, reason code and approved amount (signed, two decimals), each followed by a comma.AC-09
REQ-F-059design noteWhen an authorization decision has been made, the system shall send the non-persistent reply with expiry 50 and the original correlation id through MQPUT1 to the requester's reply queue.AC-08
REQ-F-060design noteIf putting the authorization reply fails, then the system shall log critical error 'M004'.AC-08

Business rules

RuleClassText, worked examples and evidence
Check available credit for authorization
rec/group:claude/RULE-001/1
business rule
business, high
WHEN the account has a pending-authorization summary, THE authorization decision SHALL compute available credit as the summary credit limit minus the summary credit balance, and SHALL decline for insufficient funds when the requested amount is strictly greater than that available credit.
  • summary credit limit: 5000.00; summary credit balance: 4800.00; amount: 250.00 → Declined: response '05', reason '4100' (insufficient funds)
  • summary credit limit: 5000.00; summary credit balance: 4800.00; amount: 200.00 → Approved: response '00', approved amount 200.00
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:664-696, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:699-706
Check available credit for authorization
rec/group:claude/RULE-001/2
business rule
business, high
WHEN the account has no pending-authorization summary but the account record was found, THE authorization decision SHALL compute available credit as the account credit limit minus the account current balance, and SHALL decline for insufficient funds when the amount is strictly greater.
  • summary: none; account credit limit: 3000.00; account current balance: 2900.00; amount: 150.00 → Declined: response '05', reason '4100'
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:664-696, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:699-706
Check available credit for authorization
rec/group:claude/RULE-001/3
business rule
business, high
WHEN neither a pending-authorization summary nor the account record is found, THE authorization decision SHALL decline the request without an insufficient-funds reason (the reply then carries reason '3100' because the account is not found).
  • summary: none; account record: not found; amount: 10.00 → Declined: response '05', reason '3100', approved amount 0.00
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:664-696, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:699-706
Set approve or decline response
rec/agreed:No domain/CardAuthorizationandFraudManagement/id-fb432b128a/1
business rule
business, medium
WHEN the authorization decision is decline ('D') or approve, THE Authorization Credit Decision SHALL set response code '05' with approved amount 0 for a decline, or '00' with the full transaction amount for an approval, and default the reason to '0000'
  • Credit limit: 1000.00; Balance: 900.00; Transaction amount: 200.00 → Declined: response code '05', approved amount 0 (reason then set to '4100').
  • Credit limit: 1000.00; Balance: 100.00; Transaction amount: 200.00 → Approved: response code '00', approved amount 200.00, reason '0000'.
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:685-686,688-696,698, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:685-696
Assemble comma-delimited reply content
rec/aws:No domain/CardAuthorizationandFraudManagement/id-307c3e34f4/1
business rule
business, medium
THE authorization reply SHALL carry the request's card number and transaction id, and SHALL use the request's authorization time as the authorization id code.
  • Card number: 4111111111111111; Transaction id: TX0001; Request auth time: 143015 → The reply carries card 4111111111111111, transaction TX0001 and authorization id 143015.
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:657-662, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:720-731, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:66, app/app-authorization-ims-db2-mq/cpy/CCPAURLY.cpy:21
Assemble comma-delimited reply content
rec/aws:No domain/CardAuthorizationandFraudManagement/id-307c3e34f4/2
formatting
display, medium
THE authorization reply SHALL be comma-delimited text of card number, transaction id, authorization id, response code, reason code and approved amount (signed, two decimals), each followed by a comma.
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:657-662, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:720-731, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:66, app/app-authorization-ims-db2-mq/cpy/CCPAURLY.cpy:21
Send authorization reply message
rec/agreed:No domain/CardAuthorizationandFraudManagement/id-11220e94b9/1
design note
technical, medium
WHEN an authorization decision has been made, THE Authorization Reply SHALL send the non-persistent reply with expiry 50 and the original correlation id through MQPUT1 to the requester's reply queue, logging critical error 'M004' if the put fails
  • MQPUT1 completion code: not MQCC-OK → Critical error logged at location 'M004' with message 'FAILED TO PUT ON REPLY MQ' to queue 'CSSL'; the program ends.
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:738,741-742,744-751,753-754,756,758-779, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:738-766

Acceptance criteria

IDCriterionChecks
AC-01Given summary credit limit: 5000.00; summary credit balance: 4800.00; amount: 250.00
When the account has a pending-authorization summary
Then Declined: response '05', reason '4100' (insufficient funds)
REQ-F-052
Check available credit for authorization
worked example 1 of the rule
AC-02Given summary credit limit: 5000.00; summary credit balance: 4800.00; amount: 200.00
When the account has a pending-authorization summary
Then Approved: response '00', approved amount 200.00
REQ-F-052
Check available credit for authorization
worked example 2 of the rule
AC-03Given summary: none; account credit limit: 3000.00; account current balance: 2900.00; amount: 150.00
When the account has no pending-authorization summary but the account record was found
Then Declined: response '05', reason '4100'
REQ-F-053
Check available credit for authorization
worked example 1 of the rule
AC-04Given summary: none; account record: not found; amount: 10.00
When neither a pending-authorization summary nor the account record is found
Then Declined: response '05', reason '3100', approved amount 0.00
REQ-F-054
Check available credit for authorization
worked example 1 of the rule
AC-05Given Credit limit: 1000.00; Balance: 900.00; Transaction amount: 200.00
When the authorization decision is decline ('D') or approve
Then Declined: response code '05', approved amount 0 (reason then set to '4100').
REQ-F-055, REQ-F-056
Set approve or decline response
worked example 1 of the rule
AC-06Given Credit limit: 1000.00; Balance: 100.00; Transaction amount: 200.00
When the authorization decision is decline ('D') or approve
Then Approved: response code '00', approved amount 200.00, reason '0000'.
REQ-F-055, REQ-F-056
Set approve or decline response
worked example 2 of the rule
AC-07Given Card number: 4111111111111111; Transaction id: TX0001; Request auth time: 143015
When authorization reply runs
Then The reply carries card 4111111111111111, transaction TX0001 and authorization id 143015.
REQ-F-057
Assemble comma-delimited reply content
worked example 1 of the rule
AC-08Given MQPUT1 completion code: not MQCC-OK
When an authorization decision has been made
Then Critical error logged at location 'M004' with message 'FAILED TO PUT ON REPLY MQ' to queue 'CSSL'; the program ends.
REQ-F-059, REQ-F-060
Send authorization reply message
worked example 1 of the rule
AC-09Given An authorization for card 4111111111111111, transaction id TXN0001 and authorization id 123456, approved with response code '00', reason '0000' and approved amount 125.50
When The authorization reply is built
Then The reply text is the card number, transaction id, authorization id, '00', '0000' and the approved amount with two decimals (125.50, signed), in that order, with a comma after each value, including the last.
REQ-F-058
Assemble comma-delimited reply content
written from the rule

Screens

None: online.

Data contracts

CCPAUERY (file record; COPAUA0C), CCPAURQY (file record; COPAUA0C), CVACT01Y (file record; COPAUA0C), CVACT03Y (file record; COPAUA0C), CVCUS01Y (file record; COPAUA0C), CCPAURLY (working storage; COPAUA0C), CIPAUDTY (working storage; COPAUA0C), CIPAUSMY (working storage; COPAUA0C)

Decision tables

Available credit check

Pending-authorization summary foundAccount record foundAmount strictly greater than available creditCredit decisionRule
YesAnyYesDecline for insufficient funds (available credit = summary credit limit - summary credit balance)rec/group:claude/RULE-001/1
YesAnyNoNot declined for insufficient fundsrec/group:claude/RULE-001/1
NoYesYesDecline for insufficient funds (available credit = account credit limit - account current balance)rec/group:claude/RULE-001/2
NoYesNoNot declined for insufficient fundsrec/group:claude/RULE-001/2
NoNoAnyDecline without insufficient-funds reason; reply carries reason '3100'rec/group:claude/RULE-001/3
YesNoAnyGap: R58 decides on the summary alone; the rules do not say whether reason '3100' (account not found) also applies when the summary is found but the account record is not.

Open questions

  • SME-131 The authorization reply expiry is given as 50 with no unit. What unit and timeout should the new messaging platform use? (Integration team)
  • SME-132 In the pending authorization summary, an approval sets the cash balance to zero instead of adding to it, and the declined-amount total may not use the current request's amount. Is each of these intended, or is it a defect? (Card authorization product owner)
  • SME-133 Decline reasons 4200 (card not active), 4300 (account closed), 5100 (card fraud) and 5200 (merchant fraud) are defined, but nothing triggers them. Should these checks be implemented, and what data should drive them? (Card authorization product owner / fraud management team)
  • SME-134 The authorization summary is saved before the authorization detail is recorded, so if recording the detail fails, the totals already include it. Must the summary update and the detail record succeed or fail together? (Card authorization business owner)
  • SME-135 When a lookup during authorization logs a critical error (C001, C002, C003, I002), should the decision, reply and recording still go ahead for that request? (Card authorization business owner)
  • DEF-001 Is this intended? The summary-found flag and the decline-reason flag are never reset between messages. When the summary read fails with an IMS error (I002), or the card is unknown, the check uses the summary flag and the limit and balance left over from the previous request in the same run. (Subject-matter expert)
  • DEF-139 Is this intended? The STRING pointer for the reply (WS-RESP-LENGTH) starts at 1 and is never reset between messages, so from the second request in a task each reply is appended after the previous replies in the 200-byte buffer and sent with them; after about three replies the buffer overflows. The sent length is also one byte longer than the text. (Subject-matter expert)

Design notes

  • Publish each authorization reply once to the reply queue the requester named, carrying the request's correlation id. Send it non-persistent with a short expiry (50, in tenths of a second, so 5 seconds), so stale answers are dropped. If publishing fails, log critical error 'M004'. Send authorization reply message
6. Decide a card authorization requestdraft · online · 10 requirements · 10 rules · 13 criteria · 2 gaps

Decides each card authorization against the card, account and customer records for the card issuer, so only transactions for known cards can be approved. Every request gets a reply. A card not in the cross-reference is declined with reason '3100' and nothing is recorded for it. Reason '3100' (not found) takes precedence over '4100' (insufficient funds), and an approval always carries '0000'.

As a card issuer, I want each incoming card authorization request approved or declined against the card, account and customer records, so that only transactions for known cards are approved and every request gets a reply with a clear reason.

Draft: the function is not signed off yet. Risk high; touches audit, card_data, money, security. rec/No domain/CardAuthorizationandFraudManagement#6

Requirements

CodeClassRequirementCriteria
REQ-F-061business ruleWhen an authorization request is processed, the system shall start from an approve decision and look up the card in the card cross-reference, and only when the card is found shall it read the account, the customer and the account's pending-authorization summary before deciding.AC-01, AC-02
REQ-F-062business ruleWhen the request is declined, the system shall reply with response code '05' and approved amount 0, and otherwise shall reply '00' with the full requested amount approved.AC-03, AC-04
REQ-F-063business ruleWhen the card is not in the card cross-reference, the system shall treat the card and its account as not found and decline the request with response '05', reason '3100' and approved amount 0.AC-05
REQ-F-064business ruleWhen the card is not in the card cross-reference, the system shall still decide and send a reply but shall not update the pending-authorization summary or record an authorization detail.AC-06
REQ-F-065side effectWhen the card is not in the card cross-reference, the system shall log a warning at location 'A001' with message 'CARD NOT FOUND IN XREF' and the card number as the key.AC-07
REQ-F-066error handlingIf reading the card cross-reference fails for any reason other than not found, then the system shall log a critical error at location 'C001' with message 'FAILED TO READ XREF FILE' and the response codes, and carry on processing the request as if the card had been found.AC-08
REQ-F-067business ruleWhen an authorization is approved, the system shall reply with reason code '0000'.AC-09
REQ-F-068business ruleWhen an authorization is declined and the card, the account or the customer was not found, the system shall reply with reason code '3100', taking precedence over every other reason.AC-10, AC-11
REQ-F-069business ruleWhen an authorization is declined for insufficient funds and the card, account and customer were all found, the system shall reply with reason code '4100'.AC-12
REQ-F-070historical artifactWhere a decline is for card not active, account closed, card fraud, merchant fraud or any other cause, the system shall assign reason '4200', '4300', '5100', '5200' or '9000' respectively, although nothing sets these conditions today so these codes are not produced.AC-13

Business rules

RuleClassText, worked examples and evidence
Orchestrate single authorization request
rec/group:claude/RULE-050/1
business rule
business, high
WHEN an authorization request is processed, THE authorization processor SHALL start from an approve decision and look up the card in the card cross-reference; only when the card is found SHALL it read the account, the customer and the account's pending-authorization summary before deciding.
  • card number: 4000000000000002 (in cross-reference) → Account, customer and summary are read, then the decision is made
  • card number: 4000000000000099 (not in cross-reference) → No account, customer or summary is read; the decision is made directly
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:438-465, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:472-513, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:672-688, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:699-704
Available credit check (insufficient funds decline)
rec/group:claude/RULE-001/4
business rule
business, high
WHEN the request is declined, THE authorization decision SHALL reply with response code '05' and approved amount 0; otherwise it SHALL reply '00' with the full requested amount approved.
  • decision: declined; amount: 250.00 → Response '05', approved amount 0.00
  • decision: approved; amount: 75.00 → Response '00', approved amount 75.00
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:664-696, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:699-706
Look up card in cross-reference
rec/group:claude/RULE-050/3
business rule
business, high
WHEN the card is not in the card cross-reference, THE authorization processor SHALL treat the card and its account as not found, so the request is declined with response '05', reason '3100' and approved amount 0.
  • card number: 4000000000000099 (not in cross-reference); amount: 50.00 → Reply has response '05', reason '3100', approved amount 0.00
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:438-465, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:472-513, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:672-688, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:699-704
Orchestrate single authorization request
rec/group:claude/RULE-050/2
business rule
business, high
WHEN the card is not in the card cross-reference, THE authorization processor SHALL still decide and send a reply, but SHALL NOT update the pending-authorization summary or record an authorization detail.
  • card number: 4000000000000099 (not in cross-reference) → A reply is sent; nothing is written to the pending-authorization database
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:438-465, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:472-513, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:672-688, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:699-704
Look up card in cross-reference
rec/group:claude/RULE-050/4
side effect
side_effect, high
WHEN the card is not in the card cross-reference, THE authorization processor SHALL log a warning at location 'A001' with message 'CARD NOT FOUND IN XREF' and the card number as the key.
  • card number: 4000000000000099 (not in cross-reference) → Warning 'A001' 'CARD NOT FOUND IN XREF' logged with key 4000000000000099
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:438-465, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:472-513, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:672-688, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:699-704
Look up card in cross-reference
rec/group:claude/RULE-050/5
error handling
error_handling, high
WHEN reading the card cross-reference fails for any reason other than not found, THE authorization processor SHALL log a critical error at location 'C001' with message 'FAILED TO READ XREF FILE' and the response codes, and carry on processing the request as if the card had been found.
  • cross-reference file: unavailable → Critical error 'C001' 'FAILED TO READ XREF FILE' logged; account, customer and summary reads are still attempted and the authorization is recorded
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:438-465, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:472-513, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:672-688, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:699-704
Assign decline reason code
rec/group:claude/RULE-051/1
business rule
business, high
WHEN an authorization is approved, THE authorization reply SHALL carry reason code '0000'.
  • decision: approved → Reason '0000'
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:698-718, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:140-145, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:665-683
Assign decline reason code
rec/group:claude/RULE-051/2
business rule
business, high
WHEN an authorization is declined and the card, the account or the customer was not found, THE authorization reply SHALL carry reason code '3100'; this takes precedence over every other reason.
  • card in cross-reference: no; decision: declined → Reason '3100'
  • customer record: not found; decision: declined for insufficient funds → Reason '3100', not '4100'
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:698-718, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:140-145, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:665-683
Assign decline reason code
rec/group:claude/RULE-051/3
business rule
business, high
WHEN an authorization is declined for insufficient funds and the card, account and customer were all found, THE authorization reply SHALL carry reason code '4100'.
  • available credit: 200.00; amount: 250.00 → Response '05', reason '4100'
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:698-718, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:140-145, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:665-683
Assign decline reason code
rec/group:claude/RULE-051/4
historical artifact
leftover, high
THE reason assignment SHALL map card not active to '4200', account closed to '4300', card fraud to '5100', merchant fraud to '5200' and any other decline to '9000', but nothing in the program ever sets these conditions, so these codes are not produced today.
  • card status: inactive → No '4200' decline is produced; the card is decided on credit only
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:698-718, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:140-145, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:665-683

Acceptance criteria

IDCriterionChecks
AC-01Given card number: 4000000000000002 (in cross-reference)
When an authorization request is processed
Then Account, customer and summary are read, then the decision is made
REQ-F-061
Orchestrate single authorization request
worked example 1 of the rule
AC-02Given card number: 4000000000000099 (not in cross-reference)
When an authorization request is processed
Then No account, customer or summary is read; the decision is made directly
REQ-F-061
Orchestrate single authorization request
worked example 2 of the rule
AC-03Given decision: declined; amount: 250.00
When the request is declined
Then Response '05', approved amount 0.00
REQ-F-062
Available credit check (insufficient funds decline)
worked example 1 of the rule
AC-04Given decision: approved; amount: 75.00
When the request is declined
Then Response '00', approved amount 75.00
REQ-F-062
Available credit check (insufficient funds decline)
worked example 2 of the rule
AC-05Given card number: 4000000000000099 (not in cross-reference); amount: 50.00
When the card is not in the card cross-reference
Then Reply has response '05', reason '3100', approved amount 0.00
REQ-F-063
Look up card in cross-reference
worked example 1 of the rule
AC-06Given card number: 4000000000000099 (not in cross-reference)
When the card is not in the card cross-reference
Then A reply is sent; nothing is written to the pending-authorization database
REQ-F-064
Orchestrate single authorization request
worked example 1 of the rule
AC-07Given card number: 4000000000000099 (not in cross-reference)
When the card is not in the card cross-reference
Then Warning 'A001' 'CARD NOT FOUND IN XREF' logged with key 4000000000000099
REQ-F-065
Look up card in cross-reference
worked example 1 of the rule
AC-08Given cross-reference file: unavailable
When reading the card cross-reference fails for any reason other than not found
Then Critical error 'C001' 'FAILED TO READ XREF FILE' logged; account, customer and summary reads are still attempted and the authorization is recorded
REQ-F-066
Look up card in cross-reference
worked example 1 of the rule
AC-09Given decision: approved
When an authorization is approved
Then Reason '0000'
REQ-F-067
Assign decline reason code
worked example 1 of the rule
AC-10Given card in cross-reference: no; decision: declined
When an authorization is declined and the card
Then Reason '3100'
REQ-F-068
Assign decline reason code
worked example 1 of the rule
AC-11Given customer record: not found; decision: declined for insufficient funds
When an authorization is declined and the card
Then Reason '3100', not '4100'
REQ-F-068
Assign decline reason code
worked example 2 of the rule
AC-12Given available credit: 200.00; amount: 250.00
When an authorization is declined for insufficient funds and the card, account and customer were all found
Then Response '05', reason '4100'
REQ-F-069
Assign decline reason code
worked example 1 of the rule
AC-13Given card status: inactive
When reason assignment runs
Then No '4200' decline is produced; the card is decided on credit only
REQ-F-070
Assign decline reason code
worked example 1 of the rule

Screens

None: online.

Data contracts

CCPAUERY (file record; COPAUA0C), CCPAURQY (file record; COPAUA0C), CVACT01Y (file record; COPAUA0C), CVACT03Y (file record; COPAUA0C), CVCUS01Y (file record; COPAUA0C), CCPAURLY (working storage; COPAUA0C), CIPAUDTY (working storage; COPAUA0C), CIPAUSMY (working storage; COPAUA0C)

Decision tables

Authorization response and reason code

DecisionCard, account and customer foundDecline causeResponse code, reason code and approved amountRule
ApprovedAll found-Response '00', full requested amount approvedrec/group:claude/RULE-001/4
ApprovedAll found-Reason '0000'rec/group:claude/RULE-051/1
DeclinedCard not in cross-reference-Response '05', reason '3100', approved amount 0rec/group:claude/RULE-050/3
DeclinedCard, account or customer not foundAnyReason '3100' (takes precedence)rec/group:claude/RULE-051/2
DeclinedAll foundInsufficient fundsResponse '05', reason '4100', approved amount 0rec/group:claude/RULE-051/3
DeclinedAll foundCard not activeReason '4200' (not produced today)rec/group:claude/RULE-051/4
DeclinedAll foundAccount closedReason '4300' (not produced today)rec/group:claude/RULE-051/4
DeclinedAll foundCard fraudReason '5100' (not produced today)rec/group:claude/RULE-051/4
DeclinedAll foundMerchant fraudReason '5200' (not produced today)rec/group:claude/RULE-051/4
DeclinedAll foundAny otherReason '9000' (not produced today)rec/group:claude/RULE-051/4
DeclinedAll foundInsufficient fundsGap: The rules name an available credit check but do not state how insufficient funds is determined (which balance and limit are compared).
ApprovedCross-reference read failed (not 'not found')-Gap: R11 carries on as if the card were found, but no rule says what decision or reason results when the account and customer data were not actually read.

Open questions

  • SME-131 The authorization reply expiry is given as 50 with no unit. What unit and timeout should the new messaging platform use? (Integration team)
  • SME-132 In the pending authorization summary, an approval sets the cash balance to zero instead of adding to it, and the declined-amount total may not use the current request's amount. Is each of these intended, or is it a defect? (Card authorization product owner)
  • SME-133 Decline reasons 4200 (card not active), 4300 (account closed), 5100 (card fraud) and 5200 (merchant fraud) are defined, but nothing triggers them. Should these checks be implemented, and what data should drive them? (Card authorization product owner / fraud management team)
  • SME-134 The authorization summary is saved before the authorization detail is recorded, so if recording the detail fails, the totals already include it. Must the summary update and the detail record succeed or fail together? (Card authorization business owner)
  • SME-135 When a lookup during authorization logs a critical error (C001, C002, C003, I002), should the decision, reply and recording still go ahead for that request? (Card authorization business owner)
  • DEF-001 Is this intended? The summary-found flag and the decline-reason flag are never reset between messages. When the summary read fails with an IMS error (I002), or the card is unknown, the check uses the summary flag and the limit and balance left over from the previous request in the same run. (Subject-matter expert)
  • DEF-022 Is this intended? The summary-found flag is not reset for each message. For an unknown card, the decision uses the summary-found flag and the limit and balance left over from an earlier request in the same run of up to 500 messages, so an unknown card can be approved. A cross-reference read error (C001) also leaves the card marked as found, and processing goes on with whatever cross-reference data is in memory. (Subject-matter expert)
  • DEF-023 Is this intended? A missing customer record does not cause a decline, but it takes precedence over the reason. A request declined for insufficient funds on an account whose customer is missing is reported as '3100' instead of '4100'. The flags are also never reset between messages. (Subject-matter expert)

Design notes

None.

7. Record pending authorization summary and detaildraft · online · 9 requirements · 11 rules · 13 criteria · 2 gaps

Records every decided authorization for a known card against the account's pending-authorization summary and as a detail record, so approved and declined counts, totals and balances stay current for matching and fraud review. Approvals add to the approved count, approved total and credit balance. Each detail is stored with match status 'P' or 'D' and a blank fraud flag. A failure to save must be logged as a critical error ('I003' or 'I004').

As a card issuer, I want every decided authorization for a known card recorded against the account's pending-authorization summary and as a detail record, so that approved and declined totals and balances are kept current for later matching and review.

Draft: the function is not signed off yet. Risk high; touches audit, card_data, money, updates_records. rec/No domain/CardAuthorizationandFraudManagement#7

Requirements

CodeClassRequirementCriteria
REQ-F-071business ruleWhen an authorization for a known card is recorded and the account has no pending-authorization summary yet, the system shall start a new summary with all counts and amounts at zero, carrying the account and customer from the card cross-reference, and add it, and otherwise shall replace the existing summary.AC-01, AC-02, AC-03
REQ-F-072business ruleWhen an authorization for a known card is recorded, the system shall set the summary credit limit and cash limit from the account record.AC-04
REQ-F-073business ruleWhen the authorization is approved, the system shall add 1 to the approved count, add the approved amount to the approved total and to the credit balance, and set the cash balance to 0.AC-05
REQ-F-074business ruleWhen the authorization is declined, the system shall add 1 to the declined count and add to the declined total the transaction amount from the previously recorded authorization detail, not the current request.AC-06
REQ-F-075error handlingIf adding or replacing the pending authorization summary fails, then the system shall log a critical error at location 'I003' with message 'IMS UPDATE SUMRY FAILED' and the IMS status.AC-07, AC-08
REQ-F-076design noteWhen an authorization for a known card is recorded, the system shall build an authorization detail from the request (original date and time, card, type, expiry, message type and source, processing code, amount, merchant details, transaction id) and the reply (authorization id code, response code, reason, approved amount), and insert it under the account's summary.AC-09
REQ-F-077business ruleWhen the authorization detail is recorded, the system shall set match status 'P' (pending) for an approved authorization and 'D' (declined) for a declined one.AC-10, AC-11
REQ-F-078business ruleWhen the authorization detail is recorded, the system shall leave the fraud flag and the fraud report date blank.AC-12
REQ-F-079error handlingIf inserting the authorization detail fails, then the system shall log a critical error at location 'I004' with message 'IMS INSERT DETL FAILED' and the IMS status.AC-13

Business rules

RuleClassText, worked examples and evidence
Accumulate pending authorization summary totals
rec/group:claude/RULE-002/1
business rule
business, high
WHEN an authorization for a known card is recorded and the account has no pending-authorization summary yet, THE summary maintenance SHALL start a new summary with all counts and amounts at zero, carrying the account and customer from the card cross-reference, and add it; otherwise it SHALL replace the existing summary.
  • account: 00000000012; existing summary: none; decision: approved 200.00 → A new summary is inserted with approved count 1, approved amount 200.00 and credit balance 200.00
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:786-792, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:798-848, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:854-885
Save pending authorization summary
rec/group:claude/RULE-195/1
design note
technical, high
WHEN a card in the cross-reference has had its authorization decided, THE pending authorization summary maintenance SHALL replace the account's existing summary if one was found, or insert a new summary if none existed (physical store PAUTSUM0).
  • Account summary existed: Yes; Decision: approved → The existing summary for the account is replaced with the updated totals.
  • Account summary existed: No → A new summary for the account is inserted.
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:786-792, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:824-847, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:940-977, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:983-1023
Accumulate pending authorization summary totals
rec/group:claude/RULE-002/2
business rule
business, high
WHEN an authorization for a known card is recorded, THE summary maintenance SHALL set the summary credit limit and cash limit from the account record.
  • account credit limit: 5000.00; account cash credit limit: 1000.00; summary credit limit before: 4000.00 → Summary credit limit becomes 5000.00 and cash limit 1000.00
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:786-792, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:798-848, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:854-885
Accumulate pending authorization summary totals
rec/group:claude/RULE-002/3
business rule
business, high
WHEN the authorization is approved, THE summary maintenance SHALL add 1 to the approved count, add the approved amount to the approved total and to the credit balance, and set the cash balance to 0.
  • credit balance: 1000.00; approved count: 3; approved amount total: 600.00; approved amount: 200.00 → Approved count 4, approved total 800.00, credit balance 1200.00, cash balance 0
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:786-792, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:798-848, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:854-885
Accumulate pending authorization summary totals
rec/group:claude/RULE-002/4
business rule
business, high
WHEN the authorization is declined, THE summary maintenance SHALL add 1 to the declined count and add a transaction amount to the declined total, but the amount it adds is the one from the previously recorded authorization detail, not the current request.
  • declined count: 2; declined total: 300.00; current declined amount: 500.00; previous recorded request amount: 40.00 → Declined count 3, declined total 340.00
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:786-792, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:798-848, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:854-885
Accumulate pending authorization summary totals
rec/group:claude/RULE-002/5
error handling
error_handling, high
WHEN adding or replacing the summary fails, THE summary maintenance SHALL log a critical error at location 'I003' with message 'IMS UPDATE SUMRY FAILED' and the IMS status, and continue on to record the detail.
  • IMS status on summary update: not OK → Critical error 'I003' 'IMS UPDATE SUMRY FAILED' logged; the detail insert is still attempted
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:786-792, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:798-848, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:854-885
Save pending authorization summary
rec/group:claude/RULE-195/2
error handling
error_handling, high
WHEN saving the pending authorization summary fails, THE authorization processor SHALL log critical error 'I003' with message 'IMS UPDATE SUMRY FAILED' and the IMS status, and SHALL not record the authorization detail for that request.
  • IMS status on summary save: II → Error 'I003' 'IMS UPDATE SUMRY FAILED' is logged; no authorization detail is inserted and the task ends.
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:786-792, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:824-847, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:940-977, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:983-1023
Insert pending authorization detail record
rec/group:claude/RULE-141/1
design note
technical, high
WHEN an authorization for a known card is recorded, THE detail recording SHALL build an authorization detail from the request (original date and time, card, type, expiry, message type and source, processing code, amount, merchant details, transaction id) and the reply (authorization id code, response code, reason, approved amount), and insert it under the account's summary.
  • account: 00000000012; amount: 75.00; response: '00' → A detail with response '00', reason '0000' and approved amount 75.00 is inserted under the summary for account 00000000012
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:786-792, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:877-932, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:45-53
Insert pending authorization detail record
rec/group:claude/RULE-141/2
business rule
business, high
WHEN the authorization detail is recorded, THE detail recording SHALL set match status 'P' (pending) for an approved authorization and 'D' (declined) for a declined one.
  • decision: approved → Match status 'P'
  • decision: declined → Match status 'D'
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:786-792, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:877-932, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:45-53
Insert pending authorization detail record
rec/group:claude/RULE-141/3
business rule
business, high
WHEN the authorization detail is recorded, THE detail recording SHALL leave the fraud flag and the fraud report date blank.
  • decision: approved → Fraud flag ' ', fraud report date blank
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:786-792, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:877-932, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:45-53
Insert pending authorization detail record
rec/group:claude/RULE-141/4
error handling
error_handling, high
WHEN inserting the authorization detail fails, THE detail recording SHALL log a critical error at location 'I004' with message 'IMS INSERT DETL FAILED' and the IMS status; the insert is attempted even if the summary update just failed.
  • IMS status on detail insert: not OK → Critical error 'I004' 'IMS INSERT DETL FAILED' logged; the reply already sent is unchanged
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:786-792, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:877-932, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:45-53

Acceptance criteria

IDCriterionChecks
AC-01Given account: 00000000012; existing summary: none; decision: approved 200.00
When an authorization for a known card is recorded and the account has no pending-authorization summary yet
Then A new summary is inserted with approved count 1, approved amount 200.00 and credit balance 200.00
REQ-F-071
Accumulate pending authorization summary totals
worked example 1 of the rule
AC-02Given Account summary existed: Yes; Decision: approved
When a card in the cross-reference has had its authorization decided
Then The existing summary for the account is replaced with the updated totals.
REQ-F-071
Save pending authorization summary
worked example 1 of the rule
AC-03Given Account summary existed: No
When a card in the cross-reference has had its authorization decided
Then A new summary for the account is inserted.
REQ-F-071
Save pending authorization summary
worked example 2 of the rule
AC-04Given account credit limit: 5000.00; account cash credit limit: 1000.00; summary credit limit before: 4000.00
When an authorization for a known card is recorded
Then Summary credit limit becomes 5000.00 and cash limit 1000.00
REQ-F-072
Accumulate pending authorization summary totals
worked example 1 of the rule
AC-05Given credit balance: 1000.00; approved count: 3; approved amount total: 600.00; approved amount: 200.00
When the authorization is approved
Then Approved count 4, approved total 800.00, credit balance 1200.00, cash balance 0
REQ-F-073
Accumulate pending authorization summary totals
worked example 1 of the rule
AC-06Given declined count: 2; declined total: 300.00; current declined amount: 500.00; previous recorded request amount: 40.00
When the authorization is declined
Then Declined count 3, declined total 340.00
REQ-F-074
Accumulate pending authorization summary totals
worked example 1 of the rule
AC-07Given IMS status on summary update: not OK
When adding or replacing the summary fails
Then Critical error 'I003' 'IMS UPDATE SUMRY FAILED' logged; the detail insert is still attempted
REQ-F-075
Accumulate pending authorization summary totals
worked example 1 of the rule
AC-08Given IMS status on summary save: II
When saving the pending authorization summary fails
Then Error 'I003' 'IMS UPDATE SUMRY FAILED' is logged; no authorization detail is inserted and the task ends.
REQ-F-075
Save pending authorization summary
worked example 1 of the rule
AC-09Given account: 00000000012; amount: 75.00; response: '00'
When an authorization for a known card is recorded
Then A detail with response '00', reason '0000' and approved amount 75.00 is inserted under the summary for account 00000000012
REQ-F-076
Insert pending authorization detail record
worked example 1 of the rule
AC-10Given decision: approved
When the authorization detail is recorded
Then Match status 'P'
REQ-F-077
Insert pending authorization detail record
worked example 1 of the rule
AC-11Given decision: declined
When the authorization detail is recorded
Then Match status 'D'
REQ-F-077
Insert pending authorization detail record
worked example 2 of the rule
AC-12Given decision: approved
When the authorization detail is recorded
Then Fraud flag ' ', fraud report date blank
REQ-F-078
Insert pending authorization detail record
worked example 1 of the rule
AC-13Given IMS status on detail insert: not OK
When inserting the authorization detail fails
Then Critical error 'I004' 'IMS INSERT DETL FAILED' logged; the reply already sent is unchanged
REQ-F-079
Insert pending authorization detail record
worked example 1 of the rule

Screens

None: online.

Data contracts

CCPAUERY (file record; COPAUA0C), CCPAURQY (file record; COPAUA0C), CVACT01Y (file record; COPAUA0C), CVACT03Y (file record; COPAUA0C), CVCUS01Y (file record; COPAUA0C), CCPAURLY (working storage; COPAUA0C), CIPAUDTY (working storage; COPAUA0C), CIPAUSMY (working storage; COPAUA0C)

Decision tables

Pending authorization summary update

Card in cross-referenceSummary exists for accountDecisionSummary and detail updateRule
No-AnyNo summary update and no detail recordedrec/group:claude/RULE-050/2
YesNoAnyNew summary started at zero with account and customer from cross-reference, then addedrec/group:claude/RULE-002/1
YesYesAnyExisting summary replacedrec/group:claude/RULE-195/1
YesAnyApprovedApproved count +1, approved amount added to approved total and credit balance, cash balance set to 0; detail match status 'P'rec/group:claude/RULE-002/3
YesAnyDeclinedDeclined count +1, previously recorded detail amount added to declined total; detail match status 'D'rec/group:claude/RULE-002/4
YesAnySummary save failedGap: Rules disagree: R6 and R19 say the detail insert is still attempted, R21 says the detail is not recorded, and R22 says any critical error ends the task. Confirm whether the detail is recorded after a failed summary save.
YesNoDeclinedGap: R5 adds the amount from the previously recorded authorization detail; no rule says which amount is used when there is no previous detail for a new summary.

Open questions

  • SME-131 The authorization reply expiry is given as 50 with no unit. What unit and timeout should the new messaging platform use? (Integration team)
  • SME-132 In the pending authorization summary, an approval sets the cash balance to zero instead of adding to it, and the declined-amount total may not use the current request's amount. Is each of these intended, or is it a defect? (Card authorization product owner)
  • SME-133 Decline reasons 4200 (card not active), 4300 (account closed), 5100 (card fraud) and 5200 (merchant fraud) are defined, but nothing triggers them. Should these checks be implemented, and what data should drive them? (Card authorization product owner / fraud management team)
  • SME-134 The authorization summary is saved before the authorization detail is recorded, so if recording the detail fails, the totals already include it. Must the summary update and the detail record succeed or fail together? (Card authorization business owner)
  • SME-135 When a lookup during authorization logs a critical error (C001, C002, C003, I002), should the decision, reply and recording still go ahead for that request? (Card authorization business owner)
  • SME-136 If the database fails after an authorization request has been taken off the queue and answered, the request is lost. Is that acceptable, or must such authorizations be reconciled? (Card authorization operations lead)
  • DEF-002 Is this intended? The declined total adds the transaction amount from the detail segment buffer. That buffer is filled for the current request only later, in 8500-INSERT-AUTH, so it adds the previous recorded request's amount (or zero or garbage for the first one). Also, every approval resets the summary cash balance to 0. (Subject-matter expert)
  • DEF-061 Is this intended? Summary and detail failures are only logged. The reply has already been sent, the detail insert goes ahead even after the summary update fails, and the SYNCPOINT at the end of each message commits whatever succeeded, so the summary and its details can fall out of step. (Subject-matter expert)
  • DEF-084 Is this intended? The reply to the merchant is sent (without syncpoint) before the summary and detail are written, so when the summary save fails with I003 the merchant has already received the decision (possibly an approval) while no pending authorization summary or detail is recorded for it. (Subject-matter expert)

Design notes

  • Save the account's summary as an upsert keyed by account id: update it if one was found, insert it if not. Do the save in the same transaction as the detail insert, so the summary and its details cannot drift apart. Save pending authorization summary
  • Insert the authorization detail as a child of the account's summary (a foreign key to the account summary). It holds the request fields and the reply's authorization id, response code, reason and approved amount, and is keyed newest first for paging and purge. Insert pending authorization detail record
8. Log errors and stop on critical failuresdraft · online · 2 requirements · 2 rules · 2 criteria

Makes authorization processing errors traceable for operations analysts. Every error is written to the log. A warning lets processing continue, but a critical error stops the task safely, releasing the database and the request queue. Unread requests must never be lost: they stay on the queue for the next run.

As an operations analyst, I want authorization processing errors logged and critical failures to stop processing safely, so that problems are traceable and unread requests are left for a later run.

Draft: the function is not signed off yet. Risk high; touches audit. rec/No domain/CardAuthorizationandFraudManagement#8

Requirements

CodeClassRequirementCriteria
REQ-F-080error handlingWhen any error is logged as critical, the system shall write the error record to the CSSL log, release the IMS database, close the request queue and end the task, leaving any unread request messages on the queue for a later trigger.AC-01
REQ-F-081error handlingWhen an error is logged as a warning, the system shall write the error record to the CSSL log and continue processing.AC-02

Business rules

RuleClassText, worked examples and evidence
Critical errors end processing
rec/group:claude/RULE-195/3
error handling
error_handling, high
WHEN any error is logged as critical, THE authorization processor SHALL write the error record to the CSSL log, release the IMS database, close the request queue and end the task, leaving any unread request messages on the queue for a later trigger.
  • Error: 'I003' critical; Messages still on request queue: 40 → The task ends after logging; the 40 messages stay on the queue unprocessed.
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:786-792, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:824-847, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:940-977, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:983-1023
Critical errors end processing
rec/group:claude/RULE-195/4
error handling
error_handling, high
WHEN an error is logged as a warning, THE authorization processor SHALL write the error record to the CSSL log and continue processing.
  • Error: 'A001' warning 'CARD NOT FOUND IN XREF' → The error is logged and the request continues to a decision and reply.
app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:786-792, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:824-847, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:940-977, app/app-authorization-ims-db2-mq/cbl/COPAUA0C.cbl:983-1023

Acceptance criteria

IDCriterionChecks
AC-01Given Error: 'I003' critical; Messages still on request queue: 40
When any error is logged as critical
Then The task ends after logging; the 40 messages stay on the queue unprocessed.
REQ-F-080
Critical errors end processing
worked example 1 of the rule
AC-02Given Error: 'A001' warning 'CARD NOT FOUND IN XREF'
When an error is logged as a warning
Then The error is logged and the request continues to a decision and reply.
REQ-F-081
Critical errors end processing
worked example 1 of the rule

Screens

None: online.

Data contracts

CCPAUERY (file record; COPAUA0C), CCPAURQY (file record; COPAUA0C), CVACT01Y (file record; COPAUA0C), CVACT03Y (file record; COPAUA0C), CVCUS01Y (file record; COPAUA0C), CCPAURLY (working storage; COPAUA0C), CIPAUDTY (working storage; COPAUA0C), CIPAUSMY (working storage; COPAUA0C)

Decision tables

None.

Open questions

  • SME-136 If the database fails after an authorization request has been taken off the queue and answered, the request is lost. Is that acceptable, or must such authorizations be reconciled? (Card authorization operations lead)
  • DEF-084 Is this intended? The reply to the merchant is sent (without syncpoint) before the summary and detail are written, so when the summary save fails with I003 the merchant has already received the decision (possibly an approval) while no pending authorization summary or detail is recorded for it. (Subject-matter expert)

Design notes

None.

9. Inquire on an account's pending authorizationsdraft · online · 19 requirements · 21 rules · 24 criteria · 2 screens · 1 gap

Lets a customer service operator enter an account number and see the customer's name, address and phone, the account's credit and cash limits, and the pending-authorization totals, followed by the first page of authorizations. The account number must be entered and must be numeric. When there is no pending-authorization summary, the totals show zero and no authorizations are listed. Every failed lookup must say which record was missing or failed, word for word.

As a customer service operator, I want to enter an account and see its customer, limits and pending-authorization totals, so that I can review the account's authorization activity.

Draft: the function is not signed off yet. Risk high; touches card_data, money, personal_data, reporting_only. rec/No domain/CardAuthorizationandFraudManagement#9

Requirements

CodeClassRequirementCriteria
REQ-F-082formattingWhen the pending authorization summary is started with no session data, the system shall start a new session, mark it as re-entered and show an empty screen with the cursor on the account number field.AC-01
REQ-F-083business ruleWhen the summary screen is entered from another function for the first time, the system shall mark the session as re-entered, use the passed account number if it is numeric (otherwise treat it as not supplied), load the account details and first page of authorizations, and display the screen with a full erase.AC-02, AC-03
REQ-F-084business ruleWhen the operator presses Enter with the Account ID blank, the system shall flag an error, show 'Please enter Acct Id...', clear the working account, put the cursor on Account ID and load no account details or authorizations.AC-04, AC-05
REQ-F-085business ruleWhen the operator presses Enter with an Account ID that is not entirely numeric, the system shall show 'Acct Id must be Numeric ...', flag an error, clear the working account, put the cursor on Account ID and load no account details or authorizations.AC-06
REQ-F-086business ruleWhen the operator presses Enter with a numeric Account ID, the system shall save it as the current account for the session, process any row selection, reset to the first page, and reload the account details and the first five pending authorizations.AC-07
REQ-F-087formattingWhen the Enter processing completes, the system shall redisplay the screen with the Account ID field showing the accepted account, or blank when the entry was rejected.AC-08
REQ-F-088design noteWhen a numeric account number is present, entered with Enter or passed in from the menu, the system shall look up the account's card cross-reference, account record, customer record and pending-authorization summary, and shall load the first page of authorizations only when a summary exists for the account.AC-09, AC-10
REQ-F-089design noteWhen the card cross-reference for the account is found, the system shall save the customer ID and card number from it in the session for later screens.AC-11
REQ-F-090formattingThe system shall show the customer name as the first word of the first name, a space, the middle initial, a space, and the last name.AC-19
REQ-F-091formattingThe system shall show address line 1 as address lines 1 and 2 joined by a comma, and address line 2 as address line 3, the state code and the first 5 digits of the ZIP code joined by commas, cutting each address line at its first double space.AC-20
REQ-F-092formattingThe system shall show the customer ID, the first phone number, and the account's credit limit and cash credit limit from the account master as signed amounts with two decimals.AC-12
REQ-F-093formattingWhen a pending authorization summary exists for the account, the system shall show its approved count, declined count, approved amount, declined amount, credit balance and cash balance.AC-13, AC-14, AC-15
REQ-F-094formattingWhen no pending authorization summary exists for the account, the system shall show the approved and declined counts and amounts and the credit and cash balances as zero, and shall not list any authorizations.AC-14, AC-15, AC-16
REQ-F-095error handlingIf reading the pending authorization summary fails for any reason other than not found, then the system shall flag an error, show ' System error while reading AUTH Summary: Code:' followed by the database status code, put the cursor on Account ID and show the totals as zero.AC-21
REQ-F-096error handlingIf no card cross-reference exists for the account, then the system shall show 'Account:<account> not found in XREF file. Resp:<code> Reas:<code>', and on any other read failure of file CXACAIX shall flag an error and show 'Account:<account> System error while reading XREF file. Resp:<code> Reas:<code>'.AC-22
REQ-F-097error handlingIf the account record is not on the account file, then the system shall show 'Account:<account> not found in ACCT file. Resp:<code> Reas:<code>', and on any other read failure of file ACCTDAT shall flag an error and show 'Account:<account> System error while reading ACCT file. Resp:<code> Reas:<code>'.AC-23
REQ-F-098error handlingIf the customer record is not on the customer file, then the system shall show 'Customer:<customer> not found in CUST file. Resp:<code> Reas:<code>', and on any other read failure of file CUSTDAT shall flag an error and show 'Customer:<customer> System error while reading CUST file. Resp:<code> Reas:<code>'.AC-24
REQ-F-099business ruleWhen the user presses PF3 on the summary screen, the system shall transfer control to the main menu (COMEN01C), passing the session data.AC-17
REQ-F-100business ruleIf the user presses any key other than Enter, PF3, PF7 or PF8, then the system shall flag an error and redisplay the screen with the message 'Invalid key pressed. Please see below...' and the cursor on the account number field.AC-18

Business rules

RuleClassText, worked examples and evidence
Summary screen navigation and session lifecycle
rec/group:claude/RULE-142/1
formatting
display, high
WHEN the pending authorization summary is started with no session data, THE Authorization Summary Screen SHALL start a new session, mark it as re-entered and show an empty screen with the cursor on the account number field.
  • session data: none → An empty summary screen is shown with the cursor on the account number
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:190-257, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:665-677, app/cpy/CSMSG01Y.cpy:20-21
Load account passed by calling function
rec/group:claude/RULE-142/2
business rule
business, high
WHEN the summary screen is entered from another function for the first time, THE Authorization Summary Screen SHALL mark the session as re-entered, use the passed account number if it is numeric (otherwise treat it as not supplied), load the account details and first page of authorizations, and display the screen with a full erase.
  • passed account number: 00000000001; entry: first entry from main menu → Account 00000000001 details and its first page of pending authorizations are shown
  • passed account number: spaces → The account field is blank and no account details or authorizations are loaded
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:190-257, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:665-677, app/cpy/CSMSG01Y.cpy:20-21
Require an account number
rec/aws:No domain/CardAuthorizationandFraudManagement/id-d6701e68a1/1
business rule
validation, medium
WHEN the user presses Enter with the account number blank, THE Account Inquiry Validation SHALL flag an error, clear the account, show 'Please enter Acct Id...' and place the cursor on the account number field.
  • account number: blank; key pressed: Enter → Message 'Please enter Acct Id...' is shown and no authorizations are listed
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:261-271, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:342-357
Process account inquiry on Enter
rec/group:claude/RULE-052/1
business rule
validation, high
WHEN the operator presses Enter with Account ID blank, THE Authorization Inquiry Screen SHALL show 'Please enter Acct Id...', flag an error, clear the working account, put the cursor on Account ID and load no account details or authorizations.
  • Account ID: (blank); Key: Enter → Message 'Please enter Acct Id...' and no list is loaded
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:224-234, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:261-338, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:342-358, app/app-authorization-ims-db2-mq/bms/COPAU00.bms:84-87
Require a numeric account number
rec/group:claude/RULE-052/2
business rule
validation, high
WHEN the operator presses Enter with an Account ID that is not entirely numeric, THE Authorization Inquiry Screen SHALL show 'Acct Id must be Numeric ...', flag an error, clear the working account, put the cursor on Account ID and load no account details or authorizations.
  • Account ID: 12A45678901; Key: Enter → Message 'Acct Id must be Numeric ...' and the Account ID field is shown blank
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:224-234, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:261-338, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:342-358, app/app-authorization-ims-db2-mq/bms/COPAU00.bms:84-87
Process account inquiry on Enter
rec/group:claude/RULE-052/3
business rule
business, high
WHEN the operator presses Enter with a numeric Account ID, THE Authorization Inquiry Screen SHALL save it as the current account for the session, process any row selection, reset to the first page, and reload the account details and the first five pending authorizations.
  • Account ID: 00000000001; Key: Enter → Account 00000000001 details and its first page of pending authorizations are shown
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:224-234, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:261-338, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:342-358, app/app-authorization-ims-db2-mq/bms/COPAU00.bms:84-87
Process account inquiry on Enter
rec/group:claude/RULE-052/4
formatting
display, high
WHEN the Enter processing completes, THE Authorization Inquiry Screen SHALL redisplay the screen with the Account ID field showing the accepted account, or blank when the entry was rejected.
  • Account ID: ABC → The screen comes back with Account ID blank and the numeric error message
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:224-234, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:261-338, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:342-358, app/app-authorization-ims-db2-mq/bms/COPAU00.bms:84-87
Gather account and authorization details
rec/group:claude/RULE-054/1
design note
technical, high
WHEN a numeric account number is present (entered with Enter, or passed in from the menu), THE Pending Authorization View SHALL look up the account's card cross-reference, account record, customer record and pending-authorization summary, and SHALL load the first page of authorizations only when a summary exists for the account.
  • Account ID: 00000000001; Pending authorization summary: exists → Account, customer and summary details are shown and the first page of authorizations is listed
  • Account ID: 00000000001; Pending authorization summary: none → Account and customer details are shown, and the authorization list stays empty
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:342-358, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:750-808, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:812-862, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:865-912, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:915-963, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:38-41
Look up card cross-reference by account
rec/group:claude/RULE-054/2
design note
technical, high
WHEN the card cross-reference for the account is found, THE Pending Authorization View SHALL save the customer ID and card number from it in the session for later screens.
  • Account ID: 00000000001; Cross-reference customer: 000000001; Cross-reference card: 4111111111111111 → The session holds customer 000000001 and card 4111111111111111
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:342-358, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:750-808, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:812-862, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:865-912, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:915-963, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:38-41
Show customer and account limit details
rec/group:claude/RULE-054/3
formatting
display, high
THE Pending Authorization View SHALL show the customer name as the first word of the first name, a space, the middle initial, a space, and the last name.
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:342-358, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:750-808, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:812-862, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:865-912, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:915-963, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:38-41
Show customer and account limit details
rec/group:claude/RULE-054/4
formatting
display, high
THE Pending Authorization View SHALL show address line 1 as address lines 1 and 2 joined by a comma, and address line 2 as address line 3, the state code and the first 5 digits of the ZIP code joined by commas, cutting each address line at its first double space.
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:342-358, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:750-808, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:812-862, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:865-912, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:915-963, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:38-41
Show customer and account limit details
rec/group:claude/RULE-054/5
formatting
display, high
THE Pending Authorization View SHALL show the customer ID, the first phone number, and the account's credit limit and cash credit limit from the account master as signed amounts with two decimals.
  • Credit limit: 5000.00; Cash credit limit: 1500.00 → Credit limit shows 5000.00 and cash limit shows 1500.00
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:342-358, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:750-808, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:812-862, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:865-912, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:915-963, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:38-41
Show pending authorization summary totals
rec/group:claude/RULE-010/1
formatting
display, high
WHEN account details are gathered and a pending authorization summary exists for the account, THE Account Authorization Inquiry SHALL show its approved count, declined count, approved amount, declined amount, credit balance and cash balance.
  • Account: 00000000001; Summary approved: 3 for 450.00; Summary declined: 1 for 75.00; Credit balance: 1200.00; Cash balance: 50.00 → The screen shows approved 3 / 450.00, declined 1 / 75.00, credit balance 1200.00 and cash balance 50.00
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:785-807, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:966-997, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:342-358, app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:25-30
Gather account and authorization details
rec/group:claude/RULE-054/6
formatting
display, high
WHEN a pending-authorization summary exists for the account, THE Pending Authorization View SHALL show its approved and declined counts, credit and cash balances, and approved and declined amounts; otherwise it SHALL show zero in each of these fields.
  • Summary: approved count 3, declined count 1, approved amount 250.00 → Screen shows 003 approved, 001 declined, 250.00 approved amount
  • Summary: none → All summary counts and amounts show zero
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:342-358, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:750-808, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:812-862, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:865-912, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:915-963, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:38-41
Show pending authorization summary totals
rec/group:claude/RULE-010/2
formatting
display, high
WHEN no pending authorization summary exists for the account, THE Account Authorization Inquiry SHALL show the approved and declined counts and amounts and the credit and cash balances as zero, and SHALL not list any authorizations.
  • Account: 00000000002; Pending authorization summary: none → All six totals show 0 and the list is empty
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:785-807, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:966-997, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:342-358, app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:25-30
Read pending authorization summary
rec/group:claude/RULE-010/3
error handling
error_handling, high
WHEN reading the pending authorization summary fails for any reason other than not found, THE Account Authorization Inquiry SHALL flag an error, show ' System error while reading AUTH Summary: Code:' followed by the database status code, put the cursor on Account ID and show the totals as zero.
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:785-807, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:966-997, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:342-358, app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:25-30
Look up card cross-reference by account
rec/group:claude/RULE-054/7
error handling
error_handling, high
WHEN no card cross-reference exists for the account, THE Pending Authorization View SHALL show 'Account:<account> not found in XREF file. Resp:<code> Reas:<code>'; on any other read failure it SHALL flag an error and show 'Account:<account> System error while reading XREF file. Resp:<code> Reas:<code>' (file CXACAIX).
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:342-358, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:750-808, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:812-862, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:865-912, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:915-963, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:38-41
Look up account master record
rec/group:claude/RULE-054/8
error handling
error_handling, high
WHEN the account record is not on the account file, THE Pending Authorization View SHALL show 'Account:<account> not found in ACCT file. Resp:<code> Reas:<code>'; on any other read failure it SHALL flag an error and show 'Account:<account> System error while reading ACCT file. Resp:<code> Reas:<code>' (file ACCTDAT).
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:342-358, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:750-808, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:812-862, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:865-912, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:915-963, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:38-41
Look up customer record
rec/group:claude/RULE-054/9
error handling
error_handling, high
WHEN the customer record is not on the customer file, THE Pending Authorization View SHALL show 'Customer:<customer> not found in CUST file. Resp:<code> Reas:<code>'; on any other read failure it SHALL flag an error and show 'Customer:<customer> System error while reading CUST file. Resp:<code> Reas:<code>' (file CUSTDAT).
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:342-358, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:750-808, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:812-862, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:865-912, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:915-963, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:38-41
Summary screen navigation and session lifecycle
rec/group:claude/RULE-142/3
business rule
business, high
WHEN the user presses PF3 on the summary screen, THE Authorization Summary Screen SHALL transfer control to the main menu (COMEN01C), passing the session data.
  • key pressed: PF3 → The main menu is shown
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:190-257, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:665-677, app/cpy/CSMSG01Y.cpy:20-21
Reject unsupported key press
rec/group:claude/RULE-142/4
business rule
validation, high
WHEN the user presses any key other than Enter, PF3, PF7 or PF8, THE Authorization Summary Screen SHALL flag an error and redisplay the screen with the message 'Invalid key pressed. Please see below...' and the cursor on the account number field.
  • key pressed: PF5 → Message 'Invalid key pressed. Please see below...' is shown
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:190-257, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:665-677, app/cpy/CSMSG01Y.cpy:20-21

Acceptance criteria

IDCriterionChecks
AC-01Given session data: none
When the pending authorization summary is started with no session data
Then An empty summary screen is shown with the cursor on the account number
REQ-F-082
Summary screen navigation and session lifecycle
worked example 1 of the rule
AC-02Given passed account number: 00000000001; entry: first entry from main menu
When the summary screen is entered from another function for the first time
Then Account 00000000001 details and its first page of pending authorizations are shown
REQ-F-083
Load account passed by calling function
worked example 1 of the rule
AC-03Given passed account number: spaces
When the summary screen is entered from another function for the first time
Then The account field is blank and no account details or authorizations are loaded
REQ-F-083
Load account passed by calling function
worked example 2 of the rule
AC-04Given account number: blank; key pressed: Enter
When the user presses Enter with the account number blank
Then Message 'Please enter Acct Id...' is shown and no authorizations are listed
REQ-F-084
Require an account number
worked example 1 of the rule
AC-05Given Account ID: (blank); Key: Enter
When the operator presses Enter with Account ID blank
Then Message 'Please enter Acct Id...' and no list is loaded
REQ-F-084
Process account inquiry on Enter
worked example 1 of the rule
AC-06Given Account ID: 12A45678901; Key: Enter
When the operator presses Enter with an Account ID that is not entirely numeric
Then Message 'Acct Id must be Numeric ...' and the Account ID field is shown blank
REQ-F-085
Require a numeric account number
worked example 1 of the rule
AC-07Given Account ID: 00000000001; Key: Enter
When the operator presses Enter with a numeric Account ID
Then Account 00000000001 details and its first page of pending authorizations are shown
REQ-F-086
Process account inquiry on Enter
worked example 1 of the rule
AC-08Given Account ID: ABC
When the Enter processing completes
Then The screen comes back with Account ID blank and the numeric error message
REQ-F-087
Process account inquiry on Enter
worked example 1 of the rule
AC-09Given Account ID: 00000000001; Pending authorization summary: exists
When a numeric account number is present (entered with Enter, or passed in from the menu)
Then Account, customer and summary details are shown and the first page of authorizations is listed
REQ-F-088
Gather account and authorization details
worked example 1 of the rule
AC-10Given Account ID: 00000000001; Pending authorization summary: none
When a numeric account number is present (entered with Enter, or passed in from the menu)
Then Account and customer details are shown, and the authorization list stays empty
REQ-F-088
Gather account and authorization details
worked example 2 of the rule
AC-11Given Account ID: 00000000001; Cross-reference customer: 000000001; Cross-reference card: 4111111111111111
When the card cross-reference for the account is found
Then The session holds customer 000000001 and card 4111111111111111
REQ-F-089
Look up card cross-reference by account
worked example 1 of the rule
AC-12Given Credit limit: 5000.00; Cash credit limit: 1500.00
When Pending Authorization View runs
Then Credit limit shows 5000.00 and cash limit shows 1500.00
REQ-F-092
Show customer and account limit details
worked example 1 of the rule
AC-13Given Account: 00000000001; Summary approved: 3 for 450.00; Summary declined: 1 for 75.00; Credit balance: 1200.00; Cash balance: 50.00
When account details are gathered and a pending authorization summary exists for the account
Then The screen shows approved 3 / 450.00, declined 1 / 75.00, credit balance 1200.00 and cash balance 50.00
REQ-F-093
Show pending authorization summary totals
worked example 1 of the rule
AC-14Given Summary: approved count 3, declined count 1, approved amount 250.00
When a pending-authorization summary exists for the account
Then Screen shows 003 approved, 001 declined, 250.00 approved amount
REQ-F-093, REQ-F-094
Gather account and authorization details
worked example 1 of the rule
AC-15Given Summary: none
When a pending-authorization summary exists for the account
Then All summary counts and amounts show zero
REQ-F-093, REQ-F-094
Gather account and authorization details
worked example 2 of the rule
AC-16Given Account: 00000000002; Pending authorization summary: none
When no pending authorization summary exists for the account
Then All six totals show 0 and the list is empty
REQ-F-094
Show pending authorization summary totals
worked example 1 of the rule
AC-17Given key pressed: PF3
When the user presses PF3 on the summary screen
Then The main menu is shown
REQ-F-099
Summary screen navigation and session lifecycle
worked example 1 of the rule
AC-18Given key pressed: PF5
When the user presses any key other than Enter, PF3, PF7 or PF8
Then Message 'Invalid key pressed. Please see below...' is shown
REQ-F-100
Reject unsupported key press
worked example 1 of the rule
AC-19Given A customer with first name 'MARY ANN', middle initial 'J' and last name 'SMITH'
When The operator views the account's pending authorizations
Then The customer name shows as 'MARY J SMITH': the first word of the first name, a space, the middle initial, a space and the last name.
REQ-F-090
Show customer and account limit details
written from the rule
AC-20Given A customer with address line 1 '12 MAIN ST', line 2 'APT 4', line 3 'SPRINGFIELD', state 'IL' and ZIP '627011234'
When The operator views the account's pending authorizations
Then Address line 1 shows '12 MAIN ST,APT 4' and address line 2 shows 'SPRINGFIELD,IL,62701'. Each address line is cut at its first double space.
REQ-F-091
Show customer and account limit details
written from the rule
AC-21Given Reading the account's pending authorization summary fails with a database status other than not found, for example 'AI'
When The operator presses Enter with a numeric Account ID
Then An error is flagged, the message ' System error while reading AUTH Summary: Code:' followed by 'AI' is shown, the cursor is on Account ID, and the approved and declined counts and amounts and the credit and cash balances all show zero.
REQ-F-095
Read pending authorization summary
written from the rule
AC-22Given Account 00000000099 has no card cross-reference, and on a second attempt the cross-reference read fails for another reason
When The operator enters 00000000099 and presses Enter
Then For the missing cross-reference, 'Account:00000000099 not found in XREF file. Resp:<code> Reas:<code>' is shown with the returned codes. For the other failure, an error is flagged and 'Account:00000000099 System error while reading XREF file. Resp:<code> Reas:<code>' is shown.
REQ-F-096
Look up card cross-reference by account
written from the rule
AC-23Given Account 00000000099 has a card cross-reference but no account record, and on a second attempt the account read fails for another reason
When The operator enters 00000000099 and presses Enter
Then For the missing record, 'Account:00000000099 not found in ACCT file. Resp:<code> Reas:<code>' is shown. For the other failure, an error is flagged and 'Account:00000000099 System error while reading ACCT file. Resp:<code> Reas:<code>' is shown.
REQ-F-097
Look up account master record
written from the rule
AC-24Given The account's cross-reference names customer 000000123, who is not on the customer file, and on a second attempt the customer read fails for another reason
When The operator enters the account number and presses Enter
Then For the missing customer, 'Customer:000000123 not found in CUST file. Resp:<code> Reas:<code>' is shown. For the other failure, an error is flagged and 'Customer:000000123 System error while reading CUST file. Resp:<code> Reas:<code>' is shown.
REQ-F-098
Look up customer record
written from the rule

Screens

  • Account authorizations S-ACCOUNT-AUTHORIZATIONS · design · replaces COPAU0A, COPAU1A (58 merged, 4 dropped, 34 kept, 3 split)
    • **lookup field** Account ID checks: Blank: 'Please enter Acct Id' - type the account ID, then press Enter. Not all digits: 'Acct Id must be Numeric' - remove letters, spaces and symbols and use digits only. No card on file: 'Account <account> not found in XREF file' - check the account ID. No account record: 'Account <account> not found in ACCT file' - check the account ID. No customer record: 'Customer <customer> not found in CUST file' - report it to support. Any other read failure: 'System error while reading' with the file and code - try again, or report the code. On any error nothing is loaded, the field keeps the entry so it can be corrected, and focus returns to it.
    • **summary card** Customer
    • **summary card** Limits and balances
    • **summary card** Pending authorizations checks: Summary unreadable: 'System error while reading AUTH Summary: Code <code>' - try again, and report the code if it repeats. The totals and the table stay empty.
    • **data table** Authorizations checks: Previous page is disabled on the first page, with 'You are already on the first page'. Next page is disabled on the last page, with 'You are already on the last page'. Next authorization on the last one says 'Already at the last authorization' and keeps the current one open. Rows open directly, so no selection code is typed and 'Invalid selection. Valid value is S' cannot arise. There are no unsupported keys to warn about.
  • CardDemo header and navigation S-APP-HEADER · design
    • **primary button** Main menu

Data contracts

CVACT01Y (file record; COPAUS0C), CVACT03Y (file record; COPAUS0C), CVCUS01Y (file record; COPAUS0C), CIPAUDTY (working storage; COPAUS0C), CIPAUSMY (working storage; COPAUS0C), COCOM01Y (working storage; COPAUS0C), COTTL01Y (working storage; COPAUS0C), CSDAT01Y (working storage; COPAUS0C), CSMSG01Y (working storage; COPAUS0C), CSMSG02Y (working storage; COPAUS0C), CVACT02Y (working storage; COPAUS0C)

Decision tables

Summary screen key handling

Key pressedAccount ID enteredPaging stateScreen actionRule
EnterBlank-Error 'Please enter Acct Id...', account cleared, cursor on Account ID, nothing loadedrec/group:claude/RULE-052/1
EnterNot entirely numeric-Error 'Acct Id must be Numeric ...', account cleared, cursor on Account ID, nothing loadedrec/group:claude/RULE-052/2
EnterNumeric-Account saved, selection processed, first page reloaded with detailsrec/group:claude/RULE-052/3
PF3--Transfer to main menu COMEN01C with session datarec/group:claude/RULE-142/3
PF7-Page number greater than 1Step back one page from its saved first key, redisplay without eraserec/group:claude/RULE-143/1
PF7-Page number 1 or less'You are already at the top of the page...', list unchangedrec/group:claude/RULE-143/2
PF8-Next page existsClear rows and show next page of up to 5, redisplay without full eraserec/aws:No domain/CardAuthorizationandFraudManagement/id-5c89966739/1
PF8-No next page'You are already at the bottom of the page...', list keptrec/aws:No domain/CardAuthorizationandFraudManagement/id-3667000338/1
Any other key--Error 'Invalid key pressed. Please see below...', cursor on account numberrec/group:claude/RULE-142/4
PF7 or PF8No current account-Gap: No rule says what paging does when no account has been accepted yet.

Open questions

  • SME-137 On the pending-authorizations list screen, the PF3 (exit) key is accepted but nothing says what it does. Where should PF3 take the user? (Business analyst)
  • SME-138 When an account typed on the pending-authorizations screen has no card cross-reference, account record or customer record, a 'not found' message appears but the inquiry carries on. Should a missing record stop the inquiry so no authorization list is shown, or should the screen still show whatever authorization data exists for that account ID? (Customer service operations lead)
  • SME-139 When a page of pending authorizations is full, the system reads one more record ahead. What rule should decide that there is a next page, so that forward paging (PF8) is allowed? (Business analyst)
  • SME-140 Please confirm: when the card cross-reference lookup succeeds, the account ID and customer ID it returns are the ones used to look up the account and the customer. (Business analyst)
  • DEF-005 Is this intended? When the summary read fails, the program sends the screen from inside the read paragraph and then sends it again from the main flow, so the operator gets two screen sends in one task. (Subject-matter expert)
  • DEF-024 Is this intended? The Account ID field is 11 characters with no numeric or justify attribute. An account typed without its leading zeros (for example '1') keeps trailing blanks, fails the numeric test and gets 'Acct Id must be Numeric ...'. (Subject-matter expert)
  • DEF-025 Is this intended? When a lookup fails, the program sends the screen with the error but keeps going: it still reads the account file using the account number left over from the failed cross-reference read, then the customer file, and sends the screen again, so a later message can overwrite the first one. 'Not found' cases also do not set the error flag, while system errors do. (Subject-matter expert)

Design notes

  • For a valid account number, the screen's backend runs four keyed lookups: the card cross-reference by account id, the account, the customer (by the customer id from the cross-reference) and the pending-authorization summary. It returns them as one view, and fetches the first page of authorization details only when a summary exists. Gather account and authorization details
  • Keep the customer ID and card number from the cross-reference in the operator's session (or pass them in the navigation state), so the detail and fraud screens can use them without another lookup. Look up card cross-reference by account
10. Page through an account's pending authorizationsdraft · online · 8 requirements · 10 rules · 13 criteria · 1 screen

Lets a customer service operator page forward and back through an account's pending authorizations, five at a time, newest first. Each row shows 'A' (approved) or 'D' (declined) with its amount, date, time, transaction id, type and match status. Paging must never skip or repeat an authorization. At either end the operator is told so and the list stays as it is.

As a customer service operator, I want to page forward and back through an account's pending authorizations five at a time, with each shown as approved or declined, so that I can review every authorization on the account.

Draft: the function is not signed off yet. Risk high; touches card_data, money, reporting_only. rec/No domain/CardAuthorizationandFraudManagement#10

Requirements

CodeClassRequirementCriteria
REQ-F-101business ruleWhen a page of authorizations is loaded and no error is flagged, the system shall read up to 5 pending authorizations for the account into the list rows (on backward paging starting at the saved first key of that page), remember each page's first key and the last key shown, then read one more ahead to set whether a next page exists.AC-01, AC-02
REQ-F-102design noteWhen the user pages forward (PF8), the system shall re-read the account's authorization summary and reposition at the last authorization shown when one exists, otherwise clear the start key.AC-03, AC-04
REQ-F-103business ruleWhen the user presses PF8 and a next page exists, the system shall clear the five list rows, load the next page of up to 5 pending authorizations and redisplay the screen without a full erase.AC-05, AC-06
REQ-F-104business ruleWhen the user presses PF8 and no further page of authorizations exists, the system shall keep the current list and show 'You are already at the bottom of the page...'.AC-07
REQ-F-105business ruleWhen the operator presses PF7 and the current page number is greater than 1, the system shall step the page number back by one, reposition to the saved first authorization key of that page, and redisplay up to five authorizations starting from that key without erasing the screen.AC-08, AC-09
REQ-F-106business ruleWhen the operator presses PF7 and the current page number is 1 or less, the system shall show 'You are already at the top of the page...' and leave the list unchanged.AC-10
REQ-F-107business ruleWhen an authorization is placed in the summary list, the system shall show it as approved 'A' when its response code is '00' and as declined 'D' for any other response code.AC-11, AC-12
REQ-F-108formattingWhen an authorization is listed, the system shall show its approved amount with a sign and two decimals, its original date held as YYMMDD as MM/DD/YY, and its original time held as HHMMSS as HH:MM:SS, along with transaction id, authorization type and match status.AC-13

Business rules

RuleClassText, worked examples and evidence
Load a page of five authorizations
rec/aws:No domain/CardAuthorizationandFraudManagement/id-bd322d0f76/1
business rule
business, medium
WHEN a page of authorizations is loaded and no error is flagged, THE Authorization List Builder SHALL read up to 5 pending authorizations for the account into the list rows (on backward paging starting at the saved first key of that page), remember each page's first key and the last key shown, then read one more ahead to set whether a next page exists.
  • pending authorizations for account: 7 → First page shows 5 rows and a next page is available
  • pending authorizations for account: 3 → 3 rows are shown and no next page is flagged
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:415-455, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:458-486
Position forward paging start key
rec/aws:No domain/CardAuthorizationandFraudManagement/id-5599b4992e/1
design note
technical, medium
WHEN the user pages forward (PF8), THE Authorization List Paging SHALL re-read the account's authorization summary and reposition at the last authorization shown when one exists, otherwise clear the start key.
  • last authorization shown: key of row 5; key pressed: PF8 → Reading resumes after the fifth authorization shown
  • last authorization shown: none → The start key is cleared and no repositioning is done
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:386-402, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:488-520
Page forward on PF8
rec/aws:No domain/CardAuthorizationandFraudManagement/id-5c89966739/1
business rule
business, medium
WHEN the user presses PF8 on the summary screen and a next page exists, THE Authorization List Paging SHALL show the next page of up to 5 pending authorizations and redisplay the screen without a full erase.
  • key pressed: PF8; next page exists: yes → Next 5 pending authorizations are shown
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:242-244, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:386-411
Show next authorization page
rec/aws:No domain/CardAuthorizationandFraudManagement/id-152147b729/1
design note
technical, medium
WHEN the user pages forward (PF8) and a next page exists, THE Authorization List Paging SHALL clear the five list rows and load the next page of pending authorizations.
  • key pressed: PF8; next page exists: 'Y' → The list is cleared and refilled with the next authorizations
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:404-407, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:608-662
Warn already at last page
rec/aws:No domain/CardAuthorizationandFraudManagement/id-3667000338/1
business rule
validation, medium
WHEN the user pages forward (PF8) and no further page of authorizations exists, THE Authorization List Paging SHALL keep the current list and show 'You are already at the bottom of the page...'.
  • key pressed: PF8; more authorizations: none → Message 'You are already at the bottom of the page...' is shown
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:404-411, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:446-451
Page backward on PF7
rec/group:claude/RULE-143/1
business rule
business, high
WHEN the operator presses PF7 on the pending authorization summary screen and the current page number is greater than 1, THE Authorization List Paging SHALL step the page number back by one, reposition to the saved first authorization key of that page, and redisplay up to five authorizations starting from that key without erasing the screen.
  • Current page number: 3; Key: PF7 → The list restarts at the first authorization saved for page 2 and shows up to five authorizations from there
  • Current page number: 2; Key: PF7 → The first page of authorizations is shown again
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:239-241, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:361-385, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:414-454, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:487-519
Warn already at first page
rec/group:claude/RULE-143/2
business rule
validation, high
WHEN the operator presses PF7 and the current page number is 1 or less, THE Authorization List Paging SHALL show 'You are already at the top of the page...' and leave the list unchanged.
  • Current page number: 1; Key: PF7 → Message 'You are already at the top of the page...' and the same list stays on screen
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:239-241, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:361-385, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:414-454, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:487-519
Format authorization and derive approval status
rec/group:claude/RULE-009/1
business rule
business, high
WHEN an authorization is placed in the summary list, THE Authorization List SHALL show it as approved 'A' when its response code is '00' and as declined 'D' for any other response code.
  • response code: '00' → Approval status shows 'A'
  • response code: '05' → Approval status shows 'D'
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:522-560, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:55, app/cpy/CSDAT01Y.cpy:30-35
Authorization origin date and time display conversion
rec/claude:claude/RULE-034/1
formatting
display, medium
WHEN an authorization is listed, THE Authorization List SHALL show its original date, held as YYMMDD, as MM/DD/YY and its original time, held as HHMMSS, as HH:MM:SS.
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:525-534, app/cpy/CSDAT01Y.cpy:30-35, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:22-23
Format authorization and derive approval status
rec/group:claude/RULE-009/2
formatting
display, high
WHEN an authorization is placed in the summary list, THE Authorization List SHALL show its approved amount with a sign and two decimals, its original date as MM/DD/YY and its original time as HH:MM:SS, along with transaction id, authorization type and match status.
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:522-560, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:55, app/cpy/CSDAT01Y.cpy:30-35

Acceptance criteria

IDCriterionChecks
AC-01Given pending authorizations for account: 7
When a page of authorizations is loaded and no error is flagged
Then First page shows 5 rows and a next page is available
REQ-F-101
Load a page of five authorizations
worked example 1 of the rule
AC-02Given pending authorizations for account: 3
When a page of authorizations is loaded and no error is flagged
Then 3 rows are shown and no next page is flagged
REQ-F-101
Load a page of five authorizations
worked example 2 of the rule
AC-03Given last authorization shown: key of row 5; key pressed: PF8
When the user pages forward (PF8)
Then Reading resumes after the fifth authorization shown
REQ-F-102
Position forward paging start key
worked example 1 of the rule
AC-04Given last authorization shown: none
When the user pages forward (PF8)
Then The start key is cleared and no repositioning is done
REQ-F-102
Position forward paging start key
worked example 2 of the rule
AC-05Given key pressed: PF8; next page exists: yes
When the user presses PF8 on the summary screen and a next page exists
Then Next 5 pending authorizations are shown
REQ-F-103
Page forward on PF8
worked example 1 of the rule
AC-06Given key pressed: PF8; next page exists: 'Y'
When the user pages forward (PF8) and a next page exists
Then The list is cleared and refilled with the next authorizations
REQ-F-103
Show next authorization page
worked example 1 of the rule
AC-07Given key pressed: PF8; more authorizations: none
When the user pages forward (PF8) and no further page of authorizations exists
Then Message 'You are already at the bottom of the page...' is shown
REQ-F-104
Warn already at last page
worked example 1 of the rule
AC-08Given Current page number: 3; Key: PF7
When the operator presses PF7 on the pending authorization summary screen and the current page number is greater than 1
Then The list restarts at the first authorization saved for page 2 and shows up to five authorizations from there
REQ-F-105
Page backward on PF7
worked example 1 of the rule
AC-09Given Current page number: 2; Key: PF7
When the operator presses PF7 on the pending authorization summary screen and the current page number is greater than 1
Then The first page of authorizations is shown again
REQ-F-105
Page backward on PF7
worked example 2 of the rule
AC-10Given Current page number: 1; Key: PF7
When the operator presses PF7 and the current page number is 1 or less
Then Message 'You are already at the top of the page...' and the same list stays on screen
REQ-F-106
Warn already at first page
worked example 1 of the rule
AC-11Given response code: '00'
When an authorization is placed in the summary list
Then Approval status shows 'A'
REQ-F-107
Format authorization and derive approval status
worked example 1 of the rule
AC-12Given response code: '05'
When an authorization is placed in the summary list
Then Approval status shows 'D'
REQ-F-107
Format authorization and derive approval status
worked example 2 of the rule
AC-13Given A pending authorization with approved amount 125.50, original date held as '261126', original time held as '143005', and its transaction id, authorization type and match status 'P'
When It is listed on the account's authorizations page
Then The row shows the amount as signed with two decimals (125.50), the date as '11/26/26', the time as '14:30:05', and the transaction id, authorization type and match status 'P'.
REQ-F-108
Authorization origin date and time display conversion, Format authorization and derive approval status
written from the rule

Screens

  • Account authorizations S-ACCOUNT-AUTHORIZATIONS · design · replaces COPAU0A, COPAU1A (58 merged, 4 dropped, 34 kept, 3 split)
    • **data table** Authorizations checks: Previous page is disabled on the first page, with 'You are already on the first page'. Next page is disabled on the last page, with 'You are already on the last page'. Next authorization on the last one says 'Already at the last authorization' and keeps the current one open. Rows open directly, so no selection code is typed and 'Invalid selection. Valid value is S' cannot arise. There are no unsupported keys to warn about.

Data contracts

CVACT01Y (file record; COPAUS0C), CVACT03Y (file record; COPAUS0C), CVCUS01Y (file record; COPAUS0C), CIPAUDTY (working storage; COPAUS0C), CIPAUSMY (working storage; COPAUS0C), COCOM01Y (working storage; COPAUS0C), COTTL01Y (working storage; COPAUS0C), CSDAT01Y (working storage; COPAUS0C), CSMSG01Y (working storage; COPAUS0C), CSMSG02Y (working storage; COPAUS0C), CVACT02Y (working storage; COPAUS0C)

Decision tables

None.

Open questions

  • SME-137 On the pending-authorizations list screen, the PF3 (exit) key is accepted but nothing says what it does. Where should PF3 take the user? (Business analyst)
  • SME-138 When an account typed on the pending-authorizations screen has no card cross-reference, account record or customer record, a 'not found' message appears but the inquiry carries on. Should a missing record stop the inquiry so no authorization list is shown, or should the screen still show whatever authorization data exists for that account ID? (Customer service operations lead)
  • SME-139 When a page of pending authorizations is full, the system reads one more record ahead. What rule should decide that there is a next page, so that forward paging (PF8) is allowed? (Business analyst)
  • SME-140 Please confirm: when the card cross-reference lookup succeeds, the account ID and customer ID it returns are the ones used to look up the account and the customer. (Business analyst)
  • SME-141 Backward paging (PF7) seems unable to go back more than one page. Is that what happens in production? How many pages should be supported for accounts with more than 100 pending authorizations? (Customer service operations lead)
  • SME-142 An authorization shows as Approved ('A') only when its response code is '00'. Every other code shows as Declined ('D'), on both the list and the detail screens. Is this rule critical to the system's core purpose, and would getting it wrong be costly? (Card authorization product owner)
  • DEF-062 Is this intended? After PF7 has repositioned, the page-forward loop adds 1 to the page number again when it reads the first row, and it overwrites that page's saved first key with the key of the page just shown. Example: from page 2, PF7 shows page 1, but the stored page number goes back to 2. A second PF7 shows page 1 again instead of 'You are already at the top of the page...'. From page 3 or later, repeated PF7 presses keep showing the same page, so the operator can only go back one page. (Subject-matter expert)

Design notes

  • Use keyset paging: a forward page request carries the key of the last authorization shown and returns the next rows after it, or starts from the beginning when there is no key. Re-check that the account's summary still exists before reading the page. Position forward paging start key
  • A forward page replaces all five list rows with the next set of up to 5 authorizations. Fetch one row more than the page size to tell whether a further page exists. Keep the first key of each page visited so backward paging can go back to it. Show next authorization page
11. Select an authorization for detaildraft · online · 3 requirements · 3 rules · 4 criteria · 1 screen · 2 gaps

Lets a customer service operator open one authorization from the list by marking its row with 'S' (or 's'), taking them to that authorization's detail screen with a way back to the list. Only the first marked row, from the top, counts. Any other mark is rejected with 'Invalid selection. Valid value is S'.

As a customer service operator, I want to mark one listed authorization with 'S' to open its details, so that I can examine a specific authorization.

Draft: the function is not signed off yet. Risk medium; touches card_data. rec/No domain/CardAuthorizationandFraudManagement#11

Requirements

CodeClassRequirementCriteria
REQ-F-109business ruleWhen Enter is pressed with a numeric account number, the system shall take the first of the five list rows, from top to bottom, that has a selection code and record that code and the row's authorization key, and if no row is marked shall clear the selection.AC-01, AC-02
REQ-F-110business ruleWhen the recorded selection code is 'S' or 's' and the row holds an authorization key, the system shall pass control to the authorization detail program COPAUS1C with that key, recording COPAUS0C and transaction CPVS as where the user came from.AC-03
REQ-F-111business ruleIf the recorded selection code is anything other than 'S' or 's', then the system shall show 'Invalid selection. Valid value is S' and redisplay the account's authorization list.AC-04

Business rules

RuleClassText, worked examples and evidence
Capture selected pending authorization
rec/group:claude/RULE-053/1
business rule
business, high
WHEN Enter is pressed with a numeric account number, THE Pending Authorization View SHALL take the first of the five list rows, from top to bottom, that has a selection code, and record that code and the row's authorization key; if no row is marked it SHALL clear the selection.
  • Account ID: 00000000001; Row 3 selection: S; Row 5 selection: S → Row 3's code and authorization key are recorded
  • Account ID: 00000000001; Row selections: all blank → No selection is recorded and the list is redisplayed
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:264-283, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:285-332, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:337, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:33-36
Open details for selected authorization
rec/group:claude/RULE-053/2
business rule
business, high
WHEN the recorded selection code is 'S' or 's' and the row holds an authorization key, THE Pending Authorization View SHALL pass control to the authorization detail program COPAUS1C with that key, recording this program (COPAUS0C) and transaction CPVS as where the user came from.
  • Account ID: 00000000001; Row 3 selection: s → The detail screen (COPAUS1C) opens for row 3's authorization
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:264-283, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:285-332, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:337, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:33-36
Reject invalid selection code
rec/group:claude/RULE-053/3
business rule
validation, high
WHEN the recorded selection code is anything other than 'S' or 's', THE Pending Authorization View SHALL show 'Invalid selection. Valid value is S' and redisplay the account's authorization list.
  • Account ID: 00000000001; Row 3 selection: X → Message 'Invalid selection. Valid value is S' is shown with the list
app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:264-283, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:285-332, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:337, app/app-authorization-ims-db2-mq/cbl/COPAUS0C.cbl:33-36

Acceptance criteria

IDCriterionChecks
AC-01Given Account ID: 00000000001; Row 3 selection: S; Row 5 selection: S
When Enter is pressed with a numeric account number
Then Row 3's code and authorization key are recorded
REQ-F-109
Capture selected pending authorization
worked example 1 of the rule
AC-02Given Account ID: 00000000001; Row selections: all blank
When Enter is pressed with a numeric account number
Then No selection is recorded and the list is redisplayed
REQ-F-109
Capture selected pending authorization
worked example 2 of the rule
AC-03Given Account ID: 00000000001; Row 3 selection: s
When the recorded selection code is 'S' or 's' and the row holds an authorization key
Then The detail screen (COPAUS1C) opens for row 3's authorization
REQ-F-110
Open details for selected authorization
worked example 1 of the rule
AC-04Given Account ID: 00000000001; Row 3 selection: X
When the recorded selection code is anything other than 'S' or 's'
Then Message 'Invalid selection. Valid value is S' is shown with the list
REQ-F-111
Reject invalid selection code
worked example 1 of the rule

Screens

  • Account authorizations S-ACCOUNT-AUTHORIZATIONS · design · replaces COPAU0A, COPAU1A (58 merged, 4 dropped, 34 kept, 3 split)
    • **data table** Authorizations checks: Previous page is disabled on the first page, with 'You are already on the first page'. Next page is disabled on the last page, with 'You are already on the last page'. Next authorization on the last one says 'Already at the last authorization' and keeps the current one open. Rows open directly, so no selection code is typed and 'Invalid selection. Valid value is S' cannot arise. There are no unsupported keys to warn about.

Data contracts

CVACT01Y (file record; COPAUS0C), CVACT03Y (file record; COPAUS0C), CVCUS01Y (file record; COPAUS0C), CIPAUDTY (working storage; COPAUS0C), CIPAUSMY (working storage; COPAUS0C), COCOM01Y (working storage; COPAUS0C), COTTL01Y (working storage; COPAUS0C), CSDAT01Y (working storage; COPAUS0C), CSMSG01Y (working storage; COPAUS0C), CSMSG02Y (working storage; COPAUS0C), CVACT02Y (working storage; COPAUS0C)

Decision tables

Authorization row selection

Row markedSelection codeRow holds authorization keySelection actionRule
No row marked--Selection clearedrec/group:claude/RULE-053/1
Yes (first marked row)'S' or 's'YesOpen COPAUS1C with the key, returning to COPAUS0C / CPVSrec/group:claude/RULE-053/2
Yes (first marked row)Other than 'S' or 's'Any'Invalid selection. Valid value is S', list redisplayedrec/group:claude/RULE-053/3
Yes (first marked row)'S' or 's'NoGap: No rule says what happens when 'S' is entered on a row with no authorization.
More than one row markedAnyAnyGap: Only the first marked row is used; no rule says whether the operator is told other marks were ignored.

Open questions

  • SME-137 On the pending-authorizations list screen, the PF3 (exit) key is accepted but nothing says what it does. Where should PF3 take the user? (Business analyst)
  • SME-138 When an account typed on the pending-authorizations screen has no card cross-reference, account record or customer record, a 'not found' message appears but the inquiry carries on. Should a missing record stop the inquiry so no authorization list is shown, or should the screen still show whatever authorization data exists for that account ID? (Customer service operations lead)
  • SME-139 When a page of pending authorizations is full, the system reads one more record ahead. What rule should decide that there is a next page, so that forward paging (PF8) is allowed? (Business analyst)
  • SME-140 Please confirm: when the card cross-reference lookup succeeds, the account ID and customer ID it returns are the ones used to look up the account and the customer. (Business analyst)

Design notes

None.

12. View authorization detail and mark frauddraft · online · 3 requirements · 3 rules · 6 criteria · 1 screen

Shows a fraud analyst one authorization in full: approved 'A' in green or declined 'D' in red, with the decline reason as '<code>-<description>'. One key toggles its fraud mark, reporting the authorization as fraud ('F') or withdrawing the report ('R'), and passes it on to fraud processing. The toggle must always work from the freshly read record. An unknown reason code must show as '9999-ERROR', never blank.

As a fraud analyst, I want to see an authorization's details with its decline reason and toggle its fraud mark, so that suspected fraud can be reported or withdrawn.

Draft: the function is not signed off yet. Risk medium; touches card_data, updates_records. rec/No domain/CardAuthorizationandFraudManagement#12

Requirements

CodeClassRequirementCriteria
REQ-F-112formattingWhen authorization details are being populated, the system shall show the reason as '<code>-<description>' from the decline reason table, or as '9999-ERROR' when the code is not in the table.AC-06
REQ-F-113formattingWhen the authorization detail screen shows an authorization, the system shall show response 'A' in green when the response code is '00', otherwise 'D' in red.AC-01, AC-02
REQ-F-114business ruleWhen the user presses PF5 on the selected authorization, the system shall re-read the authorization and, if its fraud flag is 'F', set it to 'R' with a remove-fraud action 'R', otherwise set it to 'F' with a report-fraud action 'F', and pass the record with account and customer number to the fraud processor (COPAUS2C).AC-03, AC-04, AC-05

Business rules

RuleClassText, worked examples and evidence
Look up decline reason description
rec/agreed:No domain/CardAuthorizationandFraudManagement/id-8c696d7d79/1
formatting
display, medium
WHEN authorization details are being populated, THE Authorization Detail View SHALL show the reason as '<code>-<description>' from the decline reason table, or as '9999-ERROR' when the code is not in the table
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:319-328, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:319-328
Classify authorization as approved or declined
rec/aws:No domain/CardAuthorizationandFraudManagement/id-906492dbfa/1
formatting
display, medium
WHEN the authorization detail screen shows an authorization, THE authorization detail screen SHALL show response 'A' in green when the response code is '00', otherwise 'D' in red.
  • response code: 00 → 'A' shown in green.
  • response code: 05 → 'D' shown in red.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:294, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:311-317
Toggle authorization fraud mark
rec/aws:No domain/CardAuthorizationandFraudManagement/id-1ae7f44b88/1
business rule
business, medium
WHEN the user presses PF5 on the selected authorization, THE authorization detail screen SHALL re-read the authorization and, if its fraud flag is 'F', set it to 'R' with a remove-fraud action ('R'), otherwise set it to 'F' with a report-fraud action ('F'), and pass the record with account and customer number to the fraud processor (COPAUS2C).
  • fraud flag: F → Flag becomes 'R' and the fraud processor is asked to remove the fraud report.
  • fraud flag: blank → Flag becomes 'F' and the fraud processor is asked to report fraud.
  • fraud flag: R → Flag becomes 'F' and the fraud processor is asked to report fraud.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:230-252, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:93-104, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:50-52

Acceptance criteria

IDCriterionChecks
AC-01Given response code: 00
When the authorization detail screen shows an authorization
Then 'A' shown in green.
REQ-F-113
Classify authorization as approved or declined
worked example 1 of the rule
AC-02Given response code: 05
When the authorization detail screen shows an authorization
Then 'D' shown in red.
REQ-F-113
Classify authorization as approved or declined
worked example 2 of the rule
AC-03Given fraud flag: F
When the user presses PF5 on the selected authorization
Then Flag becomes 'R' and the fraud processor is asked to remove the fraud report.
REQ-F-114
Toggle authorization fraud mark
worked example 1 of the rule
AC-04Given fraud flag: blank
When the user presses PF5 on the selected authorization
Then Flag becomes 'F' and the fraud processor is asked to report fraud.
REQ-F-114
Toggle authorization fraud mark
worked example 2 of the rule
AC-05Given fraud flag: R
When the user presses PF5 on the selected authorization
Then Flag becomes 'F' and the fraud processor is asked to report fraud.
REQ-F-114
Toggle authorization fraud mark
worked example 3 of the rule
AC-06Given One authorization with reason code '4100', which is in the decline reason table, and another with reason code '7777', which is not
When Each authorization's details are shown
Then The first shows its reason as '4100-' followed by that code's description from the decline reason table. The second shows '9999-ERROR'.
REQ-F-112
Look up decline reason description
written from the rule

Screens

  • Account authorizations S-ACCOUNT-AUTHORIZATIONS · design · replaces COPAU0A, COPAU1A (58 merged, 4 dropped, 34 kept, 3 split)
    • **status badge** Response
    • **summary card** Authorization checks: Not read: 'System error while reading Auth Summary: Code <code>' or 'System error while reading Auth Details: Code <code>' - reopen the authorization, and report the code if it repeats. The detail fields stay blank when the account ID is not numeric, no authorization is selected, or a read failed.
    • **primary button** Report fraud / Remove fraud mark checks: Fraud register update failed: the fraud program's message (for example 'SYSTEM ERROR DB2: CODE <code>') and 'Nothing was changed - try again, and report the code if it repeats.' Authorization save failed: 'System error while FRAUD Tagging, ROLLBACK <code>' and 'Nothing was changed - try again.' Fraud service did not respond: 'The fraud update did not complete. Nothing was changed - try again.'

Data contracts

CIPAUDTY (working storage; COPAUS1C), CIPAUSMY (working storage; COPAUS1C), COCOM01Y (working storage; COPAUS1C), COTTL01Y (working storage; COPAUS1C), CSDAT01Y (working storage; COPAUS1C), CSMSG01Y (working storage; COPAUS1C), CSMSG02Y (working storage; COPAUS1C)

Decision tables

None.

Open questions

  • SME-143 On the authorization detail screen, what should happen (a) when the screen is opened without any data from the screen that called it, and (b) when the user presses PF3 after the screen is already showing? (Authorization business analyst)
  • SME-144 When the request to mark or unmark an authorization as fraud does not complete normally, what should the operator see, and what state should the authorization be left in? (Authorization business analyst)
  • SME-145 When adding or updating a fraud record fails for any reason other than a duplicate record, what status and message should go back to the operator? (Fraud management team)
  • SME-146 The fraud update is written to the fraud store first, then to the authorization detail record. If the second write fails after the first has succeeded, nothing is rolled back. Must both updates succeed or fail together? (Architecture team)
  • SME-147 When an authorization's fraud flag is changed, which data stores must hold the new fraud flag and fraud report date: the authorization detail record, the fraud store, or both? (Data architect)
  • SME-148 If the fraud update reports success but the authorization's database status is neither blank nor 'FW', what message should the system show? (Business analyst)
  • SME-149 Please confirm: after the fraud flag is changed, the system sends a fraud update request with the updated authorization record, the account ID and the customer ID, to be recorded in the authorization fraud store (CARDDEMO.AUTHFRDS). (Business analyst)
  • DEF-137 Is this intended? If the LINK to the fraud processor fails, the change is rolled back with no message; and on any rollback the screen still shows the toggled fraud flag that was not saved. (Subject-matter expert)

Design notes

None.

13. View pending authorization detailsdraft · online · 12 requirements · 14 rules · 15 criteria · 1 screen · 2 gaps

Lets a card operations user open one pending authorization picked from an account's list and see all of it: card, date and time, amount, expiry, transaction and merchant details, and fraud status. It must always show the authorization that was picked, under the right account, with dates, times and amounts formatted exactly as stated. When the account or selection is missing or a read fails, it must show blank fields rather than another authorization's data.

As a card operations user, I want to open a selected pending authorization and see its full details, so that I can review the transaction, merchant and fraud status of the authorization.

Draft: the function is not signed off yet. Risk high; touches card_data, money. rec/No domain/CardAuthorizationandFraudManagement#13

Requirements

CodeClassRequirementCriteria
REQ-F-115business ruleWhen the authorization detail screen is first opened from the pending authorization list, or the user presses Enter, the system shall read the selected authorization for the account and display its details.AC-01, AC-02, AC-03
REQ-F-116formattingWhen a selected authorization has been read without error, the system shall show the card number, the original authorization date (stored as YYMMDD) as MM/DD/YY and the original time (stored as HHMMSS) as HH:MM:SS.AC-10
REQ-F-117formattingWhen a selected authorization has been read without error, the system shall show the approved amount right-aligned with two decimals and a leading '-' when it is negative.AC-11
REQ-F-118formattingWhen a selected authorization has been read without error, the system shall show the card expiry date (stored as four characters) as the first two characters, '/', and the last two characters.AC-12
REQ-F-119formattingWhen a selected authorization has been read without error, the system shall show the processing code, POS entry mode, message source, merchant category code, authorization type, transaction ID, match status, and the merchant name, ID, city, state and ZIP as stored.AC-13
REQ-F-120formattingWhen the authorization is shown and its fraud flag is 'F' (fraud confirmed) or 'R' (fraud removed), the system shall show the flag, '-', and the fraud report date, and otherwise shall show '-'.AC-04
REQ-F-121business ruleIf the account id passed in is not numeric or no authorization is selected (spaces or low-values), then the system shall not read the database, set the error flag and show the screen with all authorization detail fields blank and no message.AC-05, AC-06, AC-07
REQ-F-122business ruleIf a database read error occurred (error flag on), then the system shall leave the authorization detail fields blank.AC-05
REQ-F-123design noteThe system shall first read the account's pending authorization summary by account id and, only when that read succeeds (status blank or 'FW'), read the authorization detail under that account whose key matches the selected key.AC-08
REQ-F-124error handlingIf the summary or the detail is not found (status 'GE') or the end of the database is reached (status 'GB'), then the system shall mark that no authorizations remain and skip any further read, without an error message.AC-09
REQ-F-125error handlingIf reading the authorization summary returns any status other than success, not found or end of database, then the system shall set the error flag and show ' System error while reading Auth Summary: Code:' followed by the status code.AC-14
REQ-F-126error handlingIf reading the authorization detail returns any status other than success, not found or end of database, then the system shall set the error flag and show ' System error while reading Auth Details: Code:' followed by the status code.AC-15

Business rules

RuleClassText, worked examples and evidence
Display selected authorization on first entry
rec/group:claude/RULE-055/1
business rule
business, high
WHEN the authorization detail screen is first opened from the pending authorization list, or the user presses Enter, THE Authorization Detail View SHALL read the selected authorization for the account and display its details.
  • account id: 00000012345; selected authorization key: K1; action: first entry from the list → Authorization K1 of account 00000012345 is read and its card number, date, time, amount, response and merchant details are shown.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:165-197, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:208-228, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:291-294, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:431-491, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:75-88, app/cpy/CSMSG01Y.cpy:20-21
Authorization detail screen key handling and navigation
rec/group:claude/RULE-196/2
business rule
business, high
WHEN the detail screen is entered for the first time from the summary list, THE Authorization Detail View SHALL read and display the selected authorization.
  • selection on summary list: S → The selected authorization's details are displayed.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:157-206, app/cpy/CSMSG01Y.cpy:20-21, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:360-370
Route operator requests on re-entry
rec/group:claude/RULE-196/3
business rule
business, high
WHEN the user presses Enter on the detail screen, THE Authorization Detail View SHALL re-read the selected authorization and redisplay its details.
  • key: Enter → The same authorization is shown again, freshly read.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:157-206, app/cpy/CSMSG01Y.cpy:20-21, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:360-370
Format authorization date, time and amount
rec/group:claude/RULE-035/1
formatting
display, high
WHEN a selected authorization has been read without error, THE Authorization Detail View SHALL show the card number, the original authorization date (stored as YYMMDD) as MM/DD/YY and the original time (stored as HHMMSS) as HH:MM:SS.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:208-228, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:291-357, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:22-53, app/cpy/CSDAT01Y.cpy:30-35, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:52
Format authorization date, time and amount
rec/group:claude/RULE-035/2
formatting
display, high
WHEN a selected authorization has been read without error, THE Authorization Detail View SHALL show the approved amount right-aligned with two decimals and a leading '-' when it is negative.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:208-228, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:291-357, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:22-53, app/cpy/CSDAT01Y.cpy:30-35, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:52
Show transaction and merchant details
rec/group:claude/RULE-035/3
formatting
display, high
WHEN a selected authorization has been read without error, THE Authorization Detail View SHALL show the card expiry date (stored as four characters) as the first two characters, '/', and the last two characters.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:208-228, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:291-357, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:22-53, app/cpy/CSDAT01Y.cpy:30-35, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:52
Show transaction and merchant details
rec/group:claude/RULE-035/4
formatting
display, high
WHEN a selected authorization has been read without error, THE Authorization Detail View SHALL show the processing code, POS entry mode, message source, merchant category code, authorization type, transaction ID, match status, and the merchant name, ID, city, state and ZIP as stored.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:208-228, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:291-357, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:22-53, app/cpy/CSDAT01Y.cpy:30-35, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:52
Show fraud indicator and report date
rec/group:claude/RULE-035/5
formatting
display, high
WHEN the authorization's fraud flag is 'F' (fraud confirmed) or 'R' (fraud removed), THE Authorization Detail View SHALL show the flag, '-', and the fraud report date; otherwise it SHALL show '-'.
  • fraud flag: (blank) → Fraud shows '-'.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:208-228, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:291-357, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:22-53, app/cpy/CSDAT01Y.cpy:30-35, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:52
Format authorization date, time and amount
rec/group:claude/RULE-035/6
business rule
validation, high
WHEN the account number passed in is not numeric or no authorization is selected, or a database read error occurred (error flag on), THE Authorization Detail View SHALL leave the authorization detail fields blank.
  • selected authorization: (blank) → The detail screen is sent with no authorization details filled in.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:208-228, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:291-357, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:22-53, app/cpy/CSDAT01Y.cpy:30-35, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:52
Validate selected authorization reference
rec/group:claude/RULE-055/2
business rule
validation, high
WHEN the account id is not numeric or no authorization is selected (spaces or low-values), THE Authorization Detail View SHALL not read the database, set the error flag and show the screen with all detail fields blank and no message.
  • account id: ABC; selected authorization key: K1 → No read is made; the screen is shown with blank detail fields.
  • account id: 00000012345; selected authorization key: spaces → No read is made; the screen is shown with blank detail fields.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:165-197, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:208-228, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:291-294, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:431-491, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:75-88, app/cpy/CSMSG01Y.cpy:20-21
Read authorization summary by account
rec/group:claude/RULE-055/4
design note
technical, high
THE Pending Authorization Retrieval SHALL first read the account's pending authorization summary by account id and, only when that read succeeds (status blank or 'FW'), read the authorization detail under that account whose key matches the selected key.
  • account id: 00000012345; summary read status: ' '; selected authorization key: K1 → The detail with key K1 under account 00000012345 is read.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:165-197, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:208-228, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:291-294, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:431-491, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:75-88, app/cpy/CSMSG01Y.cpy:20-21
Read authorization summary by account
rec/group:claude/RULE-055/5
error handling
error_handling, high
WHEN the summary or the detail is not found (status 'GE') or the end of the database is reached (status 'GB'), THE Pending Authorization Retrieval SHALL mark that no authorizations remain and skip any further read, without an error message.
  • account id: 00000099999; summary read status: 'GE' → The detail is not read and no error message is shown.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:165-197, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:208-228, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:291-294, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:431-491, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:75-88, app/cpy/CSMSG01Y.cpy:20-21
Read authorization summary by account
rec/group:claude/RULE-055/6
error handling
error_handling, high
WHEN reading the summary returns any other status, THE Pending Authorization Retrieval SHALL set the error flag and show ' System error while reading Auth Summary: Code:' followed by the status code.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:165-197, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:208-228, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:291-294, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:431-491, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:75-88, app/cpy/CSMSG01Y.cpy:20-21
Read authorization detail by key
rec/group:claude/RULE-055/7
error handling
error_handling, high
WHEN reading the detail returns any status other than success, not found or end of database, THE Pending Authorization Retrieval SHALL set the error flag and show ' System error while reading Auth Details: Code:' followed by the status code.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:165-197, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:208-228, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:291-294, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:431-491, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:75-88, app/cpy/CSMSG01Y.cpy:20-21

Acceptance criteria

IDCriterionChecks
AC-01Given account id: 00000012345; selected authorization key: K1; action: first entry from the list
When the authorization detail screen is first opened from the pending authorization list, or the user presses Enter
Then Authorization K1 of account 00000012345 is read and its card number, date, time, amount, response and merchant details are shown.
REQ-F-115
Display selected authorization on first entry
worked example 1 of the rule
AC-02Given selection on summary list: S
When the detail screen is entered for the first time from the summary list
Then The selected authorization's details are displayed.
REQ-F-115
Authorization detail screen key handling and navigation
worked example 1 of the rule
AC-03Given key: Enter
When the user presses Enter on the detail screen
Then The same authorization is shown again, freshly read.
REQ-F-115
Route operator requests on re-entry
worked example 1 of the rule
AC-04Given fraud flag: (blank)
When the authorization's fraud flag is 'F' (fraud confirmed) or 'R' (fraud removed)
Then Fraud shows '-'.
REQ-F-120
Show fraud indicator and report date
worked example 1 of the rule
AC-05Given selected authorization: (blank)
When the account number passed in is not numeric or no authorization is selected, or a database read error occurred (error flag on)
Then The detail screen is sent with no authorization details filled in.
REQ-F-121, REQ-F-122
Format authorization date, time and amount
worked example 1 of the rule
AC-06Given account id: ABC; selected authorization key: K1
When the account id is not numeric or no authorization is selected (spaces or low-values)
Then No read is made; the screen is shown with blank detail fields.
REQ-F-121
Validate selected authorization reference
worked example 1 of the rule
AC-07Given account id: 00000012345; selected authorization key: spaces
When the account id is not numeric or no authorization is selected (spaces or low-values)
Then No read is made; the screen is shown with blank detail fields.
REQ-F-121
Validate selected authorization reference
worked example 2 of the rule
AC-08Given account id: 00000012345; summary read status: ' '; selected authorization key: K1
When Pending Authorization Retrieval runs
Then The detail with key K1 under account 00000012345 is read.
REQ-F-123
Read authorization summary by account
worked example 1 of the rule
AC-09Given account id: 00000099999; summary read status: 'GE'
When the summary or the detail is not found (status 'GE') or the end of the database is reached (status 'GB')
Then The detail is not read and no error message is shown.
REQ-F-124
Read authorization summary by account
worked example 1 of the rule
AC-10Given a selected authorization for card 4111111111111111 with original date stored as 240315 and original time stored as 142530, read without error
When the authorization detail screen is displayed
Then the card number shows 4111111111111111, the authorization date shows 03/15/24 and the authorization time shows 14:25:30
REQ-F-116
Format authorization date, time and amount
written from the rule
AC-11Given two selected authorizations read without error, one with an approved amount of 1250.5 and one with an approved amount of -75.25
When each is displayed on the authorization detail screen
Then the first shows the amount right-aligned as 1250.50 with no sign, and the second shows it right-aligned as -75.25 with a leading '-'
REQ-F-117
Format authorization date, time and amount
written from the rule
AC-12Given a selected authorization read without error whose card expiry is stored as the four characters 0927
When the authorization detail screen is displayed
Then the expiry date shows 09/27
REQ-F-118
Show transaction and merchant details
written from the rule
AC-13Given a selected authorization read without error with stored processing code, POS entry mode, message source, merchant category code, authorization type, transaction ID, match status, merchant name, merchant ID, merchant city, merchant state and merchant ZIP
When the authorization detail screen is displayed
Then each of those twelve fields shows exactly its stored value, with no reformatting
REQ-F-119
Show transaction and merchant details
written from the rule
AC-14Given a numeric account id and a selected authorization, and the read of the account's pending authorization summary returns a status other than success, not found ('GE') or end of database ('GB'), for example 'AI'
When the detail screen tries to show the authorization
Then the error flag is set, the message ' System error while reading Auth Summary: Code:' followed by AI is shown, and the authorization detail is not read
REQ-F-125
Read authorization summary by account
written from the rule
AC-15Given the account's pending authorization summary was read successfully, and the read of the selected authorization detail returns a status other than success, not found ('GE') or end of database ('GB'), for example 'AI'
When the detail screen tries to show the authorization
Then the error flag is set, the message ' System error while reading Auth Details: Code:' followed by AI is shown, and the detail fields are left blank
REQ-F-126
Read authorization detail by key
written from the rule

Screens

  • Account authorizations S-ACCOUNT-AUTHORIZATIONS · design · replaces COPAU0A, COPAU1A (58 merged, 4 dropped, 34 kept, 3 split)
    • **summary card** Authorization checks: Not read: 'System error while reading Auth Summary: Code <code>' or 'System error while reading Auth Details: Code <code>' - reopen the authorization, and report the code if it repeats. The detail fields stay blank when the account ID is not numeric, no authorization is selected, or a read failed.
    • **summary card** Merchant
    • **status badge** Fraud status

Data contracts

CIPAUDTY (working storage; COPAUS1C), CIPAUSMY (working storage; COPAUS1C), COCOM01Y (working storage; COPAUS1C), COTTL01Y (working storage; COPAUS1C), CSDAT01Y (working storage; COPAUS1C), CSMSG01Y (working storage; COPAUS1C), CSMSG02Y (working storage; COPAUS1C)

Decision tables

Reading the selected authorization

Account id numeric and authorization selectedSummary read statusDetail read statusWhat the detail view doesRule
Nonot readnot readNo database read; error flag set; all detail fields blank; no messagerec/group:claude/RULE-055/2
Yes'GE' or 'GB'not readMark no authorizations remain; skip further reads; no error messagerec/group:claude/RULE-055/5
Yesany other statusnot readError flag set; show ' System error while reading Auth Summary: Code:' and statusrec/group:claude/RULE-055/6
Yesblank or 'FW'successDisplay the authorization detailsrec/group:claude/RULE-055/4
Yesblank or 'FW''GE' or 'GB'Mark no authorizations remain; skip further reads; no error messagerec/group:claude/RULE-055/5
Yesblank or 'FW'any other statusError flag set; show ' System error while reading Auth Details: Code:' and statusrec/group:claude/RULE-055/7
Yes'GE' or 'GB'not readGap: No rule says what the detail fields show when no authorization is found: the error flag is not set, so R6's blanking does not clearly apply.
Yesblank or 'FW''GE' or 'GB'Gap: Same as above: what is displayed when the selected detail is not found is not stated.

Open questions

  • SME-143 On the authorization detail screen, what should happen (a) when the screen is opened without any data from the screen that called it, and (b) when the user presses PF3 after the screen is already showing? (Authorization business analyst)
  • SME-150 Should the authorization detail screen show the approved amount (current behavior) or the requested transaction amount, especially for declined or partly approved authorizations? Is the card expiry stored as MMYY? (Customer service operations lead)
  • DEF-017 Is this intended? When the account summary or the selected authorization detail is not found, the read sets only the end-of-data flag, not the error flag, so the detail screen is filled from whatever happens to be in the record area (blank or a previous record) and no 'not found' message is shown. (Subject-matter expert)
  • DEF-026 Is this intended? When the summary or the selected detail is not found ('GE'/'GB'), the error flag stays off, so the screen is filled from whatever detail record is in memory, with no 'not found' message; and on a read error the screen is sent once inside the read routine and again by the main flow. (Subject-matter expert)

Design notes

  • Retrieval is two keyed lookups, one after the other: first the account's pending authorization summary by account id, then, only if that is found, the authorization detail under that account by the selected authorization key. The new store needs the account to own its authorizations (for example a summary keyed by account id with details keyed by account id plus authorization key), so a detail can never be fetched for an account that has no summary. A missing summary or detail is treated as 'nothing to show', not as an error. Read authorization summary by account
14. Navigate the authorization detail screendraft · online · 6 requirements · 8 rules · 8 criteria · 1 screen

Lets a card operations user move through an account's pending authorizations one at a time from the detail screen: step to the next one, go back to the list, or refresh the current one. It must stay inside the same account, never lose the current selection when there is no next authorization, and never show part-filled details when the next read fails.

As a card operations user, I want to use function keys on the authorization detail screen to move to the next authorization or return to the list, so that I can work through an account's pending authorizations.

Draft: the function is not signed off yet. Risk medium; touches card_data. rec/No domain/CardAuthorizationandFraudManagement#14

Requirements

CodeClassRequirementCriteria
REQ-F-127design noteWhen the detail program starts with no data passed from a calling screen, the system shall transfer control to the authorization summary program (COPAUS0C).AC-01
REQ-F-128business ruleWhen the user presses PF3 on the detail screen, the system shall return to the authorization summary list (COPAUS0C).AC-02
REQ-F-129business ruleWhen the user presses PF8 on the detail screen, the system shall re-read the selected authorization of the account, fetch the next authorization under the same account, make it the selected authorization and display its details.AC-03, AC-04
REQ-F-130business ruleWhen the user presses PF8 and there is no further authorization for the account, the system shall keep the current selection and show 'Already at the last Authorization...' without erasing the screen.AC-05
REQ-F-131error handlingIf reading the next authorization fails with any database status other than success, not found or end of data, then the system shall flag an error, show ' System error while reading next Auth: Code:' followed by the status code, and not fill in the authorization details.AC-08
REQ-F-132business ruleWhen the user presses any key other than Enter, PF3, PF5 or PF8, the system shall re-read and redisplay the selected authorization as for Enter, with the message 'Invalid key pressed. Please see below...'.AC-06, AC-07

Business rules

RuleClassText, worked examples and evidence
Authorization detail screen key handling and navigation
rec/group:claude/RULE-196/1
design note
technical, high
WHEN the detail program starts with no data passed from a calling screen, THE Authorization Detail View SHALL transfer control to the authorization summary program (COPAUS0C).
  • transaction CPVD started directly: no commarea → Control passes to COPAUS0C.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:157-206, app/cpy/CSMSG01Y.cpy:20-21, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:360-370
Authorization detail screen key handling and navigation
rec/group:claude/RULE-196/4
business rule
business, high
WHEN the user presses PF3 on the detail screen, THE Authorization Detail View SHALL return to the authorization summary list (COPAUS0C).
  • key: PF3 → The pending authorization summary screen is shown.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:157-206, app/cpy/CSMSG01Y.cpy:20-21, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:360-370
Show next authorization
rec/group:claude/RULE-144/1
business rule
business, high
WHEN the user presses PF8, THE Authorization Detail View SHALL re-read the selected authorization of the account, fetch the next authorization under the same account, make it the selected authorization and display its details.
  • account: 00000012345; selected authorization: K1; authorizations under account: K1, K2 → K2 becomes the selected authorization and its details are shown.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:268-289, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:431-491, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:493-518, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:380-395
Route operator requests on re-entry
rec/group:claude/RULE-196/6
business rule
business, high
WHEN the user presses PF8 on the detail screen, THE Authorization Detail View SHALL show the next authorization of the same account.
  • key: PF8 → The next authorization of the account is displayed.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:157-206, app/cpy/CSMSG01Y.cpy:20-21, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:360-370
Show next authorization
rec/group:claude/RULE-144/2
business rule
business, high
WHEN the user presses PF8 and there is no further authorization for the account, THE Authorization Detail View SHALL keep the current selection and show 'Already at the last Authorization...' without erasing the screen.
  • selected authorization: K2 (last); key: PF8 → 'Already at the last Authorization...' is shown and K2 stays selected.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:268-289, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:431-491, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:493-518, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:380-395
Read next authorization detail
rec/group:claude/RULE-144/3
error handling
error_handling, high
WHEN reading the next authorization fails with any database status other than success, not found or end of data, THE Authorization Detail View SHALL flag an error, show ' System error while reading next Auth: Code:' followed by the status code, and not fill in the authorization details.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:268-289, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:431-491, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:493-518, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:380-395
Authorization detail can only be shown for a numeric account and a selected authorization
rec/group:claude/RULE-055/3
business rule
validation, high
WHEN the user presses a key other than Enter, PF3, PF5 or PF8, THE Authorization Detail View SHALL reload and show the selected authorization as for Enter, with the message 'Invalid key pressed. Please see below...'.
  • key pressed: PF7; selected authorization key: K1 → Authorization K1 is shown again with 'Invalid key pressed. Please see below...'.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:165-197, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:208-228, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:291-294, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:431-491, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:75-88, app/cpy/CSMSG01Y.cpy:20-21
Warn on invalid key
rec/group:claude/RULE-196/7
business rule
validation, high
WHEN the user presses any key other than Enter, PF3, PF5 or PF8, THE Authorization Detail View SHALL re-read and redisplay the selected authorization with the message 'Invalid key pressed. Please see below...'.
  • key: PF7 → Details are redisplayed with 'Invalid key pressed. Please see below...'.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:157-206, app/cpy/CSMSG01Y.cpy:20-21, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:360-370

Acceptance criteria

IDCriterionChecks
AC-01Given transaction CPVD started directly: no commarea
When the detail program starts with no data passed from a calling screen
Then Control passes to COPAUS0C.
REQ-F-127
Authorization detail screen key handling and navigation
worked example 1 of the rule
AC-02Given key: PF3
When the user presses PF3 on the detail screen
Then The pending authorization summary screen is shown.
REQ-F-128
Authorization detail screen key handling and navigation
worked example 1 of the rule
AC-03Given account: 00000012345; selected authorization: K1; authorizations under account: K1, K2
When the user presses PF8
Then K2 becomes the selected authorization and its details are shown.
REQ-F-129
Show next authorization
worked example 1 of the rule
AC-04Given key: PF8
When the user presses PF8 on the detail screen
Then The next authorization of the account is displayed.
REQ-F-129
Route operator requests on re-entry
worked example 1 of the rule
AC-05Given selected authorization: K2 (last); key: PF8
When the user presses PF8 and there is no further authorization for the account
Then 'Already at the last Authorization...' is shown and K2 stays selected.
REQ-F-130
Show next authorization
worked example 1 of the rule
AC-06Given key pressed: PF7; selected authorization key: K1
When the user presses a key other than Enter, PF3, PF5 or PF8
Then Authorization K1 is shown again with 'Invalid key pressed. Please see below...'.
REQ-F-132
Authorization detail can only be shown for a numeric account and a selected authorization
worked example 1 of the rule
AC-07Given key: PF7
When the user presses any key other than Enter, PF3, PF5 or PF8
Then Details are redisplayed with 'Invalid key pressed. Please see below...'.
REQ-F-132
Warn on invalid key
worked example 1 of the rule
AC-08Given the detail screen shows a selected authorization for an account, and reading the next authorization under that account returns a database status other than success, not found or end of data, for example 'AI'
When the user presses PF8
Then an error is flagged, the message ' System error while reading next Auth: Code:' followed by AI is shown, and the authorization detail fields are not filled in
REQ-F-131
Read next authorization detail
written from the rule

Screens

  • Account authorizations S-ACCOUNT-AUTHORIZATIONS · design · replaces COPAU0A, COPAU1A (58 merged, 4 dropped, 34 kept, 3 split)
    • **data table** Authorizations checks: Previous page is disabled on the first page, with 'You are already on the first page'. Next page is disabled on the last page, with 'You are already on the last page'. Next authorization on the last one says 'Already at the last authorization' and keeps the current one open. Rows open directly, so no selection code is typed and 'Invalid selection. Valid value is S' cannot arise. There are no unsupported keys to warn about.
    • **summary card** Authorization checks: Not read: 'System error while reading Auth Summary: Code <code>' or 'System error while reading Auth Details: Code <code>' - reopen the authorization, and report the code if it repeats. The detail fields stay blank when the account ID is not numeric, no authorization is selected, or a read failed.

Data contracts

CIPAUDTY (working storage; COPAUS1C), CIPAUSMY (working storage; COPAUS1C), COCOM01Y (working storage; COPAUS1C), COTTL01Y (working storage; COPAUS1C), CSDAT01Y (working storage; COPAUS1C), CSMSG01Y (working storage; COPAUS1C), CSMSG02Y (working storage; COPAUS1C)

Decision tables

Detail screen key handling

EntryKey pressedWhat the detail view doesRule
No data passed from a calling screenanyTransfer to the authorization summary program (COPAUS0C)rec/group:claude/RULE-196/1
First entry from summary listn/aRead and display the selected authorizationrec/group:claude/RULE-196/2
Re-entryEnterRe-read and redisplay the selected authorizationrec/group:claude/RULE-196/3
Re-entryPF3Return to the authorization summary list (COPAUS0C)rec/group:claude/RULE-196/4
Re-entryPF5Toggle the fraud mark and redisplay the detailsrec/group:claude/RULE-196/5
Re-entryPF8Show the next authorization of the same accountrec/group:claude/RULE-196/6
Re-entryany other keyRe-read and redisplay with 'Invalid key pressed. Please see below...'rec/group:claude/RULE-196/7

PF8 next authorization outcome

Next authorization read resultWhat the detail view doesRule
Next authorization foundMake it the selected authorization and display its detailsrec/group:claude/RULE-144/1
No further authorizationKeep current selection; show 'Already at the last Authorization...' without erasing the screenrec/group:claude/RULE-144/2
Any other database statusFlag error; show ' System error while reading next Auth: Code:' and status; details not filledrec/group:claude/RULE-144/3

Open questions

  • SME-143 On the authorization detail screen, what should happen (a) when the screen is opened without any data from the screen that called it, and (b) when the user presses PF3 after the screen is already showing? (Authorization business analyst)
  • DEF-026 Is this intended? When the summary or the selected detail is not found ('GE'/'GB'), the error flag stays off, so the screen is filled from whatever detail record is in memory, with no 'not found' message; and on a read error the screen is sent once inside the read routine and again by the main flow. (Subject-matter expert)
  • DEF-063 Is this intended? When a database read fails, the error paragraph sends the detail screen itself and then the main routine sends it a second time, so the screen is sent twice in one task. (Subject-matter expert)

Design notes

  • The detail view can only be reached with an account and a selected authorization from the pending authorization list. If it is opened directly, with no account or selection carried in (a bare URL, an expired session), it must redirect to the account's pending authorization list instead of showing an empty or default detail page. Authorization detail screen key handling and navigation
15. Mark or unmark an authorization as frauddraft · online · 10 requirements · 14 rules · 17 criteria · 1 screen

Lets a card operations user mark a pending authorization as fraud, or remove that mark, with a single action on the detail screen. The change is recorded in two places, the authorization itself and the fraud register, and they must never disagree: both are saved together or neither is. The user is told plainly whether the authorization was marked or cleared, or why the change failed.

As a card operations user, I want to press PF5 on an authorization to report fraud or remove a fraud mark, so that suspected fraudulent authorizations are flagged consistently in the authorization record and the fraud register.

Draft: the function is not signed off yet. Risk high; touches audit, card_data, personal_data, updates_records. rec/No domain/CardAuthorizationandFraudManagement#15

Requirements

CodeClassRequirementCriteria
REQ-F-133business ruleWhen the user presses PF5 on the authorization detail screen and the selected authorization is marked fraud ('F'), the system shall set its fraud flag to 'R' (fraud removed) and request the fraud action 'R' (remove fraud).AC-01, AC-02, AC-03, AC-04
REQ-F-134business ruleWhen the user presses PF5 on the authorization detail screen and the selected authorization is not marked fraud (blank or 'R'), the system shall set its fraud flag to 'F' (fraud confirmed) and request the fraud action 'F' (report fraud).AC-02, AC-03, AC-04, AC-05, AC-06
REQ-F-135design noteThe system shall send the whole authorization record, the account number, the customer number and the fraud action to the fraud update program (COPAUS2C).AC-15
REQ-F-136business ruleThe system shall set the fraud report date on the authorization record returned by the fraud update program to today's date in MM/DD/YY form with separators, which the detail screen then saves on the pending authorization and displays.AC-16
REQ-F-137business ruleWhen the fraud update program completes normally and reports success ('S'), the system shall replace the pending authorization detail record (PAUTDTL1) with the record carrying the toggled fraud flag and the fraud report date set by the fraud update program.AC-07, AC-08, AC-09
REQ-F-138business ruleWhen the replace of the authorization detail succeeds (status blank or 'FW'), the system shall commit the fraud register change and the authorization detail change together and show 'AUTH FRAUD REMOVED...' if the flag is now 'R', otherwise 'AUTH MARKED FRAUD...'.AC-07, AC-08, AC-10, AC-11
REQ-N-003error handlingIf the replace of the authorization detail returns any other status, then the system shall roll back both the fraud register change and the authorization detail change, set the error flag and show ' System error while FRAUD Tagging, ROLLBACK||' followed by the database status code.AC-17
REQ-F-139error handlingIf the fraud update program completes but reports failure, then the system shall roll back, leave the authorization detail unchanged and show the fraud program's message (for example ' SYSTEM ERROR DB2: CODE:…').AC-12
REQ-F-140error handlingIf the link to the fraud update program does not complete normally, then the system shall roll back and leave the authorization detail unchanged, without setting any message.AC-13
REQ-F-141business ruleWhen a PF5 fraud action finishes, the system shall redisplay the same authorization's details.AC-02, AC-14

Business rules

RuleClassText, worked examples and evidence
Toggle fraud mark on selected authorization
rec/group:claude/RULE-132/1
business rule
business, high
WHEN the user presses PF5 on the authorization detail screen and the selected authorization is marked fraud ('F'), THE authorization detail screen SHALL set its fraud flag to 'R' (fraud removed) and request the fraud action 'R' (remove fraud).
  • key pressed: PF5; current fraud flag: F → The flag becomes 'R' and action 'R' (remove fraud) is requested.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:230-266, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:520-552, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:565-569, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:50-53, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:91-101, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:199-216
Route operator requests on re-entry
rec/group:claude/RULE-196/5
business rule
business, high
WHEN the user presses PF5 on the detail screen, THE Authorization Detail View SHALL toggle the fraud mark of the selected authorization and redisplay its details.
  • key: PF5; fraud flag: (blank) → The fraud marking process runs for the selected authorization and the screen is redisplayed.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:157-206, app/cpy/CSMSG01Y.cpy:20-21, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:360-370
Mark or unmark an authorization as fraud (upsert to the fraud table)
rec/group:claude/RULE-133/1
business rule
business, high
WHEN a user presses PF5 on the authorization detail screen, THE authorization detail screen SHALL ask the fraud program to record action 'R' (remove fraud) if the authorization is already marked fraud, and action 'F' (report fraud) otherwise.
  • current fraud flag: 'F'; key: PF5 → Action 'R' is sent to the fraud program
  • current fraud flag: blank; key: PF5 → Action 'F' is sent to the fraud program
app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:91-139, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:141-216, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:221-244, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:230-262, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:344-347, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:520-538
Toggle fraud mark on selected authorization
rec/group:claude/RULE-132/2
business rule
business, high
WHEN the user presses PF5 on the authorization detail screen and the selected authorization is not marked fraud (blank or 'R'), THE authorization detail screen SHALL set its fraud flag to 'F' (fraud confirmed) and request the fraud action 'F' (report fraud).
  • key pressed: PF5; current fraud flag: (blank) → The flag becomes 'F' and action 'F' (report fraud) is requested.
  • key pressed: PF5; current fraud flag: R → The flag becomes 'F' again and action 'F' is requested.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:230-266, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:520-552, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:565-569, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:50-53, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:91-101, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:199-216
Submit fraud action to fraud processor
rec/group:claude/RULE-132/3
design note
technical, high
THE authorization detail screen SHALL send the whole authorization record, the account number, the customer number and the fraud action to the fraud update program (COPAUS2C), which stamps today's date (MM/DD/YY) as the fraud report date on the record.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:230-266, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:520-552, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:565-569, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:50-53, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:91-101, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:199-216
Stamp fraud report with current date
rec/group:claude/RULE-133/6
business rule
business, high
THE fraud recording program SHALL set the fraud report date on the authorization record it returns to the caller (PA-FRAUD-RPT-DATE) to today's CICS date in MM/DD/YY form with separators, which the detail screen then saves on the pending authorization and displays.
app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:91-139, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:141-216, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:221-244, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:230-262, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:344-347, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:520-538
Confirm fraud mark outcome
rec/group:claude/RULE-132/4
business rule
business, high
WHEN the fraud update program completes normally and reports success ('S'), THE authorization detail screen SHALL save the authorization detail with the new fraud flag and report date, commit, and show 'AUTH FRAUD REMOVED...' if the flag is 'R', otherwise 'AUTH MARKED FRAUD...'.
  • fraud update status: S; new fraud flag: F → The detail is saved and 'AUTH MARKED FRAUD...' is shown.
  • fraud update status: S; new fraud flag: R → The detail is saved and 'AUTH FRAUD REMOVED...' is shown.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:230-266, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:520-552, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:565-569, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:50-53, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:91-101, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:199-216
Save updated authorization fraud status
rec/group:claude/RULE-188/1
business rule
business, high
WHEN the user presses PF5 on the authorization detail screen and the fraud processor (COPAUS2C) reports update status 'S', THE authorization detail screen SHALL replace the pending authorization detail record in IMS (PAUTDTL1) with the record carrying the toggled fraud flag and the fraud report date set by the fraud processor.
  • key pressed: PF5; fraud processor update status: S; fraud flag before: blank → The IMS authorization detail record is rewritten with fraud flag 'F' and today's fraud report date.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:253-255, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:520-552, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:557-569, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:80, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:101
Fraud update is all-or-nothing across the Db2 fraud register and the IMS authorization record
rec/group:claude/RULE-188/2
business rule
business, high
WHEN the IMS replace succeeds (status blank or 'FW'), THE authorization detail screen SHALL commit the Db2 fraud register change and the IMS change together and show 'AUTH FRAUD REMOVED...' if the flag is now 'R', otherwise 'AUTH MARKED FRAUD...'.
  • IMS replace status: blank; new fraud flag: F → Both changes are committed and 'AUTH MARKED FRAUD...' is shown.
  • IMS replace status: FW; new fraud flag: R → Both changes are committed and 'AUTH FRAUD REMOVED...' is shown.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:253-255, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:520-552, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:557-569, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:80, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:101
Confirm fraud mark outcome
rec/group:claude/RULE-132/7
error handling
error_handling, high
WHEN saving the updated authorization detail fails, THE authorization detail screen SHALL roll back and show ' System error while FRAUD Tagging, ROLLBACK||' followed by the database status code.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:230-266, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:520-552, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:565-569, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:50-53, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:91-101, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:199-216
Fraud update is all-or-nothing across the Db2 fraud register and the IMS authorization record
rec/group:claude/RULE-188/3
error handling
error_handling, high
WHEN the IMS replace returns any other status, THE authorization detail screen SHALL roll back both the Db2 fraud register change and the IMS change, set the error flag and show ' System error while FRAUD Tagging, ROLLBACK||' followed by the IMS status code.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:253-255, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:520-552, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:557-569, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:80, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:101
Submit fraud update request
rec/group:claude/RULE-132/5
error handling
error_handling, high
WHEN the fraud update program completes but reports failure, THE authorization detail screen SHALL roll back, leave the authorization detail unchanged and show the fraud program's message (for example ' SYSTEM ERROR DB2: CODE:…').
  • fraud update status: F; fraud program message: UPDT ERROR DB2: CODE:-911, STATE: 40001 → The change is rolled back and that message is shown.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:230-266, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:520-552, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:565-569, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:50-53, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:91-101, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:199-216
Submit fraud action to fraud processor
rec/group:claude/RULE-132/6
error handling
error_handling, high
WHEN the link to the fraud update program does not complete normally, THE authorization detail screen SHALL roll back and leave the authorization detail unchanged, without setting any message.
  • link result: not NORMAL → The change is rolled back and no message is shown.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:230-266, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:520-552, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:565-569, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:50-53, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:91-101, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:199-216
Submit fraud update request
rec/group:claude/RULE-132/8
formatting
display, high
WHEN a PF5 fraud action finishes, THE authorization detail screen SHALL redisplay the same authorization's details.
  • key pressed: PF5 → The detail screen is shown again for the same authorization, with the result message.
app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:230-266, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:520-552, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:565-569, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:50-53, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:91-101, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:199-216

Acceptance criteria

IDCriterionChecks
AC-01Given key pressed: PF5; current fraud flag: F
When the user presses PF5 on the authorization detail screen and the selected authorization is marked fraud ('F')
Then The flag becomes 'R' and action 'R' (remove fraud) is requested.
REQ-F-133
Toggle fraud mark on selected authorization
worked example 1 of the rule
AC-02Given key: PF5; fraud flag: (blank)
When the user presses PF5 on the detail screen
Then The fraud marking process runs for the selected authorization and the screen is redisplayed.
REQ-F-133, REQ-F-134, REQ-F-141
Route operator requests on re-entry
worked example 1 of the rule
AC-03Given current fraud flag: 'F'; key: PF5
When a user presses PF5 on the authorization detail screen
Then Action 'R' is sent to the fraud program
REQ-F-133, REQ-F-134
Mark or unmark an authorization as fraud (upsert to the fraud table)
worked example 1 of the rule
AC-04Given current fraud flag: blank; key: PF5
When a user presses PF5 on the authorization detail screen
Then Action 'F' is sent to the fraud program
REQ-F-133, REQ-F-134
Mark or unmark an authorization as fraud (upsert to the fraud table)
worked example 2 of the rule
AC-05Given key pressed: PF5; current fraud flag: (blank)
When the user presses PF5 on the authorization detail screen and the selected authorization is not marked fraud (blank or 'R')
Then The flag becomes 'F' and action 'F' (report fraud) is requested.
REQ-F-134
Toggle fraud mark on selected authorization
worked example 1 of the rule
AC-06Given key pressed: PF5; current fraud flag: R
When the user presses PF5 on the authorization detail screen and the selected authorization is not marked fraud (blank or 'R')
Then The flag becomes 'F' again and action 'F' is requested.
REQ-F-134
Toggle fraud mark on selected authorization
worked example 2 of the rule
AC-07Given fraud update status: S; new fraud flag: F
When the fraud update program completes normally and reports success ('S')
Then The detail is saved and 'AUTH MARKED FRAUD...' is shown.
REQ-F-137, REQ-F-138
Confirm fraud mark outcome
worked example 1 of the rule
AC-08Given fraud update status: S; new fraud flag: R
When the fraud update program completes normally and reports success ('S')
Then The detail is saved and 'AUTH FRAUD REMOVED...' is shown.
REQ-F-137, REQ-F-138
Confirm fraud mark outcome
worked example 2 of the rule
AC-09Given key pressed: PF5; fraud processor update status: S; fraud flag before: blank
When the user presses PF5 on the authorization detail screen and the fraud processor (COPAUS2C) reports update status 'S'
Then The IMS authorization detail record is rewritten with fraud flag 'F' and today's fraud report date.
REQ-F-137
Save updated authorization fraud status
worked example 1 of the rule
AC-10Given IMS replace status: blank; new fraud flag: F
When the IMS replace succeeds (status blank or 'FW')
Then Both changes are committed and 'AUTH MARKED FRAUD...' is shown.
REQ-F-138
Fraud update is all-or-nothing across the Db2 fraud register and the IMS authorization record
worked example 1 of the rule
AC-11Given IMS replace status: FW; new fraud flag: R
When the IMS replace succeeds (status blank or 'FW')
Then Both changes are committed and 'AUTH FRAUD REMOVED...' is shown.
REQ-F-138
Fraud update is all-or-nothing across the Db2 fraud register and the IMS authorization record
worked example 2 of the rule
AC-12Given fraud update status: F; fraud program message: UPDT ERROR DB2: CODE:-911, STATE: 40001
When the fraud update program completes but reports failure
Then The change is rolled back and that message is shown.
REQ-F-139
Submit fraud update request
worked example 1 of the rule
AC-13Given link result: not NORMAL
When the link to the fraud update program does not complete normally
Then The change is rolled back and no message is shown.
REQ-F-140
Submit fraud action to fraud processor
worked example 1 of the rule
AC-14Given key pressed: PF5
When a PF5 fraud action finishes
Then The detail screen is shown again for the same authorization, with the result message.
REQ-F-141
Submit fraud update request
worked example 1 of the rule
AC-15Given a selected authorization with fraud flag blank, for account 00000000123 and customer 000000456
When the user presses PF5
Then the fraud update service receives the whole authorization record, account number 00000000123, customer number 000000456 and fraud action 'F'
REQ-F-135
Submit fraud action to fraud processor
written from the rule
AC-16Given today's date is 26 November 2026 and a selected authorization not marked fraud
When the user presses PF5 and the fraud update succeeds
Then the authorization record returned by the fraud update carries the fraud report date 11/26/26, that date is saved on the pending authorization, and the screen shows the flag F, '-', and 11/26/26
REQ-F-136
Submit fraud action to fraud processor, Stamp fraud report with current date
written from the rule
AC-17Given a selected authorization marked fraud ('F'), the fraud update program reports success ('S'), and the replace of the authorization detail returns a status other than blank or 'FW', for example 'AI'
When the user presses PF5
Then both the fraud register change and the authorization detail change are rolled back, the error flag is set, the message ' System error while FRAUD Tagging, ROLLBACK||' followed by AI is shown, and the stored authorization keeps fraud flag 'F'
REQ-N-003
Confirm fraud mark outcome, Fraud update is all-or-nothing across the Db2 fraud register and the IMS authorization record
written from the rule

Screens

  • Account authorizations S-ACCOUNT-AUTHORIZATIONS · design · replaces COPAU0A, COPAU1A (58 merged, 4 dropped, 34 kept, 3 split)
    • **primary button** Report fraud / Remove fraud mark checks: Fraud register update failed: the fraud program's message (for example 'SYSTEM ERROR DB2: CODE <code>') and 'Nothing was changed - try again, and report the code if it repeats.' Authorization save failed: 'System error while FRAUD Tagging, ROLLBACK <code>' and 'Nothing was changed - try again.' Fraud service did not respond: 'The fraud update did not complete. Nothing was changed - try again.'

Data contracts

CIPAUDTY (working storage; COPAUS1C, COPAUS2C), CIPAUSMY (working storage; COPAUS1C), COCOM01Y (working storage; COPAUS1C), COTTL01Y (working storage; COPAUS1C), CSDAT01Y (working storage; COPAUS1C), CSMSG01Y (working storage; COPAUS1C), CSMSG02Y (working storage; COPAUS1C)

Decision tables

PF5 fraud toggle

Current fraud flagNew fraud flag and fraud action requestedRule
'F' (fraud confirmed)Flag set to 'R'; action 'R' (remove fraud)rec/group:claude/RULE-132/1
blank or 'R'Flag set to 'F'; action 'F' (report fraud)rec/group:claude/RULE-132/2

Outcome of a fraud update

Link to fraud update program completes normallyFraud update program statusAuthorization detail replace statusCommit or roll back, and messageRule
Non/anot attemptedRoll back; authorization detail unchanged; no messagerec/group:claude/RULE-132/6
Yesfailurenot attemptedRoll back; authorization detail unchanged; show the fraud program's messagerec/group:claude/RULE-132/5
Yes'S'blank or 'FW'Commit both changes; show 'AUTH FRAUD REMOVED...' if flag is 'R', otherwise 'AUTH MARKED FRAUD...'rec/group:claude/RULE-188/2
Yes'S'any other statusRoll back both changes; set error flag; show ' System error while FRAUD Tagging, ROLLBACK||' and statusrec/group:claude/RULE-188/3

Open questions

  • SME-143 On the authorization detail screen, what should happen (a) when the screen is opened without any data from the screen that called it, and (b) when the user presses PF3 after the screen is already showing? (Authorization business analyst)
  • SME-144 When the request to mark or unmark an authorization as fraud does not complete normally, what should the operator see, and what state should the authorization be left in? (Authorization business analyst)
  • SME-145 When adding or updating a fraud record fails for any reason other than a duplicate record, what status and message should go back to the operator? (Fraud management team)
  • SME-146 The fraud update is written to the fraud store first, then to the authorization detail record. If the second write fails after the first has succeeded, nothing is rolled back. Must both updates succeed or fail together? (Architecture team)
  • SME-147 When an authorization's fraud flag is changed, which data stores must hold the new fraud flag and fraud report date: the authorization detail record, the fraud store, or both? (Data architect)
  • SME-148 If the fraud update reports success but the authorization's database status is neither blank nor 'FW', what message should the system show? (Business analyst)
  • SME-149 Please confirm: after the fraud flag is changed, the system sends a fraud update request with the updated authorization record, the account ID and the customer ID, to be recorded in the authorization fraud store (CARDDEMO.AUTHFRDS). (Business analyst)
  • DEF-056 Is this intended? If the link to the fraud program itself fails, the screen rolls back the change but sets no message, so the user sees the detail screen again with no word that the fraud action was not recorded. (Subject-matter expert)

Design notes

  • The fraud action is one synchronous call from the detail screen to a fraud-recording service, passing the full authorization, the account number, the customer number and the action ('F' report or 'R' remove). The service stamps today's date (MM/DD/YY) as the fraud report date on the authorization it returns and reports success or failure with a message. Both the fraud register write and the authorization update must run in one transaction (or an equivalent all-or-nothing mechanism), committed only after the authorization update succeeds. Submit fraud action to fraud processor
16. Record fraud action in the fraud registerdraft · online · 5 requirements · 5 rules · 5 criteria · 1 screen

Keeps the fraud register: every fraud report or removal is recorded against the card and the exact authorization, so there is one current fraud record per authorization with its action and report date. A repeated action on the same authorization must update the existing record, never create a second one, and any failure must be returned to the caller with the database code and state.

As a fraud analyst, I want each fraud report or removal to be recorded against the card and authorization in the fraud register, so that there is one current fraud record per authorization with its report date.

Draft: the function is not signed off yet. Risk high; touches audit, card_data, personal_data, updates_records. rec/No domain/CardAuthorizationandFraudManagement#16

Requirements

CodeClassRequirementCriteria
REQ-F-142design noteThe system shall derive the authorization timestamp from the original authorization date and from 999999999 minus the complemented authorization time, and use the card number with that timestamp as the fraud row key.AC-01
REQ-F-143business ruleWhen a fraud action is received, the system shall add a row to the fraud table (CARDDEMO.AUTHFRDS) holding the card number, the rebuilt authorization timestamp, the authorization details, the action code, today's database date as report date, and the account and customer ids, and on success return status 'S' with 'ADD SUCCESS'.AC-02
REQ-F-144business ruleWhen the fraud table already holds a row for the same card number and authorization timestamp (duplicate key, SQLCODE -803), the system shall instead update that row's fraud flag to the new action code and its report date to today's database date, and on success return status 'S' with 'UPDT SUCCESS'.AC-03
REQ-F-145error handlingIf adding the fraud row fails with any database error other than a duplicate key, then the system shall return status 'F' with the message ' SYSTEM ERROR DB2: CODE:' followed by the SQL code and ', STATE: ' and the SQL state.AC-04
REQ-F-146error handlingIf updating the existing fraud row fails, then the system shall return status 'F' with the message ' UPDT ERROR DB2: CODE:' followed by the SQL code and ', STATE: ' and the SQL state.AC-05

Business rules

RuleClassText, worked examples and evidence
Rebuild authorization timestamp from stored key
rec/agreed:No domain/CardAuthorizationandFraudManagement/id-1bfa2291c1/1
design note
technical, medium
THE Authorization Timestamp Reconstruction SHALL derive the authorization timestamp (`AUTH-TS`) from the original date (`PA-AUTH-ORIG-DATE`) and from 999999999 minus the complemented time (`PA-AUTH-TIME-9C`), and set the card number (`CARD-NUM`) as the fraud row key
app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:103-105,107-111,113-114, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:103-114
Add new fraud authorization record
rec/group:claude/RULE-133/2
business rule
business, high
WHEN a fraud action is received, THE fraud recording program SHALL add a row to the fraud table (CARDDEMO.AUTHFRDS) holding the card number, the authorization timestamp rebuilt from the authorization date and time, the authorization details, the action code, today's database date as report date, and the account and customer ids, and on success return status 'S' with 'ADD SUCCESS'.
app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:91-139, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:141-216, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:221-244, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:230-262, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:344-347, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:520-538
Update existing fraud record on duplicate
rec/group:claude/RULE-133/3
business rule
business, high
WHEN the fraud table already holds a row for the same card number and authorization timestamp (duplicate key, SQLCODE -803), THE fraud recording program SHALL instead update that row's fraud flag to the new action code and its report date to today's database date, and on success return status 'S' with 'UPDT SUCCESS'.
app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:91-139, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:141-216, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:221-244, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:230-262, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:344-347, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:520-538
Mark or unmark an authorization as fraud (upsert to the fraud table)
rec/group:claude/RULE-133/4
error handling
error_handling, high
WHEN adding the fraud row fails with any database error other than a duplicate key, THE fraud recording program SHALL return status 'F' with the message ' SYSTEM ERROR DB2: CODE:' followed by the SQL code and ', STATE: ' and the SQL state.
app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:91-139, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:141-216, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:221-244, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:230-262, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:344-347, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:520-538
Update fraud flag and report date
rec/group:claude/RULE-133/5
error handling
error_handling, high
WHEN updating the existing fraud row fails, THE fraud recording program SHALL return status 'F' with the message ' UPDT ERROR DB2: CODE:' followed by the SQL code and ', STATE: ' and the SQL state.
app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:91-139, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:141-216, app/app-authorization-ims-db2-mq/cbl/COPAUS2C.cbl:221-244, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:230-262, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:344-347, app/app-authorization-ims-db2-mq/cbl/COPAUS1C.cbl:520-538

Acceptance criteria

IDCriterionChecks
AC-01Given an authorization for card 4111111111111111 with original date 240315 and a complemented time stored as 999857469
When a fraud action is recorded for it
Then the authorization time used is 999999999 minus 999857469, that is 142530, the authorization timestamp is built from date 240315 and that time, and the fraud row key is card 4111111111111111 with that timestamp
REQ-F-142
Rebuild authorization timestamp from stored key
written from the rule
AC-02Given no fraud row exists for card 4111111111111111 and the authorization's rebuilt timestamp
When a fraud action 'F' is received for account 00000000123 and customer 000000456
Then a row is added to the fraud table holding the card number, rebuilt timestamp, authorization details, action code 'F', today's database date as report date, account 00000000123 and customer 000000456, and the result is status 'S' with message 'ADD SUCCESS'
REQ-F-143
Add new fraud authorization record
written from the rule
AC-03Given a fraud row already exists for card 4111111111111111 and the authorization's timestamp with fraud flag 'F'
When a fraud action 'R' is received for the same authorization and the add fails with duplicate key (SQLCODE -803)
Then the existing row's fraud flag becomes 'R' and its report date becomes today's database date, no second row is created, and the result is status 'S' with message 'UPDT SUCCESS'
REQ-F-144
Update existing fraud record on duplicate
written from the rule
AC-04Given adding the fraud row fails with a database error other than duplicate key, for example SQL code -904 and SQL state 57011
When a fraud action is received
Then the result is status 'F' with the message ' SYSTEM ERROR DB2: CODE:' followed by the SQL code, ', STATE: ' and 57011
REQ-F-145
Mark or unmark an authorization as fraud (upsert to the fraud table)
written from the rule
AC-05Given a fraud row already exists for the authorization, so the add fails with duplicate key, and the update of that row then fails, for example with SQL code -911 and SQL state 40001
When a fraud action is received
Then the result is status 'F' with the message ' UPDT ERROR DB2: CODE:' followed by the SQL code, ', STATE: ' and 40001
REQ-F-146
Update fraud flag and report date
written from the rule

Screens

  • Account authorizations S-ACCOUNT-AUTHORIZATIONS · design · replaces COPAU0A, COPAU1A (58 merged, 4 dropped, 34 kept, 3 split)
    • **primary button** Report fraud / Remove fraud mark checks: Fraud register update failed: the fraud program's message (for example 'SYSTEM ERROR DB2: CODE <code>') and 'Nothing was changed - try again, and report the code if it repeats.' Authorization save failed: 'System error while FRAUD Tagging, ROLLBACK <code>' and 'Nothing was changed - try again.' Fraud service did not respond: 'The fraud update did not complete. Nothing was changed - try again.'

Data contracts

CIPAUDTY (working storage; COPAUS2C)

Decision tables

Fraud register add or update

Add fraud row resultUpdate existing row resultStatus and message returnedRule
Successnot attemptedStatus 'S', 'ADD SUCCESS'rec/group:claude/RULE-133/2
Duplicate key (SQLCODE -803)SuccessStatus 'S', 'UPDT SUCCESS'rec/group:claude/RULE-133/3
Duplicate key (SQLCODE -803)FailureStatus 'F', ' UPDT ERROR DB2: CODE:' with SQL code and staterec/group:claude/RULE-133/5
Any other database errornot attemptedStatus 'F', ' SYSTEM ERROR DB2: CODE:' with SQL code and staterec/group:claude/RULE-133/4

Open questions

  • SME-144 When the request to mark or unmark an authorization as fraud does not complete normally, what should the operator see, and what state should the authorization be left in? (Authorization business analyst)
  • SME-145 When adding or updating a fraud record fails for any reason other than a duplicate record, what status and message should go back to the operator? (Fraud management team)
  • SME-147 When an authorization's fraud flag is changed, which data stores must hold the new fraud flag and fraud report date: the authorization detail record, the fraud store, or both? (Data architect)
  • SME-148 If the fraud update reports success but the authorization's database status is neither blank nor 'FW', what message should the system show? (Business analyst)
  • SME-149 Please confirm: after the fraud flag is changed, the system sends a fraud update request with the updated authorization record, the account ID and the customer ID, to be recorded in the authorization fraud store (CARDDEMO.AUTHFRDS). (Business analyst)

Design notes

  • The fraud register is keyed by card number plus the authorization's original timestamp. The legacy authorization stores its time as a complement (999999999 minus the time) so newest sorts first; the new application should store the real authorization timestamp on the authorization and use it directly, with a unique key on (card number, authorization timestamp) so that recording is an upsert. If legacy data is migrated, convert the complemented time once, during migration. Rebuild authorization timestamp from stored key
17. Unload the pending authorization databasedraft · scheduled job · 9 requirements · 10 rules · 10 criteria

A batch job that copies every pending authorization summary and its details out of the pending authorization database into extract files, so they can be kept or reloaded elsewhere. It must write each summary before its details, skip summaries whose account id is not numeric, and stop with a failure code on any unexpected read or write error instead of reporting success on a partial extract.

As a batch operations team member, I want to unload the pending authorization database to extract files, so that the summaries and their details can be kept or reloaded outside the online system.

Draft: the function is not signed off yet. Risk medium; touches card_data. rec/No domain/CardAuthorizationandFraudManagement#17

Requirements

CodeClassRequirementCriteria
REQ-F-147design noteThe system shall run the IMS unload utility (DFSURGU0, parameters ULU, DFSURGU0, DBPAUTP0) reading the pending authorization database (OEM.IMS.IMSP.PAUTHDB) and its index (OEM.IMS.IMSP.PAUTHDBX) in shared mode, and write a new cataloged extract (AWS.M2.CARDDEMO.IMSDATA.DBPAUTP0) of variable-length records up to 27990 bytes, deleted if the step fails.AC-01, AC-02
REQ-F-148design noteThe system shall read the pending authorization summaries (segment 'PAUTSUM0') one after another and, for each whose account id is numeric, write the summary to the summary unload file and then unload all of that summary's details.AC-03
REQ-F-149business ruleIf a pending authorization summary's account id is not numeric, then the system shall skip it without writing it or any of its details.AC-06
REQ-F-150design noteWhen reading summaries reaches the end of the database (status 'GB'), the system shall stop reading and finish the run.AC-04
REQ-F-151design noteWhile unloading a summary, the system shall read each detail under it (segment 'PAUTDTL1') in turn and write every detail read successfully to the detail unload file.AC-05
REQ-F-152design noteWhen reading details reaches the end of the current summary (status 'GE'), the system shall print 'CHILD SEG FLAG GE : Y', stop reading details and clear the read status so the next summary can be read.AC-07
REQ-F-153error handlingIf reading the next pending authorization summary returns any status other than blank or 'GB', then the system shall print 'AUTH SUM GN FAILED :' with the status and the key feedback, print 'DBUNLDGS ABENDING ...', set return code 16 and end, leaving the unload files partly written.AC-08
REQ-F-154error handlingIf reading the next detail of a summary returns any status other than blank or 'GE', then the system shall print 'GNP CALL FAILED :' with the status and the key feedback, set return code 16 and end.AC-09
REQ-F-155error handlingIf writing a pending authorization summary or detail to its unload file returns a non-blank status, then the system shall print 'GSAM PARENT FAIL :' with the status and key feedback, set return code 16 and end.AC-10

Business rules

RuleClassText, worked examples and evidence
Unload pending authorization database to extract
rec/aws:No domain/CardAuthorizationandFraudManagement/id-122678d592/1
design note
technical, medium
THE Pending Authorization Database Unload job SHALL run the IMS unload utility (DFSURGU0, parameters ULU, DFSURGU0, DBPAUTP0) reading the pending authorization database (OEM.IMS.IMSP.PAUTHDB) and its index (OEM.IMS.IMSP.PAUTHDBX) in shared mode, and write a new cataloged extract (AWS.M2.CARDDEMO.IMSDATA.DBPAUTP0) of variable-length records up to 27990 bytes, deleted if the step fails.
  • pending authorization database: holds summaries and details; unload step: ends normally → A new cataloged extract AWS.M2.CARDDEMO.IMSDATA.DBPAUTP0 holds the unloaded segments as variable records up to 27990 bytes.
  • unload step: abends → The new extract dataset is deleted, not cataloged.
app/app-authorization-ims-db2-mq/jcl/DBPAUTP0.jcl:7-10, app/app-authorization-ims-db2-mq/jcl/DBPAUTP0.jcl:15-16, app/app-authorization-ims-db2-mq/jcl/DBPAUTP0.jcl:25-32, app/app-authorization-ims-db2-mq/jcl/DBPAUTP0.jcl:40-42
Unload each pending authorization summary
rec/aws:No domain/CardAuthorizationandFraudManagement/id-04f67fcf1c/1
design note
technical, medium
THE pending authorization unload SHALL read the pending authorization summaries (segment 'PAUTSUM0') one after another and, for each whose account id is numeric, write the summary to the summary unload file and then unload all of that summary's details.
  • summary account id: 00000012345; details under it: 3 → Summary written to the summary unload file, then its 3 details to the detail unload file
app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:164-175, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:216-252, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:115-116, app/app-authorization-ims-db2-mq/jcl/UNLDGSAM.JCL:36-40
Unload each pending authorization summary
rec/aws:No domain/CardAuthorizationandFraudManagement/id-04f67fcf1c/2
business rule
validation, medium
WHEN a pending authorization summary's account id is not numeric, THE pending authorization unload SHALL skip it without writing it or any of its details.
app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:164-175, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:216-252, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:115-116, app/app-authorization-ims-db2-mq/jcl/UNLDGSAM.JCL:36-40
Unload each pending authorization summary
rec/aws:No domain/CardAuthorizationandFraudManagement/id-04f67fcf1c/3
design note
technical, medium
WHEN reading summaries reaches the end of the database (status 'GB'), THE pending authorization unload SHALL stop reading and finish the run.
  • summary read status: 'GB' → The loop ends and 'CLOSING THE FILE' is printed
app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:164-175, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:216-252, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:115-116, app/app-authorization-ims-db2-mq/jcl/UNLDGSAM.JCL:36-40
Unload each pending authorization detail
rec/aws:No domain/CardAuthorizationandFraudManagement/id-7828a9d69f/1
design note
technical, medium
WHILE unloading a summary, THE pending authorization unload SHALL read each detail under it (segment 'PAUTDTL1') in turn and write every detail read successfully to the detail unload file.
  • details under summary: 2 → Both details are written to the detail unload file
app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:263-296, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:119-120, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:244-246
Unload each pending authorization detail
rec/aws:No domain/CardAuthorizationandFraudManagement/id-7828a9d69f/2
design note
technical, medium
WHEN reading details reaches the end of the current summary (status 'GE'), THE pending authorization unload SHALL print 'CHILD SEG FLAG GE : Y', stop reading details and clear the read status so the next summary can be read.
app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:263-296, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:119-120, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:244-246
The unload stops with return code 16 on any unexpected database or output status
rec/group:claude/RULE-197/1
error handling
error_handling, high
WHEN reading the next pending authorization summary returns any status other than blank or 'GB', THE pending authorization unload SHALL print 'AUTH SUM GN FAILED :' with the status and the key feedback, print 'DBUNLDGS ABENDING ...', set return code 16 and end, leaving the unload files partly written.
app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:249-256, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:284-294, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:300-315, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:319-334, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:357-363
The unload stops with return code 16 on any unexpected database or output status
rec/group:claude/RULE-197/2
error handling
error_handling, high
WHEN reading the next detail of a summary returns any status other than blank or 'GE', THE pending authorization unload SHALL print 'GNP CALL FAILED :' with the status and the key feedback, set return code 16 and end.
app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:249-256, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:284-294, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:300-315, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:319-334, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:357-363
Write summary to output file
rec/group:claude/RULE-197/3
error handling
error_handling, high
WHEN writing a pending authorization summary to the summary unload file returns a non-blank status, THE pending authorization unload SHALL print 'GSAM PARENT FAIL :' with the status and key feedback, set return code 16 and end.
app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:249-256, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:284-294, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:300-315, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:319-334, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:357-363
Write detail to output file
rec/group:claude/RULE-197/4
error handling
error_handling, high
WHEN writing a pending authorization detail to the detail unload file returns a non-blank status, THE pending authorization unload SHALL print 'GSAM PARENT FAIL :' (the same text as for summaries) with the status and key feedback, set return code 16 and end.
app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:249-256, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:284-294, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:300-315, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:319-334, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:357-363

Acceptance criteria

IDCriterionChecks
AC-01Given pending authorization database: holds summaries and details; unload step: ends normally
When Pending Authorization Database Unload job runs
Then A new cataloged extract AWS.M2.CARDDEMO.IMSDATA.DBPAUTP0 holds the unloaded segments as variable records up to 27990 bytes.
REQ-F-147
Unload pending authorization database to extract
worked example 1 of the rule
AC-02Given unload step: abends
When Pending Authorization Database Unload job runs
Then The new extract dataset is deleted, not cataloged.
REQ-F-147
Unload pending authorization database to extract
worked example 2 of the rule
AC-03Given summary account id: 00000012345; details under it: 3
When pending authorization unload runs
Then Summary written to the summary unload file, then its 3 details to the detail unload file
REQ-F-148
Unload each pending authorization summary
worked example 1 of the rule
AC-04Given summary read status: 'GB'
When reading summaries reaches the end of the database (status 'GB')
Then The loop ends and 'CLOSING THE FILE' is printed
REQ-F-150
Unload each pending authorization summary
worked example 1 of the rule
AC-05Given details under summary: 2
When unloading a summary
Then Both details are written to the detail unload file
REQ-F-151
Unload each pending authorization detail
worked example 1 of the rule
AC-06Given the database holds a summary with account id 'ABC123' that has two details, and a summary with numeric account id 00000000123
When the unload runs
Then neither the 'ABC123' summary nor its two details are written to the unload files, and the 00000000123 summary and its details are written
REQ-F-149
Unload each pending authorization summary
written from the rule
AC-07Given a summary with three details is being unloaded
When the fourth detail read returns 'GE'
Then 'CHILD SEG FLAG GE : Y' is printed, no further details are read for that summary, the read status is cleared and the next summary is read
REQ-F-152
Unload each pending authorization detail
written from the rule
AC-08Given the unload has written some summaries and the next summary read returns a status other than blank or 'GB', for example 'AI'
When the unload continues
Then 'AUTH SUM GN FAILED :' is printed with AI and the key feedback, 'DBUNLDGS ABENDING ...' is printed, the job ends with return code 16, and the records already written stay in the unload files
REQ-F-153
The unload stops with return code 16 on any unexpected database or output status
written from the rule
AC-09Given a summary is being unloaded and a detail read returns a status other than blank or 'GE', for example 'AI'
When the unload continues
Then 'GNP CALL FAILED :' is printed with AI and the key feedback, and the job ends with return code 16
REQ-F-154
The unload stops with return code 16 on any unexpected database or output status
written from the rule
AC-10Given writing a summary, or writing a detail, to its unload file returns a non-blank status
When the unload tries to write that record
Then 'GSAM PARENT FAIL :' is printed with the status and key feedback (the same text for summaries and details), and the job ends with return code 16
REQ-F-155
Write summary to output file, Write detail to output file
written from the rule

Screens

None: scheduled job.

Data contracts

CIPAUDTY (working storage; DBUNLDGS), CIPAUSMY (working storage; DBUNLDGS), IMSFUNCS (working storage; DBUNLDGS), PADFLPCB (working storage; DBUNLDGS), PASFLPCB (working storage; DBUNLDGS), PAUTBPCB (working storage; DBUNLDGS)

Decision tables

Unloading a pending authorization summary

Summary read statusAccount id numericSummary write statusWhat the unload doesRule
blankYesblankSummary written; unload its detailsrec/aws:No domain/CardAuthorizationandFraudManagement/id-04f67fcf1c/1
blankNonot writtenSkip the summary and its detailsrec/aws:No domain/CardAuthorizationandFraudManagement/id-04f67fcf1c/2
'GB'n/anot writtenStop reading and finish the runrec/aws:No domain/CardAuthorizationandFraudManagement/id-04f67fcf1c/3
any other statusn/anot writtenPrint 'AUTH SUM GN FAILED :' and 'DBUNLDGS ABENDING ...'; return code 16; endrec/group:claude/RULE-197/1
blankYesnon-blankPrint 'GSAM PARENT FAIL :'; return code 16; endrec/group:claude/RULE-197/3

Unloading the details of a summary

Detail read statusDetail write statusWhat the unload doesRule
blankblankDetail written; read next detailrec/aws:No domain/CardAuthorizationandFraudManagement/id-7828a9d69f/1
'GE'not writtenPrint 'CHILD SEG FLAG GE : Y'; stop reading details; clear status for next summaryrec/aws:No domain/CardAuthorizationandFraudManagement/id-7828a9d69f/2
any other statusnot writtenPrint 'GNP CALL FAILED :'; return code 16; endrec/group:claude/RULE-197/2
blanknon-blankPrint 'GSAM PARENT FAIL :'; return code 16; endrec/group:claude/RULE-197/4

Open questions

  • SME-244 Who uses the pending authorization extract, and must the new extract keep the legacy unload format exactly for them? (Card authorization team)
  • SME-245 In the pending authorization unload, is the 'summary output file' the authorization root file and the 'detail output file' the authorization child file? (Card authorization data owner)
  • SME-246 In the pending authorization unload, which read results mean 'no more summaries' or 'no more details', and which other read results must stop the run as a failure? (Card authorization data owner)
  • SME-247 When the pending authorization unload fails it ends with code 16. Does the batch schedule depend on that code, so the new system must keep it? (Batch operations)
  • SME-248 Authorization summaries with a non-numeric account number are skipped silently during the unload. Should the new unload report or log them? (Card authorization data owner)
  • DEF-085 Is this intended? A failed write to the detail unload file prints 'GSAM PARENT FAIL :', the same text as a failed summary write, so an operator cannot tell which file failed. (Subject-matter expert)

Design notes

  • A scheduled full extract of the pending authorization store into a single new file of variable-length records (up to 27990 bytes), read without locking out online users. The file must only be published when the job succeeds: write to a temporary name and rename on success, or delete it on failure, so a failed run never leaves a usable-looking extract. Unload pending authorization database to extract
  • The extract walks all summaries in a stable order (by account id) and, for each one with a numeric account id, writes the summary and then all its details before moving to the next summary. With a relational store this is a query of summaries ordered by account id joined to their details, streamed out so memory use does not grow with volume. Unload each pending authorization summary
  • The job ends normally when there are no more summaries to read; reaching the end of the data is a normal finish, not an error. Unload each pending authorization summary
  • For each summary, every one of its details is written to the separate detail file, in the order they are held under that summary (newest first in the legacy store), so a reload can attach each detail to its summary. Unload each pending authorization detail
  • Running out of details for a summary is a normal step, not an error: log 'CHILD SEG FLAG GE : Y', reset the per-summary state and continue with the next summary. Unload each pending authorization detail
18. Load pending authorizations into the databasedraft · scheduled job · 10 requirements · 9 rules · 12 criteria

A batch job that loads pending authorization summaries and then their details from files into the pending authorization database, to populate or rebuild it. Each detail must end up under the summary for its account; details with a non-numeric or unknown account are skipped, details already present are left unchanged, and any other insert failure stops the load with a failure code.

As a batch operations team member, I want to load pending authorization summaries and their details from files into the database, so that the pending authorization database can be populated or rebuilt.

Draft: the function is not signed off yet. Risk medium; touches card_data, updates_records. rec/No domain/CardAuthorizationandFraudManagement#18

Requirements

CodeClassRequirementCriteria
REQ-F-156design noteThe system shall run the load program (PAUDBLOD) as an IMS batch message program with parameter 'BMP,PAUDBLOD,PSBPAUTB', under program specification PSBPAUTB, giving it in shared mode the pending-authorization root segment file (AWS.M2.CARDDEMO.PAUTDB.ROOT.FILEO) and child segment file (AWS.M2.CARDDEMO.PAUTDB.CHILD.FILEO) to insert into the database.AC-01
REQ-F-157design noteThe system shall load every pending authorization summary record from the summary file first, and only then read the detail file and attach each detail to its summary.AC-02, AC-03, AC-04, AC-05
REQ-F-158business ruleIf a detail record's account ID is not numeric, then the system shall skip the record without inserting it and without any message, and read the next detail record.AC-06
REQ-F-159business ruleWhen a detail record has a numeric account ID, the system shall find the pending authorization summary with that account ID and, when found, insert the detail as a child authorization detail (PAUTDTL1) under that summary.AC-07
REQ-F-160error handlingIf no summary is found for a detail record's account ID (the lookup returns any non-blank status), then the system shall skip that detail without inserting it, without an error message and without ending the run.AC-08
REQ-F-161error handlingWhen the detail insert returns a blank status, the system shall display 'CHILD SEGMENT INSERTED SUCCESS'.AC-09
REQ-F-162error handlingWhen the detail insert returns 'II' (already in the database), the system shall display 'CHILD SEGMENT ALREADY IN DB', leave the existing detail unchanged and continue.AC-09
REQ-F-163error handlingIf the detail insert returns any status other than blank or 'II', then the system shall display 'INSERT CALL FAIL FOR CHILD:' with the status and the key feedback area, display 'IMS LOAD ABENDING ...' and stop the load with return code 16.AC-12
REQ-F-164error handlingWhen reading the detail file returns end of file (status '10'), the system shall stop reading details.AC-10, AC-11
REQ-F-165error handlingIf reading the detail file returns any non-success status other than end of file, then the system shall display 'ERROR READING CHILD SEG INFILE' and try the next read.AC-10, AC-11

Business rules

RuleClassText, worked examples and evidence
Load pending authorizations from root and child files
rec/aws:No domain/CardAuthorizationandFraudManagement/id-6ac00c66bc/1
design note
technical, medium
THE pending authorization data load job SHALL run the load program (PAUDBLOD) as an IMS batch message program with parameter 'BMP,PAUDBLOD,PSBPAUTB', under program specification PSBPAUTB, giving it in shared mode the pending-authorization root segment file (AWS.M2.CARDDEMO.PAUTDB.ROOT.FILEO) and child segment file (AWS.M2.CARDDEMO.PAUTDB.CHILD.FILEO) to insert into the database.
  • INFILE1: AWS.M2.CARDDEMO.PAUTDB.ROOT.FILEO with 50 root records; INFILE2: AWS.M2.CARDDEMO.PAUTDB.CHILD.FILEO with 200 child records → PAUDBLOD runs as a BMP under PSBPAUTB and inserts the root and child segments into the pending-authorization IMS database.
app/app-authorization-ims-db2-mq/jcl/LOADPADB.JCL:26-27, app/app-authorization-ims-db2-mq/jcl/LOADPADB.JCL:36-38, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:26-32, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:201-213, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:244, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:321
Sequence summary then detail loading
rec/agreed:No domain/CardAuthorizationandFraudManagement/id-c5c72868f5/1
design note
technical, medium
WHILE summary input records remain (`END-ROOT-SEG-FILE` not `"Y"`), followed by detail input records remaining (`END-CHILD-SEG-FILE` not `"Y"`), THE Pending Authorization Load SHALL load every pending authorization summary record first, then load every pending authorization detail record
  • INFILE1 (summary records): 3 records; INFILE2 (detail records): 5 records → All 3 pending authorization summary records are inserted first (each showing 'ROOT INSERT SUCCESS'); only after INFILE1 reaches end of file (status '10') are the 5 detail records read and inserted under their summaries ('CHILD SEGMENT INSERTED SUCCESS').
  • INFILE1 (summary records): empty; INFILE2 (detail records): 2 records → No summary is inserted; the program goes straight to the detail file and loads the 2 detail records, each looked up under its summary by account ID.
  • INFILE1 read status: '10'; INFILE2 read status: '10' → Both loops end, the files are closed with 'CLOSING THE FILE' and the program returns.
app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:169,175,177-178,180-181, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:175-183
A detail record is attached to its summary by account ID and needs a numeric key
rec/group:claude/RULE-056/1
design note
technical, high
THE pending authorization load SHALL load every summary record from the summary file first, and only then read the detail file and attach each detail to its summary.
  • summary file: account 00000012345; detail file: one detail for account 00000012345 → The summary for 00000012345 is inserted first; the detail is then attached under it.
app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:175-183, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:269-291, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:292-316, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:318-339, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:113-127, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:360-366
Read and validate detail input record
rec/group:claude/RULE-056/2
business rule
validation, high
WHEN a detail record's account ID (ROOT-SEG-KEY) is not numeric, THE detail load SHALL skip the record without inserting it and without any message, and read the next detail record.
  • account ID in detail record: non-numeric bytes → The record is skipped silently; the next detail record is read.
app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:175-183, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:269-291, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:292-316, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:318-339, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:113-127, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:360-366
Read and validate detail input record
rec/group:claude/RULE-056/3
business rule
business, high
WHEN a detail record has a numeric account ID, THE detail load SHALL find the pending authorization summary with that account ID (GU on PAUTSUM0 where ACCNTID EQ the key) and, when found, insert the detail as a child authorization detail (PAUTDTL1) under that summary.
  • account ID in detail record: 00000012345; summary 00000012345 in database: yes → 'GU CALL TO ROOT SEG SUCCESS' is displayed and the detail is inserted under summary 00000012345.
app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:175-183, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:269-291, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:292-316, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:318-339, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:113-127, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:360-366
Locate parent summary before detail insert
rec/group:claude/RULE-056/4
error handling
error_handling, high
WHEN no summary is found for a detail record's account ID (the lookup returns any non-blank status), THE detail load SHALL skip that detail without inserting it, without an error message and without ending the run.
  • account ID in detail record: 00000099999; summary 00000099999 in database: no (status 'GE') → The detail is not loaded; no failure message; the load continues with the next detail.
app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:175-183, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:269-291, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:292-316, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:318-339, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:113-127, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:360-366
Insert pending authorization detail
rec/group:claude/RULE-056/5
error handling
error_handling, high
WHEN the detail insert returns a blank status, THE detail load SHALL display 'CHILD SEGMENT INSERTED SUCCESS'; WHEN it returns 'II' (already in the database), THE detail load SHALL display 'CHILD SEGMENT ALREADY IN DB', leave the existing detail unchanged and continue.
  • detail insert status: 'II' → 'CHILD SEGMENT ALREADY IN DB' is displayed and the next detail record is read.
app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:175-183, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:269-291, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:292-316, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:318-339, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:113-127, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:360-366
Insert pending authorization detail
rec/group:claude/RULE-056/6
error handling
error_handling, high
WHEN the detail insert returns any status other than blank or 'II', THE detail load SHALL display 'INSERT CALL FAIL FOR CHILD:' with the status and the key feedback area, display 'IMS LOAD ABENDING ...' and stop the load with return code 16.
app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:175-183, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:269-291, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:292-316, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:318-339, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:113-127, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:360-366
Read and validate detail input record
rec/group:claude/RULE-056/7
error handling
error_handling, high
WHEN reading the detail file returns end of file (status '10'), THE detail load SHALL stop reading details; WHEN it returns any other non-success status, THE detail load SHALL display 'ERROR READING CHILD SEG INFILE' and try the next read.
  • detail file read status: '10' → Detail processing ends and the files are closed.
  • detail file read status: '04' → 'ERROR READING CHILD SEG INFILE' is displayed and reading continues.
app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:175-183, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:269-291, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:292-316, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:318-339, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:113-127, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:360-366

Acceptance criteria

IDCriterionChecks
AC-01Given INFILE1: AWS.M2.CARDDEMO.PAUTDB.ROOT.FILEO with 50 root records; INFILE2: AWS.M2.CARDDEMO.PAUTDB.CHILD.FILEO with 200 child records
When pending authorization data load job runs
Then PAUDBLOD runs as a BMP under PSBPAUTB and inserts the root and child segments into the pending-authorization IMS database.
REQ-F-156
Load pending authorizations from root and child files
worked example 1 of the rule
AC-02Given INFILE1 (summary records): 3 records; INFILE2 (detail records): 5 records
When summary input records remain (`END-ROOT-SEG-FILE` not `"Y"`), followed by detail input records remaining (`END-CHILD-SEG-FILE` not `"Y"`)
Then All 3 pending authorization summary records are inserted first (each showing 'ROOT INSERT SUCCESS'); only after INFILE1 reaches end of file (status '10') are the 5 detail records read and inserted under their summaries ('CHILD SEGMENT INSERTED SUCCESS').
REQ-F-157
Sequence summary then detail loading
worked example 1 of the rule
AC-03Given INFILE1 (summary records): empty; INFILE2 (detail records): 2 records
When summary input records remain (`END-ROOT-SEG-FILE` not `"Y"`), followed by detail input records remaining (`END-CHILD-SEG-FILE` not `"Y"`)
Then No summary is inserted; the program goes straight to the detail file and loads the 2 detail records, each looked up under its summary by account ID.
REQ-F-157
Sequence summary then detail loading
worked example 2 of the rule
AC-04Given INFILE1 read status: '10'; INFILE2 read status: '10'
When summary input records remain (`END-ROOT-SEG-FILE` not `"Y"`), followed by detail input records remaining (`END-CHILD-SEG-FILE` not `"Y"`)
Then Both loops end, the files are closed with 'CLOSING THE FILE' and the program returns.
REQ-F-157
Sequence summary then detail loading
worked example 3 of the rule
AC-05Given summary file: account 00000012345; detail file: one detail for account 00000012345
When pending authorization load runs
Then The summary for 00000012345 is inserted first; the detail is then attached under it.
REQ-F-157
A detail record is attached to its summary by account ID and needs a numeric key
worked example 1 of the rule
AC-06Given account ID in detail record: non-numeric bytes
When a detail record's account ID (ROOT-SEG-KEY) is not numeric
Then The record is skipped silently; the next detail record is read.
REQ-F-158
Read and validate detail input record
worked example 1 of the rule
AC-07Given account ID in detail record: 00000012345; summary 00000012345 in database: yes
When a detail record has a numeric account ID
Then 'GU CALL TO ROOT SEG SUCCESS' is displayed and the detail is inserted under summary 00000012345.
REQ-F-159
Read and validate detail input record
worked example 1 of the rule
AC-08Given account ID in detail record: 00000099999; summary 00000099999 in database: no (status 'GE')
When no summary is found for a detail record's account ID (the lookup returns any non-blank status)
Then The detail is not loaded; no failure message; the load continues with the next detail.
REQ-F-160
Locate parent summary before detail insert
worked example 1 of the rule
AC-09Given detail insert status: 'II'
When the detail insert returns a blank status
Then 'CHILD SEGMENT ALREADY IN DB' is displayed and the next detail record is read.
REQ-F-161, REQ-F-162
Insert pending authorization detail
worked example 1 of the rule
AC-10Given detail file read status: '10'
When reading the detail file returns end of file (status '10')
Then Detail processing ends and the files are closed.
REQ-F-164, REQ-F-165
Read and validate detail input record
worked example 1 of the rule
AC-11Given detail file read status: '04'
When reading the detail file returns end of file (status '10')
Then 'ERROR READING CHILD SEG INFILE' is displayed and reading continues.
REQ-F-164, REQ-F-165
Read and validate detail input record
worked example 2 of the rule
AC-12Given a detail record with numeric account id 00000000123 whose summary exists, and the insert of the detail returns a status other than blank or 'II', for example 'AI'
When the load tries to insert the detail
Then 'INSERT CALL FAIL FOR CHILD:' is displayed with AI and the key feedback area, 'IMS LOAD ABENDING ...' is displayed, and the load stops with return code 16 without reading further detail records
REQ-F-163
Insert pending authorization detail
written from the rule

Screens

None: scheduled job.

Data contracts

CIPAUDTY (working storage; PAUDBLOD), CIPAUSMY (working storage; PAUDBLOD), IMSFUNCS (working storage; PAUDBLOD), PAUTBPCB (working storage; PAUDBLOD)

Decision tables

Loading a pending authorization detail record

Account ID numericSummary foundDetail insert statusWhat the load doesRule
Nonot looked upnot attemptedSkip the record silently; read next detailrec/group:claude/RULE-056/2
YesNonot attemptedSkip the detail; no error message; run continuesrec/group:claude/RULE-056/4
YesYesblankInsert detail; display 'CHILD SEGMENT INSERTED SUCCESS'rec/group:claude/RULE-056/5
YesYes'II'Display 'CHILD SEGMENT ALREADY IN DB'; existing detail unchanged; continuerec/group:claude/RULE-056/5
YesYesany other statusDisplay 'INSERT CALL FAIL FOR CHILD:' and 'IMS LOAD ABENDING ...'; return code 16rec/group:claude/RULE-056/6

Open questions

  • SME-270 When the pending-authorization reload reads a detail record that cannot be attached to a summary — because no matching summary exists or because its account key is not numeric — what should happen: skip it, reject it to an error output and report it, or stop the job? Today the record is dropped without any message. (Authorization business owner)
  • SME-271 When the pending-authorization reload tries to insert a summary or detail that already exists (duplicate key), should that be silently accepted, counted, or reported? (Authorization business owner)
  • DEF-027 Is this intended? A failed parent lookup is never reported: because the status check at line 310 sits inside the GU-success branch, a detail whose summary is not found (e.g. 'GE') is dropped with no message and no abend, and the 'ROOT GU CALL FAIL' message can never appear (the insert path already abends in 3200). Also, a detail-file read error other than '10' does not set end-of-file, so the read loop may repeat the error indefinitely. (Subject-matter expert)

Design notes

  • A batch load job that takes two input files, a summary file and a detail file, and inserts their records into the pending authorization store while online use continues (it must not need exclusive access to the store). Load pending authorizations from root and child files
  • The load runs in two phases: read the whole summary file and insert every summary, and only then read the detail file. This order guarantees each detail's parent summary already exists when the detail is inserted. Sequence summary then detail loading
  • Each detail is attached to its summary by account id: look up the summary by account id (a keyed lookup) and insert the detail under it, for example as a child row with a foreign key to the summary. A detail whose summary cannot be found is skipped, not loaded as an orphan. A detail record is attached to its summary by account ID and needs a numeric key
19. Load pending authorization summariesdraft · scheduled job · 4 requirements · 3 rules · 3 criteria

Loads pending authorization summaries from the summary file into the pending authorization database, one per account. It must never overwrite a summary already held for an account: it reports it and moves on. Any other insert failure stops the load with a failure code.

As an operations analyst, I want to load pending authorization summaries from the summary file into the pending authorization database, so that each account's pending authorization summary is available without overwriting a summary already held.

Draft: the function is not signed off yet. Risk medium; touches card_data, updates_records. rec/No domain/CardAuthorizationandFraudManagement#19

Requirements

CodeClassRequirementCriteria
REQ-F-166business ruleThe system shall insert each record read from the summary file as a pending authorization summary.AC-01
REQ-F-167business ruleWhen a summary insert returns a blank status, the system shall display 'ROOT INSERT SUCCESS'.AC-01
REQ-F-168error handlingIf a summary insert returns 'II' because that account's summary is already in the database, then the system shall display 'ROOT SEGMENT ALREADY IN DB', leave the existing summary unchanged and continue with the next record.AC-02
REQ-F-169error handlingIf a summary insert returns any status other than blank or 'II', then the system shall display 'ROOT INSERT FAILED :' with the status, display 'IMS LOAD ABENDING ...' and stop the load with return code 16.AC-03

Business rules

RuleClassText, worked examples and evidence
Insert pending authorization summary
rec/group:claude/RULE-198/1
business rule
business, high
THE summary load SHALL insert each record read from the summary file as a pending authorization summary root (PAUTSUM0) and, when the insert returns a blank status, display 'ROOT INSERT SUCCESS'.
  • summary record account: 00000012345; already in database: no → The summary is inserted and 'ROOT INSERT SUCCESS' is displayed.
app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:222-237, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:242-263, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:121-123, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:360-366
Insert pending authorization summary
rec/group:claude/RULE-198/2
error handling
error_handling, high
WHEN a summary insert returns 'II' because that account's summary is already in the database, THE summary load SHALL display 'ROOT SEGMENT ALREADY IN DB', leave the existing summary unchanged and continue with the next record.
  • summary record account: 00000012345; already in database: yes (status 'II') → 'ROOT SEGMENT ALREADY IN DB' is displayed; the stored summary is not changed; the next record is read.
app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:222-237, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:242-263, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:121-123, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:360-366
Insert pending authorization summary
rec/group:claude/RULE-198/3
error handling
error_handling, high
WHEN a summary insert returns any status other than blank or 'II', THE summary load SHALL display 'ROOT INSERT FAILED :' with the status, display 'IMS LOAD ABENDING ...' and stop the load with return code 16.
app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:222-237, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:242-263, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:121-123, app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL:360-366

Acceptance criteria

IDCriterionChecks
AC-01Given summary record account: 00000012345; already in database: no
When summary load runs
Then The summary is inserted and 'ROOT INSERT SUCCESS' is displayed.
REQ-F-166, REQ-F-167
Insert pending authorization summary
worked example 1 of the rule
AC-02Given summary record account: 00000012345; already in database: yes (status 'II')
When a summary insert returns 'II' because that account's summary is already in the database
Then 'ROOT SEGMENT ALREADY IN DB' is displayed; the stored summary is not changed; the next record is read.
REQ-F-168
Insert pending authorization summary
worked example 1 of the rule
AC-03Given a summary record for account 00000000123 whose insert returns a status other than blank or 'II', for example 'AI'
When the summary load inserts it
Then 'ROOT INSERT FAILED :' is displayed with AI, 'IMS LOAD ABENDING ...' is displayed, and the load stops with return code 16 without inserting further records
REQ-F-169
Insert pending authorization summary
written from the rule

Screens

None: scheduled job.

Data contracts

CIPAUDTY (working storage; PAUDBLOD), CIPAUSMY (working storage; PAUDBLOD), IMSFUNCS (working storage; PAUDBLOD), PAUTBPCB (working storage; PAUDBLOD)

Decision tables

Summary insert outcome

Summary insert statusLoad actionRule
blankSummary inserted; display 'ROOT INSERT SUCCESS'rec/group:claude/RULE-198/1
'II' (summary already in database)Display 'ROOT SEGMENT ALREADY IN DB'; leave existing summary unchanged; continue with next recordrec/group:claude/RULE-198/2
any other statusDisplay 'ROOT INSERT FAILED :' with status and 'IMS LOAD ABENDING ...'; stop with return code 16rec/group:claude/RULE-198/3

Open questions

  • SME-270 When the pending-authorization reload reads a detail record that cannot be attached to a summary — because no matching summary exists or because its account key is not numeric — what should happen: skip it, reject it to an error output and report it, or stop the job? Today the record is dropped without any message. (Authorization business owner)
  • SME-271 When the pending-authorization reload tries to insert a summary or detail that already exists (duplicate key), should that be silently accepted, counted, or reported? (Authorization business owner)

Design notes

None.

20. Unload all pending authorizationsdraft · scheduled job · 10 requirements · 10 rules · 10 criteria

A batch job that unloads every pending authorization summary and every detail to two files, with no filter on age, expiry, response or match status, and with each detail carrying its parent account id. Summaries with a non-numeric account id are left out along with their details. Any unexpected database read stops the job with return code 16.

As an operations analyst, I want every pending authorization summary and its details unloaded from the pending authorization database to files, so that the full set of pending authorizations is available outside the database with each detail linked to its account.

Draft: the function is not signed off yet. Risk medium; touches card_data. rec/No domain/CardAuthorizationandFraudManagement#20

Requirements

CodeClassRequirementCriteria
REQ-F-170business ruleThe system shall unload every summary and every detail in the pending authorization database, with no filter on authorization age, expiry, response or match status.AC-01
REQ-F-171design noteWhile the end of the pending authorization database has not been reached, the system shall read the next authorization summary in database order and handle it before reading the next one.AC-02
REQ-F-172business ruleWhen a summary is read successfully and its account id is numeric, the system shall write the summary unchanged to the summary unload file and then unload every authorization detail under that summary.AC-03
REQ-F-173design noteThe system shall write each summary to the summary unload file as its 100-byte database image, unchanged.AC-04
REQ-F-174business ruleIf a summary is read successfully but its account id is not a valid number, then the system shall write neither the summary nor any of its details, give no message, and go on to the next summary.AC-05
REQ-F-175design noteWhen reading the next summary reports end of database ('GB'), the system shall stop reading summaries, close both unload files and end normally.AC-06
REQ-F-176error handlingIf reading a summary returns a status other than blank or 'GB', then the system shall display 'AUTH SUM GN FAILED :' with the status and the key feedback area, display 'IMSUNLOD ABENDING ...', and end with return code 16 without closing the files.AC-08
REQ-F-177design noteWhen a detail under the current summary is read successfully, the system shall write a 206-byte record to the detail unload file consisting of the parent account id (6-byte packed) followed by the 200-byte detail image.AC-07
REQ-F-178design noteWhen reading the next detail under the current summary reports no more details ('GE'), the system shall stop reading details for that summary, display 'CHILD SEG FLAG GE : ' with the end flag, and go on to the next summary.AC-09
REQ-F-179error handlingIf reading a detail returns a status other than blank or 'GE', then the system shall display 'GNP CALL FAILED :' with the status and 'KFB AREA IN CHILD:' with the key feedback, display 'IMSUNLOD ABENDING ...', and end with return code 16 without closing the files.AC-10

Business rules

RuleClassText, worked examples and evidence
Full unload of pending authorizations with no expiry or status filter
rec/group:claude/RULE-199/1
business rule
business, high
THE Pending Authorization Unload SHALL unload every summary and every detail in the pending authorization database, with no filter on authorization age, expiry, response or match status.
  • Account: 12345; Details: one approved '00', one declined, one match status 'E' → The summary goes to OUTFIL1 and all 3 details go to OUTFIL2, each prefixed with account 12345
app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:163-166, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:207-247, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:179, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:289-304
Retrieve next summary and process its details
rec/group:claude/RULE-057/1
design note
technical, high
WHILE the end of the pending authorization database has not been reached, THE Pending Authorization Unload SHALL read the next authorization summary in database order (get-next on segment 'PAUTSUM0') and handle it before reading the next one.
  • Summaries in database: accounts 12345 and 67890; Database status on each read: blank (success) → Both summaries are read in turn, 12345 then 67890
app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:161-164, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:207-238, app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:19
Retrieve next summary and process its details
rec/group:claude/RULE-057/2
business rule
business, high
WHEN a summary is read successfully and its account id is numeric, THE Pending Authorization Unload SHALL write the summary unchanged to the summary unload file (OUTFIL1) and then unload every authorization detail under that summary.
  • Account id (PA-ACCT-ID): 12345; Details under summary: 2 → 1 summary record is written to OUTFIL1 and 2 detail records to OUTFIL2
app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:161-164, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:207-238, app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:19
Unload output layout links each detail to its parent account
rec/group:claude/RULE-201/1
design note
technical, high
THE Pending Authorization Unload SHALL write each summary to the summary unload file (OUTFIL1) as its 100-byte database image, unchanged.
  • Account: 12345; Credit limit: 5,000.00 → OUTFIL1 gets one 100-byte record that holds the summary image as stored
app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:43-48, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:227-230, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:253-272, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:284, app/app-authorization-ims-db2-mq/jcl/UNLDPADB.JCL:48-56
Unload authorization summaries with numeric account
rec/group:claude/RULE-057/3
business rule
validation, high
WHEN a summary is read successfully but its account id is not a valid number, THE Pending Authorization Unload SHALL write neither the summary nor any of its details, give no message, and go on to the next summary.
  • Account id (PA-ACCT-ID): corrupted, not a valid packed number; Details under summary: 2 → Nothing is written for this summary or its 2 details, no message is shown, and the job continues with the next summary
app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:161-164, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:207-238, app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:19
Stop at end of authorization summaries
rec/group:claude/RULE-199/2
design note
technical, high
WHEN reading the next summary reports end of database ('GB'), THE Pending Authorization Unload SHALL stop reading summaries, close both unload files and end normally.
  • Database status after summary read: 'GB' → Summary processing stops, 'CLOSING THE FILE' is displayed, and both files are closed
app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:163-166, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:207-247, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:179, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:289-304
Unload aborts on any unexpected database or file-open status
rec/claude:claude/RULE-200/2
error handling
error_handling, medium
WHEN reading a summary returns a status other than blank or 'GB', THE Pending Authorization Unload SHALL display 'AUTH SUM GN FAILED :' with the status and the key feedback area, display 'IMSUNLOD ABENDING ...', and end with return code 16 without closing the files.
app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:186-200, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:239-246, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:279-283, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:289-304, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:308-314
Extract next authorization detail record
rec/group:claude/RULE-201/2
design note
technical, high
WHEN a detail under the current summary is read successfully (get-next-within-parent on 'PAUTDTL1'), THE Pending Authorization Unload SHALL write a 206-byte record to the detail unload file (OUTFIL2): the parent account id (6-byte packed) followed by the 200-byte detail image.
  • Parent account: 12345; Detail amount: 125.50 → OUTFIL2 gets one record: account 12345 (packed) followed by the detail image
app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:43-48, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:227-230, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:253-272, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:284, app/app-authorization-ims-db2-mq/jcl/UNLDPADB.JCL:48-56
Traverse details of current summary
rec/aws:No domain/CardAuthorizationandFraudManagement/id-af91873aa5/1
design note
technical, medium
WHEN reading the next detail under the current summary reports no more details ('GE'), THE Pending Authorization Unload SHALL stop reading details for that summary, display 'CHILD SEG FLAG GE : ' with the end flag, and go on to the next summary.
app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:234-236, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:253-260, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:273-278, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:284
Unload aborts on any unexpected database or file-open status
rec/claude:claude/RULE-200/3
error handling
error_handling, medium
WHEN reading a detail returns a status other than blank or 'GE', THE Pending Authorization Unload SHALL display 'GNP CALL FAILED :' with the status and 'KFB AREA IN CHILD:' with the key feedback, display 'IMSUNLOD ABENDING ...', and end with return code 16 without closing the files.
app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:186-200, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:239-246, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:279-283, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:289-304, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:308-314

Acceptance criteria

IDCriterionChecks
AC-01Given Account: 12345; Details: one approved '00', one declined, one match status 'E'
When Pending Authorization Unload runs
Then The summary goes to OUTFIL1 and all 3 details go to OUTFIL2, each prefixed with account 12345
REQ-F-170
Full unload of pending authorizations with no expiry or status filter
worked example 1 of the rule
AC-02Given Summaries in database: accounts 12345 and 67890; Database status on each read: blank (success)
When the end of the pending authorization database has not been reached
Then Both summaries are read in turn, 12345 then 67890
REQ-F-171
Retrieve next summary and process its details
worked example 1 of the rule
AC-03Given Account id (PA-ACCT-ID): 12345; Details under summary: 2
When a summary is read successfully and its account id is numeric
Then 1 summary record is written to OUTFIL1 and 2 detail records to OUTFIL2
REQ-F-172
Retrieve next summary and process its details
worked example 1 of the rule
AC-04Given Account: 12345; Credit limit: 5,000.00
When Pending Authorization Unload runs
Then OUTFIL1 gets one 100-byte record that holds the summary image as stored
REQ-F-173
Unload output layout links each detail to its parent account
worked example 1 of the rule
AC-05Given Account id (PA-ACCT-ID): corrupted, not a valid packed number; Details under summary: 2
When a summary is read successfully but its account id is not a valid number
Then Nothing is written for this summary or its 2 details, no message is shown, and the job continues with the next summary
REQ-F-174
Unload authorization summaries with numeric account
worked example 1 of the rule
AC-06Given Database status after summary read: 'GB'
When reading the next summary reports end of database ('GB')
Then Summary processing stops, 'CLOSING THE FILE' is displayed, and both files are closed
REQ-F-175
Stop at end of authorization summaries
worked example 1 of the rule
AC-07Given Parent account: 12345; Detail amount: 125.50
When a detail under the current summary is read successfully (get-next-within-parent on 'PAUTDTL1')
Then OUTFIL2 gets one record: account 12345 (packed) followed by the detail image
REQ-F-177
Extract next authorization detail record
worked example 1 of the rule
AC-08Given the unload has written some summaries and the next summary read returns a status other than blank or 'GB', for example 'AI'
When the unload continues
Then 'AUTH SUM GN FAILED :' is displayed with AI and the key feedback area, 'IMSUNLOD ABENDING ...' is displayed, and the job ends with return code 16 without closing the unload files
REQ-F-176
Unload aborts on any unexpected database or file-open status
written from the rule
AC-09Given a summary with two details has had both details written
When the next detail read under that summary returns 'GE'
Then no further details are read for that summary, 'CHILD SEG FLAG GE : ' is displayed with the end flag, and the next summary is read
REQ-F-178
Traverse details of current summary
written from the rule
AC-10Given a summary is being unloaded and a detail read returns a status other than blank or 'GE', for example 'AI'
When the unload continues
Then 'GNP CALL FAILED :' is displayed with AI, 'KFB AREA IN CHILD:' is displayed with the key feedback, 'IMSUNLOD ABENDING ...' is displayed, and the job ends with return code 16 without closing the unload files
REQ-F-179
Unload aborts on any unexpected database or file-open status
written from the rule

Screens

None: scheduled job.

Data contracts

CIPAUDTY (working storage; PAUDBUNL), CIPAUSMY (working storage; PAUDBUNL), IMSFUNCS (working storage; PAUDBUNL), PAUTBPCB (working storage; PAUDBUNL)

Decision tables

Summary read outcome

Summary read statusAccount id numericUnload actionRule
blankyesWrite summary unchanged to summary unload file; unload every detail under itrec/group:claude/RULE-057/2
blanknoWrite neither summary nor details; no message; go on to next summaryrec/group:claude/RULE-057/3
'GB' (end of database)n/aStop reading summaries; close both unload files; end normallyrec/group:claude/RULE-199/2
any other statusn/aDisplay 'AUTH SUM GN FAILED :' with status and key feedback and 'IMSUNLOD ABENDING ...'; end with return code 16 without closing filesrec/claude:claude/RULE-200/2

Detail read outcome

Detail read statusUnload actionRule
blankWrite 206-byte record (parent account id + 200-byte detail image) to detail unload filerec/group:claude/RULE-201/2
'GE' (no more details)Stop reading details for this summary; display 'CHILD SEG FLAG GE : '; go on to next summaryrec/aws:No domain/CardAuthorizationandFraudManagement/id-af91873aa5/1
any other statusDisplay 'GNP CALL FAILED :' and 'KFB AREA IN CHILD:' and 'IMSUNLOD ABENDING ...'; end with return code 16 without closing filesrec/claude:claude/RULE-200/3

Open questions

  • SME-272 Should the pending-authorization unload be a full backup of all pending authorizations, or was it meant to exclude or purge authorizations older than a set number of expiry days? The expiry-days and checkpoint settings exist but are never read. (Authorization operations manager)
  • SME-302 When the pending-authorization unload reads the authorization details under a summary, under what conditions is each detail record written to the child (detail) unload file? (Authorization domain team)
  • SME-303 Summaries whose account number is not numeric are skipped, along with all their details, and nothing reports or counts them. Should the new unload report or reconcile the summaries it skips? (Authorization domain team)
  • SME-304 Should the new extract keep the exact fixed record layouts of the root (summary) and child (detail) unload files, so downstream consumers keep working? (Data migration team)
  • SME-305 What goes into the root (summary) unload file, and when is a summary record written to it? For example, is a summary with a non-numeric account number still written? (Authorization domain team)
  • SME-306 What condition ends the processing of a summary's authorization details? For example, which retrieval status marks the end of the details? (Authorization domain team)
  • SME-307 When reading a summary or detail returns an error status (anything other than success or end of data), should the run fail, skip the record, or report it? (Batch operations team)
  • SME-308 Are the 'second extract file' for detail records and the 'authorization child unload file' the same output? (Batch operations team)
  • SME-309 The legacy unload job runs with a fixed database batch configuration ('DLI,PAUDBUNL,PAUTBUNL,,,,,,,,,,,N'). Does any part of it have business meaning that the new unload must keep? (Platform migration team)
  • DEF-028 Is this intended? A summary whose account id is not numeric is dropped from the unload silently, together with all its details. No message is shown and nothing is counted, so the unload files can be incomplete without anyone knowing. (Subject-matter expert)
  • DEF-086 Is this intended? File status is not checked after any WRITE to OUTFIL1 or OUTFIL2, so a failed write (for example, the file runs out of space) would not stop the job and records could be lost. (Subject-matter expert)
  • DEF-167 Is this intended? On a database read failure the program ends with return code 16 without closing the unload files. The output files can be left partly written, and nothing undoes the work already done. (Subject-matter expert)

Design notes

  • The job walks all summaries one by one in a stable order (by account id), finishing each summary and its details before moving to the next; stream the results rather than loading them all into memory. Retrieve next summary and process its details
  • The summary file holds one fixed 100-byte record per summary, the summary exactly as stored. The new application needs a defined summary export layout of the same fields, byte-compatible with the legacy layout for as long as anything still reads these files. Unload output layout links each detail to its parent account
  • When there are no more summaries, the job closes both output files and ends normally (return code 0); reaching the end of the data is not an error. Stop at end of authorization summaries
  • The detail file holds one fixed 206-byte record per detail: the parent account id (6 bytes, packed decimal in the legacy layout) followed by the 200-byte detail as stored. The account id prefix is what lets a reload attach each detail to its summary, so the new export must always carry it; keep packed decimal only while legacy consumers need it. Extract next authorization detail record
  • Running out of details for a summary is a normal step: log 'CHILD SEG FLAG GE : ' with the end flag and continue with the next summary. Traverse details of current summary
21. Run the unload jobs and manage unload filesdraft · scheduled job · 7 requirements · 7 rules · 10 criteria

Runs the pending authorization unload jobs and handles their output files the same way every time: new extract files are kept only when the job succeeds and removed when it fails, while the standing root and child files are always kept. A file that cannot be opened stops the job with return code 16; a file that will not close is reported but does not fail an otherwise good run.

As an operations analyst, I want the pending authorization unload jobs to run against the database and handle their output files predictably, so that unload files are opened, closed, kept or removed consistently with how the job ended.

Draft: the function is not signed off yet. Risk medium; touches card_data. rec/No domain/CardAuthorizationandFraudManagement#21

Requirements

CodeClassRequirementCriteria
REQ-N-004design noteThe system shall run the unload program DBUNLDGS as an IMS DL/I batch step under program specification DLIGSAMP, reading the pending authorization database and its index in shared mode.AC-01
REQ-N-005design noteThe system shall have the unload job UNLDGSAM write to the existing root-segment file (AWS.M2.CARDDEMO.PAUTDB.ROOT.GSAM) and child-segment file (AWS.M2.CARDDEMO.PAUTDB.CHILD.GSAM) with exclusive use and keep both files whether the step ends normally or fails.AC-02, AC-03
REQ-N-006design noteThe system shall run the authorization unload program PAUDBUNL as an IMS batch job using program specification block PAUTBUNL, reading the pending authorization database and its index with shared access, and writing root records to the first unload file and child records to the second.AC-04
REQ-F-180design noteThe system shall create the root authorization unload file (AWS.M2.CARDDEMO.PAUTDB.ROOT.FILEO) of 100-byte records, cataloging it when the unload step ends normally and deleting it when the step fails.AC-05, AC-06
REQ-F-181design noteThe system shall create the child authorization unload file (AWS.M2.CARDDEMO.PAUTDB.CHILD.FILEO) of 206-byte records, cataloging it when the unload step ends normally and deleting it when the step fails.AC-07, AC-08
REQ-F-182error handlingIf either unload file fails to open with a status other than blank or '00', then the system shall display 'ERROR IN OPENING OPFILE1:' or 'ERROR IN OPENING OPFILE2:' with the status, display 'IMSUNLOD ABENDING ...', and end with return code 16.AC-09
REQ-F-183error handlingIf closing either unload file returns a status other than blank or '00', then the system shall display 'ERROR IN CLOSING 1ST FILE:' or 'ERROR IN CLOSING 2ND FILE:' with the status and still end normally, without changing the return code.AC-10

Business rules

RuleClassText, worked examples and evidence
Run authorization database batch program
rec/aws:No domain/CardAuthorizationandFraudManagement/id-750bebea8d/1
design note
technical, medium
THE pending authorization unload job (UNLDGSAM) SHALL run the unload program DBUNLDGS as an IMS DL/I batch step under program specification DLIGSAMP (parameter 'DLI,DBUNLDGS,DLIGSAMP,,,,,,,,,,,N'), reading the pending authorization database (DDPAUTP0) and its index (DDPAUTX0) in shared mode.
  • job submitted: UNLDGSAM; step parameter: 'DLI,DBUNLDGS,DLIGSAMP,,,,,,,,,,,N' → IMS runs DBUNLDGS in DL/I batch mode with PSB DLIGSAMP, sharing the pending authorization database and index with other users.
app/app-authorization-ims-db2-mq/jcl/UNLDGSAM.JCL:26-27, app/app-authorization-ims-db2-mq/jcl/UNLDGSAM.JCL:36-43, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:159-165, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:300-332
Run authorization database batch program
rec/aws:No domain/CardAuthorizationandFraudManagement/id-750bebea8d/2
design note
technical, medium
THE pending authorization unload job SHALL write to the existing root-segment file (PASFILOP, AWS.M2.CARDDEMO.PAUTDB.ROOT.GSAM) and child-segment file (PADFILOP, AWS.M2.CARDDEMO.PAUTDB.CHILD.GSAM) with exclusive use, and SHALL keep both files whether the step ends normally or fails.
  • step outcome: abends → Both the root and child GSAM files are kept (DISP=(OLD,KEEP,KEEP)), not deleted.
  • step outcome: ends normally → Both files are kept, holding the unloaded parent and child segments.
app/app-authorization-ims-db2-mq/jcl/UNLDGSAM.JCL:26-27, app/app-authorization-ims-db2-mq/jcl/UNLDGSAM.JCL:36-43, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:159-165, app/app-authorization-ims-db2-mq/cbl/DBUNLDGS.CBL:300-332
Unload pending authorization database in batch
rec/aws:No domain/CardAuthorizationandFraudManagement/id-f9884078b8/1
design note
technical, medium
THE Pending Authorization Database Unload SHALL run the authorization unload program (PAUDBUNL) as an IMS batch job using program specification block PAUTBUNL, reading the pending authorization database and its index with shared access, and writing root records to the first unload file and child records to the second.
  • job: UNLDPADB submitted → PAUDBUNL runs under DFSRRC00 with parameter 'DLI,PAUDBUNL,PAUTBUNL,,,,,,,,,,,N' and reads OEM.IMS.IMSP.PAUTHDB and OEM.IMS.IMSP.PAUTHDBX.
app/app-authorization-ims-db2-mq/jcl/UNLDPADB.JCL:38-59, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:26-32, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:153-158
Create the root authorization unload file
rec/aws:No domain/CardAuthorizationandFraudManagement/id-e90134a92f/1
design note
technical, medium
THE Pending Authorization Database Unload SHALL create the root authorization unload file (AWS.M2.CARDDEMO.PAUTDB.ROOT.FILEO) of 100-byte records, cataloging it when the unload step ends normally and deleting it when the step fails.
  • unload step result: ends normally → AWS.M2.CARDDEMO.PAUTDB.ROOT.FILEO is cataloged with 100-byte records.
  • unload step result: abends → AWS.M2.CARDDEMO.PAUTDB.ROOT.FILEO is deleted.
app/app-authorization-ims-db2-mq/jcl/UNLDPADB.JCL:48-51, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:43-44
Create the child authorization unload file
rec/aws:No domain/CardAuthorizationandFraudManagement/id-c12ff18051/1
design note
technical, medium
THE Pending Authorization Database Unload SHALL create the child authorization unload file (AWS.M2.CARDDEMO.PAUTDB.CHILD.FILEO) of 206-byte records, cataloging it when the unload step ends normally and deleting it when the step fails.
  • unload step result: ends normally → AWS.M2.CARDDEMO.PAUTDB.CHILD.FILEO is cataloged with 206-byte records.
  • unload step result: abends → AWS.M2.CARDDEMO.PAUTDB.CHILD.FILEO is deleted.
app/app-authorization-ims-db2-mq/jcl/UNLDPADB.JCL:53-56, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:45-47
Unload aborts on any unexpected database or file-open status
rec/claude:claude/RULE-200/1
error handling
error_handling, medium
WHEN either unload file (OUTFIL1 or OUTFIL2) fails to open with a status other than blank or '00', THE Pending Authorization Unload SHALL display 'ERROR IN OPENING OPFILE1:' or 'ERROR IN OPENING OPFILE2:' with the status, display 'IMSUNLOD ABENDING ...', and end with return code 16.
app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:186-200, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:239-246, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:279-283, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:289-304, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:308-314
Unload aborts on any unexpected database or file-open status
rec/claude:claude/RULE-200/4
error handling
error_handling, medium
WHEN closing either unload file returns a status other than blank or '00', THE Pending Authorization Unload SHALL display 'ERROR IN CLOSING 1ST FILE:' or 'ERROR IN CLOSING 2ND FILE:' with the status and still end normally, without changing the return code.
app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:186-200, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:239-246, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:279-283, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:289-304, app/app-authorization-ims-db2-mq/cbl/PAUDBUNL.CBL:308-314

Acceptance criteria

IDCriterionChecks
AC-01Given job submitted: UNLDGSAM; step parameter: 'DLI,DBUNLDGS,DLIGSAMP,,,,,,,,,,,N'
When pending authorization unload job (UNLDGSAM) runs
Then IMS runs DBUNLDGS in DL/I batch mode with PSB DLIGSAMP, sharing the pending authorization database and index with other users.
REQ-N-004
Run authorization database batch program
worked example 1 of the rule
AC-02Given step outcome: abends
When pending authorization unload job runs
Then Both the root and child GSAM files are kept (DISP=(OLD,KEEP,KEEP)), not deleted.
REQ-N-005
Run authorization database batch program
worked example 1 of the rule
AC-03Given step outcome: ends normally
When pending authorization unload job runs
Then Both files are kept, holding the unloaded parent and child segments.
REQ-N-005
Run authorization database batch program
worked example 2 of the rule
AC-04Given job: UNLDPADB submitted
When Pending Authorization Database Unload runs
Then PAUDBUNL runs under DFSRRC00 with parameter 'DLI,PAUDBUNL,PAUTBUNL,,,,,,,,,,,N' and reads OEM.IMS.IMSP.PAUTHDB and OEM.IMS.IMSP.PAUTHDBX.
REQ-N-006
Unload pending authorization database in batch
worked example 1 of the rule
AC-05Given unload step result: ends normally
When Pending Authorization Database Unload runs
Then AWS.M2.CARDDEMO.PAUTDB.ROOT.FILEO is cataloged with 100-byte records.
REQ-F-180
Create the root authorization unload file
worked example 1 of the rule
AC-06Given unload step result: abends
When Pending Authorization Database Unload runs
Then AWS.M2.CARDDEMO.PAUTDB.ROOT.FILEO is deleted.
REQ-F-180
Create the root authorization unload file
worked example 2 of the rule
AC-07Given unload step result: ends normally
When Pending Authorization Database Unload runs
Then AWS.M2.CARDDEMO.PAUTDB.CHILD.FILEO is cataloged with 206-byte records.
REQ-F-181
Create the child authorization unload file
worked example 1 of the rule
AC-08Given unload step result: abends
When Pending Authorization Database Unload runs
Then AWS.M2.CARDDEMO.PAUTDB.CHILD.FILEO is deleted.
REQ-F-181
Create the child authorization unload file
worked example 2 of the rule
AC-09Given the second unload file cannot be opened and the open returns status '37'
When the unload job starts
Then 'ERROR IN OPENING OPFILE2:' is displayed with 37, 'IMSUNLOD ABENDING ...' is displayed, the job ends with return code 16 and no records are read from the database; the same applies to the first file with 'ERROR IN OPENING OPFILE1:'
REQ-F-182
Unload aborts on any unexpected database or file-open status
written from the rule
AC-10Given the unload has read every summary and detail without error, and closing the first unload file returns status '30'
When the job closes its files
Then 'ERROR IN CLOSING 1ST FILE:' is displayed with 30, and the job still ends normally with its return code unchanged; the same applies to the second file with 'ERROR IN CLOSING 2ND FILE:'
REQ-F-183
Unload aborts on any unexpected database or file-open status
written from the rule

Screens

None: scheduled job.

Data contracts

CIPAUDTY (working storage; PAUDBUNL), CIPAUSMY (working storage; PAUDBUNL), IMSFUNCS (working storage; PAUDBUNL), PAUTBPCB (working storage; PAUDBUNL)

Decision tables

Unload file disposition by step outcome

Unload jobOutput fileStep outcomeFile dispositionRule
UNLDGSAMroot-segment and child-segment GSAM filesends normallyKeep both filesrec/aws:No domain/CardAuthorizationandFraudManagement/id-750bebea8d/2
UNLDGSAMroot-segment and child-segment GSAM filesfailsKeep both filesrec/aws:No domain/CardAuthorizationandFraudManagement/id-750bebea8d/2
UNLDPADBroot unload file (ROOT.FILEO)ends normallyCatalog the filerec/aws:No domain/CardAuthorizationandFraudManagement/id-e90134a92f/1
UNLDPADBroot unload file (ROOT.FILEO)failsDelete the filerec/aws:No domain/CardAuthorizationandFraudManagement/id-e90134a92f/1
UNLDPADBchild unload file (CHILD.FILEO)ends normallyCatalog the filerec/aws:No domain/CardAuthorizationandFraudManagement/id-c12ff18051/1
UNLDPADBchild unload file (CHILD.FILEO)failsDelete the filerec/aws:No domain/CardAuthorizationandFraudManagement/id-c12ff18051/1

Open questions

  • SME-245 In the pending authorization unload, is the 'summary output file' the authorization root file and the 'detail output file' the authorization child file? (Card authorization data owner)
  • SME-246 In the pending authorization unload, which read results mean 'no more summaries' or 'no more details', and which other read results must stop the run as a failure? (Card authorization data owner)
  • SME-247 When the pending authorization unload fails it ends with code 16. Does the batch schedule depend on that code, so the new system must keep it? (Batch operations)
  • SME-248 Authorization summaries with a non-numeric account number are skipped silently during the unload. Should the new unload report or log them? (Card authorization data owner)
  • SME-302 When the pending-authorization unload reads the authorization details under a summary, under what conditions is each detail record written to the child (detail) unload file? (Authorization domain team)
  • SME-303 Summaries whose account number is not numeric are skipped, along with all their details, and nothing reports or counts them. Should the new unload report or reconcile the summaries it skips? (Authorization domain team)
  • SME-304 Should the new extract keep the exact fixed record layouts of the root (summary) and child (detail) unload files, so downstream consumers keep working? (Data migration team)
  • SME-305 What goes into the root (summary) unload file, and when is a summary record written to it? For example, is a summary with a non-numeric account number still written? (Authorization domain team)
  • SME-306 What condition ends the processing of a summary's authorization details? For example, which retrieval status marks the end of the details? (Authorization domain team)
  • SME-307 When reading a summary or detail returns an error status (anything other than success or end of data), should the run fail, skip the record, or report it? (Batch operations team)
  • SME-308 Are the 'second extract file' for detail records and the 'authorization child unload file' the same output? (Batch operations team)
  • SME-309 The legacy unload job runs with a fixed database batch configuration ('DLI,PAUDBUNL,PAUTBUNL,,,,,,,,,,,N'). Does any part of it have business meaning that the new unload must keep? (Platform migration team)
  • DEF-167 Is this intended? On a database read failure the program ends with return code 16 without closing the unload files. The output files can be left partly written, and nothing undoes the work already done. (Subject-matter expert)

Design notes

  • A scheduled batch job (legacy DBUNLDGS) that reads the whole pending authorization store, summaries with their details, with read-only shared access so online users are not locked out. Run authorization database batch program
  • This job writes to two standing output files, root (summary) and child (detail), that already exist. Only this job may write to them while it runs, and both are kept whether the job succeeds or fails, so downstream users must check the job's outcome before trusting their contents. Run authorization database batch program
  • A second scheduled batch job (legacy PAUDBUNL) that reads the pending authorization store with shared read-only access and writes summaries to the first output file and details to the second. Unload pending authorization database in batch
  • The root unload file, of fixed 100-byte records, is created new on each run and published only when the job succeeds; on failure it is deleted (write under a temporary name and rename on success). Create the root authorization unload file
  • The child unload file, of fixed 206-byte records, is created new on each run and published only when the job succeeds; on failure it is deleted, the same as the root file. Create the child authorization unload file

Programs not in a business function

Unassigned-Programs

1. Build screen map copybooksdraft · scheduled job · 2 requirements · 2 rules · 2 criteria

Turns each screen definition into a shared field-layout definition that the programs serving that screen use, and keeps a build listing for it. It is a developer build step, not a business function. It must always regenerate the layout from the current screen source, so a program and its screen never disagree on fields.

As a CardDemo developer, I want each screen map's symbolic map generated into the copybook library, so that programs can use the screen's field layout.

Draft: the function is not signed off yet. Risk low. rec/Unassigned-Programs#1

Requirements

CodeClassRequirementCriteria
REQ-F-001design noteWhen a screen map is built, the system shall, in its symbolic-map step (DSECT), assemble the staged copy of the map source (&&TEMPM) with the parameter 'SYSPARM(DSECT),DECK,NOLOAD' using the CICS, SYS1.MACLIB and CEE.SCEEMAC macro libraries and produce no object module.AC-01
REQ-F-002design noteThe system shall write the generated symbolic map as fixed-length 80-byte records, with exclusive access, to the map's member in the copybook library (&CPYBKS(&MAPNAME)) and write the assembler listing to the map's member in the listing library (&LISTING(&MAPNAME)).AC-02

Business rules

RuleClassText, worked examples and evidence
Generate the symbolic map copybook
rec/aws:Unassigned-Programs/id-8ac0ca28b4/1
design note
technical, medium
WHEN a screen map is built, THE Screen Map Build SHALL, in its symbolic-map step (DSECT), assemble the staged copy of the map source (&&TEMPM) with the parameter 'SYSPARM(DSECT),DECK,NOLOAD' using the CICS, SYS1.MACLIB and CEE.SCEEMAC macro libraries, and produce no object module.
  • MAPNAME: CICSMAP; HLQ: AWS.M2 → The map source AWS.M2.CARDDEMO.BMS(CICSMAP), staged in the temporary copy, is assembled in DSECT mode and no load module is produced by this step.
samples/proc/BUILDBMS.prc:23-29, samples/proc/BUILDBMS.prc:36-43, samples/proc/BUILDBMS.prc:78-92
Generate the symbolic map copybook
rec/aws:Unassigned-Programs/id-8ac0ca28b4/2
design note
technical, medium
THE Screen Map Build SHALL write the generated symbolic map as fixed-length 80-byte records, with exclusive access, to the map's member in the copybook library (&CPYBKS(&MAPNAME)), and write the assembler listing to the map's member in the listing library (&LISTING(&MAPNAME)).
  • MAPNAME: CICSMAP; HLQ: AWS.M2 → The copybook AWS.M2.CARDDEMO.CPY(CICSMAP) is replaced with 80-byte records and the listing goes to AWS.M2.CARDDEMO.LST(CICSMAP).
samples/proc/BUILDBMS.prc:23-29, samples/proc/BUILDBMS.prc:36-43, samples/proc/BUILDBMS.prc:78-92

Acceptance criteria

IDCriterionChecks
AC-01Given MAPNAME: CICSMAP; HLQ: AWS.M2
When a screen map is built
Then The map source AWS.M2.CARDDEMO.BMS(CICSMAP), staged in the temporary copy, is assembled in DSECT mode and no load module is produced by this step.
REQ-F-001
Generate the symbolic map copybook
worked example 1 of the rule
AC-02Given MAPNAME: CICSMAP; HLQ: AWS.M2
When Screen Map Build runs
Then The copybook AWS.M2.CARDDEMO.CPY(CICSMAP) is replaced with 80-byte records and the listing goes to AWS.M2.CARDDEMO.LST(CICSMAP).
REQ-F-002
Generate the symbolic map copybook
worked example 1 of the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

None.

Design notes

  • A build-pipeline step that generates the screen's field-layout (view model / DTO) definition from the screen source. It produces only that definition, not an executable artefact. In the new stack this belongs in the UI build or code generation, not in a runtime job. Generate the symbolic map copybook
  • Write the generated layout to the shared source location under the screen's name, replacing the previous version atomically so nothing else writes it at the same time. Keep the build log or listing as a build artefact named after the screen. Generate the symbolic map copybook
2. List card master recordsdraft · scheduled job · 7 requirements · 9 rules · 10 criteria

A read-only batch listing of every card on the card master, in card-number order. Operations staff use it to review card records. It must never change a card, must print each card exactly once with nothing after the last one, and must stop with a clear error rather than produce a partial listing when the file cannot be opened, read or closed.

As an operations user, I want a listing of every card on the card master file, so that I can review card records without changing them.

Draft: the function is not signed off yet. Risk medium; touches card_data, reporting_only. rec/Unassigned-Programs#2

Requirements

CodeClassRequirementCriteria
REQ-F-003design noteWhen the READCARD job runs, the system shall run the card master reader program (CBACT02C) with shared read access to the card master file AWS.M2.CARDDEMO.CARDDATA.VSAM.KSDS (CARDFILE), sending its messages and printed output to the job output listing (SYSOUT, SYSPRINT).AC-01
REQ-F-004formattingWhen the card listing job (READCARD) runs, the system shall print 'START OF EXECUTION OF PROGRAM CBACT02C', then each card record from the card master file once, in ascending card-number order, then 'END OF EXECUTION OF PROGRAM CBACT02C', opening the file for reading only so that no card is changed.AC-02, AC-03, AC-04
REQ-F-005design noteWhen a read of the card master file returns status '00', the system shall treat the read as successful and print the record.AC-05
REQ-F-006design noteWhen a read of the card master file returns status '10' (end of file), the system shall stop reading, print nothing for that read and end the listing normally, so that no blank or repeated record appears after the last card.AC-06, AC-07
REQ-F-007error handlingIf a read of the card master file returns any status other than '00' or '10', then the system shall print 'ERROR READING CARDFILE', 'FILE STATUS IS: NNNN' followed by the 4-digit status, and 'ABENDING PROGRAM', then abend with code 999.AC-08
REQ-F-008error handlingIf the card master file cannot be opened (any file status other than '00', for example '35' when the file is missing), then the system shall print 'ERROR OPENING CARDFILE', 'FILE STATUS IS: NNNN' followed by the 4-digit status, and 'ABENDING PROGRAM', then abend with code 999.AC-09
REQ-F-009error handlingIf closing the card master file returns any file status other than '00', then the system shall print 'ERROR CLOSING CARDFILE', 'FILE STATUS IS: NNNN' followed by the 4-digit status, and 'ABENDING PROGRAM', then abend with code 999.AC-10

Business rules

RuleClassText, worked examples and evidence
Run the card master reader
rec/aws:Unassigned-Programs/id-d6bb5bde45/1
design note
technical, medium
WHEN the READCARD job runs, THE card master read run SHALL run the card master reader program (CBACT02C) with shared read access to the card master file AWS.M2.CARDDEMO.CARDDATA.VSAM.KSDS (CARDFILE), sending its messages and printed output to the job output listing (SYSOUT, SYSPRINT).
  • job submitted: READCARD; card master file: AWS.M2.CARDDEMO.CARDDATA.VSAM.KSDS → Step STEP05 runs CBACT02C, reading the card master file in shared mode, and its output appears in the job listing.
app/jcl/READCARD.jcl:1-2, app/jcl/READCARD.jcl:20-28
List every card record until exhausted
rec/group:claude/RULE-238/1
formatting
display, high
WHEN the card listing job (READCARD) runs, THE Card Listing program SHALL print 'START OF EXECUTION OF PROGRAM CBACT02C', then each card record from the card master file once, in ascending card-number order, then 'END OF EXECUTION OF PROGRAM CBACT02C'. It opens the file for reading only, so no card is changed.
  • card master file: 3 cards: 4000000000000001, 4000000000000002, 4000000000000003 → 'START OF EXECUTION OF PROGRAM CBACT02C', the three card records in that order, then 'END OF EXECUTION OF PROGRAM CBACT02C'; the file is unchanged
app/cbl/CBACT02C.cbl:28-33, app/cbl/CBACT02C.cbl:70-87, app/cbl/CBACT02C.cbl:92-116, app/cbl/CBACT02C.cbl:118-120
Each record is printed twice in the cross-reference and customer dumps
rec/group:claude/RULE-239/3
historical artifact
leftover, high
THE Customer Listing (CBCUS01C) SHALL likewise print each customer record twice, while the Card Listing (CBACT02C) prints each card record once because its second print is commented out.
  • customer records: 5 → The customer listing has 10 record lines.
  • card records: 5 → The card listing has 5 record lines.
app/cbl/CBACT03C.cbl:74-81, app/cbl/CBACT03C.cbl:92-96, app/cbl/CBACT03C.cbl:98-108, app/cbl/CBCUS01C.cbl:78, app/cbl/CBCUS01C.cbl:96, app/cbl/CBACT02C.cbl:78
Read outcome classification: success, end of file, or fatal error
rec/claude:claude/RULE-069/1
design note
technical, medium
WHEN a read of the card master file returns status '00', THE Card Listing program SHALL treat the read as successful and print the record.
  • read file status: 00 → The card record is printed
app/cbl/CBACT02C.cbl:92-116, app/cbl/CBACT02C.cbl:154-158, app/cbl/CBACT02C.cbl:161-174
Read outcome classification: success, end of file, or fatal error
rec/claude:claude/RULE-069/2
design note
technical, medium
WHEN a read of the card master file returns status '10' (end of file), THE Card Listing program SHALL end the listing normally.
  • read file status: 10 → The loop ends, the file is closed and 'END OF EXECUTION OF PROGRAM CBACT02C' is printed
app/cbl/CBACT02C.cbl:92-116, app/cbl/CBACT02C.cbl:154-158, app/cbl/CBACT02C.cbl:161-174
List every card record until exhausted
rec/group:claude/RULE-238/2
design note
technical, high
WHEN a read reaches the end of the card master file, THE Card Listing program SHALL stop reading and print nothing for that read, so no blank or repeated record appears after the last card.
  • card master file: empty → Only the start and end banners are printed
app/cbl/CBACT02C.cbl:28-33, app/cbl/CBACT02C.cbl:70-87, app/cbl/CBACT02C.cbl:92-116, app/cbl/CBACT02C.cbl:118-120
Read outcome classification: success, end of file, or fatal error
rec/claude:claude/RULE-069/3
error handling
error_handling, medium
WHEN a read of the card master file returns any status other than '00' or '10', THE Card Listing program SHALL print 'ERROR READING CARDFILE', 'FILE STATUS IS: NNNN' followed by the 4-digit status, and 'ABENDING PROGRAM', then abend with code 999.
app/cbl/CBACT02C.cbl:92-116, app/cbl/CBACT02C.cbl:154-158, app/cbl/CBACT02C.cbl:161-174
Open and close must succeed or the job abends
rec/claude:claude/RULE-068/1
error handling
error_handling, medium
WHEN the card master file cannot be opened (any file status other than '00', for example '35' when the file is missing), THE Card Listing program SHALL print 'ERROR OPENING CARDFILE', 'FILE STATUS IS: NNNN' followed by the 4-digit status, and 'ABENDING PROGRAM', then abend with code 999.
app/cbl/CBACT02C.cbl:118-152, app/cbl/CBACT02C.cbl:154-158, app/cbl/CBACT02C.cbl:161-174
Open and close must succeed or the job abends
rec/claude:claude/RULE-068/2
error handling
error_handling, medium
WHEN closing the card master file returns any file status other than '00', THE Card Listing program SHALL print 'ERROR CLOSING CARDFILE', 'FILE STATUS IS: NNNN' followed by the 4-digit status, and 'ABENDING PROGRAM', then abend with code 999.
app/cbl/CBACT02C.cbl:118-152, app/cbl/CBACT02C.cbl:154-158, app/cbl/CBACT02C.cbl:161-174

Acceptance criteria

IDCriterionChecks
AC-01Given job submitted: READCARD; card master file: AWS.M2.CARDDEMO.CARDDATA.VSAM.KSDS
When the READCARD job runs
Then Step STEP05 runs CBACT02C, reading the card master file in shared mode, and its output appears in the job listing.
REQ-F-003
Run the card master reader
worked example 1 of the rule
AC-02Given card master file: 3 cards: 4000000000000001, 4000000000000002, 4000000000000003
When the card listing job (READCARD) runs
Then 'START OF EXECUTION OF PROGRAM CBACT02C', the three card records in that order, then 'END OF EXECUTION OF PROGRAM CBACT02C'; the file is unchanged
REQ-F-004
List every card record until exhausted
worked example 1 of the rule
AC-03Given customer records: 5
When Customer Listing (CBCUS01C) runs
Then The customer listing has 10 record lines.
REQ-F-004
Each record is printed twice in the cross-reference and customer dumps
worked example 1 of the rule
AC-04Given card records: 5
When Customer Listing (CBCUS01C) runs
Then The card listing has 5 record lines.
REQ-F-004
Each record is printed twice in the cross-reference and customer dumps
worked example 2 of the rule
AC-05Given read file status: 00
When a read of the card master file returns status '00'
Then The card record is printed
REQ-F-005
Read outcome classification: success, end of file, or fatal error
worked example 1 of the rule
AC-06Given read file status: 10
When a read of the card master file returns status '10' (end of file)
Then The loop ends, the file is closed and 'END OF EXECUTION OF PROGRAM CBACT02C' is printed
REQ-F-006
Read outcome classification: success, end of file, or fatal error
worked example 1 of the rule
AC-07Given card master file: empty
When a read reaches the end of the card master file
Then Only the start and end banners are printed
REQ-F-006
List every card record until exhausted
worked example 1 of the rule
AC-08Given The card listing job has opened the card master and printed some cards
When A read of the card master returns status '23' (any status other than '00' or '10')
Then The job prints 'ERROR READING CARDFILE', then 'FILE STATUS IS: NNNN' followed by the 4-digit status, then 'ABENDING PROGRAM'. It ends abnormally with code 999 and prints no more cards.
REQ-F-007
Read outcome classification: success, end of file, or fatal error
written from the rule
AC-09Given The card master file is missing, so opening it returns status '35'
When The card listing job starts
Then The job prints 'ERROR OPENING CARDFILE', then 'FILE STATUS IS: NNNN' followed by the 4-digit status, then 'ABENDING PROGRAM'. It ends abnormally with code 999 and prints no card records.
REQ-F-008
Open and close must succeed or the job abends
written from the rule
AC-10Given The card listing job has printed every card and reached end of file
When Closing the card master returns a status other than '00'
Then The job prints 'ERROR CLOSING CARDFILE', then 'FILE STATUS IS: NNNN' followed by the 4-digit status, then 'ABENDING PROGRAM', and ends abnormally with code 999.
REQ-F-009
Open and close must succeed or the job abends
written from the rule

Screens

None: scheduled job.

Data contracts

CVACT02Y (file record; CBACT02C), CVACT03Y (file record; CBACT03C)

Decision tables

Card master read outcome

Card master read file statusCard Listing actionRule
'00'Treat read as successful and print the recordrec/claude:claude/RULE-069/1
'10' (end of file)Stop reading, print nothing for that read, end the listing normallyrec/claude:claude/RULE-069/2
any other statusPrint 'ERROR READING CARDFILE', file status and 'ABENDING PROGRAM', abend with code 999rec/claude:claude/RULE-069/3

Open questions

  • SME-010 The cross-reference and customer listings print every record twice. Does anything rely on that, or should each record be printed once? (Batch operations)
  • DEF-097 Is this intended? Each record is displayed twice, once in the read paragraph and once in the main loop; CBACT02C has the same read-paragraph display commented out, suggesting the duplicate is debug output left in by mistake. (Subject-matter expert)

Design notes

  • A scheduled or on-demand report job that reads the card store through a read-only connection, so it can run while online users are working. Its progress messages and the listing go to the job's log or report output. Run the card master reader
  • Each successful fetch of the next card in the ordered read is written to the report. The new application needs a sequential read of all cards, ordered by card number. Read outcome classification: success, end of file, or fatal error
  • When the cursor or stream runs out of cards, the job ends normally. End of data is the normal way to finish, not an error. Read outcome classification: success, end of file, or fatal error
  • Iterate until there are no more rows and write nothing for the empty fetch, so no blank or repeated line appears after the last card. List every card record until exhausted
3. List card cross-reference recordsdraft · scheduled job · 3 requirements · 3 rules · 3 criteria

A read-only batch listing of every card cross-reference record, showing which card belongs to which account and customer. Operations staff use it for review. It must never change the cross-reference. The legacy job prints each record twice, which the team must either keep or consciously drop.

As an operations user, I want a listing of every card cross-reference record, so that I can review which cards link to which accounts and customers without changing the master.

Draft: the function is not signed off yet. Risk medium; touches card_data, reporting_only. rec/Unassigned-Programs#3

Requirements

CodeClassRequirementCriteria
REQ-F-010design noteThe system shall run the program CBACT03C against the card cross-reference master (AWS.M2.CARDDEMO.CARDXREF.VSAM.KSDS) in shared read-only access, leaving the master unchanged and printing every cross-reference record to the job's output listing.AC-01
REQ-F-011formattingThe system shall read the card cross-reference file from start to end and print every record, stopping when the end of the file is reached.AC-02
REQ-F-012historical artifactThe system shall print each cross-reference record twice in a row, once when it is read and again in the main loop.AC-03

Business rules

RuleClassText, worked examples and evidence
Read the card cross-reference master
rec/aws:Unassigned-Programs/id-136b863c40/1
design note
technical, medium
THE Card Cross-Reference Master Read job SHALL run the program CBACT03C against the card cross-reference master (AWS.M2.CARDDEMO.CARDXREF.VSAM.KSDS) in shared read-only access, leaving the master unchanged and printing every cross-reference record to the job's output listing.
  • cross-reference master: 3 card cross-reference records → The job listing shows 'START OF EXECUTION OF PROGRAM CBACT03C', the 3 records, and 'END OF EXECUTION OF PROGRAM CBACT03C'; the master still holds the same 3 records.
app/jcl/READXREF.jcl:22-28, app/cbl/CBACT03C.cbl:70-86, app/cbl/CBACT03C.cbl:92-96
List all card cross-reference records
rec/group:claude/RULE-239/1
formatting
display, high
THE Card Cross-Reference Listing (CBACT03C) SHALL read the card cross-reference file from start to end and print every record, stopping when the end of the file is reached.
  • cross-reference records: 3 → All 3 records are printed, then 'END OF EXECUTION OF PROGRAM CBACT03C'.
app/cbl/CBACT03C.cbl:74-81, app/cbl/CBACT03C.cbl:92-96, app/cbl/CBACT03C.cbl:98-108, app/cbl/CBCUS01C.cbl:78, app/cbl/CBCUS01C.cbl:96, app/cbl/CBACT02C.cbl:78
Each record is printed twice in the cross-reference and customer dumps
rec/group:claude/RULE-239/2
historical artifact
leftover, high
THE Card Cross-Reference Listing SHALL print each cross-reference record twice in a row, once when it is read and again in the main loop.
  • cross-reference records: 2 → The output has 4 record lines, each record appearing twice in succession.
app/cbl/CBACT03C.cbl:74-81, app/cbl/CBACT03C.cbl:92-96, app/cbl/CBACT03C.cbl:98-108, app/cbl/CBCUS01C.cbl:78, app/cbl/CBCUS01C.cbl:96, app/cbl/CBACT02C.cbl:78

Acceptance criteria

IDCriterionChecks
AC-01Given cross-reference master: 3 card cross-reference records
When Card Cross-Reference Master Read job runs
Then The job listing shows 'START OF EXECUTION OF PROGRAM CBACT03C', the 3 records, and 'END OF EXECUTION OF PROGRAM CBACT03C'; the master still holds the same 3 records.
REQ-F-010
Read the card cross-reference master
worked example 1 of the rule
AC-02Given cross-reference records: 3
When Card Cross-Reference Listing (CBACT03C) runs
Then All 3 records are printed, then 'END OF EXECUTION OF PROGRAM CBACT03C'.
REQ-F-011
List all card cross-reference records
worked example 1 of the rule
AC-03Given cross-reference records: 2
When Card Cross-Reference Listing runs
Then The output has 4 record lines, each record appearing twice in succession.
REQ-F-012
Each record is printed twice in the cross-reference and customer dumps
worked example 1 of the rule

Screens

None: scheduled job.

Data contracts

CVACT03Y (file record; CBACT03C)

Decision tables

None.

Open questions

  • SME-010 The cross-reference and customer listings print every record twice. Does anything rely on that, or should each record be printed once? (Batch operations)
  • DEF-097 Is this intended? Each record is displayed twice, once in the read paragraph and once in the main loop; CBACT02C has the same read-paragraph display commented out, suggesting the duplicate is debug output left in by mistake. (Subject-matter expert)
  • DEF-141 Is this intended? CBACT03C prints each cross-reference record twice: once in the read routine on a successful read and again in the main loop, so the listing shows every record duplicated. (Subject-matter expert)

Design notes

  • A report job that reads the full card-to-account/customer link table through a read-only connection, from start to end, and writes every link to the job's report output. It changes nothing. Read the card cross-reference master
4. List customer recordsdraft · scheduled job · 2 requirements · 3 rules · 5 criteria

A batch listing of every customer on the customer master, from first to last. Operations staff use it to review customer records. It must list every customer and stop cleanly at the end of the file. The legacy job prints each customer twice, which the team must either keep or consciously drop.

As an operations user, I want a listing of every customer on the customer master file, so that I can review customer records.

Draft: the function is not signed off yet. Risk medium; touches personal_data, reporting_only. rec/Unassigned-Programs#4

Requirements

CodeClassRequirementCriteria
REQ-F-013formattingThe system shall read the customer master file from start to end and print each customer record to the job output, stopping when the end of the file is reached (file status '10').AC-01, AC-02
REQ-F-014formattingWhen a customer record is read successfully, the system shall print that record twice, once in the read routine (1000-CUSTFILE-GET-NEXT) and once in the main loop.AC-03, AC-04, AC-05

Business rules

RuleClassText, worked examples and evidence
List all customer records until end
rec/aws:Unassigned-Programs/id-0976efe77f/1
formatting
display, medium
THE Customer Listing SHALL read the customer master file from start to end and print each customer record to the job output, stopping when the end of the file is reached (file status '10').
  • Customer file: 3 customer records → All 3 customer records are printed to the job output and the run ends with 'END OF EXECUTION OF PROGRAM CBCUS01C'.
  • Customer file: empty → No customer record is printed; the first read returns end of file and the program ends.
app/cbl/CBCUS01C.cbl:70-87, app/cbl/CBCUS01C.cbl:92-116
List all customer records until end
rec/aws:Unassigned-Programs/id-0976efe77f/2
formatting
display, medium
WHEN a customer record is read successfully, THE Customer Listing SHALL print that record twice, once in the read routine (1000-CUSTFILE-GET-NEXT) and once in the main loop.
  • Customer file: 1 customer record for customer 000000001 → The record for customer 000000001 appears two times in the job output.
app/cbl/CBCUS01C.cbl:70-87, app/cbl/CBCUS01C.cbl:92-116
Each record is printed twice in the cross-reference and customer dumps
rec/group:claude/RULE-239/3
historical artifact
leftover, high
THE Customer Listing (CBCUS01C) SHALL likewise print each customer record twice, while the Card Listing (CBACT02C) prints each card record once because its second print is commented out.
  • customer records: 5 → The customer listing has 10 record lines.
  • card records: 5 → The card listing has 5 record lines.
app/cbl/CBACT03C.cbl:74-81, app/cbl/CBACT03C.cbl:92-96, app/cbl/CBACT03C.cbl:98-108, app/cbl/CBCUS01C.cbl:78, app/cbl/CBCUS01C.cbl:96, app/cbl/CBACT02C.cbl:78

Acceptance criteria

IDCriterionChecks
AC-01Given Customer file: 3 customer records
When Customer Listing runs
Then All 3 customer records are printed to the job output and the run ends with 'END OF EXECUTION OF PROGRAM CBCUS01C'.
REQ-F-013
List all customer records until end
worked example 1 of the rule
AC-02Given Customer file: empty
When Customer Listing runs
Then No customer record is printed; the first read returns end of file and the program ends.
REQ-F-013
List all customer records until end
worked example 2 of the rule
AC-03Given Customer file: 1 customer record for customer 000000001
When a customer record is read successfully
Then The record for customer 000000001 appears two times in the job output.
REQ-F-014
List all customer records until end
worked example 1 of the rule
AC-04Given customer records: 5
When Customer Listing (CBCUS01C) runs
Then The customer listing has 10 record lines.
REQ-F-014
Each record is printed twice in the cross-reference and customer dumps
worked example 1 of the rule
AC-05Given card records: 5
When Customer Listing (CBCUS01C) runs
Then The card listing has 5 record lines.
REQ-F-014
Each record is printed twice in the cross-reference and customer dumps
worked example 2 of the rule

Screens

None: scheduled job.

Data contracts

CVACT03Y (file record; CBACT03C), CVCUS01Y (file record; CBCUS01C)

Decision tables

None.

Open questions

  • SME-010 The cross-reference and customer listings print every record twice. Does anything rely on that, or should each record be printed once? (Batch operations)
  • DEF-097 Is this intended? Each record is displayed twice, once in the read paragraph and once in the main loop; CBACT02C has the same read-paragraph display commented out, suggesting the duplicate is debug output left in by mistake. (Subject-matter expert)
  • DEF-145 Is this intended? Each successfully read customer record is displayed twice: once inside 1000-CUSTFILE-GET-NEXT on status '00' and again in the main loop, doubling the listing. (Subject-matter expert)

Design notes

None.

5. Verify daily transaction cards and accountsdraft · service · 10 requirements · 10 rules · 11 criteria · 1 gap

A batch check of the day's transactions. For each one it looks up the card on the card cross-reference and then looks up the linked account, reporting cards and accounts that cannot be found. Operations staff use it to see bad transactions before posting. It must never quietly pass an unknown card, and it must stop the whole run at once if any file cannot be opened, read or closed.

As an operations user, I want each daily transaction's card checked against the card cross-reference and its account looked up, so that transactions with unknown cards or accounts are reported.

Draft: the function is not signed off yet. Risk medium; touches card_data, personal_data. rec/Unassigned-Programs#5

Requirements

CodeClassRequirementCriteria
REQ-F-015design noteThe system shall read the daily transaction file one record at a time from the start, show each record read, and verify its card, stopping when the file reports end of file (status '10').AC-01
REQ-F-016error handlingIf reading the daily transaction file returns a status other than '00' or '10', then the system shall show 'ERROR READING DAILY TRANSACTION FILE' and the file status ('FILE STATUS IS: NNNN' followed by the code), then abend with code 999.AC-06
REQ-F-017business ruleWhen a daily transaction has been read, the system shall look up the transaction's card number, by exact match, in the card cross-reference file to find the linked account and customer.AC-02
REQ-F-018formattingWhen the card number is found in the cross-reference, the system shall show 'SUCCESSFUL READ OF XREF' with the card number, account ID and customer ID, and then look up the linked account on the account master.AC-07
REQ-F-019business ruleIf the card number is not in the cross-reference, then the system shall show 'INVALID CARD NUMBER FOR XREF' and 'CARD NUMBER <card> COULD NOT BE VERIFIED. SKIPPING TRANSACTION ID-<transaction ID>', and shall not look up any account for that transaction.AC-08
REQ-F-020business ruleWhile the transaction card was found in the card cross-reference, when the account lookup for the cross-referenced account id in the account store fails (not found), the system shall display 'ACCOUNT <account id> NOT FOUND'.AC-03
REQ-F-021error handlingIf any of the six files fails to open (status not '00'), then the system shall show the open error for that file ('ERROR OPENING DAILY TRANSACTION FILE', 'ERROR OPENING CUSTOMER FILE', 'ERROR OPENING CROSS REF FILE', 'ERROR OPENING CARD FILE', 'ERROR OPENING ACCOUNT FILE' or 'ERROR OPENING TRANSACTION FILE') and the file status, then abend with code 999 before processing any transaction.AC-09
REQ-F-022error handlingIf any file fails to close at the end of the run (status not '00'), then the system shall show the close error for that file and its file status, then abend with code 999.AC-04
REQ-F-023historical artifactThe system shall open the customer, card and transaction files at start and close them at end even though it never reads or writes them, so that a missing customer, card or transaction file still stops the job.AC-05
REQ-F-024formattingWhen a file status is not numeric or starts with '9', the system shall show it as 'FILE STATUS IS: NNNN' followed by the first character and the binary value of the second character as three digits, and otherwise shall show 'FILE STATUS IS: NNNN00' followed by the two-digit status.AC-10, AC-11

Business rules

RuleClassText, worked examples and evidence
Process each daily transaction card
rec/group:claude/RULE-164/1
design note
technical, medium
THE daily transaction verification batch SHALL read the daily transaction file one record at a time from the start, show each record read, and verify its card, stopping when the file reports end of file (status '10').
  • Daily transaction file: 3 records → Each of the 3 records is shown and its card looked up; the 4th read returns status '10' and the loop ends, after which the files are closed and 'END OF EXECUTION OF PROGRAM CBTRN01C' is shown.
app/cbl/CBTRN01C.cbl:155-197, app/cbl/CBTRN01C.cbl:202-225, app/cbl/CBTRN01C.cbl:469-489
Daily transaction file is processed sequentially until end-of-file; any other read error stops the job
rec/group:claude/RULE-164/2
error handling
error_handling, medium
WHEN reading the daily transaction file returns a status other than '00' or '10', THE daily transaction verification batch SHALL show 'ERROR READING DAILY TRANSACTION FILE' and the file status ('FILE STATUS IS: NNNN' followed by the code), then abend with code 999.
app/cbl/CBTRN01C.cbl:155-197, app/cbl/CBTRN01C.cbl:202-225, app/cbl/CBTRN01C.cbl:469-489
Resolve transaction card to account
rec/group:claude/RULE-079/1
business rule
validation, medium
WHEN a daily transaction has been read, THE daily transaction verification batch SHALL look up the transaction's card number, by exact match, in the card cross-reference file to find the linked account and customer.
  • Transaction ID: T000000000000001; Card number: 4111111111111111 → The batch looks up card 4111111111111111 in the card cross-reference file.
app/cbl/CBTRN01C.cbl:164-186, app/cbl/CBTRN01C.cbl:227-239, app/cpy/CVACT03Y.cpy:4-7, app/cpy/CVTRA06Y.cpy:4-15
Resolve transaction card to account
rec/group:claude/RULE-079/2
formatting
display, medium
WHEN the card number is found in the cross-reference, THE daily transaction verification batch SHALL show 'SUCCESSFUL READ OF XREF' with the card number, account ID and customer ID, and then look up the linked account on the account master.
app/cbl/CBTRN01C.cbl:164-186, app/cbl/CBTRN01C.cbl:227-239, app/cpy/CVACT03Y.cpy:4-7, app/cpy/CVTRA06Y.cpy:4-15
Resolve transaction card to account
rec/group:claude/RULE-079/3
business rule
validation, medium
WHEN the card number is not in the cross-reference, THE daily transaction verification batch SHALL show 'INVALID CARD NUMBER FOR XREF' and 'CARD NUMBER <card> COULD NOT BE VERIFIED. SKIPPING TRANSACTION ID-<transaction ID>', and SHALL not look up any account for that transaction (read status (WS-XREF-READ-STATUS) set to 4).
app/cbl/CBTRN01C.cbl:164-186, app/cbl/CBTRN01C.cbl:227-239, app/cpy/CVACT03Y.cpy:4-7, app/cpy/CVTRA06Y.cpy:4-15
Report account not found
rec/agreed:Unassigned-Programs/id-179993271a/1
business rule
validation, medium
WHILE the transaction card was found in the card cross-reference (`WS-XREF-READ-STATUS` = 0), WHEN the account lookup for the cross-referenced account id fails (account read status `WS-ACCT-READ-STATUS` is not 0, set to 4 when not found), THE Account Verification SHALL look up the account (`ACCT-ID`) in the account store (`ACCOUNT-FILE`) and display 'ACCOUNT <account id> NOT FOUND'
  • Transaction card number: 4111111111111111 (found in cross-reference); Cross-referenced account id: 00000000042 (in account file) → The job log shows 'SUCCESSFUL READ OF ACCOUNT FILE' and no not-found message
app/cbl/CBTRN01C.cbl:174-179,241-245,247,250, app/cbl/CBTRN01C.cbl:173-179
Any master-file open or close failure stops the batch (fail-fast)
rec/claude:claude/RULE-242/1
error handling
error_handling, medium
WHEN any of the six files fails to open (status not '00'), THE daily transaction verification batch SHALL show the open error for that file ('ERROR OPENING DAILY TRANSACTION FILE', 'ERROR OPENING CUSTOMER FILE', 'ERROR OPENING CROSS REF FILE', 'ERROR OPENING CARD FILE', 'ERROR OPENING ACCOUNT FILE' or 'ERROR OPENING TRANSACTION FILE') and the file status, then abend with code 999 before processing any transaction.
app/cbl/CBTRN01C.cbl:155-197, app/cbl/CBTRN01C.cbl:252-359, app/cbl/CBTRN01C.cbl:361-467, app/cbl/CBTRN01C.cbl:469-489
Any master-file open or close failure stops the batch (fail-fast)
rec/claude:claude/RULE-242/2
error handling
error_handling, medium
WHEN any file fails to close at the end of the run (status not '00'), THE daily transaction verification batch SHALL show the close error for that file and its file status, then abend with code 999.
  • Cross-reference file close status: '92' → The log shows 'ERROR CLOSING CROSS REF FILE' and the file status, then 'ABENDING PROGRAM'; the job abends with code 999.
app/cbl/CBTRN01C.cbl:155-197, app/cbl/CBTRN01C.cbl:252-359, app/cbl/CBTRN01C.cbl:361-467, app/cbl/CBTRN01C.cbl:469-489
Any master-file open or close failure stops the batch (fail-fast)
rec/claude:claude/RULE-242/4
historical artifact
leftover, medium
THE daily transaction verification batch SHALL open the customer, card and transaction files at start and close them at end even though it never reads or writes them, so a missing customer, card or transaction file still stops the job.
  • Card file: not available (open status '35') → The log shows 'ERROR OPENING CARD FILE' and the job abends with code 999, although no card record would have been used.
app/cbl/CBTRN01C.cbl:155-197, app/cbl/CBTRN01C.cbl:252-359, app/cbl/CBTRN01C.cbl:361-467, app/cbl/CBTRN01C.cbl:469-489
Any master-file open or close failure stops the batch (fail-fast)
rec/claude:claude/RULE-242/3
formatting
display, medium
WHEN a file status is not numeric or starts with '9', THE daily transaction verification batch SHALL show it as 'FILE STATUS IS: NNNN' followed by the first character and the binary value of the second character as three digits; otherwise it SHALL show 'FILE STATUS IS: NNNN00' followed by the two-digit status.
app/cbl/CBTRN01C.cbl:155-197, app/cbl/CBTRN01C.cbl:252-359, app/cbl/CBTRN01C.cbl:361-467, app/cbl/CBTRN01C.cbl:469-489

Acceptance criteria

IDCriterionChecks
AC-01Given Daily transaction file: 3 records
When daily transaction verification batch runs
Then Each of the 3 records is shown and its card looked up; the 4th read returns status '10' and the loop ends, after which the files are closed and 'END OF EXECUTION OF PROGRAM CBTRN01C' is shown.
REQ-F-015
Process each daily transaction card
worked example 1 of the rule
AC-02Given Transaction ID: T000000000000001; Card number: 4111111111111111
When a daily transaction has been read
Then The batch looks up card 4111111111111111 in the card cross-reference file.
REQ-F-017
Resolve transaction card to account
worked example 1 of the rule
AC-03Given Transaction card number: 4111111111111111 (found in cross-reference); Cross-referenced account id: 00000000042 (in account file)
When the transaction card was found in the card cross-reference (`WS-XREF-READ-STATUS` = 0), WHEN the account lookup for the cross-referenced account id fails (account read status `WS-ACCT-READ-STATUS` is not 0, set to 4 when not found)
Then The job log shows 'SUCCESSFUL READ OF ACCOUNT FILE' and no not-found message
REQ-F-020
Report account not found
worked example 1 of the rule
AC-04Given Cross-reference file close status: '92'
When any file fails to close at the end of the run (status not '00')
Then The log shows 'ERROR CLOSING CROSS REF FILE' and the file status, then 'ABENDING PROGRAM'; the job abends with code 999.
REQ-F-022
Any master-file open or close failure stops the batch (fail-fast)
worked example 1 of the rule
AC-05Given Card file: not available (open status '35')
When daily transaction verification batch runs
Then The log shows 'ERROR OPENING CARD FILE' and the job abends with code 999, although no card record would have been used.
REQ-F-023
Any master-file open or close failure stops the batch (fail-fast)
worked example 1 of the rule
AC-06Given The verification run is reading the daily transaction file
When A read returns a status other than '00' or '10'
Then The run shows 'ERROR READING DAILY TRANSACTION FILE' and 'FILE STATUS IS: NNNN' followed by the status code, ends abnormally with code 999, and verifies no more transactions.
REQ-F-016
Daily transaction file is processed sequentially until end-of-file; any other read error stops the job
written from the rule
AC-07Given A daily transaction whose card number exists in the card cross-reference, linked to an account ID and a customer ID
When The transaction is verified
Then The run shows 'SUCCESSFUL READ OF XREF' with that card number, account ID and customer ID, and then looks up that account ID on the account master.
REQ-F-018
Resolve transaction card to account
written from the rule
AC-08Given A daily transaction with ID T1 whose card number C1 is not in the card cross-reference
When The transaction is verified
Then The run shows 'INVALID CARD NUMBER FOR XREF' and 'CARD NUMBER C1 COULD NOT BE VERIFIED. SKIPPING TRANSACTION ID-T1'. It looks up no account for that transaction and goes on to the next transaction.
REQ-F-019
Resolve transaction card to account
written from the rule
AC-09Given The cross-reference file cannot be opened (open status is not '00'), and the other files open normally
When The verification run starts
Then The run shows 'ERROR OPENING CROSS REF FILE' and the file status, and ends abnormally with code 999 before any transaction is processed. A failure on any of the other files gives that file's own message in the same way: 'ERROR OPENING DAILY TRANSACTION FILE', 'ERROR OPENING CUSTOMER FILE', 'ERROR OPENING CARD FILE', 'ERROR OPENING ACCOUNT FILE' or 'ERROR OPENING TRANSACTION FILE'.
REQ-F-021
Any master-file open or close failure stops the batch (fail-fast)
written from the rule
AC-10Given A file operation in the verification run fails with the numeric status '35'
When The run shows the file status
Then It shows 'FILE STATUS IS: NNNN0035', that is, 'NNNN00' followed by the two-digit status.
REQ-F-024
Any master-file open or close failure stops the batch (fail-fast)
written from the rule
AC-11Given A file operation fails with a status whose first character is '9' (or that is not numeric)
When The run shows the file status
Then It shows 'FILE STATUS IS: NNNN' followed by the first status character and then the binary value of the second status character as three digits.
REQ-F-024
Any master-file open or close failure stops the batch (fail-fast)
written from the rule

Screens

None: service.

Data contracts

CVACT01Y (file record; CBTRN01C), CVACT03Y (file record; CBTRN01C), CVTRA06Y (file record; CBTRN01C), CVACT02Y (working storage; CBTRN01C), CVCUS01Y (working storage; CBTRN01C), CVTRA05Y (working storage; CBTRN01C)

Decision tables

Daily transaction card and account verification

Card number found in card cross-referenceAccount lookup resultVerification actionRule
Nonot performedShow 'INVALID CARD NUMBER FOR XREF' and 'CARD NUMBER <card> COULD NOT BE VERIFIED. SKIPPING TRANSACTION ID-<transaction ID>'; no account lookuprec/group:claude/RULE-079/3
YesperformedShow 'SUCCESSFUL READ OF XREF' with card number, account ID and customer ID; look up linked accountrec/group:claude/RULE-079/2
Yesaccount not foundDisplay 'ACCOUNT <account id> NOT FOUND'rec/agreed:Unassigned-Programs/id-179993271a/1
Yesaccount foundGap: No rule states what is shown or done for the transaction once its account is found on the account master.

Open questions

  • SME-036 When a daily transaction's card number is not in the card-to-account cross-reference, the batch flags it and skips it. What else should happen to that transaction? For example, should it be rejected to a file, reported, or retried? (Business analyst)
  • SME-037 How important is the rule that every daily transaction's card must exist in the card-to-account cross-reference? Is it critical to the system's core purpose, or a rule that is costly if it goes wrong? (Business analyst / card operations owner)
  • SME-038 When a daily transaction's card is verified against the cross-reference, what processing should that transaction then receive in the card verification step? (Business analyst)
  • DEF-034 Is this intended? When the end of the daily file is reached, the loop body still runs the cross-reference lookup (and account lookup) on the last record read, so the final transaction is verified twice and any 'COULD NOT BE VERIFIED' message for it is repeated. (Subject-matter expert)
  • DEF-072 Is this intended? The end-of-file check guards only the record display; on the final pass after end of file the card and account lookups still run on the previous record, so the last transaction is processed twice. (Subject-matter expert)
  • DEF-181 Is this intended? If the daily transaction file fails to close, the batch shows 'ERROR CLOSING CUSTOMER FILE' and the customer file's status instead of the daily transaction file's, so the wrong file is reported. (Subject-matter expert)

Design notes

  • A batch job that streams the day's transaction feed in file order, one record at a time. It logs each record and runs card verification on it, and it finishes when the feed is used up. End of feed is the normal way to finish. Process each daily transaction card
6. Build and deploy online programsdraft · scheduled job · 4 requirements · 4 rules · 7 criteria · 2 gaps

The build-and-deploy steps for online programs: compile, register the program's database access, and make the online system load the new version. Build engineers use it. It must never deploy or bind a program whose build failed, and online users must pick up the new version only after a successful build.

As a CardDemo build engineer, I want online programs compiled, bound to the database and refreshed in the online region, so that online users run the newly built code.

Draft: the function is not signed off yet. Risk high; touches security. rec/Unassigned-Programs#6

Requirements

CodeClassRequirementCriteria
REQ-F-025design noteWhen the program compile step of the sample online build job ends with return code 4 or lower, the system shall send the online region (CICSAWSA) the console command 'CEMT SET PROG(CICSPGMN) NEWCOPY' so that the newly built program is loaded for online users.AC-01, AC-02
REQ-F-026design noteWhen the Db2 precompile, CICS translation, COBOL compile and link-edit steps have all ended with return code 0, the system shall bind the program's database request module into package collection 'CARDDEMO' with qualifier 'CARDDEMO', action 'REPLACE', isolation 'CS', current data 'YES', explain 'NO' and encoding 'EBCDIC'.AC-03, AC-04
REQ-F-027design noteWhen the package bind ended with return code 4 or less, the system shall bind the application plan ('CARDDEMO' in the sample job) over package list 'CARDDEMO.*' with qualifier 'CARDDEMO', action 'REPLACE' keeping existing authorizations ('RETAIN'), isolation 'CS', current data 'YES' and encoding 'EBCDIC'.AC-05, AC-06
REQ-F-028error handlingIf the package bind did not run because the link-edit failed, then the system shall still run the plan bind, because a return-code test on a step that did not run is ignored.AC-07

Business rules

RuleClassText, worked examples and evidence
Refresh the program in the online region
rec/aws:Unassigned-Programs/id-136be6d7b5/1
design note
technical, medium
WHEN the program compile step of the sample online build job ends with return code 4 or lower, THE Online Program Deployment SHALL send the online region (CICSAWSA) the console command 'CEMT SET PROG(CICSPGMN) NEWCOPY' so the newly built program is loaded for online users.
  • compile step return code: 4 → The NEWCOPY step runs and the region loads the new copy of program CICSPGMN.
  • compile step return code: 8 → The NEWCOPY step is bypassed; the online region keeps running the old copy.
samples/jcl/CICCMP.jcl:32-33, samples/jcl/CICCMP.jcl:41, samples/jcl/CICCMP.jcl:45-50
Bind the CardDemo database package
rec/aws:Unassigned-Programs/id-0841a58e24/1
design note
technical, medium
WHEN the Db2 precompile, CICS translation, COBOL compile and link-edit steps have all ended with return code 0, THE CICS-Db2 build job SHALL bind the program's database request module into package collection 'CARDDEMO' with qualifier 'CARDDEMO', action 'REPLACE', isolation 'CS', current data 'YES', explain 'NO' and encoding 'EBCDIC'.
  • program name (MEMNAME): CICSDB2P; return code of every earlier build step: 0 → Package CARDDEMO.CICSDB2P is bound with qualifier 'CARDDEMO' and replaces any earlier version of that package
  • COBOL compile return code: 8 → The package bind step does not run
samples/proc/BLDCIDB2.prc:80-81, samples/proc/BLDCIDB2.prc:109, samples/proc/BLDCIDB2.prc:114, samples/proc/BLDCIDB2.prc:135-153, samples/jcl/CICDBCMP.jcl:33-42
Rebind the application plan over packages
rec/aws:Unassigned-Programs/id-f030b29fa5/1
design note
technical, medium
WHEN the package bind ended with return code 4 or less, THE CICS-Db2 build job SHALL bind the application plan (PLAN, 'CARDDEMO' in the sample job) over package list 'CARDDEMO.*' with qualifier 'CARDDEMO', action 'REPLACE' keeping existing authorizations ('RETAIN'), isolation 'CS', current data 'YES' and encoding 'EBCDIC'.
  • package bind return code: 4; plan: CARDDEMO → Plan CARDDEMO is rebound over every package in collection CARDDEMO and keeps its existing grants
  • package bind return code: 8 → The plan bind is skipped
samples/proc/BLDCIDB2.prc:109, samples/proc/BLDCIDB2.prc:114, samples/proc/BLDCIDB2.prc:135, samples/proc/BLDCIDB2.prc:158-176, samples/jcl/CICDBCMP.jcl:42
Rebind the application plan over packages
rec/aws:Unassigned-Programs/id-f030b29fa5/2
error handling
error_handling, medium
WHEN the package bind did not run because the link-edit failed, THE CICS-Db2 build job SHALL still run the plan bind, because a return-code test on a step that did not run is ignored.
  • link-edit return code: 8; package bind: skipped → The plan bind still runs over the existing packages in CARDDEMO
samples/proc/BLDCIDB2.prc:109, samples/proc/BLDCIDB2.prc:114, samples/proc/BLDCIDB2.prc:135, samples/proc/BLDCIDB2.prc:158-176, samples/jcl/CICDBCMP.jcl:42

Acceptance criteria

IDCriterionChecks
AC-01Given compile step return code: 4
When the program compile step of the sample online build job ends with return code 4 or lower
Then The NEWCOPY step runs and the region loads the new copy of program CICSPGMN.
REQ-F-025
Refresh the program in the online region
worked example 1 of the rule
AC-02Given compile step return code: 8
When the program compile step of the sample online build job ends with return code 4 or lower
Then The NEWCOPY step is bypassed; the online region keeps running the old copy.
REQ-F-025
Refresh the program in the online region
worked example 2 of the rule
AC-03Given program name (MEMNAME): CICSDB2P; return code of every earlier build step: 0
When the Db2 precompile, CICS translation, COBOL compile and link-edit steps have all ended with return code 0
Then Package CARDDEMO.CICSDB2P is bound with qualifier 'CARDDEMO' and replaces any earlier version of that package
REQ-F-026
Bind the CardDemo database package
worked example 1 of the rule
AC-04Given COBOL compile return code: 8
When the Db2 precompile, CICS translation, COBOL compile and link-edit steps have all ended with return code 0
Then The package bind step does not run
REQ-F-026
Bind the CardDemo database package
worked example 2 of the rule
AC-05Given package bind return code: 4; plan: CARDDEMO
When the package bind ended with return code 4 or less
Then Plan CARDDEMO is rebound over every package in collection CARDDEMO and keeps its existing grants
REQ-F-027
Rebind the application plan over packages
worked example 1 of the rule
AC-06Given package bind return code: 8
When the package bind ended with return code 4 or less
Then The plan bind is skipped
REQ-F-027
Rebind the application plan over packages
worked example 2 of the rule
AC-07Given link-edit return code: 8; package bind: skipped
When the package bind did not run because the link-edit failed
Then The plan bind still runs over the existing packages in CARDDEMO
REQ-F-028
Rebind the application plan over packages
worked example 1 of the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

CICS-Db2 build bind steps

Precompile, translation, compile and link-edit resultPackage bind resultBind actionRule
all return code 0not yet runBind package into collection 'CARDDEMO'rec/aws:Unassigned-Programs/id-0841a58e24/1
all return code 0return code 4 or lessBind application plan over 'CARDDEMO.*' keeping authorizations ('RETAIN')rec/aws:Unassigned-Programs/id-f030b29fa5/1
link-edit faileddid not runPlan bind still runsrec/aws:Unassigned-Programs/id-f030b29fa5/2
all return code 0return code above 4Gap: No rule states whether the plan bind is skipped or run when the package bind fails.
precompile, translation or compile faileddid not runGap: No rule states whether the plan bind runs when an earlier step than link-edit fails.

Open questions

  • DEF-142 Is this intended? The bind step loads its Db2 libraries from the fixed names OEM.DB2.DAZ1.SDSNEXIT and OEMA.DB2.VERSIONA.SDSNLOAD. It ignores the SSID and SDSNLOAD settings the procedure takes, so a build against any subsystem other than DAZ1 still uses DAZ1's libraries. (Subject-matter expert)
  • DEF-147 Is this intended? BINDPL tests only BINDPK's return code. When the link-edit fails inside the IF RC = 0 block, BINDPK is bypassed and its test is ignored, so the plan is rebound even though the build failed. (Subject-matter expert)

Design notes

  • A CI/CD deploy step. When the build succeeds (warnings allowed, no errors), roll out the new version to the running online service, for example by a rolling restart or a hot reload, so new requests use the new code. Refresh the program in the online region
  • Run this only when every build step succeeded without warnings. It registers or refreshes the program's database access against the CARDDEMO schema, replacing the previous version, using read-committed isolation. In a modern stack this is usually a schema migration or a step that grants database permissions, gated on a green build. Bind the CardDemo database package
  • After the database access step succeeds (warnings allowed), refresh the application-level database binding that covers all CARDDEMO programs. Keep the existing permissions and use the same CARDDEMO schema and isolation. In a modern stack this is the deploy-time database configuration or role setup, and it must not reset grants. Rebind the application plan over packages
7. Convert date formatsdraft · scheduled job · 6 requirements · 7 rules · 6 criteria

A shared routine that converts dates between YYYYMMDD and YYYY-MM-DD for other batch programs, for example to write the account reissue date in the account extract. It must reject any request it cannot interpret with 'INVALID INPUT' rather than return a wrong date.

As a calling batch program, I want dates converted between YYYYMMDD and YYYY-MM-DD, so that account dates can be written in the format required.

Draft: the function is not signed off yet. Risk low. rec/Unassigned-Programs#7

Requirements

CodeClassRequirementCriteria
REQ-F-029business ruleIf the input type is not '1' or '2', then the system shall reject the request with the message 'INVALID INPUT' in the error message (COERMSG) and leave the output date unchanged.AC-01, AC-02
REQ-F-030design noteWhen the input type is '1' (YYYYMMDD) and the requested output type is not '2', the system shall return the date as YYYY-MM-DD, inserting dashes between year, month and day.AC-03
REQ-F-031business ruleIf the input type is '1' and the input date already has a dash as its fifth character or the requested output type is '2', then the system shall reject the request with the message 'INVALID INPUT'.AC-01, AC-02
REQ-F-032design noteWhen the input type is '2' (YYYY-MM-DD) and the requested output type is not '1', the system shall return the date as YYYYMMDD, taking the year from characters 1-4, the month from 6-7 and the day from 9-10, without checking that the input contains dashes.AC-04, AC-05
REQ-F-033business ruleIf the input type is '2' and the requested output type is '1', then the system shall reject the request with the message 'INVALID INPUT'.AC-01, AC-02
REQ-F-034design noteWhen the account extract writes each account record, the system shall convert the account reissue date from YYYY-MM-DD to YYYYMMDD (input type '2', output type '2') using the date format conversion routine.AC-06

Business rules

RuleClassText, worked examples and evidence
Report invalid conversion request
rec/agreed:Unassigned-Programs/id-eb14d5c4f8/1
business rule
validation, low
IF the input type is not '1' or '2', or a type-1 date already contains a dash at its fifth position, or the output type contradicts the input type, THEN THE Date Format Conversion Routine SHALL set the error message (`COERMSG`) to 'INVALID INPUT' for the caller
  • Input type (COINTYPE): '3'; Output type (COOUTYPE): '2' → The routine sets the error message to 'INVALID INPUT' and returns no converted date. (The only caller, CBACT01C, always passes input type '2' and output type '2', so this never happens today.)
  • Input type (COINTYPE): '2'; Output type (COOUTYPE): '1' → The error message is set to 'INVALID INPUT'.
app/asm/COBDATFT.asm:55-56, app/asm/COBDATFT.asm:29-56
Route request by input date type
rec/group:claude/RULE-016/1
business rule
validation, high
WHEN a date conversion request has an input type other than '1' or '2', THE date format conversion routine SHALL reject it with the message 'INVALID INPUT' and leave the output date unchanged.
app/asm/COBDATFT.asm:27-57, app/maclib/COCDATFT.mac:18-23, app/cpy/CODATECN.cpy:17-52, app/cbl/CBACT01C.cbl:223-233
Route request by input date type
rec/group:claude/RULE-016/2
design note
technical, high
WHEN the input type is '1' (YYYYMMDD) and the requested output type is not '2', THE date format conversion routine SHALL return the date as YYYY-MM-DD, inserting dashes between year, month and day.
app/asm/COBDATFT.asm:27-57, app/maclib/COCDATFT.mac:18-23, app/cpy/CODATECN.cpy:17-52, app/cbl/CBACT01C.cbl:223-233
Insert dashes into undashed date
rec/group:claude/RULE-016/3
business rule
validation, high
WHEN the input type is '1' and the input date already has a dash as its fifth character or the requested output type is '2', THE date format conversion routine SHALL reject the request with the message 'INVALID INPUT'.
app/asm/COBDATFT.asm:27-57, app/maclib/COCDATFT.mac:18-23, app/cpy/CODATECN.cpy:17-52, app/cbl/CBACT01C.cbl:223-233
Route request by input date type
rec/group:claude/RULE-016/4
design note
technical, high
WHEN the input type is '2' (YYYY-MM-DD) and the requested output type is not '1', THE date format conversion routine SHALL return the date as YYYYMMDD, taking the year from characters 1-4, the month from 6-7 and the day from 9-10, without checking that the input contains dashes.
app/asm/COBDATFT.asm:27-57, app/maclib/COCDATFT.mac:18-23, app/cpy/CODATECN.cpy:17-52, app/cbl/CBACT01C.cbl:223-233
Remove dashes from dashed date
rec/group:claude/RULE-016/5
business rule
validation, high
WHEN the input type is '2' and the requested output type is '1', THE date format conversion routine SHALL reject the request with the message 'INVALID INPUT'.
app/asm/COBDATFT.asm:27-57, app/maclib/COCDATFT.mac:18-23, app/cpy/CODATECN.cpy:17-52, app/cbl/CBACT01C.cbl:223-233
Account date format conversion between YYYYMMDD and YYYY-MM-DD
rec/group:claude/RULE-016/6
design note
technical, high
WHEN the account extract writes each account record, THE account extract SHALL convert the account reissue date from YYYY-MM-DD to YYYYMMDD (input type '2', output type '2') using the date format conversion routine.
app/asm/COBDATFT.asm:27-57, app/maclib/COCDATFT.mac:18-23, app/cpy/CODATECN.cpy:17-52, app/cbl/CBACT01C.cbl:223-233

Acceptance criteria

IDCriterionChecks
AC-01Given Input type (COINTYPE): '3'; Output type (COOUTYPE): '2'
When the input type is not '1' or '2', or a type-1 date already contains a dash at its fifth position, or the output type contradicts the input type
Then The routine sets the error message to 'INVALID INPUT' and returns no converted date. (The only caller, CBACT01C, always passes input type '2' and output type '2', so this never happens today.)
REQ-F-029, REQ-F-031, REQ-F-033
Report invalid conversion request
worked example 1 of the rule
AC-02Given Input type (COINTYPE): '2'; Output type (COOUTYPE): '1'
When the input type is not '1' or '2', or a type-1 date already contains a dash at its fifth position, or the output type contradicts the input type
Then The error message is set to 'INVALID INPUT'.
REQ-F-029, REQ-F-031, REQ-F-033
Report invalid conversion request
worked example 2 of the rule
AC-03Given A conversion request with input type '1', input date '20240315' and an output type other than '2'
When The routine converts the date
Then It returns '2024-03-15'.
REQ-F-030
Route request by input date type
written from the rule
AC-04Given A conversion request with input type '2', input date '2024-03-15' and an output type other than '1'
When The routine converts the date
Then It returns '20240315', with the year taken from characters 1-4, the month from 6-7 and the day from 9-10.
REQ-F-032
Route request by input date type
written from the rule
AC-05Given A conversion request with input type '2' and input date '2024/03/15', which has no dashes
When The routine converts the date
Then It still returns '20240315' and reports no error, because it does not check for dashes.
REQ-F-032
Route request by input date type
written from the rule
AC-06Given An account whose reissue date is '2025-07-01'
When The account extract writes that account's record
Then The reissue date in the written record is '20250701', converted by the date routine with input type '2' and output type '2'.
REQ-F-034
Account date format conversion between YYYYMMDD and YYYY-MM-DD
written from the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

Date format conversion routing

Input typeRequested output typeDash at fifth character of inputConversion resultRule
not '1' or '2'anyanyReject with 'INVALID INPUT'; output date unchangedrec/group:claude/RULE-016/1
'1'not '2'NoReturn date as YYYY-MM-DDrec/group:claude/RULE-016/2
'1'anyYesReject with 'INVALID INPUT'rec/group:claude/RULE-016/3
'1''2'anyReject with 'INVALID INPUT'rec/group:claude/RULE-016/3
'2'not '1'any (not checked)Return date as YYYYMMDD from characters 1-4, 6-7 and 9-10rec/group:claude/RULE-016/4
'2''1'anyReject with 'INVALID INPUT'rec/group:claude/RULE-016/5

Open questions

  • SME-078 The date conversion routine was designed to check that a dashed date has its dash in the right position, but that check is switched off. Should the new routine check it? (Business analyst)
  • SME-079 In date conversion requests, the output-type code has to match the input-type code, even though the output is in the other format. Is the output-type code meant to name the output format (so the check is backwards), or just to repeat the conversion direction? (Application developer)
  • DEF-007 Confirm this is deliberate: For type '2' input, the check that the fifth character is a dash is commented out, so a date with other separators or no separators is converted without error; the routine also always returns code 0 and CBACT01C never checks the error message. (Subject-matter expert)

Design notes

  • A pure, reusable date-formatting function that takes YYYYMMDD and returns YYYY-MM-DD. Build it as a library function, not a separate service call. Route request by input date type
  • The same library function going the other way: it takes YYYY-MM-DD and returns YYYYMMDD by position (characters 1-4, 6-7 and 9-10). It does not validate the separators. Route request by input date type
  • The account extract calls the date-formatting function on the reissue date for every record it writes, so the extract carries the date as YYYYMMDD. Account date format conversion between YYYYMMDD and YYYY-MM-DD
8. Pause a batch jobdraft · scheduled job · 3 requirements · 3 rules · 5 criteria

A batch utility step that pauses a job for a given time in hundredths of a second and then carries on, so that the scheduler can pace jobs. It must wait for the time asked and always end with success (return code 0).

As a batch scheduler, I want a job step that waits for a set time, so that jobs can be paced.

Draft: the function is not signed off yet. Risk low. rec/Unassigned-Programs#8

Requirements

CodeClassRequirementCriteria
REQ-F-035design noteWhen the wait job step runs, the system shall read an 8-digit wait time in hundredths of a second from its input and pause the job for that long (timer wait), then end normally with return code 0.AC-01, AC-02
REQ-F-036design noteWhen a batch job asks for a wait, the system shall suspend the job for the number of hundredths of a second passed by the calling program, then return to the caller with return code 0.AC-03, AC-04
REQ-F-037historical artifactThe system shall set a flag byte X'FF' in the caller's register save area on return, which nothing in the source reads.AC-05

Business rules

RuleClassText, worked examples and evidence
Batch job pause duration in centiseconds
rec/claude:claude/RULE-248/1
design note
technical, medium
WHEN the wait job step runs, THE Batch Wait Utility SHALL read an 8-digit wait time in hundredths of a second from its input and pause the job for that long (timer wait), then end normally with return code 0.
  • wait time input: 00000500 → The job pauses about 5 seconds and ends with return code 0.
  • wait time input: 00003600 → The job pauses about 36 seconds and ends with return code 0.
app/cbl/COBSWAIT.cbl:30-40, app/asm/MVSWAIT.asm:17-27, app/maclib/ASMWAIT.mac:19, app/jcl/WAITSTEP.jcl:20-26
Start caller-specified interval wait
rec/aws:Unassigned-Programs/id-50ff837248/1
design note
technical, medium
WHEN a batch job asks for a wait, THE Interval Wait Service SHALL suspend the job for the number of hundredths of a second passed by the calling program (read from the job's input by COBSWAIT), then return to the caller with return code 0.
  • wait value in job input: 00003600 → the job waits 36 seconds, then the step ends with return code 0
  • wait value in job input: 00000100 → the job waits 1 second
app/asm/MVSWAIT.asm:17-28, app/maclib/ASMWAIT.mac:17-20, app/cbl/COBSWAIT.cbl:30-40, app/jcl/WAITSTEP.jcl:20-26
Start caller-specified interval wait
rec/aws:Unassigned-Programs/id-50ff837248/2
historical artifact
leftover, medium
THE Interval Wait Service SHALL set a flag byte X'FF' in the caller's register save area on return; nothing in the source reads it.
app/asm/MVSWAIT.asm:17-28, app/maclib/ASMWAIT.mac:17-20, app/cbl/COBSWAIT.cbl:30-40, app/jcl/WAITSTEP.jcl:20-26

Acceptance criteria

IDCriterionChecks
AC-01Given wait time input: 00000500
When the wait job step runs
Then The job pauses about 5 seconds and ends with return code 0.
REQ-F-035
Batch job pause duration in centiseconds
worked example 1 of the rule
AC-02Given wait time input: 00003600
When the wait job step runs
Then The job pauses about 36 seconds and ends with return code 0.
REQ-F-035
Batch job pause duration in centiseconds
worked example 2 of the rule
AC-03Given wait value in job input: 00003600
When a batch job asks for a wait
Then the job waits 36 seconds, then the step ends with return code 0
REQ-F-036
Start caller-specified interval wait
worked example 1 of the rule
AC-04Given wait value in job input: 00000100
When a batch job asks for a wait
Then the job waits 1 second
REQ-F-036
Start caller-specified interval wait
worked example 2 of the rule
AC-05Given A batch job that calls the interval wait service
When The wait finishes and control returns to the caller
Then The flag byte in the caller's register save area is set to X'FF', and the caller receives return code 0.
REQ-F-037
Start caller-specified interval wait
written from the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-089 Which batch jobs use the wait step, and how long a pause do they rely on? Should a missing or non-numeric pause value make the step fail instead of waiting for an unpredictable time? (Batch operations lead)
  • DEF-143 Is this intended? After restoring the caller's registers, the routine writes X'FF' into the caller's save area. The author's own comment questions whether this is needed, and nothing reads it. (Subject-matter expert)

Design notes

  • A configurable delay step in the job scheduler or workflow. It reads an 8-digit duration in hundredths of a second (for example 00000500 = 5 seconds), sleeps for that long, and always exits successfully. In most schedulers this is a built-in wait or delay task rather than custom code. Batch job pause duration in centiseconds
  • The timer behind the delay step: suspend for the given number of hundredths of a second and then return success to the caller. A standard sleep in the job runtime covers it. Start caller-specified interval wait
9. Retain dataset generationsdraft · scheduled job · 9 requirements · 9 rules · 10 criteria

Keeps a limited, rolling history of the batch files: daily transactions, rejects, combined and system-generated transactions, backups and the transaction report. Old copies are removed automatically. Operators rely on it to keep the most recent runs (five, or ten for the report history set-up) and never to let old copies pile up. Re-running the set-up must be harmless.

As a CardDemo operator, I want transaction, reject, report and backup files kept as limited generation groups, so that recent history is kept and old generations are removed automatically.

Draft: the function is not signed off yet. Risk low. rec/Unassigned-Programs#9

Requirements

CodeClassRequirementCriteria
REQ-F-038design noteThe system shall define the generation group for the daily rejected transactions (AWS.M2.CARDDEMO.DALYREJS) so that at most 5 generations are kept and each generation that ages out of the group is scratched.AC-01
REQ-F-039design noteThe system shall define the combined transaction file (AWS.M2.CARDDEMO.TRANSACT.COMBINED, the transaction backup merged with system-generated transactions) as a generation group that keeps at most 5 generations and deletes (SCRATCH) the oldest generation's data when a new one pushes it past the limit.AC-02
REQ-F-040design noteThe system shall define the daily transaction file (AWS.M2.CARDDEMO.TRANSACT.DALY) as a generation group that keeps at most 5 generations and deletes (SCRATCH) the oldest generation's data when a new one pushes it past the limit.AC-03
REQ-F-041design noteThe CardDemo setup job (DEFGDGB) shall define the transaction report (AWS.M2.CARDDEMO.TRANREPT) as a generation group that keeps at most 5 generations and deletes (SCRATCH) the oldest report's data when a new one pushes it past the limit.AC-04
REQ-F-042design noteThe Transaction Report History setup job shall define the transaction report generation group (AWS.M2.CARDDEMO.TRANREPT) so that at most 10 generations of the daily transaction report are kept catalogued, the oldest dropping off when an eleventh is created.AC-05
REQ-F-043design noteThe system shall define the transaction category balance backup (AWS.M2.CARDDEMO.TCATBALF.BKUP) as a generation group that keeps at most 5 generations and deletes (SCRATCH) the oldest generation's data when a new one pushes it past the limit.AC-06
REQ-F-044design noteThe system shall define the transaction master backup file (AWS.M2.CARDDEMO.TRANSACT.BKUP) as a generation group that keeps at most 5 generations and deletes (SCRATCH) the oldest generation's data when a new one pushes it past the limit.AC-07, AC-08
REQ-F-045design noteThe system shall define the system-generated transaction file (AWS.M2.CARDDEMO.SYSTRAN) as a generation group that keeps at most 5 generations and deletes (SCRATCH) the oldest generation's data when a new one pushes it past the limit.AC-09
REQ-F-046error handlingIf a generation group definition in the setup job ends with return code 12 (for example because the group already exists), then the system shall reset the job's highest return code to 0 and continue with the next definition.AC-10

Business rules

RuleClassText, worked examples and evidence
Retain five generations of daily rejects
rec/aws:Unassigned-Programs/id-3374587a7c/1
design note
technical, medium
THE Daily Rejects setup job SHALL define the generation group for the daily rejected transactions (AWS.M2.CARDDEMO.DALYREJS) so that at most 5 generations are kept and each generation that ages out of the group is scratched.
  • existing generations: 5; event: transaction posting writes a new rejects generation (+1) → The oldest generation is removed from the group and scratched, leaving the 5 newest.
app/jcl/DALYREJS.jcl:21-28, app/jcl/POSTTRAN.jcl:34-38
Retain five transaction report generations
rec/aws:Unassigned-Programs/id-ee0cbbd591/1
design note
technical, medium
THE CardDemo setup job (DEFGDGB) SHALL define the combined transaction file (AWS.M2.CARDDEMO.TRANSACT.COMBINED, the transaction backup merged with system-generated transactions) as a generation group that keeps at most 5 generations and deletes (SCRATCH) the oldest generation's data when a new one pushes it past the limit.
  • combined transaction files already kept: 5; event: combine job writes a new combined file (+1) → The new combined file is kept and the oldest is removed and erased, leaving 5 generations.
app/jcl/DEFGDGB.jcl:54-59, app/jcl/COMBTRAN.jcl:22-37
Retain five transaction report generations
rec/aws:Unassigned-Programs/id-adea5c9fd0/1
design note
technical, medium
THE CardDemo setup job (DEFGDGB) SHALL define the daily transaction file (AWS.M2.CARDDEMO.TRANSACT.DALY) as a generation group that keeps at most 5 generations and deletes (SCRATCH) the oldest generation's data when a new one pushes it past the limit.
  • generations of AWS.M2.CARDDEMO.TRANSACT.DALY already kept: 5; event: transaction report job writes a new daily file (+1) → The new daily file is kept and the oldest is removed and erased, leaving 5 generations.
app/jcl/DEFGDGB.jcl:30-35, app/jcl/TRANREPT.jcl:55
Retain five transaction report generations
rec/aws:Unassigned-Programs/id-04616e7967/1
design note
technical, medium
THE CardDemo setup job (DEFGDGB) SHALL define the transaction report (AWS.M2.CARDDEMO.TRANREPT) as a generation group that keeps at most 5 generations and deletes (SCRATCH) the oldest report's data when a new one pushes it past the limit.
  • transaction reports already kept: 5; event: transaction report job writes a new report (+1) → The new report is kept and the oldest report is removed and erased, leaving 5 reports.
app/jcl/DEFGDGB.jcl:36-41, app/jcl/TRANREPT.jcl:76-80
Retain ten transaction report generations
rec/aws:Unassigned-Programs/id-35a7817e6a/1
design note
technical, medium
THE Transaction Report History setup job SHALL define the transaction report generation group (AWS.M2.CARDDEMO.TRANREPT) so that at most 10 generations of the daily transaction report are kept catalogued, the oldest dropping off when an eleventh is created.
  • catalogued report generations: 10; new daily transaction report: written as generation (+1) → The new report is catalogued and the oldest of the 10 earlier generations is no longer kept in the group.
app/jcl/REPTFILE.jcl:22-28
Retain five transaction report generations
rec/aws:Unassigned-Programs/id-21e8538ccb/1
design note
technical, medium
THE CardDemo setup job (DEFGDGB) SHALL define the transaction category balance backup (AWS.M2.CARDDEMO.TCATBALF.BKUP) as a generation group that keeps at most 5 generations and deletes (SCRATCH) the oldest generation's data when a new one pushes it past the limit.
  • category balance backups already kept: 5; event: category balance print job writes a new backup (+1) → The new backup is kept and the oldest is removed and erased, leaving 5 generations.
app/jcl/DEFGDGB.jcl:42-47, app/jcl/PRTCATBL.jcl:39
Retain five transaction report generations
rec/aws:Unassigned-Programs/id-bfd45378e6/1
design note
technical, medium
THE CardDemo setup job (DEFGDGB) SHALL define the transaction master backup file (AWS.M2.CARDDEMO.TRANSACT.BKUP) as a generation group that keeps at most 5 generations and deletes (SCRATCH) the oldest generation's data when a new one pushes it past the limit.
  • generations of AWS.M2.CARDDEMO.TRANSACT.BKUP already kept: 5; event: transaction backup job writes a new generation (+1) → The new backup is kept and the oldest of the five is removed from the catalog and its data erased, leaving 5 generations.
  • generations already kept: 3; event: new backup written → All 4 generations are kept; nothing is deleted.
app/jcl/DEFGDGB.jcl:24-29, app/jcl/TRANBKP.jcl:33, app/jcl/COMBTRAN.jcl:24
Retain five transaction report generations
rec/aws:Unassigned-Programs/id-b046d644e2/1
design note
technical, medium
THE CardDemo setup job (DEFGDGB) SHALL define the system-generated transaction file (AWS.M2.CARDDEMO.SYSTRAN) as a generation group that keeps at most 5 generations and deletes (SCRATCH) the oldest generation's data when a new one pushes it past the limit.
  • system transaction files already kept: 5; event: interest calculation job writes a new file (+1) → The new file is kept and the oldest is removed and erased, leaving 5 generations.
app/jcl/DEFGDGB.jcl:48-53, app/jcl/INTCALC.jcl:41
Retain five transaction report generations
rec/aws:Unassigned-Programs/id-bfd45378e6/2
error handling
error_handling, medium
WHEN a generation group definition in the setup job ends with return code 12 (for example because the group already exists), THE setup job SHALL reset the job's highest return code to 0 and continue with the next definition.
  • AWS.M2.CARDDEMO.TRANSACT.BKUP: already defined; DEFINE return code: 12 → The job's return code is set back to 0 and it goes on to define AWS.M2.CARDDEMO.TRANSACT.DALY.
app/jcl/DEFGDGB.jcl:24-29, app/jcl/TRANBKP.jcl:33, app/jcl/COMBTRAN.jcl:24

Acceptance criteria

IDCriterionChecks
AC-01Given existing generations: 5; event: transaction posting writes a new rejects generation (+1)
When Daily Rejects setup job runs
Then The oldest generation is removed from the group and scratched, leaving the 5 newest.
REQ-F-038
Retain five generations of daily rejects
worked example 1 of the rule
AC-02Given combined transaction files already kept: 5; event: combine job writes a new combined file (+1)
When CardDemo setup job (DEFGDGB) runs
Then The new combined file is kept and the oldest is removed and erased, leaving 5 generations.
REQ-F-039
Retain five transaction report generations
worked example 1 of the rule
AC-03Given generations of AWS.M2.CARDDEMO.TRANSACT.DALY already kept: 5; event: transaction report job writes a new daily file (+1)
When CardDemo setup job (DEFGDGB) runs
Then The new daily file is kept and the oldest is removed and erased, leaving 5 generations.
REQ-F-040
Retain five transaction report generations
worked example 1 of the rule
AC-04Given transaction reports already kept: 5; event: transaction report job writes a new report (+1)
When CardDemo setup job (DEFGDGB) runs
Then The new report is kept and the oldest report is removed and erased, leaving 5 reports.
REQ-F-041
Retain five transaction report generations
worked example 1 of the rule
AC-05Given catalogued report generations: 10; new daily transaction report: written as generation (+1)
When Transaction Report History setup job runs
Then The new report is catalogued and the oldest of the 10 earlier generations is no longer kept in the group.
REQ-F-042
Retain ten transaction report generations
worked example 1 of the rule
AC-06Given category balance backups already kept: 5; event: category balance print job writes a new backup (+1)
When CardDemo setup job (DEFGDGB) runs
Then The new backup is kept and the oldest is removed and erased, leaving 5 generations.
REQ-F-043
Retain five transaction report generations
worked example 1 of the rule
AC-07Given generations of AWS.M2.CARDDEMO.TRANSACT.BKUP already kept: 5; event: transaction backup job writes a new generation (+1)
When CardDemo setup job (DEFGDGB) runs
Then The new backup is kept and the oldest of the five is removed from the catalog and its data erased, leaving 5 generations.
REQ-F-044
Retain five transaction report generations
worked example 1 of the rule
AC-08Given generations already kept: 3; event: new backup written
When CardDemo setup job (DEFGDGB) runs
Then All 4 generations are kept; nothing is deleted.
REQ-F-044
Retain five transaction report generations
worked example 2 of the rule
AC-09Given system transaction files already kept: 5; event: interest calculation job writes a new file (+1)
When CardDemo setup job (DEFGDGB) runs
Then The new file is kept and the oldest is removed and erased, leaving 5 generations.
REQ-F-045
Retain five transaction report generations
worked example 1 of the rule
AC-10Given AWS.M2.CARDDEMO.TRANSACT.BKUP: already defined; DEFINE return code: 12
When a generation group definition in the setup job ends with return code 12 (for example because the group already exists)
Then The job's return code is set back to 0 and it goes on to define AWS.M2.CARDDEMO.TRANSACT.DALY.
REQ-F-046
Retain five transaction report generations
worked example 1 of the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-279 Two definitions of the transaction report history set different limits (10 generations vs 5). Which limit applies, and should generations that roll off be erased? (Batch operations team)
  • DEF-144 Is this intended? The step comment says it deletes the transaction master VSAM file, but the step only defines the report generation group; the comment was copied from another job. (Subject-matter expert)
  • DEF-146 Confirm this is deliberate: After each define the job resets any return code 12 to 0, not only 'already defined', so a genuine severity-12 failure to create a generation group is hidden and the job still ends with return code 0. (Subject-matter expert)

Design notes

  • Keep each run's daily rejected-transactions output as a versioned object, for example a dated file in object storage. A retention policy keeps the latest 5 and deletes older ones. Retain five generations of daily rejects
  • Version the combined transaction file (the transaction backup merged with system-generated transactions) per run. Keep the latest 5 and delete the data of older versions automatically. Retain five transaction report generations
  • Version the daily transaction input per run. Keep the latest 5 and delete older versions automatically. Retain five transaction report generations
  • Version the transaction report per run and keep the latest 5. Another set-up job defines the same report history with 10 versions (rule bc474731…), so the team must choose one limit. Retain five transaction report generations
  • A retention policy for the daily transaction report that keeps the latest 10 versions; the oldest goes when an eleventh is created. This conflicts with the 5-version definition in the main set-up (rule 1b564856…), so the team must decide which one applies. Retain ten transaction report generations
  • Take a versioned backup of the transaction category balances on each run. Keep the latest 5 and delete older ones automatically. Retain five transaction report generations
  • Take a versioned backup of the transaction master on each run. Keep the latest 5 and delete older ones automatically. Retain five transaction report generations
  • Version the system-generated transaction file per run. Keep the latest 5 and delete older ones automatically. Retain five transaction report generations
10. List the CardDemo dataset catalogdraft · scheduled job · 1 requirements · 1 rules · 2 criteria

An operator report of every CardDemo dataset that exists, with all its attributes, replacing the previous report each time it runs. It must list every CardDemo dataset and must never leave a half-written report behind when the run fails.

As a CardDemo operator, I want a report of every catalogued CardDemo dataset with its attributes, so that I can review what datasets exist.

Draft: the function is not signed off yet. Risk low; touches reporting_only. rec/Unassigned-Programs#10

Requirements

CodeClassRequirementCriteria
REQ-F-047formattingWhen the earlier step that deletes the previous catalog listing report ends with return code 0, the system shall list every catalog entry under the AWS.M2.CARDDEMO qualifier, with all attributes, into a new report (AWS.M2.CARDDEMO.LISTCAT) of fixed-length 133-byte print records, cataloging it on success and deleting it if the step fails.AC-01, AC-02

Business rules

RuleClassText, worked examples and evidence
List the CardDemo dataset catalog
rec/aws:Unassigned-Programs/id-0dea4b0810/1
formatting
display, medium
WHEN the earlier step that deletes the previous catalog listing report ends with return code 0, THE catalog listing job SHALL list every catalog entry under the AWS.M2.CARDDEMO qualifier, with all attributes, into a new report (AWS.M2.CARDDEMO.LISTCAT) of fixed-length 133-byte print records, cataloging it on success and deleting it if the step fails.
  • cleanup step return code: 0 → A new AWS.M2.CARDDEMO.LISTCAT report lists all AWS.M2.CARDDEMO catalog entries with all attributes.
  • cleanup step return code: 8 → The listing step is skipped and no report is produced.
samples/jcl/LISTCAT.jcl:21-26, samples/jcl/LISTCAT.jcl:27-35

Acceptance criteria

IDCriterionChecks
AC-01Given cleanup step return code: 0
When the earlier step that deletes the previous catalog listing report ends with return code 0
Then A new AWS.M2.CARDDEMO.LISTCAT report lists all AWS.M2.CARDDEMO catalog entries with all attributes.
REQ-F-047
List the CardDemo dataset catalog
worked example 1 of the rule
AC-02Given cleanup step return code: 8
When the earlier step that deletes the previous catalog listing report ends with return code 0
Then The listing step is skipped and no report is produced.
REQ-F-047
List the CardDemo dataset catalog
worked example 2 of the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

None.

Design notes

None.

11. Read transactions by processed timestampdraft · scheduled job · 2 requirements · 2 rules · 2 criteria

Gives batch processes a way to read transactions in the order they were processed, by keeping a secondary index on the processed timestamp of the transaction master. Many transactions may share a timestamp. The index must include every transaction on the master.

As a CardDemo batch process, I want an alternate index on the transaction master keyed on processed timestamp, so that transactions can be read by when they were processed.

Draft: the function is not signed off yet. Risk low. rec/Unassigned-Programs#11

Requirements

CodeClassRequirementCriteria
REQ-F-048design noteThe system shall read every record of the transaction master (AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS) and fill the alternate index (AWS.M2.CARDDEMO.TRANSACT.VSAM.AIX) with entries keyed on each transaction's processed timestamp.AC-02
REQ-F-049design noteThe system shall define an access path (AWS.M2.CARDDEMO.TRANSACT.VSAM.AIX.PATH) over the transaction alternate index, keyed on the transaction processed timestamp where many transactions may share the same timestamp, through which transaction records are read by processed timestamp.AC-01

Business rules

RuleClassText, worked examples and evidence
Build transaction alternate index
rec/aws:Unassigned-Programs/id-b66e480694/1
design note
technical, medium
THE Transaction Alternate Index Setup SHALL read every record of the transaction master (AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS) and fill the alternate index (AWS.M2.CARDDEMO.TRANSACT.VSAM.AIX) with entries keyed on each transaction's processed timestamp, so transactions can be read by processed timestamp.
app/jcl/TRANIDX.jcl:46-54, app/jcl/TRANIDX.jcl:25-28, app/cpy/CVTRA05Y.cpy:4-18
Define transaction alternate-key access path
rec/aws:Unassigned-Programs/id-cf1d40fa54/1
design note
technical, medium
THE Transaction Alternate Index Setup SHALL define an access path (AWS.M2.CARDDEMO.TRANSACT.VSAM.AIX.PATH) over the transaction alternate index that the job defines in the step before. That index is keyed on the transaction processed timestamp, and many transactions may share the same timestamp. This path is how transaction records are read by processed timestamp.
  • Job: TRANIDX; Alternate index: AWS.M2.CARDDEMO.TRANSACT.VSAM.AIX defined in STEP20 → STEP25 defines path AWS.M2.CARDDEMO.TRANSACT.VSAM.AIX.PATH, so transactions can be read by processed timestamp
app/jcl/TRANIDX.jcl:19-34, app/jcl/TRANIDX.jcl:36-44, app/cpy/CVTRA05Y.cpy:4-18

Acceptance criteria

IDCriterionChecks
AC-01Given Job: TRANIDX; Alternate index: AWS.M2.CARDDEMO.TRANSACT.VSAM.AIX defined in STEP20
When Transaction Alternate Index Setup runs
Then STEP25 defines path AWS.M2.CARDDEMO.TRANSACT.VSAM.AIX.PATH, so transactions can be read by processed timestamp
REQ-F-049
Define transaction alternate-key access path
worked example 1 of the rule
AC-02Given A transaction master holding three transactions, two of them with the same processed timestamp
When The alternate index is built
Then The index holds an entry for every one of the three transactions, keyed on its processed timestamp. Reading by that timestamp returns both transactions that share it.
REQ-F-048
Build transaction alternate index
written from the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

None.

Design notes

  • A non-unique secondary index on the transaction table's processed-timestamp column, covering every existing row. In a relational database this is a CREATE INDEX, which the database keeps up to date, not a separate rebuild job. Build transaction alternate index
  • Expose a query or repository method that reads transactions by processed timestamp (exact match or range, in timestamp order) using that non-unique index. It must allow many transactions per timestamp. Define transaction alternate-key access path

User Access Control

System Operations and Maintenance

1. Register online CardDemo programs and transactionsdraft · scheduled job · 3 requirements · 3 rules · 3 criteria · 2 screens

Sets up the entry points users and administrators start from: the sign-on screen and the Admin Menu, each reachable by its own short code. This is set up once per environment by operations staff, not by end users. It must never leave the sign-on or Admin Menu unregistered or linked to the wrong code, because then nobody can sign on or reach administration.

As a system administrator, I want the CardDemo sign-on and admin menu programs and their transactions registered in the online system, so that users can start them by transaction code.

Draft: the function is not signed off yet. Risk high; touches security. rec/UserAccessControl/SystemOperationsandMaintenance#1

Requirements

CodeClassRequirementCriteria
REQ-F-001design noteThe system shall define the login program COSGN00C in the CICS group CARDDEMO with data location ANY and transaction code CC00.AC-01
REQ-F-002design noteThe system shall define the admin menu program COADM00C in the CICS group CARDDEMO with data location ANY and transaction code CCAD.AC-02
REQ-F-003design noteThe system shall define transaction CCDM in the CICS group CARDDEMO to start the admin menu program COADM00C with task data location ANY.AC-03

Business rules

RuleClassText, worked examples and evidence
Register the login program with its transaction
rec/aws:UserAccessControl/SystemOperationsandMaintenance/id-e05b642632/1
design note
technical, medium
THE CardDemo online resource setup job (CBADMCDJ) SHALL define the login program COSGN00C in the CICS group CARDDEMO with data location ANY and transaction code CC00.
  • Setup job: CBADMCDJ run against the CICS definitions file → Group CARDDEMO holds program COSGN00C, data location ANY, transaction code CC00, description LOGIN.
app/jcl/CBADMCDJ.jcl:27-33, app/jcl/CBADMCDJ.jcl:98-99, app/cbl/COSGN00C.cbl:37
Register the admin menu program with its transaction
rec/aws:UserAccessControl/SystemOperationsandMaintenance/id-d24107d84b/1
design note
technical, medium
THE CardDemo online resource setup job (CBADMCDJ) SHALL define the admin menu program COADM00C in the CICS group CARDDEMO with data location ANY and transaction code CCAD.
  • Setup job: CBADMCDJ run against the CICS definitions file → Group CARDDEMO holds program COADM00C, data location ANY, transaction code CCAD, description ADMIN MENU.
app/jcl/CBADMCDJ.jcl:130-132
Register the admin menu transaction
rec/aws:UserAccessControl/SystemOperationsandMaintenance/id-77111fb822/1
design note
technical, medium
THE CardDemo online resource setup job (CBADMCDJ) SHALL define transaction CCDM in the CICS group CARDDEMO to start the admin menu program COADM00C with task data location ANY.
  • Setup job: CBADMCDJ run against the CICS definitions file → Group CARDDEMO holds transaction CCDM, which starts program COADM00C.
app/jcl/CBADMCDJ.jcl:147-148

Acceptance criteria

IDCriterionChecks
AC-01Given Setup job: CBADMCDJ run against the CICS definitions file
When CardDemo online resource setup job (CBADMCDJ) runs
Then Group CARDDEMO holds program COSGN00C, data location ANY, transaction code CC00, description LOGIN.
REQ-F-001
Register the login program with its transaction
worked example 1 of the rule
AC-02Given Setup job: CBADMCDJ run against the CICS definitions file
When CardDemo online resource setup job (CBADMCDJ) runs
Then Group CARDDEMO holds program COADM00C, data location ANY, transaction code CCAD, description ADMIN MENU.
REQ-F-002
Register the admin menu program with its transaction
worked example 1 of the rule
AC-03Given Setup job: CBADMCDJ run against the CICS definitions file
When CardDemo online resource setup job (CBADMCDJ) runs
Then Group CARDDEMO holds transaction CCDM, which starts program COADM00C.
REQ-F-003
Register the admin menu transaction
worked example 1 of the rule

Screens

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-016 Two transaction codes both open the same admin menu. Should the new system keep both entry points, or is one redundant? (Application owner)
  • SME-017 Does the mainframe 'data location ANY' storage setting need an equivalent on the target platform, or can it be dropped? (Platform architecture team)
  • DEF-151 Is this intended? The job defines admin menu program COADM00C with transaction codes CCAD and CCDM, but no COADM00C exists in the source; the admin menu program is COADM01C with transaction CA00, which app/csd/CARDDEMO.CSD defines, so these definitions point at a missing program. (Subject-matter expert)
  • DEF-152 Is this intended? Transaction CCDM starts COADM00C, which does not exist in the source; the admin menu is COADM01C under transaction CA00, defined in app/csd/CARDDEMO.CSD. CCDM also differs from the CCAD code given on the program definition. (Subject-matter expert)

Design notes

  • Register the sign-on screen as a routable entry point (for example a route or deep-link code that matches legacy code CC00) in the application's deployment or route configuration, which is applied when the environment is provisioned. It must be open to any user who has not signed on. No data-location setting is needed. Register the login program with its transaction
  • Register the Admin Menu as a routable entry point under the code CCAD in the same deployment or route configuration as the sign-on screen, so the configuration is versioned and applied with each release. Register the admin menu program with its transaction
  • Map a second entry code, CCDM, to the same Admin Menu route, so both CCAD and CCDM open the Admin Menu. Keep it as an alias in the route configuration, not a separate screen. Register the admin menu transaction
2. Navigate the Admin Menudraft · online · 9 requirements · 10 rules · 15 criteria · 7 screens · 2 gaps

Gives administrators a numbered menu of the user-security and transaction-type maintenance functions and opens the one they choose. It must reject option numbers outside 1–6 and unsupported keys with the exact legacy messages. If a chosen function is missing it must say 'This option is not installed ...' and not fail. Note that the legacy menu does not re-check that the user is an administrator: it relies on sign-on for that.

As an administrator, I want to pick a numbered option from the Admin Menu, so that I am taken to the administration function I need.

Draft: the function is not signed off yet. Risk high; touches security. rec/UserAccessControl/SystemOperationsandMaintenance#2

Requirements

CodeClassRequirementCriteria
REQ-F-004formattingWhen the Admin Menu is entered with session data and it is not a re-entry from its own screen, the system shall clear any error and message, mark the session as re-entry, and display a fresh, empty administration menu.AC-01
REQ-F-005formattingThe system shall list each admin option (currently 6) on its own line in order, as the option number, '. ' and the option name, whenever the Admin Menu is displayed.AC-14
REQ-F-006business ruleWhen the operator presses Enter on the Admin Menu, the system shall read the option entry ignoring trailing blanks, right-align it, turn remaining blanks into zeros, treat it as a two-digit option number, show that number back in the option field and process that option number.AC-02, AC-03, AC-04
REQ-F-007business ruleIf the operator presses a key other than Enter or PF3 on the Admin Menu, then the system shall flag an error and redisplay the menu with the message 'Invalid key pressed. Please see below...'.AC-05
REQ-F-008business ruleIf the option entered on the Admin Menu is not numeric, is zero, or is greater than the number of admin options (6), then the system shall flag an error and redisplay the menu with the message 'Please enter a valid option number...'.AC-06, AC-07, AC-08
REQ-F-009business ruleWhen an operator selects a valid Admin Menu option (1 to 6) whose program name does not start with 'DUMMY', the system shall record the Admin Menu as the origin (transaction 'CA00', program 'COADM01C'), reset the target screen's context to first entry, and transfer control to that option's program with the session data.AC-09, AC-10
REQ-F-010error handlingIf the program of a selected Admin Menu option is not defined in CICS, then the system shall redisplay the menu with the green message 'This option is not installed ...' (without the option name) and wait for the next entry.AC-15
REQ-F-011historical artifactWhen a selected Admin Menu option's program name starts with 'DUMMY', the system shall redisplay the menu with the green message 'This option is not installed ...'.AC-11
REQ-N-001business ruleThe system shall not check the signed-on user's type within the Admin Menu, relying on sign-on to send only admin users ('A') to it, so that a session reaching it with user type 'U' can still open the user-security functions.AC-12, AC-13

Business rules

RuleClassText, worked examples and evidence
Show blank menu on first entry
rec/aws:UserAccessControl/SystemOperationsandMaintenance/id-2a094f423f/1
formatting
display, medium
WHEN the Admin Menu is entered with session data and it is not a re-entry from its own screen, THE Admin Menu SHALL clear any error and message, mark the session as re-entry, and display a fresh, empty administration menu.
  • Arriving from: COSGN00C after admin sign-on; Re-entry flag (CDEMO-PGM-CONTEXT): 0 → Blank admin menu shown with options 1-6 and no message
app/cbl/COADM01C.cbl:81-94
Compose numbered administrative option labels
rec/aws:UserAccessControl/SystemOperationsandMaintenance/id-5c3a3c8959/1
formatting
display, medium
WHENEVER the Admin Menu is displayed, THE Admin Menu SHALL list each admin option (currently 6) on its own line in order, as the option number, '. ' and the option name.
app/cbl/COADM01C.cbl:175-178, app/cbl/COADM01C.cbl:229-266, app/cpy/COADM02Y.cpy:22-59
Normalize entered option number
rec/aws:UserAccessControl/SystemOperationsandMaintenance/id-2627ec77fb/1
design note
technical, medium
WHEN the operator presses Enter on the Admin Menu, THE Admin Menu SHALL read the option entry ignoring trailing blanks, right-align it, turn remaining blanks into zeros, treat it as a two-digit option number and show that number back in the option field.
  • Option entered: '3 ' → Option treated as 03 and shown as '03'
  • Option entered: blank → Option treated as 00 (then rejected as invalid)
app/cbl/COADM01C.cbl:119-129, app/cbl/COADM01C.cbl:43-44
Route Enter key to option processing
rec/aws:UserAccessControl/SystemOperationsandMaintenance/id-ae8fd0047c/1
business rule
business, medium
WHEN the operator presses Enter on the Admin Menu, THE Admin Menu SHALL process the option number entered.
  • Key pressed: Enter; Option entered: 4 → Option 4 (User Delete (Security)) is processed
app/cbl/COADM01C.cbl:95-99
Reject unsupported key press
rec/aws:UserAccessControl/SystemOperationsandMaintenance/id-bf886bd08c/1
business rule
validation, medium
WHEN the operator presses a key other than Enter or PF3 on the Admin Menu, THE Admin Menu SHALL flag an error and redisplay the menu with the message 'Invalid key pressed. Please see below...'.
  • Key pressed: PF5 → Menu redisplayed with 'Invalid key pressed. Please see below...'
app/cbl/COADM01C.cbl:103-106, app/cpy/CSMSG01Y.cpy:20-21
Reject invalid option number
rec/aws:UserAccessControl/SystemOperationsandMaintenance/id-c18f68018b/1
business rule
validation, medium
WHEN the option entered on the Admin Menu is not numeric, is zero, or is greater than the number of admin options (6), THE Admin Menu SHALL flag an error and redisplay the menu with the message 'Please enter a valid option number...'.
  • Option entered: 7 → Menu redisplayed with 'Please enter a valid option number...'
  • Option entered: AB → Menu redisplayed with 'Please enter a valid option number...'
  • Option entered: 0 → Menu redisplayed with 'Please enter a valid option number...'
app/cbl/COADM01C.cbl:131-138, app/cpy/COADM02Y.cpy:22
Transfer to selected option program
rec/group:claude/RULE-044/1
business rule
business, high
WHEN an operator selects a valid Admin Menu option (1 to 6) whose program name does not start with 'DUMMY', THE Admin Menu SHALL record itself as the origin (transaction 'CA00', program 'COADM01C'), reset the target screen's context to first entry, and transfer control to that option's program with the session data.
  • Option entered: 1 → Control passes to 'COUSR00C' (User List (Security))
  • Option entered: 5 → Control passes to 'COTRTLIC' (Transaction Type List/Update (Db2))
app/cbl/COADM01C.cbl:86-109, app/cbl/COADM01C.cbl:140-149, app/cpy/COADM02Y.cpy:22-59, app/cbl/COSGN00C.cbl:224-239
Admin menu handles unavailable functions with a 'not installed' message
rec/group:claude/RULE-246/1
error handling
error_handling, high
WHEN the program of a selected Admin Menu option is not defined in CICS (PGMIDERR on the transfer), THE Admin Menu SHALL redisplay the menu with the green message 'This option is not installed ...' (without the option name) and wait for the next entry.
app/cbl/COADM01C.cbl:77-79, app/cbl/COADM01C.cbl:140-158, app/cbl/COADM01C.cbl:270-283, app/cpy/COADM02Y.cpy:26-53
Inform option not installed
rec/group:claude/RULE-246/2
historical artifact
leftover, high
WHEN a selected Admin Menu option's program name starts with 'DUMMY', THE Admin Menu SHALL redisplay the menu with the green message 'This option is not installed ...'; no option in the current option table starts with 'DUMMY', so this check never matches today.
  • Option entered: 2; Option program: COUSR01C → The 'DUMMY' check does not match; control passes to 'COUSR01C'
app/cbl/COADM01C.cbl:77-79, app/cbl/COADM01C.cbl:140-158, app/cbl/COADM01C.cbl:270-283, app/cpy/COADM02Y.cpy:26-53
Admin menu does not itself verify that the user is an admin
rec/group:claude/RULE-044/2
business rule
compliance, high
THE Admin Menu SHALL NOT check the signed-on user's type itself; it relies on sign-on sending only admin users ('A') to it, so a session that reaches it with user type 'U' can still open the user-security functions.
  • Session user type (CDEMO-USER-TYPE): U; Option entered: 1 → Control passes to 'COUSR00C' without any user-type check in the Admin Menu
  • User signs on with type: A → Sign-on transfers the user to the Admin Menu ('COADM01C'); type 'U' goes to 'COMEN01C' instead
app/cbl/COADM01C.cbl:86-109, app/cbl/COADM01C.cbl:140-149, app/cpy/COADM02Y.cpy:22-59, app/cbl/COSGN00C.cbl:224-239

Acceptance criteria

IDCriterionChecks
AC-01Given Arriving from: COSGN00C after admin sign-on; Re-entry flag (CDEMO-PGM-CONTEXT): 0
When the Admin Menu is entered with session data and it is not a re-entry from its own screen
Then Blank admin menu shown with options 1-6 and no message
REQ-F-004
Show blank menu on first entry
worked example 1 of the rule
AC-02Given Option entered: '3 '
When the operator presses Enter on the Admin Menu
Then Option treated as 03 and shown as '03'
REQ-F-006
Normalize entered option number
worked example 1 of the rule
AC-03Given Option entered: blank
When the operator presses Enter on the Admin Menu
Then Option treated as 00 (then rejected as invalid)
REQ-F-006
Normalize entered option number
worked example 2 of the rule
AC-04Given Key pressed: Enter; Option entered: 4
When the operator presses Enter on the Admin Menu
Then Option 4 (User Delete (Security)) is processed
REQ-F-006
Route Enter key to option processing
worked example 1 of the rule
AC-05Given Key pressed: PF5
When the operator presses a key other than Enter or PF3 on the Admin Menu
Then Menu redisplayed with 'Invalid key pressed. Please see below...'
REQ-F-007
Reject unsupported key press
worked example 1 of the rule
AC-06Given Option entered: 7
When the option entered on the Admin Menu is not numeric, is zero, or is greater than the number of admin options (6)
Then Menu redisplayed with 'Please enter a valid option number...'
REQ-F-008
Reject invalid option number
worked example 1 of the rule
AC-07Given Option entered: AB
When the option entered on the Admin Menu is not numeric, is zero, or is greater than the number of admin options (6)
Then Menu redisplayed with 'Please enter a valid option number...'
REQ-F-008
Reject invalid option number
worked example 2 of the rule
AC-08Given Option entered: 0
When the option entered on the Admin Menu is not numeric, is zero, or is greater than the number of admin options (6)
Then Menu redisplayed with 'Please enter a valid option number...'
REQ-F-008
Reject invalid option number
worked example 3 of the rule
AC-09Given Option entered: 1
When an operator selects a valid Admin Menu option (1 to 6) whose program name does not start with 'DUMMY'
Then Control passes to 'COUSR00C' (User List (Security))
REQ-F-009
Transfer to selected option program
worked example 1 of the rule
AC-10Given Option entered: 5
When an operator selects a valid Admin Menu option (1 to 6) whose program name does not start with 'DUMMY'
Then Control passes to 'COTRTLIC' (Transaction Type List/Update (Db2))
REQ-F-009
Transfer to selected option program
worked example 2 of the rule
AC-11Given Option entered: 2; Option program: COUSR01C
When a selected Admin Menu option's program name starts with 'DUMMY'
Then The 'DUMMY' check does not match; control passes to 'COUSR01C'
REQ-F-011
Inform option not installed
worked example 1 of the rule
AC-12Given Session user type (CDEMO-USER-TYPE): U; Option entered: 1
When Admin Menu runs
Then Control passes to 'COUSR00C' without any user-type check in the Admin Menu
REQ-N-001
Admin menu does not itself verify that the user is an admin
worked example 1 of the rule
AC-13Given User signs on with type: A
When Admin Menu runs
Then Sign-on transfers the user to the Admin Menu ('COADM01C'); type 'U' goes to 'COMEN01C' instead
REQ-N-001
Admin menu does not itself verify that the user is an admin
worked example 2 of the rule
AC-14Given The admin option table holds 6 options: 1 'User List (Security)', 2 'User Add (Security)', 3 'User Update (Security)', 4 'User Delete (Security)', 5 'Transaction Type List/Update (Db2)', 6 'Transaction Type Maintenance (Db2)'
When The Admin Menu is displayed
Then Six option lines are shown, one per line in order 1 to 6, the first reading '1. User List (Security)' and the sixth reading '6. Transaction Type Maintenance (Db2)', each formed as the option number, '. ' and the option name
REQ-F-005
Compose numbered administrative option labels
written from the rule
AC-15Given The Admin Menu is displayed and the program behind option 5 is not installed in the running system
When The operator enters option 5 and presses Enter
Then The Admin Menu is redisplayed with the message 'This option is not installed ...' in green, without the option name. No other screen is opened, and the menu waits for the next entry.
REQ-F-010
Admin menu handles unavailable functions with a 'not installed' message
written from the rule

Screens

  • Sign in S-SIGN-IN · design · replaces COSGN0A (4 kept, 5 dropped, 4 merged, 1 split)
  • Home S-HOME · design · replaces COMEN1A, COADM1A (38 merged, 6 dropped, 2 split)
    • **data table** Functions checks: Only the functions the role may use are listed, so the 'Please enter a valid option number...' error cannot happen. If a regular user still reaches an administrator function, the server refuses it with 'No access - Admin Only option... '. A coming-soon row opens nothing and says 'This option <name> is coming soon ...'. A function that is not installed opens nothing and says 'This option <name> is not installed...'. Only Enter and click act on a row, so the 'Invalid key pressed. Please see below...' message is no longer needed.
    • **status badge** Availability
  • Users S-USER-LIST · design · replaces COUSR0A (2 kept, 12 dropped, 48 merged, 2 split)
  • Add user S-USER-ADD · design · replaces COUSR1A (7 kept, 2 dropped, 7 merged, 1 split)
  • Update user S-USER-EDIT · design · replaces COUSR2A (8 kept, 2 dropped, 7 merged, 1 split)
  • Delete user S-USER-DELETE · design · replaces COUSR3A (4 kept, 2 dropped, 10 merged, 1 split)
  • CardDemo header and navigation S-APP-HEADER · design
    • **data table** Navigation checks: Every screen checks on the server that a session is signed in. With no session you are sent to Sign in with 'Please sign in to continue.' Administrator-only screens check the role on the server. A regular user who opens one sees 'No access - Admin Only option... ' and stays on Home.

Data contracts

COADM02Y (working storage; COADM01C), COCOM01Y (working storage; COADM01C), COTTL01Y (working storage; COADM01C), CSDAT01Y (working storage; COADM01C), CSMSG01Y (working storage; COADM01C), CSUSR01Y (working storage; COADM01C)

Decision tables

Admin Menu entry and key handling

Session data presentRe-entry from own screenKey pressedAdmin Menu actionRule
YesNo-Clear error and message, mark as re-entry, display fresh empty menurec/aws:UserAccessControl/SystemOperationsandMaintenance/id-2a094f423f/1
YesYesEnterNormalise and process the option number enteredrec/aws:UserAccessControl/SystemOperationsandMaintenance/id-ae8fd0047c/1
YesYesOther than Enter or PF3Flag error, redisplay menu with 'Invalid key pressed. Please see below...'rec/aws:UserAccessControl/SystemOperationsandMaintenance/id-bf886bd08c/1
No--Gap: No rule says what the Admin Menu does when entered without session data.
YesYesPF3Gap: PF3 is excluded from the invalid-key rule, but no rule says what PF3 does on the Admin Menu.

Admin Menu option selection

Option number valid (1 to 6)Program name starts with 'DUMMY'Program defined in CICSAdmin Menu actionRule
No--Flag error, redisplay menu with 'Please enter a valid option number...'rec/aws:UserAccessControl/SystemOperationsandMaintenance/id-c18f68018b/1
YesYes-Redisplay menu with green 'This option is not installed ...'rec/group:claude/RULE-246/2
YesNoYesRecord origin CA00/COADM01C, reset target context, transfer to option programrec/group:claude/RULE-044/1
YesNoNoRedisplay menu with green 'This option is not installed ...' and waitrec/group:claude/RULE-246/1

Open questions

  • SME-073 What should happen when the administration menu is opened without any information from the screen that called it (for example, return to sign-on)? (Application product owner)
  • SME-074 On the administration menu, where should pressing PF3 take the user? (Application product owner)
  • SME-075 Should the new administration menu keep a way to configure an option as 'not installed'? With today's setup no option uses it. (Application product owner)
  • SME-076 The administration menu has 6 options, but the option field takes 2 digits. Should the new system allow more than 6 (or more than 9) administrative options? (Application product owner)
  • SME-077 Today only sign-on checks that a user is an administrator before they reach the Admin Menu. Should the new system check for an administrator user on every admin function? (Security officer)
  • DEF-019 Confirm this is deliberate: The Admin Menu performs no user-type check of its own; access control depends entirely on sign-on routing admins to it. (Subject-matter expert)
  • DEF-098 Confirm this is deliberate: The 'DUMMY' placeholder check is kept in code although no option in the table is a DUMMY entry, so the not-installed message after it can only appear via PGMIDERR. (Subject-matter expert)

Design notes

  • Normalise the option input before validating it: trim trailing blanks, then left-pad it to two digits with zeros (for example '1' or ' 1' becomes '01'), and echo the normalised value back in the option field. In a modern form, accept up to two digits and parse them as an integer. The echoed value must be the two-digit form. Normalize entered option number
3. Navigate the Main Menu with access controldraft · online · 14 requirements · 16 rules · 23 criteria · 3 screens · 1 gap

Is the home menu for every signed-on user. It lists the 11 card, account, transaction, report, bill-payment and authorization functions and opens the one chosen. It must never open without a signed-on session: such visitors go back to sign-on. It must never let a regular user open an admin-only option, and it must reject invalid options and keys with the exact legacy messages.

As a signed-on user, I want to pick a numbered option from the Main Menu, so that I reach the functions I am allowed to use and am kept out of admin-only ones.

Draft: the function is not signed off yet. Risk high; touches security. rec/UserAccessControl/SystemOperationsandMaintenance#3

Requirements

CodeClassRequirementCriteria
REQ-F-012business ruleWhen the Main Menu (transaction CM00) is started without session data, the system shall show no menu and transfer the user to the sign-on screen (COSGN00C).AC-01
REQ-F-013design noteWhen the Main Menu is started with session data whose program state is not 're-enter' (for example straight after sign-on or on return from a function screen), the system shall mark the state as re-enter, clear the screen and show the menu without reading any input.AC-02, AC-03, AC-04
REQ-F-014design noteWhen the Main Menu is started with the program state already 're-enter', the system shall read the screen and handle the key pressed.AC-02, AC-03, AC-05, AC-06
REQ-F-015formattingThe system shall show one Main Menu line per menu option (11 options), each made of the option number, '. ' and the option name, in the screen slot for that option's position.AC-22
REQ-F-016business ruleWhen the user presses Enter on the Main Menu after it has been displayed, the system shall drop trailing blanks from the typed option, right-justify it in two positions, fill blanks with zeros, show the resulting two-digit option number back on the screen and process that option number.AC-05, AC-06, AC-07, AC-08, AC-09
REQ-F-017business ruleWhen the user presses PF3 on the Main Menu, the system shall return the user to the sign-on screen (COSGN00C).AC-05, AC-06, AC-10
REQ-F-018business ruleIf the user presses any key other than Enter or PF3 on the Main Menu, then the system shall redisplay the menu with the message 'Invalid key pressed. Please see below...'.AC-05, AC-06, AC-11
REQ-F-019business ruleIf the option number is not numeric, is zero, or is greater than the number of menu options (11), then the system shall redisplay the menu with the message 'Please enter a valid option number...' and select nothing.AC-12, AC-13, AC-14
REQ-F-020business ruleIf a regular user ('U') selects an option whose user type is 'A', then the system shall flag an error and redisplay the menu with 'No access - Admin Only option... '.AC-15, AC-16
REQ-F-021formattingWhen the selected option's program name starts with 'DUMMY', the system shall redisplay the menu with the green message 'This option <name> is coming soon ...'.AC-17
REQ-F-022business ruleWhen a valid option whose program is neither COPAUS0C nor a placeholder starting with 'DUMMY' is selected, the system shall record transaction 'CM00' and program 'COMEN01C' as the origin, reset the target screen's context to zero, and transfer the user to that option's program with the session data.AC-18, AC-19
REQ-F-023business ruleWhile CICS reports program COPAUS0C as defined, when a valid option whose program is COPAUS0C (option 11, 'Pending Authorization View') is selected, the system shall record transaction 'CM00' and program 'COMEN01C' as the origin, reset the target screen's context, and transfer the user to COPAUS0C with the session data.AC-20
REQ-F-024error handlingIf a valid option whose program is COPAUS0C is selected and CICS does not report that program as defined, then the system shall redisplay the menu with the red message 'This option <option name> is not installed...'.AC-23
REQ-F-025design noteWhen the Main Menu finishes an interaction without transferring to another program, the system shall end the task and wait for the user's next key under transaction 'CM00', passing the session data along.AC-21

Business rules

RuleClassText, worked examples and evidence
Menus require an active session or the user is sent back to sign-on
rec/claude:claude/RULE-174/1
business rule
compliance, medium
WHEN the Main Menu (transaction CM00) is started without session data, THE Main Menu SHALL show no menu and transfer the user to the sign-on screen (COSGN00C).
  • session data length: 0 → The sign-on screen is shown instead of the menu.
app/cbl/COMEN01C.cbl:82-110, app/cbl/COMEN01C.cbl:196-203
Menus require an active session or the user is sent back to sign-on
rec/claude:claude/RULE-174/2
design note
technical, medium
WHEN the Main Menu is started with session data for the first time, THE Main Menu SHALL mark the session as re-entering and display the menu; on later interactions it SHALL read the screen and handle the key pressed.
  • session data: present, first entry from sign-on → The Main Menu is displayed with an empty option field.
  • session data: present, re-entry; key: Enter → The typed option is processed.
app/cbl/COMEN01C.cbl:82-110, app/cbl/COMEN01C.cbl:196-203
Menu first display versus re-entry state
rec/claude:claude/RULE-175/1
design note
technical, medium
WHEN the main menu is started with session data whose program state is not 're-enter' (for example straight after sign-on or on return from a function screen), THE main menu SHALL mark the state as re-enter (CDEMO-PGM-CONTEXT = 1), clear the screen and show the menu without reading any input.
  • Program state (CDEMO-PGM-CONTEXT): 0; Arrived from: sign-on (COSGN00C) → The menu screen is shown blank, with no message, and the state becomes 1
app/cbl/COMEN01C.cbl:75-110, app/cbl/COMEN01C.cbl:186-195, app/cbl/COMEN01C.cbl:200-214, app/cpy/COCOM01Y.cpy:29-31, app/cpy/CSMSG01Y.cpy:20-21, app/cbl/COMEN01C.cbl:37
Menu first display versus re-entry state
rec/claude:claude/RULE-175/2
design note
technical, medium
WHEN the main menu is started with the program state already 're-enter', THE main menu SHALL read the screen and act on the key: Enter processes the chosen option, PF3 transfers to the sign-on screen, and any other key re-shows the menu with 'Invalid key pressed. Please see below...'.
  • Program state (CDEMO-PGM-CONTEXT): 1; Key pressed: PF3 → Control passes to the sign-on screen (COSGN00C)
  • Program state (CDEMO-PGM-CONTEXT): 1; Key pressed: PF5 → The menu is shown again with 'Invalid key pressed. Please see below...'
app/cbl/COMEN01C.cbl:75-110, app/cbl/COMEN01C.cbl:186-195, app/cbl/COMEN01C.cbl:200-214, app/cpy/COCOM01Y.cpy:29-31, app/cpy/CSMSG01Y.cpy:20-21, app/cbl/COMEN01C.cbl:37
Compose numbered menu option lines
rec/aws:UserAccessControl/SystemOperationsandMaintenance/id-811661a49f/1
formatting
display, medium
WHEN the Main Menu is displayed, THE Main Menu SHALL show one line per menu option (11 options), each made of the option number, '. ' and the option name, in the screen slot for that option's position.
app/cbl/COMEN01C.cbl:208-211, app/cbl/COMEN01C.cbl:262-303, app/cpy/COMEN02Y.cpy:21-98
Normalise entered option number
rec/group:claude/RULE-108/1
design note
technical, high
WHEN the user presses Enter on the Main Menu, THE Main Menu SHALL drop trailing blanks from the typed option, right-justify it in two positions, fill blanks with zeros, and show the resulting two-digit option number back on the screen.
  • typed option: '5 ' → The option becomes '05' and option 5 is processed; '05' is shown in the option field.
  • typed option: '11' → The option stays 11 and option 11 is processed.
app/cbl/COMEN01C.cbl:115-134, app/cbl/COMEN01C.cbl:45-46, app/cpy/COMEN02Y.cpy:21, app/cpy-bms/COMEN01.CPY:132
Menu key handling: Enter selects, PF3 exits to sign-on, other keys are rejected
rec/group:claude/RULE-109/1
business rule
business, high
WHEN the user presses Enter on the Main Menu after it has been displayed, THE Main Menu SHALL process the typed option number.
  • key: Enter; typed option: '3' → Option 3 (Credit Card List) is processed.
app/cbl/COMEN01C.cbl:91-103, app/cbl/COMEN01C.cbl:196-203, app/cpy/CSMSG01Y.cpy:20-21
Menu key handling: Enter selects, PF3 exits to sign-on, other keys are rejected
rec/group:claude/RULE-109/2
business rule
business, high
WHEN the user presses PF3 on the Main Menu, THE Main Menu SHALL return the user to the sign-on screen (COSGN00C).
  • key: PF3 → The sign-on screen is shown.
app/cbl/COMEN01C.cbl:91-103, app/cbl/COMEN01C.cbl:196-203, app/cpy/CSMSG01Y.cpy:20-21
Reject unsupported key press
rec/group:claude/RULE-109/3
business rule
validation, high
WHEN the user presses any key other than Enter or PF3 on the Main Menu, THE Main Menu SHALL redisplay the menu with the message 'Invalid key pressed. Please see below...'.
  • key: PF5 → Menu redisplayed with 'Invalid key pressed. Please see below...'.
app/cbl/COMEN01C.cbl:91-103, app/cbl/COMEN01C.cbl:196-203, app/cpy/CSMSG01Y.cpy:20-21
Reject invalid option number
rec/group:claude/RULE-108/2
business rule
validation, high
WHEN the option number is not numeric, is zero, or is greater than the number of menu options (11), THE Main Menu SHALL redisplay the menu with the message 'Please enter a valid option number...' and select nothing.
  • typed option: '0' → Menu redisplayed with 'Please enter a valid option number...'; no program is started.
  • typed option: '12' → Menu redisplayed with 'Please enter a valid option number...'.
  • typed option: 'AB' → Menu redisplayed with 'Please enter a valid option number...'.
app/cbl/COMEN01C.cbl:115-134, app/cbl/COMEN01C.cbl:45-46, app/cpy/COMEN02Y.cpy:21, app/cpy-bms/COMEN01.CPY:132
Deny admin-only option to regular users
rec/agreed:UserAccessControl/SystemOperationsandMaintenance/id-f74ed3f5a8/1
business rule
compliance, low
IF a regular user ('U') selects an option whose user type is 'A', THEN THE Menu Access Control SHALL flag an error and redisplay the menu with 'No access - Admin Only option... '
  • User type: 'U'; Selected option's user type: 'A' → The menu is redisplayed with 'No access - Admin Only option... ' and the option is not started. (No option in the shipped menu table has type 'A', so this cannot happen today.)
  • User type: 'U'; Selected option: 5 (Credit Card Update, type 'U') → No access error; the option's program COCRDUPC is started.
app/cbl/COMEN01C.cbl:136-138,140-143, app/cbl/COMEN01C.cbl:136-143
Announce coming-soon option
rec/agreed:UserAccessControl/SystemOperationsandMaintenance/id-07ce21af49/1
formatting
display, low
WHEN the selected option's program name starts with 'DUMMY', THE Menu Navigation SHALL redisplay the menu with the green message 'This option <name> is coming soon ...'
  • Selected option: 9 (Transaction Reports, program CORPT00C) → No coming-soon message; CORPT00C is started.
app/cbl/COMEN01C.cbl:169-176,188,190-191, app/cbl/COMEN01C.cbl:169-176
Transfer to selected menu function
rec/group:claude/RULE-173/1
business rule
business, high
WHEN a valid option whose program is neither COPAUS0C nor a placeholder starting with 'DUMMY' is selected, THE Main Menu SHALL record transaction 'CM00' and program 'COMEN01C' as the origin, reset the target screen's context to zero, and transfer the user to that option's program with the session data.
  • typed option: '1' → The user is taken to Account View (COACTVWC), which sees origin 'CM00'/'COMEN01C' and starts fresh.
  • typed option: '10' → The user is taken to Bill Payment (COBIL00C).
app/cbl/COMEN01C.cbl:177-188, app/cpy/COMEN02Y.cpy:25-90
Open pending authorization view when installed
rec/group:claude/RULE-225/1
business rule
business, high
WHEN a valid option whose program is COPAUS0C (option 11, 'Pending Authorization View') is selected and CICS reports that program as defined, THE Main Menu SHALL record transaction 'CM00' and program 'COMEN01C' as the origin, reset the target screen's context, and transfer the user to COPAUS0C with the session data.
  • typed option: '11'; COPAUS0C defined in CICS: yes → The user is taken to the Pending Authorization View.
app/cbl/COMEN01C.cbl:145-168, app/cbl/COMEN01C.cbl:190, app/cpy/COMEN02Y.cpy:86-90
Report option not installed
rec/group:claude/RULE-225/2
error handling
error_handling, high
WHEN a valid option whose program is COPAUS0C is selected and CICS does not report that program as defined, THE Main Menu SHALL redisplay the menu with the red message 'This option <option name> is not installed...'.
app/cbl/COMEN01C.cbl:145-168, app/cbl/COMEN01C.cbl:190, app/cpy/COMEN02Y.cpy:86-90
Menu first display versus re-entry state
rec/claude:claude/RULE-175/3
design note
technical, medium
WHEN the main menu finishes an interaction without transferring to another program, THE main menu SHALL end the task and wait for the user's next key under transaction 'CM00', passing the session data along.
  • Program state (CDEMO-PGM-CONTEXT): 0 → The menu is shown and the next key press starts transaction 'CM00' with the same session data
app/cbl/COMEN01C.cbl:75-110, app/cbl/COMEN01C.cbl:186-195, app/cbl/COMEN01C.cbl:200-214, app/cpy/COCOM01Y.cpy:29-31, app/cpy/CSMSG01Y.cpy:20-21, app/cbl/COMEN01C.cbl:37

Acceptance criteria

IDCriterionChecks
AC-01Given session data length: 0
When the Main Menu (transaction CM00) is started without session data
Then The sign-on screen is shown instead of the menu.
REQ-F-012
Menus require an active session or the user is sent back to sign-on
worked example 1 of the rule
AC-02Given session data: present, first entry from sign-on
When the Main Menu is started with session data for the first time
Then The Main Menu is displayed with an empty option field.
REQ-F-013, REQ-F-014
Menus require an active session or the user is sent back to sign-on
worked example 1 of the rule
AC-03Given session data: present, re-entry; key: Enter
When the Main Menu is started with session data for the first time
Then The typed option is processed.
REQ-F-013, REQ-F-014
Menus require an active session or the user is sent back to sign-on
worked example 2 of the rule
AC-04Given Program state (CDEMO-PGM-CONTEXT): 0; Arrived from: sign-on (COSGN00C)
When the main menu is started with session data whose program state is not 're-enter' (for example straight after sign-on or on return from a function screen)
Then The menu screen is shown blank, with no message, and the state becomes 1
REQ-F-013
Menu first display versus re-entry state
worked example 1 of the rule
AC-05Given Program state (CDEMO-PGM-CONTEXT): 1; Key pressed: PF3
When the main menu is started with the program state already 're-enter'
Then Control passes to the sign-on screen (COSGN00C)
REQ-F-014, REQ-F-016, REQ-F-017, REQ-F-018
Menu first display versus re-entry state
worked example 1 of the rule
AC-06Given Program state (CDEMO-PGM-CONTEXT): 1; Key pressed: PF5
When the main menu is started with the program state already 're-enter'
Then The menu is shown again with 'Invalid key pressed. Please see below...'
REQ-F-014, REQ-F-016, REQ-F-017, REQ-F-018
Menu first display versus re-entry state
worked example 2 of the rule
AC-07Given typed option: '5 '
When the user presses Enter on the Main Menu
Then The option becomes '05' and option 5 is processed; '05' is shown in the option field.
REQ-F-016
Normalise entered option number
worked example 1 of the rule
AC-08Given typed option: '11'
When the user presses Enter on the Main Menu
Then The option stays 11 and option 11 is processed.
REQ-F-016
Normalise entered option number
worked example 2 of the rule
AC-09Given key: Enter; typed option: '3'
When the user presses Enter on the Main Menu after it has been displayed
Then Option 3 (Credit Card List) is processed.
REQ-F-016
Menu key handling: Enter selects, PF3 exits to sign-on, other keys are rejected
worked example 1 of the rule
AC-10Given key: PF3
When the user presses PF3 on the Main Menu
Then The sign-on screen is shown.
REQ-F-017
Menu key handling: Enter selects, PF3 exits to sign-on, other keys are rejected
worked example 1 of the rule
AC-11Given key: PF5
When the user presses any key other than Enter or PF3 on the Main Menu
Then Menu redisplayed with 'Invalid key pressed. Please see below...'.
REQ-F-018
Reject unsupported key press
worked example 1 of the rule
AC-12Given typed option: '0'
When the option number is not numeric, is zero, or is greater than the number of menu options (11)
Then Menu redisplayed with 'Please enter a valid option number...'; no program is started.
REQ-F-019
Reject invalid option number
worked example 1 of the rule
AC-13Given typed option: '12'
When the option number is not numeric, is zero, or is greater than the number of menu options (11)
Then Menu redisplayed with 'Please enter a valid option number...'.
REQ-F-019
Reject invalid option number
worked example 2 of the rule
AC-14Given typed option: 'AB'
When the option number is not numeric, is zero, or is greater than the number of menu options (11)
Then Menu redisplayed with 'Please enter a valid option number...'.
REQ-F-019
Reject invalid option number
worked example 3 of the rule
AC-15Given User type: 'U'; Selected option's user type: 'A'
When a regular user ('U') selects an option whose user type is 'A'
Then The menu is redisplayed with 'No access - Admin Only option... ' and the option is not started. (No option in the shipped menu table has type 'A', so this cannot happen today.)
REQ-F-020
Deny admin-only option to regular users
worked example 1 of the rule
AC-16Given User type: 'U'; Selected option: 5 (Credit Card Update, type 'U')
When a regular user ('U') selects an option whose user type is 'A'
Then No access error; the option's program COCRDUPC is started.
REQ-F-020
Deny admin-only option to regular users
worked example 2 of the rule
AC-17Given Selected option: 9 (Transaction Reports, program CORPT00C)
When the selected option's program name starts with 'DUMMY'
Then No coming-soon message; CORPT00C is started.
REQ-F-021
Announce coming-soon option
worked example 1 of the rule
AC-18Given typed option: '1'
When a valid option whose program is neither COPAUS0C nor a placeholder starting with 'DUMMY' is selected
Then The user is taken to Account View (COACTVWC), which sees origin 'CM00'/'COMEN01C' and starts fresh.
REQ-F-022
Transfer to selected menu function
worked example 1 of the rule
AC-19Given typed option: '10'
When a valid option whose program is neither COPAUS0C nor a placeholder starting with 'DUMMY' is selected
Then The user is taken to Bill Payment (COBIL00C).
REQ-F-022
Transfer to selected menu function
worked example 2 of the rule
AC-20Given typed option: '11'; COPAUS0C defined in CICS: yes
When a valid option whose program is COPAUS0C (option 11, 'Pending Authorization View') is selected and CICS reports that program as defined
Then The user is taken to the Pending Authorization View.
REQ-F-023
Open pending authorization view when installed
worked example 1 of the rule
AC-21Given Program state (CDEMO-PGM-CONTEXT): 0
When the main menu finishes an interaction without transferring to another program
Then The menu is shown and the next key press starts transaction 'CM00' with the same session data
REQ-F-025
Menu first display versus re-entry state
worked example 1 of the rule
AC-22Given The menu option table holds 11 options, option 1 named 'Account View' and option 11 named 'Pending Authorization View'
When The Main Menu is displayed
Then Eleven option lines are shown, each in the slot for its position, the first reading '1. Account View' and the eleventh reading '11. Pending Authorization View', each formed as the option number, '. ' and the option name
REQ-F-015
Compose numbered menu option lines
written from the rule
AC-23Given A signed-on user is on the Main Menu and the Pending Authorization View program (COPAUS0C) is not installed
When The user enters option 11 and presses Enter
Then The Main Menu is redisplayed with the message 'This option Pending Authorization View is not installed...' in red, and the user stays on the menu
REQ-F-024
Report option not installed
written from the rule

Screens

  • Sign in S-SIGN-IN · design · replaces COSGN0A (4 kept, 5 dropped, 4 merged, 1 split)
  • Home S-HOME · design · replaces COMEN1A, COADM1A (38 merged, 6 dropped, 2 split)
    • **data table** Functions checks: Only the functions the role may use are listed, so the 'Please enter a valid option number...' error cannot happen. If a regular user still reaches an administrator function, the server refuses it with 'No access - Admin Only option... '. A coming-soon row opens nothing and says 'This option <name> is coming soon ...'. A function that is not installed opens nothing and says 'This option <name> is not installed...'. Only Enter and click act on a row, so the 'Invalid key pressed. Please see below...' message is no longer needed.
    • **status badge** Availability
  • CardDemo header and navigation S-APP-HEADER · design
    • **data table** Navigation checks: Every screen checks on the server that a session is signed in. With no session you are sent to Sign in with 'Please sign in to continue.' Administrator-only screens check the role on the server. A regular user who opens one sees 'No access - Admin Only option... ' and stays on Home.
    • **primary button** Sign out

Data contracts

COCOM01Y (working storage; COMEN01C), COMEN02Y (working storage; COMEN01C), COTTL01Y (working storage; COMEN01C), CSDAT01Y (working storage; COMEN01C), CSMSG01Y (working storage; COMEN01C), CSUSR01Y (working storage; COMEN01C)

Decision tables

Main Menu entry and key handling

Session data presentProgram state 're-enter'Key pressedMain Menu actionRule
No--Show no menu, transfer to sign-on (COSGN00C)rec/claude:claude/RULE-174/1
YesNo-Mark state re-enter, clear screen, show menu without reading inputrec/claude:claude/RULE-175/1
YesYesEnterProcess the typed option numberrec/group:claude/RULE-109/1
YesYesPF3Return to sign-on screen (COSGN00C)rec/group:claude/RULE-109/2
YesYesOther keyRedisplay menu with 'Invalid key pressed. Please see below...'rec/group:claude/RULE-109/3

Main Menu option selection

Option number valid (1 to 11)Regular user ('U') selecting option with user type 'A'Option programCOPAUS0C defined in CICSMain Menu actionRule
No---Redisplay menu with 'Please enter a valid option number...', select nothingrec/group:claude/RULE-108/2
YesYes--Flag error, redisplay menu with 'No access - Admin Only option... 'rec/agreed:UserAccessControl/SystemOperationsandMaintenance/id-f74ed3f5a8/1
YesNoStarts with 'DUMMY'-Redisplay menu with green 'This option <name> is coming soon ...'rec/agreed:UserAccessControl/SystemOperationsandMaintenance/id-07ce21af49/1
YesNoOther program-Record origin CM00/COMEN01C, reset target context to zero, transfer to option programrec/group:claude/RULE-173/1
YesNoCOPAUS0CYesRecord origin CM00/COMEN01C, reset target context, transfer to COPAUS0Crec/group:claude/RULE-225/1
YesNoCOPAUS0CNoRedisplay menu with red 'This option <option name> is not installed...'rec/group:claude/RULE-225/2
YesYesStarts with 'DUMMY' or COPAUS0C-Gap: The rules do not say whether the admin-only check or the 'coming soon'/'not installed' check takes precedence when a regular user selects an admin-only option whose program is a placeholder or COPAUS0C.

Open questions

  • SME-128 In the main menu, the 'not installed' and 'coming soon' messages cut off the option name differently and differ in spacing. Should these differences be kept or made consistent? (Product owner)
  • SME-129 When the main menu passes control to a selected function, what session information must be passed (for example, the signed-on user's ID and user type)? (Application architecture team)
  • SME-130 Is the rule that menus require an active session, and otherwise send the user back to sign-on, critical to the system's core purpose or costly if wrong? (Business owner)
  • DEF-047 Is this intended? After an invalid option is flagged, the program still runs the admin-only check using the invalid number as a table index (0 or above 11), reading outside the 11 filled entries; it is harmless today only because the error flag already stops navigation. (Subject-matter expert)
  • DEF-164 Is this intended? With no session data the program puts 'COSGN00C' into the origin field instead of the destination field; it still reaches sign-on only because the transfer routine defaults a blank destination to COSGN00C. (Subject-matter expert)

Design notes

  • Distinguish the first display of the menu from a submission: arriving at the menu (a GET or navigation) renders it, and only a submission (POST or action) reads the input and handles the key. Track this through the request type or a per-session screen state. Do not use a shared flag. Menus require an active session or the user is sent back to sign-on
  • When the menu is entered fresh, for example after sign-on or on return from a function screen, set the session's menu state to 're-enter' and render a clean menu with no option value and no message. Do not process any input on this request. Menu first display versus re-entry state
  • On a submission, dispatch on the action: 'Enter' or submit processes the chosen option, 'PF3' (a Back or Exit action) returns to the sign-on screen, and any other action re-renders the menu with 'Invalid key pressed. Please see below...'. Map the legacy function keys to explicit actions or keyboard shortcuts in the new UI. Menu first display versus re-entry state
  • Normalise the typed option before validating it: trim trailing blanks, left-pad it to two digits with zeros, and echo the two-digit value back in the option field. A numeric input limited to two digits is enough in the new UI, provided the echo and the validation behave the same. Normalise entered option number
  • After any interaction that stays on the menu, keep the user's session, including user identity, type and navigation origin, so the next submission returns to the Main Menu. In a web application this is ordinary server-side or token session state between requests. Nothing needs to stay running while the application waits for the user. Menu first display versus re-entry state
4. Send the CardDemo test file by FTPdraft · scheduled job · 2 requirements · 2 rules · 2 criteria

Is an operations job that sends the CardDemo test file to a remote FTP folder, to prove that outbound file transfer works. It is for operations administrators, not end users. It must deliver the file as text to '/ftpfolder' under the name 'welcome.txt' on the configured server, and must keep the sign-on credentials out of the job definition.

As an operations administrator, I want the CardDemo test dataset sent to the remote FTP folder, so that the file transfer path can be exercised.

Draft: the function is not signed off yet. Risk high; touches security. rec/UserAccessControl/SystemOperationsandMaintenance#4

Requirements

CodeClassRequirementCriteria
REQ-F-026business ruleThe system shall sign on to the FTP server 172.31.21.124 as user 'carddemousr', switch to text (ASCII) mode, list the current remote folder and its contents, and change to the remote folder '/ftpfolder'.AC-01
REQ-F-027side effectWhile the transfer session is positioned in '/ftpfolder', the system shall send the mainframe dataset 'AWS.M2.CARDEMO.FTP.TEST' to that folder as 'welcome.txt' and then end the session (QUIT).AC-02

Business rules

RuleClassText, worked examples and evidence
Send card demo test file to remote folder
rec/aws:UserAccessControl/SystemOperationsandMaintenance/id-3adfdd5cec/1
business rule
compliance, medium
THE Outbound File Transfer SHALL sign on to the FTP server 172.31.21.124 as user 'carddemousr', switch to text (ASCII) mode, list the current remote folder and its contents, and change to the remote folder '/ftpfolder'.
  • Server: 172.31.21.124; User: carddemousr → The session is signed on in ASCII mode and positioned in /ftpfolder
app/jcl/FTPJCL.JCL:30-41, app/jcl/FTPJCL.JCL:21-29
Send card demo test file to remote folder
rec/aws:UserAccessControl/SystemOperationsandMaintenance/id-3adfdd5cec/2
side effect
side_effect, medium
WHEN the transfer session is positioned in '/ftpfolder', THE Outbound File Transfer SHALL send the mainframe dataset 'AWS.M2.CARDEMO.FTP.TEST' to that folder as 'welcome.txt' and then end the session (QUIT).
  • Dataset: AWS.M2.CARDEMO.FTP.TEST → The remote folder /ftpfolder holds welcome.txt with the dataset content as text
app/jcl/FTPJCL.JCL:30-41, app/jcl/FTPJCL.JCL:21-29

Acceptance criteria

IDCriterionChecks
AC-01Given Server: 172.31.21.124; User: carddemousr
When Outbound File Transfer runs
Then The session is signed on in ASCII mode and positioned in /ftpfolder
REQ-F-026
Send card demo test file to remote folder
worked example 1 of the rule
AC-02Given Dataset: AWS.M2.CARDEMO.FTP.TEST
When the transfer session is positioned in '/ftpfolder'
Then The remote folder /ftpfolder holds welcome.txt with the dataset content as text
REQ-F-027
Send card demo test file to remote folder
worked example 1 of the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-261 If the file transfer of welcome.txt fails at sign-on, mode setting, folder change or send, what should happen: report failure, retry, or leave a partial file on the remote server? (System operations)
  • SME-262 If welcome.txt already exists in the remote folder, should the transfer overwrite it, keep a version, or refuse? (System operations)
  • SME-263 Which remote server, target folder and sign-on identity should the new file transfer use? (System operations)
  • DEF-149 Confirm this is deliberate: The FTP user's password is written in clear text in the job input and sent over unencrypted FTP; also the header comment calls this a job to receive a file although it sends one. (Subject-matter expert)

Design notes

None.

5. Back up and distribute the FTP test filedraft · scheduled job · 3 requirements · 3 rules · 3 criteria

Is a pair of operations jobs that back up the FTP test file and then copy the backup on, the first job starting the second. It is for operations administrators. Every record must be copied unchanged, and the follow-on copy must run only after the backup has been written.

As an operations administrator, I want the FTP test file backed up and the backup copied on by a follow-on job, so that copies of the test file are kept.

Draft: the function is not signed off yet. Risk low. rec/UserAccessControl/SystemOperationsandMaintenance#5

Requirements

CodeClassRequirementCriteria
REQ-F-028design noteThe system shall copy every record of the FTP test file 'AWS.M2.CARDEMO.FTP.TEST' into the existing backup file 'AWS.M2.CARDEMO.FTP.TEST.BKUP', opening both files for shared access.AC-01
REQ-F-029design noteThe system shall submit the stored follow-on job INTRDRJ2 by copying its job definition (member INTRDRJ2 of 'AWS.M2.CARDDEMO.JCL') unchanged, as 80-byte records, to the system's internal job reader under output class 'A'.AC-02
REQ-F-030design noteThe system shall copy every record of the FTP test backup dataset 'AWS.M2.CARDEMO.FTP.TEST.BKUP' into the already-existing internal-reader copy 'AWS.M2.CARDEMO.FTP.TEST.BKUP.INTRDR', opening both datasets in shared mode so other jobs may use them at the same time.AC-03

Business rules

RuleClassText, worked examples and evidence
Back up the FTP test file
rec/aws:UserAccessControl/SystemOperationsandMaintenance/id-ae8d5465be/1
design note
technical, medium
THE FTP test backup job (INTRDRJ1, first step) SHALL copy every record of the FTP test file 'AWS.M2.CARDEMO.FTP.TEST' into the existing backup file 'AWS.M2.CARDEMO.FTP.TEST.BKUP', opening both files for shared access.
  • Input file: AWS.M2.CARDEMO.FTP.TEST with 12 records; Backup file: AWS.M2.CARDEMO.FTP.TEST.BKUP, already catalogued → The 12 records are copied into AWS.M2.CARDEMO.FTP.TEST.BKUP.
app/jcl/INTRDRJ1.JCL:6-12, app/jcl/FTPJCL.JCL:40
Submit the follow-on job definition
rec/aws:UserAccessControl/SystemOperationsandMaintenance/id-ba43bbb765/1
design note
technical, medium
THE FTP test backup job (INTRDRJ1, STEP01) SHALL submit the stored follow-on job INTRDRJ2 by copying its job definition (member INTRDRJ2 of 'AWS.M2.CARDDEMO.JCL') unchanged, as 80-byte records, to the system's internal job reader under output class 'A'.
  • Job library member: AWS.M2.CARDDEMO.JCL(INTRDRJ2) → INTRDRJ2 is submitted for execution. It then copies AWS.M2.CARDEMO.FTP.TEST.BKUP to AWS.M2.CARDEMO.FTP.TEST.BKUP.INTRDR.
app/jcl/INTRDRJ1.JCL:13-18, app/jcl/INTRDRJ2.JCL:1-10
Copy FTP test backup to internal-reader dataset
rec/aws:UserAccessControl/SystemOperationsandMaintenance/id-7805af6a98/1
design note
technical, medium
THE FTP test backup distribution job SHALL copy every record of the FTP test backup dataset (AWS.M2.CARDEMO.FTP.TEST.BKUP) into the already-existing internal-reader copy (AWS.M2.CARDEMO.FTP.TEST.BKUP.INTRDR), opening both datasets in shared mode so other jobs may use them at the same time.
  • AWS.M2.CARDEMO.FTP.TEST.BKUP: 120 records; AWS.M2.CARDEMO.FTP.TEST.BKUP.INTRDR: existing dataset → The 120 records are copied into AWS.M2.CARDEMO.FTP.TEST.BKUP.INTRDR.
app/jcl/INTRDRJ2.JCL:7-12

Acceptance criteria

IDCriterionChecks
AC-01Given Input file: AWS.M2.CARDEMO.FTP.TEST with 12 records; Backup file: AWS.M2.CARDEMO.FTP.TEST.BKUP, already catalogued
When FTP test backup job (INTRDRJ1, first step) runs
Then The 12 records are copied into AWS.M2.CARDEMO.FTP.TEST.BKUP.
REQ-F-028
Back up the FTP test file
worked example 1 of the rule
AC-02Given Job library member: AWS.M2.CARDDEMO.JCL(INTRDRJ2)
When FTP test backup job (INTRDRJ1, STEP01) runs
Then INTRDRJ2 is submitted for execution. It then copies AWS.M2.CARDEMO.FTP.TEST.BKUP to AWS.M2.CARDEMO.FTP.TEST.BKUP.INTRDR.
REQ-F-029
Submit the follow-on job definition
worked example 1 of the rule
AC-03Given AWS.M2.CARDEMO.FTP.TEST.BKUP: 120 records; AWS.M2.CARDEMO.FTP.TEST.BKUP.INTRDR: existing dataset
When FTP test backup distribution job runs
Then The 120 records are copied into AWS.M2.CARDEMO.FTP.TEST.BKUP.INTRDR.
REQ-F-030
Copy FTP test backup to internal-reader dataset
worked example 1 of the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-264 The FTP test file backup job is described as starting a follow-on job. Should the new system start a follow-on job after the backup, which one is it and what does it do, and should it be a chained submission or a scheduler dependency? (Batch operations)
  • SME-265 Should the FTP test file backup replace the backup file's previous contents or add to them? (Batch operations)
  • SME-266 Other work can change the FTP test file while it is being backed up. Is a backup that includes those changes acceptable, or must the file be kept stable during the copy? (System operations)
  • SME-267 The follow-on job is submitted with output class 'A'. What does that class mean, and which class or routing should the new scheduler use? (Batch operations)
  • SME-268 The job description says it creates the physical files for the IMS database DEMODB and its index DEMODX, but the job only copies the FTP test backup. Must the new system create those database files? (Batch operations / application owner)
  • SME-269 While the FTP backup reader file is being written, other jobs could read it half-written. Should the new system stop that? (Batch operations)
  • DEF-148 Is this intended? STEP01 has no condition code check, so the follow-on job is submitted even when the backup copy in the first step fails. (Subject-matter expert)
  • DEF-153 Is this intended? The job's header comment says it creates the physical VSAM file for IMS DEMODB and index DEMODX, but the job only copies the FTP test backup; the comment appears to have been copied from another job. (Subject-matter expert)

Design notes

  • A scheduled job step that copies the FTP test file record for record into the existing backup location, for example object-storage copy or file copy. It must not lock out other readers or writers while it runs, and it fails if the backup target does not already exist. Back up the FTP test file
  • After the backup step succeeds, the job triggers the follow-on job (INTRDRJ2) from its stored, unchanged definition. In a modern scheduler or workflow engine this is a job dependency or chained trigger, not the copying of a job definition to a reader. The legacy output class 'A' becomes the follow-on job's default log destination. Submit the follow-on job definition
  • A follow-on job that copies every record of the backup file into the already-existing secondary copy (the '.INTRDR' copy). Both files stay readable by other jobs while it runs. It runs only when the first job triggers it. Copy FTP test backup to internal-reader dataset
6. Authorize online transaction under the card security profiledraft · scheduled job · 1 requirements · 1 rules · 1 criterion

Is a security administration step that puts the CT02 online function under the CARD access profile, so only users granted that profile can run it. It is for security administrators. It must add CT02 to the CARD profile and record the result for audit, and must never leave CT02 reachable outside that profile.

As a security administrator, I want transaction CT02 added to the CARD transaction profile, so that access to it is controlled by the card security profile.

Draft: the function is not signed off yet. Risk high; touches audit, security. rec/UserAccessControl/SystemOperationsandMaintenance#6

Requirements

CodeClassRequirementCriteria
REQ-F-031business ruleThe system shall add online transaction 'CT02' as a member of the transaction profile 'CARD' in the grouped CICS transaction class 'GCICSTRN', and print the command results to the job output.AC-01

Business rules

RuleClassText, worked examples and evidence
Authorize transaction under card profile
rec/aws:UserAccessControl/SystemOperationsandMaintenance/id-f95f459148/1
business rule
compliance, medium
THE security administration job (RACFCMDS) SHALL add online transaction 'CT02' as a member of the transaction profile 'CARD' in the grouped CICS transaction class 'GCICSTRN', and SHALL print the command results to the job output.
  • Profile: CARD in class GCICSTRN; Transaction: CT02 → CT02 becomes a member of profile CARD, so users permitted to CARD are authorised for CT02; the command output is printed in the job listing.
samples/jcl/RACFCMDS.jcl:19-26

Acceptance criteria

IDCriterionChecks
AC-01Given Profile: CARD in class GCICSTRN; Transaction: CT02
When security administration job (RACFCMDS) runs
Then CT02 becomes a member of profile CARD, so users permitted to CARD are authorised for CT02; the command output is printed in the job listing.
REQ-F-031
Authorize transaction under card profile
worked example 1 of the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-276 The command connecting user AWSCODR to the application development group (M2APPDEV) sits after the job's end marker and may never run today. Should the modernized process apply this group connection, and should it run together with the CT02 profile update or separately? (Security administration team)

Design notes

None.

User Security Profile Management

1. Sign on to CardDemodraft · online · 15 requirements · 17 rules · 19 criteria · 7 screens

Lets every CardDemo user sign on with a User ID and Password and sends them to the menu for their user type: the admin menu for type 'A', the main menu for every other type. User ID and Password are both upper-cased before the check, so sign-on is not case-sensitive. It must never route a non-'A' user to the admin menu, and it must never sign anyone on whose stored password does not match.

As a CardDemo user, I want to sign on with my User ID and Password, so that I reach the menu that matches my user type.

Draft: the function is not signed off yet. Risk high; touches audit, security. rec/UserAccessControl/UserSecurityProfileManagement#1

Requirements

CodeClassRequirementCriteria
REQ-F-001formattingWhen the sign-on transaction (CC00) starts with no data passed in from a previous screen, the system shall clear the error state and message and show a blank sign-on screen with the cursor on the User ID field.AC-01
REQ-F-002business ruleWhen the user presses Enter on the sign-on screen, the system shall check the entered User ID and Password and try to sign the user on.AC-02
REQ-F-003business ruleWhen Enter is pressed and the User ID is blank, the system shall redisplay the sign-on screen with 'Please enter User ID ...' and the cursor on the User ID field, without reading the user security file.AC-03
REQ-F-004business ruleWhen Enter is pressed with a User ID but a blank Password, the system shall redisplay the sign-on screen with 'Please enter Password ...' and the cursor on the Password field, without reading the user security file.AC-04
REQ-F-005business ruleWhen both User ID and Password are entered, the system shall convert both to upper case, keep the User ID for the session, and look the user up in the user security file (USRSEC) by that User ID.AC-19
REQ-F-006business ruleIf no user security record exists for the entered User ID, then the system shall redisplay the sign-on screen with 'User not found. Try again ...' and the cursor on the User ID field.AC-05
REQ-F-007error handlingIf reading the user security file fails for any reason other than the user not being found, then the system shall redisplay the sign-on screen with 'Unable to verify the User ...' and the cursor on the User ID field.AC-06
REQ-F-008business ruleIf the user is found but the stored password differs from the upper-cased entered password, then the system shall redisplay the sign-on screen with 'Wrong Password. Try again ...' and the cursor on the Password field.AC-07, AC-08
REQ-N-001business ruleIf a user enters a wrong password, then the system shall allow another attempt, with no limit on the number of failed attempts, no account lockout and no record of the failure.AC-08
REQ-F-009business ruleWhen the user is found and the stored password equals the upper-cased entered password, the system shall record the session context for the next program: coming from transaction 'CC00' and program 'COSGN00C', the user ID in upper case, the user's type from the user security file, and a program context of 0 (first entry).AC-09, AC-10
REQ-F-010business ruleWhen sign-on succeeds and the user's type is 'A' (administrator), the system shall transfer control to the administrator menu (COADM01C), passing the session context.AC-09, AC-10, AC-11
REQ-F-011business ruleWhen sign-on succeeds and the user's type is anything other than 'A', the system shall transfer control to the regular user main menu (COMEN01C), not the admin menu, passing the session context.AC-09, AC-10, AC-12, AC-13, AC-14, AC-15
REQ-F-012business ruleWhen the user presses PF3 on the sign-on screen, the system shall clear the terminal, show the plain-text message 'Thank you for using CardDemo application...' and end without starting the sign-on transaction again.AC-16
REQ-F-013business ruleWhen the user presses any key other than Enter or PF3 on the sign-on screen, the system shall redisplay the sign-on screen with the message 'Invalid key pressed. Please see below...'.AC-17
REQ-F-014design noteWhen the sign-on screen is shown (first entry, an input error or an invalid key), the system shall wait for the user's next key under the sign-on transaction CC00, passing the CardDemo session data forward.AC-18

Business rules

RuleClassText, worked examples and evidence
Show blank sign-on screen on first entry
rec/group:claude/RULE-178/1
formatting
display, high
WHEN the sign-on transaction (CC00) starts with no data passed in from a previous screen, THE sign-on program SHALL clear the error state and message and show a blank sign-on screen with the cursor on the User ID field.
  • Transaction: CC00 typed on a fresh terminal; Data passed in (EIBCALEN): 0 → A blank sign-on screen is shown with the cursor in User ID and no message
app/cbl/COSGN00C.cbl:73-102, app/cbl/COSGN00C.cbl:162-172, app/cpy/CSMSG01Y.cpy:17-21, app/cbl/COSGN00C.cbl:37
Route Enter key to sign-on processing
rec/group:claude/RULE-178/2
business rule
business, high
WHEN the user presses Enter on the sign-on screen, THE sign-on program SHALL check the entered User ID and Password and try to sign the user on.
  • Key: Enter; User ID: ADMIN01; Password: PASS1234 → The credentials are checked against the user security file
app/cbl/COSGN00C.cbl:73-102, app/cbl/COSGN00C.cbl:162-172, app/cpy/CSMSG01Y.cpy:17-21, app/cbl/COSGN00C.cbl:37
Reject sign-on with missing user ID
rec/group:claude/RULE-112/1
business rule
validation, high
WHEN Enter is pressed and the User ID is blank, THE sign-on program SHALL redisplay the sign-on screen with 'Please enter User ID ...' and the cursor on the User ID field, without reading the user security file.
  • User ID: (blank); Password: PASS1234 → 'Please enter User ID ...' is shown with the cursor in User ID
app/cbl/COSGN00C.cbl:117-140
Reject sign-on with missing password
rec/group:claude/RULE-112/2
business rule
validation, high
WHEN Enter is pressed with a User ID but a blank Password, THE sign-on program SHALL redisplay the sign-on screen with 'Please enter Password ...' and the cursor on the Password field, without reading the user security file.
  • User ID: ADMIN01; Password: (blank) → 'Please enter Password ...' is shown with the cursor in Password
app/cbl/COSGN00C.cbl:117-140
Normalize credentials and gate user lookup
rec/group:claude/RULE-047/1
business rule
business, high
WHEN both User ID and Password are entered, THE sign-on program SHALL convert both to upper case, keep the User ID for the session, and look the user up in the user security file (USRSEC) by that User ID.
app/cbl/COSGN00C.cbl:132-140, app/cbl/COSGN00C.cbl:209-257, app/cpy/COCOM01Y.cpy:26-27, app/cbl/COSGN00C.cbl:39
Reject unknown user
rec/aws:UserAccessControl/UserSecurityProfileManagement/id-bd1e258214/1
business rule
validation, medium
WHEN no user security record exists for the entered User ID, THE sign-on program SHALL redisplay the sign-on screen with 'User not found. Try again ...' and the cursor on the User ID field.
  • User ID: NOBODY01; Password: PASS1234 → 'User not found. Try again ...' is shown with the cursor in User ID
app/cbl/COSGN00C.cbl:247-251
Credential authentication against the user security file (case-insensitive)
rec/group:claude/RULE-047/4
error handling
error_handling, high
WHEN reading the user security file fails for any reason other than the user not being found, THE sign-on program SHALL redisplay the sign-on screen with 'Unable to verify the User ...' and the cursor on the User ID field.
  • User security file: closed or unavailable; User ID: ADMIN01 → 'Unable to verify the User ...' is shown with the cursor in User ID
app/cbl/COSGN00C.cbl:132-140, app/cbl/COSGN00C.cbl:209-257, app/cpy/COCOM01Y.cpy:26-27, app/cbl/COSGN00C.cbl:39
Reject wrong password
rec/group:claude/RULE-047/3
business rule
validation, high
WHEN the user is found but the stored password differs from the upper-cased entered password, THE sign-on program SHALL redisplay the sign-on screen with 'Wrong Password. Try again ...' and the cursor on the Password field.
  • User ID: ADMIN01; Stored password: PASS1234; Entered password: pass9999 → 'Wrong Password. Try again ...' is shown with the cursor in Password
app/cbl/COSGN00C.cbl:132-140, app/cbl/COSGN00C.cbl:209-257, app/cpy/COCOM01Y.cpy:26-27, app/cbl/COSGN00C.cbl:39
No limit on failed sign-on attempts
rec/claude:claude/RULE-227/1
business rule
compliance, medium
WHEN a user enters a wrong password, THE sign-on screen SHALL show 'Wrong Password. Try again ...' and allow another attempt, with no limit on the number of failed attempts, no account lockout and no record of the failure.
  • User ID: USER0001; Failed attempts so far: 10; Password entered: wrong → Message 'Wrong Password. Try again ...' is shown; the user may try again and nothing is logged or locked
app/cbl/COSGN00C.cbl:241-246, app/cbl/COSGN00C.cbl:209-257, app/cbl/COSGN00C.cbl:98-102
Role-based routing and session context set-up after successful sign-on
rec/claude:claude/RULE-177/1
design note
technical, medium
WHEN the entered password matches the stored password for the user ID, THE sign-on screen SHALL record the session context for the next program: coming from transaction 'CC00' and program 'COSGN00C', the user ID in upper case, the user's type from the user security file, and a program context of 0 (first entry).
app/cbl/COSGN00C.cbl:221-240, app/cbl/COSGN00C.cbl:132-134, app/cpy/COCOM01Y.cpy:26-30
Credential authentication against the user security file (case-insensitive)
rec/group:claude/RULE-047/2
business rule
compliance, high
WHEN the user is found and the stored password equals the upper-cased entered password, THE sign-on program SHALL record the user's ID and type for the session and open the admin menu (COADM01C) for an admin user (type 'A') or the main menu (COMEN01C) for any other user.
  • User ID: ADMIN01; Stored password: PASS1234; Entered password: pass1234; User type: A → Sign-on succeeds and the admin menu opens
  • User ID: USER0001; Stored password: PASSWORD; Entered password: password; User type: U → Sign-on succeeds and the main menu opens
app/cbl/COSGN00C.cbl:132-140, app/cbl/COSGN00C.cbl:209-257, app/cpy/COCOM01Y.cpy:26-27, app/cbl/COSGN00C.cbl:39
Role-based routing and session context set-up after successful sign-on
rec/claude:claude/RULE-177/2
business rule
compliance, medium
WHEN sign-on succeeds and the user's type is 'A' (administrator), THE sign-on screen SHALL transfer control to the administrator menu (COADM01C), passing the session context.
  • User ID: ADMIN01; Stored user type: A; Password: matches → Administrator menu COADM01C is shown
app/cbl/COSGN00C.cbl:221-240, app/cbl/COSGN00C.cbl:132-134, app/cpy/COCOM01Y.cpy:26-30
Role-based routing and session context set-up after successful sign-on
rec/claude:claude/RULE-177/3
business rule
compliance, medium
WHEN sign-on succeeds and the user's type is anything other than 'A', THE sign-on screen SHALL transfer control to the regular user main menu (COMEN01C), passing the session context.
  • User ID: USER0001; Stored user type: U; Password: matches → Main menu COMEN01C is shown
  • User ID: USER0002; Stored user type: X; Password: matches → Main menu COMEN01C is shown (any non-'A' type is treated as a regular user)
app/cbl/COSGN00C.cbl:221-240, app/cbl/COSGN00C.cbl:132-134, app/cpy/COCOM01Y.cpy:26-30
User type value is not restricted to Admin or Regular
rec/claude:claude/RULE-123/2
business rule
compliance, medium
WHEN a user whose type is anything other than 'A' signs on, THE sign-on function SHALL send them to the regular user menu, not the admin menu.
  • User Type: X → After correct password the user goes to the regular menu (COMEN01C)
  • User Type: A → After correct password the user goes to the admin menu (COADM01C)
app/cbl/COUSR01C.cbl:142-158, app/bms/COUSR01.bms:141-150, app/cbl/COSGN00C.cbl:227-240, app/cpy/COCOM01Y.cpy:27-28
Exit application with thank-you message
rec/group:claude/RULE-178/3
business rule
business, high
WHEN the user presses PF3 on the sign-on screen, THE sign-on program SHALL clear the terminal, show the plain-text message 'Thank you for using CardDemo application...' and end without starting the sign-on transaction again.
  • Key: PF3 → The screen shows 'Thank you for using CardDemo application...' and the session leaves CardDemo
app/cbl/COSGN00C.cbl:73-102, app/cbl/COSGN00C.cbl:162-172, app/cpy/CSMSG01Y.cpy:17-21, app/cbl/COSGN00C.cbl:37
Reject unsupported key with message
rec/group:claude/RULE-178/4
business rule
validation, high
WHEN the user presses any key other than Enter or PF3 on the sign-on screen, THE sign-on program SHALL redisplay the sign-on screen with the message 'Invalid key pressed. Please see below...'.
  • Key: PF5 → The sign-on screen is shown again with 'Invalid key pressed. Please see below...'
app/cbl/COSGN00C.cbl:73-102, app/cbl/COSGN00C.cbl:162-172, app/cpy/CSMSG01Y.cpy:17-21, app/cbl/COSGN00C.cbl:37
Sign-on screen session lifecycle and key handling
rec/group:claude/RULE-178/5
design note
technical, high
WHEN the sign-on screen is shown (first entry, an input error or an invalid key), THE sign-on program SHALL wait for the user's next key under the sign-on transaction CC00, passing the CardDemo session data forward.
  • Key: PF7 → The screen is redisplayed and the next key pressed starts CC00 again
app/cbl/COSGN00C.cbl:73-102, app/cbl/COSGN00C.cbl:162-172, app/cpy/CSMSG01Y.cpy:17-21, app/cbl/COSGN00C.cbl:37

Acceptance criteria

IDCriterionChecks
AC-01Given Transaction: CC00 typed on a fresh terminal; Data passed in (EIBCALEN): 0
When the sign-on transaction (CC00) starts with no data passed in from a previous screen
Then A blank sign-on screen is shown with the cursor in User ID and no message
REQ-F-001
Show blank sign-on screen on first entry
worked example 1 of the rule
AC-02Given Key: Enter; User ID: ADMIN01; Password: PASS1234
When the user presses Enter on the sign-on screen
Then The credentials are checked against the user security file
REQ-F-002
Route Enter key to sign-on processing
worked example 1 of the rule
AC-03Given User ID: (blank); Password: PASS1234
When Enter is pressed and the User ID is blank
Then 'Please enter User ID ...' is shown with the cursor in User ID
REQ-F-003
Reject sign-on with missing user ID
worked example 1 of the rule
AC-04Given User ID: ADMIN01; Password: (blank)
When Enter is pressed with a User ID but a blank Password
Then 'Please enter Password ...' is shown with the cursor in Password
REQ-F-004
Reject sign-on with missing password
worked example 1 of the rule
AC-05Given User ID: NOBODY01; Password: PASS1234
When no user security record exists for the entered User ID
Then 'User not found. Try again ...' is shown with the cursor in User ID
REQ-F-006
Reject unknown user
worked example 1 of the rule
AC-06Given User security file: closed or unavailable; User ID: ADMIN01
When reading the user security file fails for any reason other than the user not being found
Then 'Unable to verify the User ...' is shown with the cursor in User ID
REQ-F-007
Credential authentication against the user security file (case-insensitive)
worked example 1 of the rule
AC-07Given User ID: ADMIN01; Stored password: PASS1234; Entered password: pass9999
When the user is found but the stored password differs from the upper-cased entered password
Then 'Wrong Password. Try again ...' is shown with the cursor in Password
REQ-F-008
Reject wrong password
worked example 1 of the rule
AC-08Given User ID: USER0001; Failed attempts so far: 10; Password entered: wrong
When a user enters a wrong password
Then Message 'Wrong Password. Try again ...' is shown; the user may try again and nothing is logged or locked
REQ-F-008, REQ-N-001
No limit on failed sign-on attempts
worked example 1 of the rule
AC-09Given User ID: ADMIN01; Stored password: PASS1234; Entered password: pass1234; User type: A
When the user is found and the stored password equals the upper-cased entered password
Then Sign-on succeeds and the admin menu opens
REQ-F-009, REQ-F-010, REQ-F-011
Credential authentication against the user security file (case-insensitive)
worked example 1 of the rule
AC-10Given User ID: USER0001; Stored password: PASSWORD; Entered password: password; User type: U
When the user is found and the stored password equals the upper-cased entered password
Then Sign-on succeeds and the main menu opens
REQ-F-009, REQ-F-010, REQ-F-011
Credential authentication against the user security file (case-insensitive)
worked example 2 of the rule
AC-11Given User ID: ADMIN01; Stored user type: A; Password: matches
When sign-on succeeds and the user's type is 'A' (administrator)
Then Administrator menu COADM01C is shown
REQ-F-010
Role-based routing and session context set-up after successful sign-on
worked example 1 of the rule
AC-12Given User ID: USER0001; Stored user type: U; Password: matches
When sign-on succeeds and the user's type is anything other than 'A'
Then Main menu COMEN01C is shown
REQ-F-011
Role-based routing and session context set-up after successful sign-on
worked example 1 of the rule
AC-13Given User ID: USER0002; Stored user type: X; Password: matches
When sign-on succeeds and the user's type is anything other than 'A'
Then Main menu COMEN01C is shown (any non-'A' type is treated as a regular user)
REQ-F-011
Role-based routing and session context set-up after successful sign-on
worked example 2 of the rule
AC-14Given User Type: X
When a user whose type is anything other than 'A' signs on
Then After correct password the user goes to the regular menu (COMEN01C)
REQ-F-011
User type value is not restricted to Admin or Regular
worked example 1 of the rule
AC-15Given User Type: A
When a user whose type is anything other than 'A' signs on
Then After correct password the user goes to the admin menu (COADM01C)
REQ-F-011
User type value is not restricted to Admin or Regular
worked example 2 of the rule
AC-16Given Key: PF3
When the user presses PF3 on the sign-on screen
Then The screen shows 'Thank you for using CardDemo application...' and the session leaves CardDemo
REQ-F-012
Exit application with thank-you message
worked example 1 of the rule
AC-17Given Key: PF5
When the user presses any key other than Enter or PF3 on the sign-on screen
Then The sign-on screen is shown again with 'Invalid key pressed. Please see below...'
REQ-F-013
Reject unsupported key with message
worked example 1 of the rule
AC-18Given Key: PF7
When the sign-on screen is shown (first entry, an input error or an invalid key)
Then The screen is redisplayed and the next key pressed starts CC00 again
REQ-F-014
Sign-on screen session lifecycle and key handling
worked example 1 of the rule
AC-19Given a user security record exists for User ID 'USER0001' with password 'PASSWORD'
When the user types User ID 'user0001' and Password 'password' on the sign-on screen and presses Enter
Then both values are converted to upper case, 'USER0001' is kept as the session's User ID, the user is looked up in the user security file by 'USER0001', and the upper-cased password 'PASSWORD' is the one compared with the stored password
REQ-F-005
Normalize credentials and gate user lookup
written from the rule

Screens

  • Sign in S-SIGN-IN · design · replaces COSGN0A (4 kept, 5 dropped, 4 merged, 1 split)
    • **summary card** You have signed out
    • **lookup field** User ID checks: Blank: 'Please enter User ID ...', with focus back on User ID. Not on file: 'User not found. Try again ...' Read failure: 'Unable to verify the User ...' Each message shows under User ID.
    • **lookup field** Password checks: Blank: 'Please enter Password ...' Wrong password: 'Wrong Password. Try again ...' Each message shows under Password, with focus on it. Failed attempts are logged; the owner decides the attempt limit and lockout (the legacy allows unlimited attempts).
    • **primary button** Sign in checks: Checks User ID first, then Password, and reports the first problem under its field.
  • Home S-HOME · design · replaces COMEN1A, COADM1A (38 merged, 6 dropped, 2 split)
  • Users S-USER-LIST · design · replaces COUSR0A (2 kept, 12 dropped, 48 merged, 2 split)
  • Add user S-USER-ADD · design · replaces COUSR1A (7 kept, 2 dropped, 7 merged, 1 split)
    • **lookup field** User type checks: None chosen: 'User Type can NOT be empty...'
  • Update user S-USER-EDIT · design · replaces COUSR2A (8 kept, 2 dropped, 7 merged, 1 split)
  • Delete user S-USER-DELETE · design · replaces COUSR3A (4 kept, 2 dropped, 10 merged, 1 split)
  • CardDemo header and navigation S-APP-HEADER · design
    • **summary card** Signed in as
    • **primary button** Sign out

Data contracts

CSUSR01Y (file record; COSGN00C, COUSR01C), COCOM01Y (working storage; COSGN00C, COUSR01C), COTTL01Y (working storage; COSGN00C, COUSR01C), CSDAT01Y (working storage; COSGN00C, COUSR01C), CSMSG01Y (working storage; COSGN00C, COUSR01C)

Decision tables

Sign-on outcome on Enter

User ID enteredPassword enteredUser security record readStored password equals upper-cased entered passwordUser typeSign-on resultRule
NoAnyNot read--Redisplay with 'Please enter User ID ...', cursor on User IDrec/group:claude/RULE-112/1
YesNoNot read--Redisplay with 'Please enter Password ...', cursor on Passwordrec/group:claude/RULE-112/2
YesYesUser not found--Redisplay with 'User not found. Try again ...', cursor on User IDrec/aws:UserAccessControl/UserSecurityProfileManagement/id-bd1e258214/1
YesYesRead failed for any other reason--Redisplay with 'Unable to verify the User ...', cursor on User IDrec/group:claude/RULE-047/4
YesYesFoundNo-Redisplay with 'Wrong Password. Try again ...', cursor on Password; no lockoutrec/group:claude/RULE-047/3
YesYesFoundYes'A'Transfer to administrator menu (COADM01C) with session contextrec/claude:claude/RULE-177/2
YesYesFoundYesAnything other than 'A'Transfer to regular user main menu (COMEN01C) with session contextrec/claude:claude/RULE-177/3

Sign-on screen key handling

Key pressedSign-on screen actionRule
EnterCheck User ID and Password and try to sign onrec/group:claude/RULE-178/2
PF3Clear terminal, show 'Thank you for using CardDemo application...' and endrec/group:claude/RULE-178/3
Any other keyRedisplay with 'Invalid key pressed. Please see below...'rec/group:claude/RULE-178/4

Open questions

  • SME-156 The rule for the sign-on program covers only PF3 when the screen is already showing. First entry, the Enter key and other keys are handled under other rules. Which requirements group owns those behaviors, and should any of them also end the session? (Security business analyst)
  • SME-157 The thank-you message on exit has trailing spaces. Should the new system keep the exact padded text, or only the visible wording? (UX / product owner)
  • SME-158 After the user signs off, what should they see: should the session end, should they go back to the sign-on screen, or something else? (Security architect)
  • SME-159 PF3 is accepted on the sign-on screen. What should it do, for example exit the sign-on function? (Business analyst, user security)
  • SME-160 What must happen when a user signs on with the correct password, including any routing based on the user's role? (Business analyst, user security)
  • SME-161 The sign-on flow mentions reporting a 'verification failure', for example an unexpected error reading the user security store, but no rule says when this happens or what message is shown. Should this outcome be specified, and how? (Business analyst, user security)
  • SME-162 Passwords are converted to upper case before they are compared, so matching ignores case. Should the new system keep this? (Security team)
  • SME-163 There is no limit on failed sign-on attempts. Does an outside control (for example RACF or CICS sign-on) already lock accounts out, or should the new system add a failed-attempt limit and a single generic failure message? (Security officer)
  • SME-219 When adding a user, should User Type be limited to specific values, such as 'A' (Admin) and 'U' (Regular)? Today only its presence is checked; is any further check made by the screen itself? (Security officer)
  • DEF-021 Is this intended? Because only the entered password is upper-cased, a password stored with lower-case letters can never match, so such a user can never sign on. The wrong-password branch also leaves the error flag unset, unlike the other failure branches, though nothing reads the flag afterwards. (Subject-matter expert)
  • DEF-163 Is this intended? User Type is not checked against the 'A'/'U' values the screen offers, so an invalid type such as 'X' is stored and later treated as a regular user. (Subject-matter expert)
  • DEF-165 Is this intended? Any user type other than 'A' (including blank or an unknown code) is routed to the regular user menu rather than being rejected. (Subject-matter expert)
  • DEF-176 Is this intended? There is no limit on failed sign-on attempts and no lockout or audit of failures, which allows unlimited password guessing. (Subject-matter expert)

Design notes

  • After a successful sign-on, create a session that holds the upper-cased user ID, the user type read from the user record, where the user came from (sign-on) and a 'first entry' marker. Every later screen reads this session to know who the user is and what role they have. Role-based routing and session context set-up after successful sign-on
  • While the sign-on screen is showing (first visit, after an input error or after an invalid key), keep the session alive and wait for the user's next action on that screen. Do not lose session data between round trips. Sign-on screen session lifecycle and key handling
2. Browse the user listdraft · online · 19 requirements · 20 rules · 25 criteria · 6 screens · 1 gap

Gives administrators a list of CardDemo users, ten per page in User ID order. The list can start from a User ID they type, and they page forward and back with clear messages at the top and bottom. It must always show users in User ID order, page without skipping or repeating users, and send anyone with no session back to sign-on.

As an administrator, I want to page through CardDemo users ten at a time from a chosen User ID, so that I can find the user profile I need to manage.

Draft: the function is not signed off yet. Risk high; touches personal_data, security. rec/UserAccessControl/UserSecurityProfileManagement#2

Requirements

CodeClassRequirementCriteria
REQ-F-015business ruleWhen the User List program is started without any session data, the system shall transfer the operator to the sign-on program (COSGN00C).AC-01
REQ-F-016formattingWhen the User List program is entered for the first time in a session, the system shall mark the session as re-entered, clear the screen fields and show the first page of up to ten users from the start of the user file.AC-02
REQ-F-017business ruleWhen the operator presses a key on the User List screen, the system shall process the selection or filter on Enter, return to the Admin menu (COADM01C) on PF3, show the previous page on PF7 and the next page on PF8.AC-03
REQ-F-018business ruleWhen the operator presses any key other than Enter, PF3, PF7 or PF8, the system shall redisplay the User List screen with the message 'Invalid key pressed. Please see below...' and the cursor on the user ID entry field.AC-04
REQ-F-019formattingWhen the selection step completes without transferring control, the system shall start the list at the entered user ID (or from the beginning when none was entered), reset the page number to 0, build the page forward, and clear the user ID entry when no error occurred.AC-05, AC-06
REQ-F-020formattingWhen a user record is read into a row of the user list page (rows 1 to 10), the system shall show that user's ID, first name, last name and user type in that row.AC-07
REQ-F-021design noteWhen a user is placed in row 1 of the page, the system shall remember that user ID as the page's first user, which PF7 uses as the starting point to page backward.AC-08
REQ-F-022design noteWhen a user is placed in row 10 of the page, the system shall remember that user ID as the page's last user, which PF8 uses as the starting point to page forward.AC-09, AC-10
REQ-F-023business ruleWhen the operator presses PF8 and a next page is marked, the system shall start from the last user shown on the current page (row 10), skip that user, clear the rows, and show up to the next ten users in user ID order.AC-11
REQ-F-024business ruleIf the operator presses PF8 while no next page is marked, then the system shall show the message 'You are already at the bottom of the page...' and redisplay the current screen without clearing it.AC-12, AC-13, AC-14
REQ-F-025business ruleWhen a forward page fills all ten rows, the system shall add 1 to the page number and read one user ahead, marking a next page ('Y') if another user exists and no next page ('N') if not.AC-15, AC-16
REQ-F-026business ruleWhen a forward page reaches the end of the user file before ten rows are filled, the system shall mark no next page, add 1 to the page number only if at least one user was shown, and show 'You have reached the bottom of the page...'.AC-17
REQ-F-027error handlingIf the user file cannot be read during forward paging (any response other than normal or end of file), then the system shall show 'Unable to lookup User...' and stop filling rows.AC-18
REQ-F-028business ruleWhen the operator presses PF7 and the page number is greater than 1, the system shall start from the first user shown on the current page, skip that user, and fill the rows from row 10 upward to row 1 with the up to ten users that come before it in user ID order, after clearing all rows.AC-19
REQ-F-029business ruleIf the operator presses PF7 and the list is on page 1 or lower, then the system shall show the message 'You are already at the top of the page...' and redisplay the current screen without clearing it.AC-20
REQ-F-030design noteWhen the operator presses PF7, the system shall mark that a next page exists (next-page flag set to 'Y'), even when PF7 is refused at the top of the list.AC-21
REQ-F-031business ruleWhen a PF7 backward page has filled all ten rows, the system shall look one user further back and lower the page number by 1 if such a user exists and the page is above 1, otherwise set the page number to 1 and show 'You have reached the top of the page...', leaving the page number unchanged if fewer than ten earlier users were found.AC-22, AC-23
REQ-F-032error handlingIf the user file cannot be read during backward paging (any response other than normal or end of file), then the system shall show 'Unable to lookup User...' and stop filling rows.AC-24
REQ-F-033design noteWhen the User List program finishes a screen interaction without transferring elsewhere, the system shall wait for the operator's next key under transaction CU00, keeping the session data including the page number, first and last user shown and next-page flag.AC-25

Business rules

RuleClassText, worked examples and evidence
User list session entry and key routing
rec/group:claude/RULE-181/1
business rule
compliance, high
WHEN the User List program is started without any session data, THE User List program SHALL transfer the operator to the sign-on program (COSGN00C).
  • session data length: 0 → Operator is sent to sign-on COSGN00C
app/cbl/COUSR00C.cbl:98-144, app/cbl/COUSR00C.cbl:506-517, app/cbl/COUSR00C.cbl:66-75, app/cpy/CSMSG01Y.cpy:20-21
Show initial user list on first entry
rec/group:claude/RULE-181/2
formatting
display, high
WHEN the User List program is entered for the first time in a session, THE User List program SHALL mark the session as re-entered, clear the screen fields and show the first page of up to ten users from the start of the user file.
  • menu option chosen: 1 'User List (Security)'; users on file: 23 → Users 1 to 10 are shown as page 1
app/cbl/COUSR00C.cbl:98-144, app/cbl/COUSR00C.cbl:506-517, app/cbl/COUSR00C.cbl:66-75, app/cpy/CSMSG01Y.cpy:20-21
User list session entry and key routing
rec/group:claude/RULE-181/3
business rule
business, high
WHEN the operator presses a key on the User List screen, THE User List program SHALL process the selection or filter on Enter, return to the Admin menu (COADM01C) on PF3, show the previous page on PF7 and the next page on PF8.
  • key pressed: PF3 → Operator returns to the Admin menu COADM01C
app/cbl/COUSR00C.cbl:98-144, app/cbl/COUSR00C.cbl:506-517, app/cbl/COUSR00C.cbl:66-75, app/cpy/CSMSG01Y.cpy:20-21
Reject unsupported key
rec/group:claude/RULE-181/4
business rule
validation, high
WHEN the operator presses any key other than Enter, PF3, PF7 or PF8, THE User List screen SHALL redisplay with the message 'Invalid key pressed. Please see below...' and the cursor on the user ID entry field.
  • key pressed: PF5 → Message 'Invalid key pressed. Please see below...' is shown
app/cbl/COUSR00C.cbl:98-144, app/cbl/COUSR00C.cbl:506-517, app/cbl/COUSR00C.cbl:66-75, app/cpy/CSMSG01Y.cpy:20-21
Start list from entered user ID
rec/agreed:UserAccessControl/UserSecurityProfileManagement/id-c34262a605/1
formatting
display, medium
WHEN the selection step completes without transferring control, THE User List Browser SHALL start the list at the entered user ID (or from the beginning when none was entered), reset the page number to 0, build the page forward, and clear the user ID entry when no error occurred
  • User ID entered: (blank); Row selection: none → The list starts from the first user in the file
  • Row selection: 'X' on a user → Message 'Invalid selection. Valid values are U and D' is set and the list is still rebuilt from the entered user ID
app/cbl/COUSR00C.cbl:218-222,224,227-228,230-232, app/cbl/COUSR00C.cbl:218-232
Fill first row and record page start
rec/group:claude/RULE-256/1
formatting
display, high
WHEN a user record is read into a row of the user list page (rows 1 to 10), THE user list screen SHALL show that user's ID, first name, last name and user type in that row.
  • User ID: USER0001; First name: John; Last name: Doe; User type: A; Row: 1 → Row 1 shows USER0001 / John / Doe / A
app/cbl/COUSR00C.cbl:384-441, app/cbl/COUSR00C.cbl:295-302, app/cbl/COUSR00C.cbl:339-346, app/cbl/COUSR00C.cbl:236-243, app/cbl/COUSR00C.cbl:259-265
Fill first row and record page start
rec/group:claude/RULE-256/2
design note
technical, high
WHEN a user is placed in row 1 of the page, THE user list SHALL remember that user ID as the page's first user (CDEMO-CU00-USRID-FIRST), which PF7 uses as the starting point to page backward.
  • User in row 1: USER0001 → USER0001 is saved as the first-on-page key; pressing PF7 browses backward from USER0001
app/cbl/COUSR00C.cbl:384-441, app/cbl/COUSR00C.cbl:295-302, app/cbl/COUSR00C.cbl:339-346, app/cbl/COUSR00C.cbl:236-243, app/cbl/COUSR00C.cbl:259-265
Fill tenth row and record page end
rec/group:claude/RULE-256/3
design note
technical, high
WHEN a user is placed in row 10 of the page, THE user list SHALL remember that user ID as the page's last user (CDEMO-CU00-USRID-LAST), which PF8 uses as the starting point to page forward.
  • User in row 10: USER0010 → USER0010 is saved as the last-on-page key; pressing PF8 shows the users after USER0010
  • Users on page: 6 → No user reaches row 10, so the last-on-page key is not updated
app/cbl/COUSR00C.cbl:384-441, app/cbl/COUSR00C.cbl:295-302, app/cbl/COUSR00C.cbl:339-346, app/cbl/COUSR00C.cbl:236-243, app/cbl/COUSR00C.cbl:259-265
Page forward from last user
rec/group:claude/RULE-033/2
business rule
business, high
WHEN the operator presses PF8 and a next page is marked, THE User List screen SHALL start from the last user shown on the current page (row 10), skip that user, clear the rows, and show up to the next ten users in user ID order.
  • users on file: 23; page number: 1; last user shown: 10th user → Users 11 to 20 are shown
app/cbl/COUSR00C.cbl:260-277, app/cbl/COUSR00C.cbl:282-331, app/cbl/COUSR00C.cbl:430-437, app/cbl/COUSR00C.cbl:586-648
Warn already at bottom of list
rec/agreed:UserAccessControl/UserSecurityProfileManagement/id-b421a82708/1
formatting
display, medium
IF the operator presses PF8 while no next page is available, THEN THE User List Pager SHALL show the message 'You are already at the bottom of the page...' and redisplay the screen without erasing
  • Key pressed: PF8; Next page available (CDEMO-CU00-NEXT-PAGE-FLG): 'N' (last page of users shown) → The current user list stays on screen (sent without ERASE) with the message 'You are already at the bottom of the page...'
  • Key pressed: PF8; Next page available (CDEMO-CU00-NEXT-PAGE-FLG): 'Y' → No warning; the next page of users is shown
app/cbl/COUSR00C.cbl:272-277, app/cbl/COUSR00C.cbl:260-277
Page forward from last user
rec/group:claude/RULE-033/1
business rule
validation, high
WHEN the operator presses PF8 and no next page is marked, THE User List screen SHALL show 'You are already at the bottom of the page...' and redisplay the current screen without clearing it.
  • key pressed: PF8; next-page flag: N → Message 'You are already at the bottom of the page...' is shown and the same users stay on screen
app/cbl/COUSR00C.cbl:260-277, app/cbl/COUSR00C.cbl:282-331, app/cbl/COUSR00C.cbl:430-437, app/cbl/COUSR00C.cbl:586-648
Advance page number after forward page
rec/group:claude/RULE-033/3
business rule
business, high
WHEN a forward page fills all ten rows, THE User List screen SHALL add 1 to the page number and read one user ahead, marking a next page ('Y') if another user exists and no next page ('N') if not.
  • users on file: 23; users shown: 11 to 20 → Page becomes 2; user 21 exists so next-page flag is 'Y'
  • users on file: 20; users shown: 11 to 20 → Page becomes 2; next-page flag is 'N' and 'You have reached the bottom of the page...' is shown
app/cbl/COUSR00C.cbl:260-277, app/cbl/COUSR00C.cbl:282-331, app/cbl/COUSR00C.cbl:430-437, app/cbl/COUSR00C.cbl:586-648
Advance page number after forward page
rec/group:claude/RULE-033/4
business rule
business, high
WHEN a forward page reaches the end of the user file before ten rows are filled, THE User List screen SHALL mark no next page, add 1 to the page number only if at least one user was shown, and show 'You have reached the bottom of the page...'.
  • users on file: 23; page number: 2; key pressed: PF8 → Users 21 to 23 shown in rows 1 to 3, page becomes 3, next-page flag 'N'
app/cbl/COUSR00C.cbl:260-277, app/cbl/COUSR00C.cbl:282-331, app/cbl/COUSR00C.cbl:430-437, app/cbl/COUSR00C.cbl:586-648
Fill next page of up to ten users
rec/group:claude/RULE-033/5
error handling
error_handling, high
WHEN the user file cannot be read during forward paging (any response other than normal or end of file), THE User List screen SHALL show 'Unable to lookup User...' and stop filling rows.
  • user file read response: I/O error → Message 'Unable to lookup User...' is shown
app/cbl/COUSR00C.cbl:260-277, app/cbl/COUSR00C.cbl:282-331, app/cbl/COUSR00C.cbl:430-437, app/cbl/COUSR00C.cbl:586-648
Page backward from first user
rec/group:claude/RULE-032/2
business rule
business, high
WHEN the operator presses PF7 and the page number is greater than 1, THE User List screen SHALL start from the first user shown on the current page, skip that user, and fill the rows from row 10 upward to row 1 with the up to ten users that come before it in user ID order, after clearing all rows.
  • key pressed: PF7; page number: 3; users on screen: users 21 to 23 → Rows 1 to 10 show users 11 to 20 (user 20 in row 10, user 11 in row 1)
app/cbl/COUSR00C.cbl:237-255, app/cbl/COUSR00C.cbl:336-379, app/cbl/COUSR00C.cbl:384-392, app/cbl/COUSR00C.cbl:430-437, app/cbl/COUSR00C.cbl:653-682
Warn already at top of list
rec/group:claude/RULE-032/1
business rule
validation, high
WHEN the operator presses PF7 and the list is on page 1 or lower, THE User List screen SHALL show the message 'You are already at the top of the page...' and redisplay the current screen without clearing it.
  • key pressed: PF7; page number: 1 → Message 'You are already at the top of the page...' is shown and the same users stay on screen
app/cbl/COUSR00C.cbl:237-255, app/cbl/COUSR00C.cbl:336-379, app/cbl/COUSR00C.cbl:384-392, app/cbl/COUSR00C.cbl:430-437, app/cbl/COUSR00C.cbl:653-682
Page backward from first user
rec/group:claude/RULE-032/4
design note
technical, high
WHEN the operator presses PF7, THE User List screen SHALL mark that a next page exists (next-page flag set to 'Y'), even when PF7 is refused at the top of the list.
  • key pressed: PF7; page number: 2 → Next-page flag is 'Y' so a following PF8 pages forward
app/cbl/COUSR00C.cbl:237-255, app/cbl/COUSR00C.cbl:336-379, app/cbl/COUSR00C.cbl:384-392, app/cbl/COUSR00C.cbl:430-437, app/cbl/COUSR00C.cbl:653-682
Decrease page number after backward page
rec/group:claude/RULE-032/3
business rule
business, high
WHEN a PF7 backward page has filled all ten rows, THE User List screen SHALL look one user further back and lower the page number by 1 if such a user exists and the page is above 1, otherwise set the page number to 1 and show 'You have reached the top of the page...'; the page number is left unchanged if fewer than ten earlier users were found.
  • page number: 3; users before the page: 20 → Users 11 to 20 shown; user 10 exists so page becomes 2
  • page number: 2; users before the page: 10 → Users 1 to 10 shown; no earlier user so page becomes 1 with message 'You have reached the top of the page...'
app/cbl/COUSR00C.cbl:237-255, app/cbl/COUSR00C.cbl:336-379, app/cbl/COUSR00C.cbl:384-392, app/cbl/COUSR00C.cbl:430-437, app/cbl/COUSR00C.cbl:653-682
Fill previous page of up to ten users
rec/group:claude/RULE-032/5
error handling
error_handling, high
WHEN the user file cannot be read during backward paging (any response other than normal or end of file), THE User List screen SHALL show 'Unable to lookup User...' and stop filling rows.
  • user file read response: I/O error → Message 'Unable to lookup User...' is shown
app/cbl/COUSR00C.cbl:237-255, app/cbl/COUSR00C.cbl:336-379, app/cbl/COUSR00C.cbl:384-392, app/cbl/COUSR00C.cbl:430-437, app/cbl/COUSR00C.cbl:653-682
User list session entry and key routing
rec/group:claude/RULE-181/5
design note
technical, high
WHEN the User List program finishes a screen interaction without transferring elsewhere, THE User List program SHALL wait for the operator's next key under transaction CU00, keeping the session data including the page number, first and last user shown and next-page flag.
  • key pressed: PF8 → Next page shown; next key returns to transaction CU00 with the page position kept
app/cbl/COUSR00C.cbl:98-144, app/cbl/COUSR00C.cbl:506-517, app/cbl/COUSR00C.cbl:66-75, app/cpy/CSMSG01Y.cpy:20-21

Acceptance criteria

IDCriterionChecks
AC-01Given session data length: 0
When the User List program is started without any session data
Then Operator is sent to sign-on COSGN00C
REQ-F-015
User list session entry and key routing
worked example 1 of the rule
AC-02Given menu option chosen: 1 'User List (Security)'; users on file: 23
When the User List program is entered for the first time in a session
Then Users 1 to 10 are shown as page 1
REQ-F-016
Show initial user list on first entry
worked example 1 of the rule
AC-03Given key pressed: PF3
When the operator presses a key on the User List screen
Then Operator returns to the Admin menu COADM01C
REQ-F-017
User list session entry and key routing
worked example 1 of the rule
AC-04Given key pressed: PF5
When the operator presses any key other than Enter, PF3, PF7 or PF8
Then Message 'Invalid key pressed. Please see below...' is shown
REQ-F-018
Reject unsupported key
worked example 1 of the rule
AC-05Given User ID entered: (blank); Row selection: none
When the selection step completes without transferring control
Then The list starts from the first user in the file
REQ-F-019
Start list from entered user ID
worked example 1 of the rule
AC-06Given Row selection: 'X' on a user
When the selection step completes without transferring control
Then Message 'Invalid selection. Valid values are U and D' is set and the list is still rebuilt from the entered user ID
REQ-F-019
Start list from entered user ID
worked example 2 of the rule
AC-07Given User ID: USER0001; First name: John; Last name: Doe; User type: A; Row: 1
When a user record is read into a row of the user list page (rows 1 to 10)
Then Row 1 shows USER0001 / John / Doe / A
REQ-F-020
Fill first row and record page start
worked example 1 of the rule
AC-08Given User in row 1: USER0001
When a user is placed in row 1 of the page
Then USER0001 is saved as the first-on-page key; pressing PF7 browses backward from USER0001
REQ-F-021
Fill first row and record page start
worked example 1 of the rule
AC-09Given User in row 10: USER0010
When a user is placed in row 10 of the page
Then USER0010 is saved as the last-on-page key; pressing PF8 shows the users after USER0010
REQ-F-022
Fill tenth row and record page end
worked example 1 of the rule
AC-10Given Users on page: 6
When a user is placed in row 10 of the page
Then No user reaches row 10, so the last-on-page key is not updated
REQ-F-022
Fill tenth row and record page end
worked example 2 of the rule
AC-11Given users on file: 23; page number: 1; last user shown: 10th user
When the operator presses PF8 and a next page is marked
Then Users 11 to 20 are shown
REQ-F-023
Page forward from last user
worked example 1 of the rule
AC-12Given Key pressed: PF8; Next page available (CDEMO-CU00-NEXT-PAGE-FLG): 'N' (last page of users shown)
When the operator presses PF8 while no next page is available
Then The current user list stays on screen (sent without ERASE) with the message 'You are already at the bottom of the page...'
REQ-F-024
Warn already at bottom of list
worked example 1 of the rule
AC-13Given Key pressed: PF8; Next page available (CDEMO-CU00-NEXT-PAGE-FLG): 'Y'
When the operator presses PF8 while no next page is available
Then No warning; the next page of users is shown
REQ-F-024
Warn already at bottom of list
worked example 2 of the rule
AC-14Given key pressed: PF8; next-page flag: N
When the operator presses PF8 and no next page is marked
Then Message 'You are already at the bottom of the page...' is shown and the same users stay on screen
REQ-F-024
Page forward from last user
worked example 1 of the rule
AC-15Given users on file: 23; users shown: 11 to 20
When a forward page fills all ten rows
Then Page becomes 2; user 21 exists so next-page flag is 'Y'
REQ-F-025
Advance page number after forward page
worked example 1 of the rule
AC-16Given users on file: 20; users shown: 11 to 20
When a forward page fills all ten rows
Then Page becomes 2; next-page flag is 'N' and 'You have reached the bottom of the page...' is shown
REQ-F-025
Advance page number after forward page
worked example 2 of the rule
AC-17Given users on file: 23; page number: 2; key pressed: PF8
When a forward page reaches the end of the user file before ten rows are filled
Then Users 21 to 23 shown in rows 1 to 3, page becomes 3, next-page flag 'N'
REQ-F-026
Advance page number after forward page
worked example 1 of the rule
AC-18Given user file read response: I/O error
When the user file cannot be read during forward paging (any response other than normal or end of file)
Then Message 'Unable to lookup User...' is shown
REQ-F-027
Fill next page of up to ten users
worked example 1 of the rule
AC-19Given key pressed: PF7; page number: 3; users on screen: users 21 to 23
When the operator presses PF7 and the page number is greater than 1
Then Rows 1 to 10 show users 11 to 20 (user 20 in row 10, user 11 in row 1)
REQ-F-028
Page backward from first user
worked example 1 of the rule
AC-20Given key pressed: PF7; page number: 1
When the operator presses PF7 and the list is on page 1 or lower
Then Message 'You are already at the top of the page...' is shown and the same users stay on screen
REQ-F-029
Warn already at top of list
worked example 1 of the rule
AC-21Given key pressed: PF7; page number: 2
When the operator presses PF7
Then Next-page flag is 'Y' so a following PF8 pages forward
REQ-F-030
Page backward from first user
worked example 1 of the rule
AC-22Given page number: 3; users before the page: 20
When a PF7 backward page has filled all ten rows
Then Users 11 to 20 shown; user 10 exists so page becomes 2
REQ-F-031
Decrease page number after backward page
worked example 1 of the rule
AC-23Given page number: 2; users before the page: 10
When a PF7 backward page has filled all ten rows
Then Users 1 to 10 shown; no earlier user so page becomes 1 with message 'You have reached the top of the page...'
REQ-F-031
Decrease page number after backward page
worked example 2 of the rule
AC-24Given user file read response: I/O error
When the user file cannot be read during backward paging (any response other than normal or end of file)
Then Message 'Unable to lookup User...' is shown
REQ-F-032
Fill previous page of up to ten users
worked example 1 of the rule
AC-25Given key pressed: PF8
When the User List program finishes a screen interaction without transferring elsewhere
Then Next page shown; next key returns to transaction CU00 with the page position kept
REQ-F-033
User list session entry and key routing
worked example 1 of the rule

Screens

  • Sign in S-SIGN-IN · design · replaces COSGN0A (4 kept, 5 dropped, 4 merged, 1 split)
  • Home S-HOME · design · replaces COMEN1A, COADM1A (38 merged, 6 dropped, 2 split)
  • Users S-USER-LIST · design · replaces COUSR0A (2 kept, 12 dropped, 48 merged, 2 split)
    • **lookup field** Start from user ID checks: If the users cannot be read, 'Unable to lookup User...' shows above the table with a Try again link.
    • **data table** Users checks: Previous is disabled on page 1 and Next on the last page. The disabled buttons say 'You are already at the top of the page...' and 'You are already at the bottom of the page...', and the last page says 'You have reached the bottom of the page...'. The actions are buttons on each row, so the 'Invalid selection. Valid values are U and D' error cannot happen. If the users cannot be read while paging: 'Unable to lookup User...'.
  • Update user S-USER-EDIT · design · replaces COUSR2A (8 kept, 2 dropped, 7 merged, 1 split)
  • Delete user S-USER-DELETE · design · replaces COUSR3A (4 kept, 2 dropped, 10 merged, 1 split)
  • CardDemo header and navigation S-APP-HEADER · design
    • **data table** Navigation checks: Every screen checks on the server that a session is signed in. With no session you are sent to Sign in with 'Please sign in to continue.' Administrator-only screens check the role on the server. A regular user who opens one sees 'No access - Admin Only option... ' and stays on Home.

Data contracts

CSUSR01Y (file record; COUSR00C), COCOM01Y (working storage; COUSR00C), COTTL01Y (working storage; COUSR00C), CSDAT01Y (working storage; COUSR00C), CSMSG01Y (working storage; COUSR00C)

Decision tables

User list key handling

Key pressedPage numberNext page markedUser list actionRule
EnterAnyAnyProcess the selection or filterrec/group:claude/RULE-181/3
PF3AnyAnyReturn to the Admin menu (COADM01C)rec/group:claude/RULE-181/3
PF71 or lowerAnyShow 'You are already at the top of the page...' and redisplay without clearingrec/group:claude/RULE-032/1
PF7Greater than 1AnyShow up to ten users before the first user on the current pagerec/group:claude/RULE-032/2
PF8AnyNoShow 'You are already at the bottom of the page...' and redisplay without clearingrec/group:claude/RULE-033/1
PF8AnyYesShow up to the next ten users after the last user on the current pagerec/group:claude/RULE-033/2
Any other keyAnyAnyRedisplay with 'Invalid key pressed. Please see below...', cursor on user ID entryrec/group:claude/RULE-181/4

Page number after paging

Paging directionRows filledFurther user exists beyond the pagePage number and next-page markingRule
ForwardAll tenYesAdd 1 to page number; mark next page 'Y'rec/group:claude/RULE-033/3
ForwardAll tenNoAdd 1 to page number; mark next page 'N'rec/group:claude/RULE-033/3
ForwardFewer than ten (end of file)NoMark no next page; add 1 only if at least one user shown; show 'You have reached the bottom of the page...'rec/group:claude/RULE-033/4
BackwardAll tenYes (and page above 1)Lower page number by 1rec/group:claude/RULE-032/3
BackwardAll tenNoSet page number to 1 and show 'You have reached the top of the page...'rec/group:claude/RULE-032/3
BackwardFewer than ten-Page number left unchangedrec/group:claude/RULE-032/3
BackwardFewer than ten-Gap: No rule says what message is shown or what rows are displayed when fewer than ten earlier users are found on a backward page.

Open questions

  • SME-209 On the user list, selecting 'U' (update) or 'D' (delete) against a row currently goes to the same place. Which function should handle update requests, and which should handle delete requests? (Business analyst (user security))
  • SME-210 After paging back through the user list, what page number should be shown? Should it reset to 1 when there is no next page, or only when it cannot go back any further? (Business analyst (user security))
  • SME-211 What should happen when the operator presses PF3 on the user list? (Business analyst (user security))
  • SME-212 What should happen when the user list is opened directly, without coming from another screen? (Business analyst (user security))
  • SME-213 When searching the user list by user ID, should the list start at the first user ID equal to or after what was typed (a partial match), or show only an exact match? (Business analyst)
  • SME-214 When paging back from a page that has fewer than 10 users before it, should the list go to the true first page (users 1–10) rather than show a partly blank page? (Product owner)
  • DEF-016 Is this intended? PF7 sets the next-page flag to 'Y' before checking whether paging back is allowed, so on a single short page (fewer than 11 users, flag 'N') PF7 followed by PF8 pages forward past the last user, clears the rows and shows an empty list still numbered page 1. Also, if the backward fill reaches the start of the file before ten rows, the page number is not lowered. (Subject-matter expert)

Design notes

  • Remember the User ID shown in the first row of the current page. Paging backward uses it as a cursor: fetch the up to ten users whose IDs sort before it, in descending key order, then show them in ascending order. Fill first row and record page start
  • Remember the User ID shown in the last row (row 10) of the current page. Paging forward uses it as a cursor: fetch the next up to ten users whose IDs sort after it. Fill tenth row and record page end
  • Any backward-page request sets the list's 'next page available' state to yes, even when it is refused at the top, so that a forward page is allowed afterwards. Keep this flag in the paging state. Page backward from first user
  • Keep the list's paging state (page number, first and last User ID shown, next-page flag) in the user's session or the request between interactions, so that the next action continues from the same page. User list session entry and key routing
3. Select a user to update or deletedraft · online · 5 requirements · 6 rules · 8 criteria · 5 screens · 1 gap

Lets an administrator mark one user on the list with 'U' to open the update screen or 'D' to open the delete screen for that user. Only the first marked row counts, and any other code is rejected with a message. It must never open an update or delete screen for a user the administrator did not mark, or for a code other than U/D.

As an administrator, I want to mark a user on the list with an action code, so that I am taken to the update or delete screen for that user.

Draft: the function is not signed off yet. Risk high; touches security. rec/UserAccessControl/UserSecurityProfileManagement#3

Requirements

CodeClassRequirementCriteria
REQ-F-034business ruleWhen the operator presses Enter on the user list and one or more of the 10 rows has a selection code entered, the system shall take only the first marked row from the top, saving its selection code and user ID as the pending selection, and ignore marks on later rows.AC-01, AC-02
REQ-F-035design noteWhen the operator presses Enter and no row has a selection code entered, the system shall clear the pending selection code and selected user ID to blanks so that no update or delete screen is opened, and shall just refresh the list.AC-03, AC-04
REQ-F-036business ruleWhen the pending selection code is 'U' or 'u' and a user ID was selected, the system shall transfer to the Update User program (COUSR02C), passing the selected user ID with from-transaction 'CU00', from-program 'COUSR00C' and context 0.AC-05
REQ-F-037business ruleWhen the pending selection code is 'D' or 'd' and a user ID was selected, the system shall transfer to the Delete User program (COUSR03C), passing the selected user ID with from-transaction 'CU00', from-program 'COUSR00C' and context 0.AC-06
REQ-F-038business ruleIf a row with a user ID is selected with an action code other than 'U', 'u', 'D' or 'd', then the system shall not open any user screen, shall show the message 'Invalid selection. Valid values are U and D', and shall place the cursor on the user ID search field.AC-07, AC-08

Business rules

RuleClassText, worked examples and evidence
Capture selection from first list row
rec/group:claude/RULE-121/1
business rule
business, high
WHEN the operator presses Enter on the user list and one or more of the 10 rows has a selection code entered, THE User List SHALL take only the first marked row from the top, saving its selection code and user ID as the pending selection (CDEMO-CU00-USR-SEL-FLG, CDEMO-CU00-USR-SELECTED), and ignore marks on later rows.
  • Row 3 selection: 'd'; Row 3 user ID: USER0003 → The pending selection is 'd' for user USER0003
  • Row 2 selection: 'U'; Row 2 user ID: USER0002; Row 7 selection: 'D'; Row 7 user ID: USER0007 → Only row 2 is used: the pending selection is 'U' for USER0002 and the row 7 mark is ignored
app/cbl/COUSR00C.cbl:36-37, app/cbl/COUSR00C.cbl:147-185, app/cbl/COUSR00C.cbl:187-210
Clear selection when no row marked
rec/aws:UserAccessControl/UserSecurityProfileManagement/id-5f059e0afa/1
design note
technical, medium
WHEN the user list is submitted with no selection code in any of the ten rows, THE user list SHALL clear any pending selected action and user (CDEMO-CU00-USR-SEL-FLG, CDEMO-CU00-USR-SELECTED) so that no update or delete screen is opened, and SHALL just refresh the list.
  • Selection in rows 1-10: all blank → No user screen is opened; the list is shown again from the search user ID
app/cbl/COUSR00C.cbl:152-185, app/cbl/COUSR00C.cbl:187-189, app/cbl/COUSR00C.cbl:218-229
Row selection action routes to update or delete user
rec/group:claude/RULE-121/2
design note
technical, high
WHEN the operator presses Enter and no row has a selection code entered, THE User List SHALL clear the pending selection code and selected user ID to blanks.
  • Rows 1-10 selection: blank → The pending selection and selected user are cleared to blanks, and no transfer takes place
app/cbl/COUSR00C.cbl:36-37, app/cbl/COUSR00C.cbl:147-185, app/cbl/COUSR00C.cbl:187-210
Transfer selected user for update or delete
rec/group:claude/RULE-121/3
business rule
business, high
WHEN the pending selection code is 'U' or 'u' and a user ID was selected, THE User List SHALL transfer to the Update User program (COUSR02C), passing the selected user ID with from-transaction 'CU00', from-program 'COUSR00C' and context 0.
  • Selection code: 'u'; Selected user ID: USER0005 → The Update User screen (COUSR02C) opens for USER0005, with the list recorded as 'CU00'/'COUSR00C' to return to
app/cbl/COUSR00C.cbl:36-37, app/cbl/COUSR00C.cbl:147-185, app/cbl/COUSR00C.cbl:187-210
Transfer selected user for update or delete
rec/group:claude/RULE-121/4
business rule
business, high
WHEN the pending selection code is 'D' or 'd' and a user ID was selected, THE User List SHALL transfer to the Delete User program (COUSR03C), passing the selected user ID with from-transaction 'CU00', from-program 'COUSR00C' and context 0.
  • Selection code: 'd'; Selected user ID: USER0003 → The Delete User screen (COUSR03C) opens for USER0003, with the list recorded as 'CU00'/'COUSR00C' to return to
app/cbl/COUSR00C.cbl:36-37, app/cbl/COUSR00C.cbl:147-185, app/cbl/COUSR00C.cbl:187-210
Reject invalid selection action
rec/aws:UserAccessControl/UserSecurityProfileManagement/id-2e98e46217/1
business rule
validation, medium
WHEN a row with a user ID is selected with an action code other than 'U', 'u', 'D' or 'd', THE user list SHALL not open any user screen, SHALL show the message 'Invalid selection. Valid values are U and D', and SHALL place the cursor on the user ID search field.
  • Row 3 selection: X; Row 3 user ID: USER0003 → Message 'Invalid selection. Valid values are U and D' is shown and the list is redisplayed
  • Row 1 selection: u; Row 1 user ID: USER0001 → The update user screen (COUSR02C) is opened for USER0001
app/cbl/COUSR00C.cbl:188-216, app/cbl/COUSR00C.cbl:526

Acceptance criteria

IDCriterionChecks
AC-01Given Row 3 selection: 'd'; Row 3 user ID: USER0003
When the operator presses Enter on the user list and one or more of the 10 rows has a selection code entered
Then The pending selection is 'd' for user USER0003
REQ-F-034
Capture selection from first list row
worked example 1 of the rule
AC-02Given Row 2 selection: 'U'; Row 2 user ID: USER0002; Row 7 selection: 'D'; Row 7 user ID: USER0007
When the operator presses Enter on the user list and one or more of the 10 rows has a selection code entered
Then Only row 2 is used: the pending selection is 'U' for USER0002 and the row 7 mark is ignored
REQ-F-034
Capture selection from first list row
worked example 2 of the rule
AC-03Given Selection in rows 1-10: all blank
When the user list is submitted with no selection code in any of the ten rows
Then No user screen is opened; the list is shown again from the search user ID
REQ-F-035
Clear selection when no row marked
worked example 1 of the rule
AC-04Given Rows 1-10 selection: blank
When the operator presses Enter and no row has a selection code entered
Then The pending selection and selected user are cleared to blanks, and no transfer takes place
REQ-F-035
Row selection action routes to update or delete user
worked example 1 of the rule
AC-05Given Selection code: 'u'; Selected user ID: USER0005
When the pending selection code is 'U' or 'u' and a user ID was selected
Then The Update User screen (COUSR02C) opens for USER0005, with the list recorded as 'CU00'/'COUSR00C' to return to
REQ-F-036
Transfer selected user for update or delete
worked example 1 of the rule
AC-06Given Selection code: 'd'; Selected user ID: USER0003
When the pending selection code is 'D' or 'd' and a user ID was selected
Then The Delete User screen (COUSR03C) opens for USER0003, with the list recorded as 'CU00'/'COUSR00C' to return to
REQ-F-037
Transfer selected user for update or delete
worked example 1 of the rule
AC-07Given Row 3 selection: X; Row 3 user ID: USER0003
When a row with a user ID is selected with an action code other than 'U', 'u', 'D' or 'd'
Then Message 'Invalid selection. Valid values are U and D' is shown and the list is redisplayed
REQ-F-038
Reject invalid selection action
worked example 1 of the rule
AC-08Given Row 1 selection: u; Row 1 user ID: USER0001
When a row with a user ID is selected with an action code other than 'U', 'u', 'D' or 'd'
Then The update user screen (COUSR02C) is opened for USER0001
REQ-F-038
Reject invalid selection action
worked example 2 of the rule

Screens

  • Sign in S-SIGN-IN · design · replaces COSGN0A (4 kept, 5 dropped, 4 merged, 1 split)
  • Home S-HOME · design · replaces COMEN1A, COADM1A (38 merged, 6 dropped, 2 split)
  • Users S-USER-LIST · design · replaces COUSR0A (2 kept, 12 dropped, 48 merged, 2 split)
    • **data table** Users checks: Previous is disabled on page 1 and Next on the last page. The disabled buttons say 'You are already at the top of the page...' and 'You are already at the bottom of the page...', and the last page says 'You have reached the bottom of the page...'. The actions are buttons on each row, so the 'Invalid selection. Valid values are U and D' error cannot happen. If the users cannot be read while paging: 'Unable to lookup User...'.
  • Update user S-USER-EDIT · design · replaces COUSR2A (8 kept, 2 dropped, 7 merged, 1 split)
  • Delete user S-USER-DELETE · design · replaces COUSR3A (4 kept, 2 dropped, 10 merged, 1 split)

Data contracts

CSUSR01Y (file record; COUSR00C), COCOM01Y (working storage; COUSR00C), COTTL01Y (working storage; COUSR00C), CSDAT01Y (working storage; COUSR00C), CSMSG01Y (working storage; COUSR00C)

Decision tables

Action on the first marked row

Selection code on first marked rowUser ID on that rowScreen openedRule
'U' or 'u'PresentTransfer to Update User (COUSR02C) with the selected user IDrec/group:claude/RULE-121/3
'D' or 'd'PresentTransfer to Delete User (COUSR03C) with the selected user IDrec/group:claude/RULE-121/4
Any other codePresentNo screen opened; show 'Invalid selection. Valid values are U and D', cursor on user ID search fieldrec/aws:UserAccessControl/UserSecurityProfileManagement/id-2e98e46217/1
None on any row-Clear pending selection and refresh the listrec/aws:UserAccessControl/UserSecurityProfileManagement/id-5f059e0afa/1
Any codeAbsentGap: No rule says what happens when a selection code is entered on a row that shows no user ID.

Open questions

  • SME-209 On the user list, selecting 'U' (update) or 'D' (delete) against a row currently goes to the same place. Which function should handle update requests, and which should handle delete requests? (Business analyst (user security))
  • SME-210 After paging back through the user list, what page number should be shown? Should it reset to 1 when there is no next page, or only when it cannot go back any further? (Business analyst (user security))
  • SME-211 What should happen when the operator presses PF3 on the user list? (Business analyst (user security))
  • SME-212 What should happen when the user list is opened directly, without coming from another screen? (Business analyst (user security))
  • SME-215 Should the rule that a row selection on the user list routes to update or delete user be treated as top priority (P0)? (Product owner)
  • DEF-155 Is this intended? A selection code typed on an empty row (no user ID) is silently ignored, with no message. (Subject-matter expert)

Design notes

  • When the list is submitted with no row marked, clear any pending action and selected User ID held in the session, so that no stale selection opens an update or delete screen. Then just refresh the list. Clear selection when no row marked
  • The pending selection (action code and User ID) must be reset to empty on every submit that has no marked row. It must not be carried over from an earlier interaction. Row selection action routes to update or delete user
4. Add a new userdraft · online · 13 requirements · 13 rules · 13 criteria · 3 screens

Lets an administrator add a CardDemo user with first name, last name, User ID, password and user type. Every field is required and checked in a fixed order, and User IDs must be unique. It must never add a user with a blank field, and it must never overwrite an existing user who has the same User ID.

As an administrator, I want to add a user with first name, last name, User ID, password and user type, so that the person can sign on to CardDemo.

Draft: the function is not signed off yet. Risk high; touches personal_data, security, updates_records. rec/UserAccessControl/UserSecurityProfileManagement#4

Requirements

CodeClassRequirementCriteria
REQ-F-039business ruleWhen the administrator presses Enter on the Add User screen, the system shall check the fields in the order First Name, Last Name, User ID, Password, User Type and stop at the first one that is blank, writing no record.AC-01
REQ-F-040business ruleIf First Name is blank, then the system shall redisplay the screen with 'First Name can NOT be empty...' and the cursor on First Name.AC-02
REQ-F-041business ruleIf First Name is filled and Last Name is blank, then the system shall redisplay the screen with 'Last Name can NOT be empty...' and the cursor on Last Name.AC-03
REQ-F-042business ruleIf both names are filled and User ID is blank, then the system shall redisplay the screen with 'User ID can NOT be empty...' and the cursor on User ID.AC-04
REQ-F-043business ruleIf both names and User ID are filled and Password is blank, then the system shall redisplay the screen with 'Password can NOT be empty...' and the cursor on Password.AC-05
REQ-F-044business ruleIf names, User ID and Password are filled and User Type is blank, then the system shall redisplay the screen with 'User Type can NOT be empty...' and the cursor on User Type.AC-06
REQ-F-045business ruleThe system shall accept any non-blank single character as User Type and save it as entered, although the screen offers only 'A' (Admin) and 'U' (User).AC-07
REQ-F-046design noteWhen all five fields are filled, the system shall build the user security record from the entered User ID, first name, last name, password and user type and attempt to add it to the user security file (USRSEC).AC-11
REQ-N-002business ruleWhen an administrator adds a new user, the system shall store the password in the user security file exactly as typed, with no encryption or hashing, in an 8-character field (SEC-USR-PWD).AC-12
REQ-F-047business ruleWhen the new user record is added successfully, the system shall clear all entry fields and show 'User <id> has been added ...' in green.AC-13
REQ-F-048business ruleIf a user with the entered User ID already exists in the user security file (duplicate key or record response), then the system shall add nothing, leave the existing record unchanged and redisplay the screen with 'User ID already exist...' and the cursor on User ID.AC-08
REQ-F-049error handlingIf adding the user record fails for any other reason, then the system shall redisplay the screen with 'Unable to Add User...' and the cursor on First Name.AC-09
REQ-F-050business ruleIf the administrator presses a key other than Enter, PF3 or PF4 on the Add User screen, then the system shall redisplay the screen with 'Invalid key pressed. Please see below...' and the cursor on First Name, adding no user.AC-10

Business rules

RuleClassText, worked examples and evidence
Require first name
rec/group:claude/RULE-122/1
business rule
validation, high
WHEN the administrator presses Enter on the Add User screen, THE Add User function SHALL check the fields in the order First Name, Last Name, User ID, Password, User Type and stop at the first one that is blank, writing no record.
  • First Name: blank; Last Name: blank → Only 'First Name can NOT be empty...' is shown; no user is added
app/cbl/COUSR01C.cbl:115-160, app/cbl/COUSR01C.cbl:89-92
Require first name
rec/group:claude/RULE-122/2
business rule
validation, high
WHEN First Name is blank, THE Add User function SHALL redisplay the screen with 'First Name can NOT be empty...' and the cursor on First Name.
  • First Name: blank; Last Name: DOE → 'First Name can NOT be empty...' with the cursor on First Name
app/cbl/COUSR01C.cbl:115-160, app/cbl/COUSR01C.cbl:89-92
Require last name
rec/group:claude/RULE-122/3
business rule
validation, high
WHEN First Name is filled and Last Name is blank, THE Add User function SHALL redisplay the screen with 'Last Name can NOT be empty...' and the cursor on Last Name.
  • First Name: JOHN; Last Name: blank; User ID: JDOE0001 → 'Last Name can NOT be empty...' with the cursor on Last Name
app/cbl/COUSR01C.cbl:115-160, app/cbl/COUSR01C.cbl:89-92
Require user ID
rec/group:claude/RULE-122/4
business rule
validation, high
WHEN both names are filled and User ID is blank, THE Add User function SHALL redisplay the screen with 'User ID can NOT be empty...' and the cursor on User ID.
  • First Name: JOHN; Last Name: DOE; User ID: blank → 'User ID can NOT be empty...' with the cursor on User ID
app/cbl/COUSR01C.cbl:115-160, app/cbl/COUSR01C.cbl:89-92
Require password
rec/group:claude/RULE-122/5
business rule
validation, high
WHEN both names and User ID are filled and Password is blank, THE Add User function SHALL redisplay the screen with 'Password can NOT be empty...' and the cursor on Password.
  • User ID: JDOE0001; Password: blank → 'Password can NOT be empty...' with the cursor on Password
app/cbl/COUSR01C.cbl:115-160, app/cbl/COUSR01C.cbl:89-92
Require user type
rec/group:claude/RULE-122/6
business rule
validation, high
WHEN names, User ID and Password are filled and User Type is blank, THE Add User function SHALL redisplay the screen with 'User Type can NOT be empty...' and the cursor on User Type.
  • Password: PASS1234; User Type: blank → 'User Type can NOT be empty...' with the cursor on User Type
app/cbl/COUSR01C.cbl:115-160, app/cbl/COUSR01C.cbl:89-92
User type value is not restricted to Admin or Regular
rec/claude:claude/RULE-123/1
business rule
validation, medium
THE Add User function SHALL accept any non-blank single character as User Type and save it as entered, although the screen offers only 'A' (Admin) and 'U' (User).
  • User Type: X; Other fields: all filled → User is saved with type 'X'
app/cbl/COUSR01C.cbl:142-158, app/bms/COUSR01.bms:141-150, app/cbl/COSGN00C.cbl:227-240, app/cpy/COCOM01Y.cpy:27-28
Assemble new user record
rec/group:claude/RULE-122/7
design note
technical, high
WHEN all five fields are filled, THE Add User function SHALL build the user security record from the entered User ID, first name, last name, password and user type and attempt to add it to the user security file (USRSEC).
app/cbl/COUSR01C.cbl:115-160, app/cbl/COUSR01C.cbl:89-92
Passwords are stored exactly as entered (plaintext, max 8 chars)
rec/claude:claude/RULE-231/1
business rule
compliance, medium
WHEN an administrator adds a new user, THE user add screen SHALL store the password in the user security file exactly as typed, with no encryption or hashing, in an 8-character field (SEC-USR-PWD).
app/cbl/COUSR01C.cbl:153-160, app/cbl/COUSR01C.cbl:238-247, app/cpy/CSUSR01Y.cpy:17-23, app/bms/COUSR01.bms:126-130
Create user and confirm success
rec/group:claude/RULE-048/1
business rule
business, high
WHEN the new user record is added successfully, THE Add User function SHALL clear all entry fields and show 'User <id> has been added ...' in green.
app/cbl/COUSR01C.cbl:238-274, app/cbl/COUSR01C.cbl:287-295
Reject duplicate user ID
rec/group:claude/RULE-048/2
business rule
validation, high
WHEN a user with the entered User ID already exists in the user security file (duplicate key or record response), THE Add User function SHALL add nothing, leave the existing record unchanged and redisplay the screen with 'User ID already exist...' and the cursor on User ID.
  • User ID: ADMIN001 (already on file) → 'User ID already exist...' with the cursor on User ID; existing ADMIN001 record unchanged
app/cbl/COUSR01C.cbl:238-274, app/cbl/COUSR01C.cbl:287-295
User ID must be unique when adding a user
rec/group:claude/RULE-048/3
error handling
error_handling, high
WHEN adding the user record fails for any other reason, THE Add User function SHALL redisplay the screen with 'Unable to Add User...' and the cursor on First Name.
  • USRSEC file: closed or unavailable → 'Unable to Add User...' with the cursor on First Name
app/cbl/COUSR01C.cbl:238-274, app/cbl/COUSR01C.cbl:287-295
Reject unsupported key press
rec/aws:UserAccessControl/UserSecurityProfileManagement/id-27dd127f8a/1
business rule
validation, medium
WHEN the administrator presses a key other than Enter, PF3 or PF4 on the Add User screen, THE Add User function SHALL redisplay the screen with 'Invalid key pressed. Please see below...' and the cursor on First Name, adding no user.
  • Key pressed: PF5 → 'Invalid key pressed. Please see below...' with the cursor on First Name
app/cbl/COUSR01C.cbl:90-103, app/cpy/CSMSG01Y.cpy:20-21

Acceptance criteria

IDCriterionChecks
AC-01Given First Name: blank; Last Name: blank
When the administrator presses Enter on the Add User screen
Then Only 'First Name can NOT be empty...' is shown; no user is added
REQ-F-039
Require first name
worked example 1 of the rule
AC-02Given First Name: blank; Last Name: DOE
When First Name is blank
Then 'First Name can NOT be empty...' with the cursor on First Name
REQ-F-040
Require first name
worked example 1 of the rule
AC-03Given First Name: JOHN; Last Name: blank; User ID: JDOE0001
When First Name is filled and Last Name is blank
Then 'Last Name can NOT be empty...' with the cursor on Last Name
REQ-F-041
Require last name
worked example 1 of the rule
AC-04Given First Name: JOHN; Last Name: DOE; User ID: blank
When both names are filled and User ID is blank
Then 'User ID can NOT be empty...' with the cursor on User ID
REQ-F-042
Require user ID
worked example 1 of the rule
AC-05Given User ID: JDOE0001; Password: blank
When both names and User ID are filled and Password is blank
Then 'Password can NOT be empty...' with the cursor on Password
REQ-F-043
Require password
worked example 1 of the rule
AC-06Given Password: PASS1234; User Type: blank
When names, User ID and Password are filled and User Type is blank
Then 'User Type can NOT be empty...' with the cursor on User Type
REQ-F-044
Require user type
worked example 1 of the rule
AC-07Given User Type: X; Other fields: all filled
When Add User function runs
Then User is saved with type 'X'
REQ-F-045
User type value is not restricted to Admin or Regular
worked example 1 of the rule
AC-08Given User ID: ADMIN001 (already on file)
When a user with the entered User ID already exists in the user security file (duplicate key or record response)
Then 'User ID already exist...' with the cursor on User ID; existing ADMIN001 record unchanged
REQ-F-048
Reject duplicate user ID
worked example 1 of the rule
AC-09Given USRSEC file: closed or unavailable
When adding the user record fails for any other reason
Then 'Unable to Add User...' with the cursor on First Name
REQ-F-049
User ID must be unique when adding a user
worked example 1 of the rule
AC-10Given Key pressed: PF5
When the administrator presses a key other than Enter, PF3 or PF4 on the Add User screen
Then 'Invalid key pressed. Please see below...' with the cursor on First Name
REQ-F-050
Reject unsupported key press
worked example 1 of the rule
AC-11Given no user with User ID 'USER0099' exists
When the administrator enters First Name 'Jane', Last Name 'Doe', User ID 'USER0099', Password 'SECRET1' and User Type 'U' and presses Enter
Then a user security record is built with User ID 'USER0099', first name 'Jane', last name 'Doe', password 'SECRET1' and user type 'U', and an attempt is made to add it to the user security file
REQ-F-046
Assemble new user record
written from the rule
AC-12Given the administrator adds user 'USER0099' with Password 'Secret1'
When the new user record is stored
Then the password field of the stored record holds exactly 'Secret1' as typed, not encrypted or hashed, in a field of at most 8 characters
REQ-N-002
Passwords are stored exactly as entered (plaintext, max 8 chars)
written from the rule
AC-13Given all five fields are filled and no user 'USER0099' exists
When the administrator presses Enter and the record is added successfully
Then all entry fields are cleared and the message 'User USER0099 has been added ...' is shown in green
REQ-F-047
Create user and confirm success
written from the rule

Screens

  • Sign in S-SIGN-IN · design · replaces COSGN0A (4 kept, 5 dropped, 4 merged, 1 split)
  • Home S-HOME · design · replaces COMEN1A, COADM1A (38 merged, 6 dropped, 2 split)
  • Add user S-USER-ADD · design · replaces COUSR1A (7 kept, 2 dropped, 7 merged, 1 split)
    • **lookup field** First name checks: Blank: 'First Name can NOT be empty...'
    • **lookup field** Last name checks: Blank: 'Last Name can NOT be empty...'
    • **lookup field** User ID checks: Blank: 'User ID can NOT be empty...' Already used: 'User ID already exist...'; nothing is added and the existing user is not changed.
    • **lookup field** Password checks: Blank: 'Password can NOT be empty...'
    • **lookup field** User type checks: None chosen: 'User Type can NOT be empty...'
    • **primary button** Add user checks: Checks First name, Last name, User ID, Password and User type in that order. Every blank field is listed in an error summary at the top, each linked to its field, and nothing is added until all are filled. Any other failure: 'Unable to Add User...', with focus on First name.

Data contracts

CSUSR01Y (file record; COUSR01C), COCOM01Y (working storage; COUSR01C), COTTL01Y (working storage; COUSR01C), CSDAT01Y (working storage; COUSR01C), CSMSG01Y (working storage; COUSR01C)

Decision tables

Add User outcome on Enter

First NameLast NameUser IDPasswordUser TypeAdd to user security fileAdd User resultRule
BlankAnyAnyAnyAnyNot attempted'First Name can NOT be empty...', cursor on First Namerec/group:claude/RULE-122/2
FilledBlankAnyAnyAnyNot attempted'Last Name can NOT be empty...', cursor on Last Namerec/group:claude/RULE-122/3
FilledFilledBlankAnyAnyNot attempted'User ID can NOT be empty...', cursor on User IDrec/group:claude/RULE-122/4
FilledFilledFilledBlankAnyNot attempted'Password can NOT be empty...', cursor on Passwordrec/group:claude/RULE-122/5
FilledFilledFilledFilledBlankNot attempted'User Type can NOT be empty...', cursor on User Typerec/group:claude/RULE-122/6
FilledFilledFilledFilledFilledSucceedsClear fields and show 'User <id> has been added ...' in greenrec/group:claude/RULE-048/1
FilledFilledFilledFilledFilledUser ID already existsAdd nothing; 'User ID already exist...', cursor on User IDrec/group:claude/RULE-048/2
FilledFilledFilledFilledFilledFails for any other reason'Unable to Add User...', cursor on First Namerec/group:claude/RULE-048/3

Open questions

  • SME-216 What should PF3 and PF4 each do on the add-user screen? (Business analyst)
  • SME-217 When saving a new user fails for a reason other than a duplicate user ID, what should the operator be told, and how should it be handled? (Business analyst)
  • SME-218 Passwords are stored exactly as the operator enters them. Must the new system hash or otherwise protect passwords before storing them? (Security team)
  • SME-219 When adding a user, should User Type be limited to specific values, such as 'A' (Admin) and 'U' (Regular)? Today only its presence is checked; is any further check made by the screen itself? (Security officer)
  • DEF-163 Is this intended? User Type is not checked against the 'A'/'U' values the screen offers, so an invalid type such as 'X' is stored and later treated as a regular user. (Subject-matter expert)
  • DEF-178 Confirm this is deliberate: Passwords are stored in plaintext in the USRSEC file, so anyone who can read the file sees every user's password. (Subject-matter expert)

Design notes

  • Map the five entered fields onto a new user record keyed by User ID and insert it into the user store as a create-only operation. The insert must fail with a distinct 'duplicate key' result when the User ID already exists, so the screen can tell 'already exists' apart from other failures. Assemble new user record
5. Look up and update a userdraft · online · 3 requirements · 4 rules · 4 criteria · 4 screens · 4 gaps

Lets an administrator look up a user by User ID so they can then change it. A blank User ID is refused before any lookup. It must never look up or save against a blank User ID, and it must show the failure when the User ID does not exist.

As an administrator, I want to look up an existing user by User ID and save changes to it, so that the user's profile stays correct.

Draft: the function is not signed off yet. Risk high; touches personal_data, security, updates_records. rec/UserAccessControl/UserSecurityProfileManagement#5

Requirements

CodeClassRequirementCriteria
REQ-F-051business ruleIf the administrator asks to look up a user (presses Enter) with User ID blank, then the system shall show 'User ID can NOT be empty...' with the cursor on User ID and not look the user up.AC-01, AC-02
REQ-F-052design noteWhen a lookup is made with a non-blank User ID, the system shall clear the name, password and type fields and read that user from the user security file (USRSEC), holding it for update.AC-03
REQ-F-053error handlingIf the administrator saves and the entered User ID does not exist, then the system shall report 'User ID NOT found...' with the cursor on User ID but still try to save, so the last message shown is 'Unable to Update User...'.AC-04

Business rules

RuleClassText, worked examples and evidence
Require user ID for lookup
rec/aws:UserAccessControl/UserSecurityProfileManagement/id-8baf062ce2/1
business rule
validation, medium
WHEN the admin asks to look up a user with User ID blank, THE User Update SHALL show 'User ID can NOT be empty...' with the cursor on User ID and not look anything up.
  • User ID: (blank); Key: Enter → 'User ID can NOT be empty...' is shown; no lookup happens.
app/cbl/COUSR02C.cbl:143-164
Fetching a user requires the user ID to exist in the security file
rec/group:claude/RULE-124/1
business rule
validation, high
WHEN an administrator presses Enter with a blank User ID, THE User Update screen SHALL show 'User ID can NOT be empty...' with the cursor on User ID and not look the user up.
  • User ID: (blank); Key: Enter → 'User ID can NOT be empty...' is shown
app/cbl/COUSR02C.cbl:143-172, app/cbl/COUSR02C.cbl:320-353, app/cbl/COUSR02C.cbl:99-104
Retrieve and display user details
rec/group:claude/RULE-124/2
design note
technical, high
WHEN a lookup is made with a non-blank User ID, THE User Update screen SHALL clear the name, password and type fields and read that user from the user security file (USRSEC), holding it for update.
  • User ID: JSMITH01; Key: Enter → The USRSEC record for JSMITH01 is read
app/cbl/COUSR02C.cbl:143-172, app/cbl/COUSR02C.cbl:320-353, app/cbl/COUSR02C.cbl:99-104
Report user not found on save
rec/aws:UserAccessControl/UserSecurityProfileManagement/id-dfccf3b491/1
error handling
error_handling, medium
WHEN the admin saves and the entered User ID does not exist, THE User Update SHALL report 'User ID NOT found...' with the cursor on User ID, but SHALL then still try to save, so the last message shown is the save failure ('Unable to Update User...').
  • User ID: NOUSER01; All other fields: filled in; Key: PF5 → 'User ID NOT found...' is sent, then replaced by 'Unable to Update User...'; nothing is written.
app/cbl/COUSR02C.cbl:215-245, app/cbl/COUSR02C.cbl:340-345, app/cbl/COUSR02C.cbl:358-391

Acceptance criteria

IDCriterionChecks
AC-01Given User ID: (blank); Key: Enter
When the admin asks to look up a user with User ID blank
Then 'User ID can NOT be empty...' is shown; no lookup happens.
REQ-F-051
Require user ID for lookup
worked example 1 of the rule
AC-02Given User ID: (blank); Key: Enter
When an administrator presses Enter with a blank User ID
Then 'User ID can NOT be empty...' is shown
REQ-F-051
Fetching a user requires the user ID to exist in the security file
worked example 1 of the rule
AC-03Given User ID: JSMITH01; Key: Enter
When a lookup is made with a non-blank User ID
Then The USRSEC record for JSMITH01 is read
REQ-F-052
Retrieve and display user details
worked example 1 of the rule
AC-04Given User ID: NOUSER01; All other fields: filled in; Key: PF5
When the admin saves and the entered User ID does not exist
Then 'User ID NOT found...' is sent, then replaced by 'Unable to Update User...'; nothing is written.
REQ-F-053
Report user not found on save
worked example 1 of the rule

Screens

  • Sign in S-SIGN-IN · design · replaces COSGN0A (4 kept, 5 dropped, 4 merged, 1 split)
  • Home S-HOME · design · replaces COMEN1A, COADM1A (38 merged, 6 dropped, 2 split)
  • Users S-USER-LIST · design · replaces COUSR0A (2 kept, 12 dropped, 48 merged, 2 split)
  • Update user S-USER-EDIT · design · replaces COUSR2A (8 kept, 2 dropped, 7 merged, 1 split)
    • **lookup field** User ID checks: Blank: 'User ID can NOT be empty...' Not on file: 'User ID NOT found...', and the details stay blank. Read failure: 'Unable to lookup User...'.
    • **primary button** Save changes checks: Checks User ID, First name, Last name, Password and User type in that order. Every blank field is listed in an error summary, each linked to its field, and nothing is saved; leaving the screen never hides these messages. Nothing changed: 'Please modify to update ...' User no longer on file: 'User ID NOT found...', and no save is tried. Any other failure: 'Unable to Update User...'.

Data contracts

CSUSR01Y (file record; COUSR02C), COCOM01Y (working storage; COUSR02C), COTTL01Y (working storage; COUSR02C), CSDAT01Y (working storage; COUSR02C), CSMSG01Y (working storage; COUSR02C)

Decision tables

User Update lookup and save

ActionUser IDUser exists in user security fileUser Update resultRule
Lookup (Enter)Blank-'User ID can NOT be empty...', cursor on User ID; no lookuprec/aws:UserAccessControl/UserSecurityProfileManagement/id-8baf062ce2/1
Lookup (Enter)Non-blankAnyClear name, password and type fields and read the user for updaterec/group:claude/RULE-124/2
SaveNon-blankNo'User ID NOT found...' then save still attempted; last message 'Unable to Update User...'rec/aws:UserAccessControl/UserSecurityProfileManagement/id-dfccf3b491/1
Lookup (Enter)Non-blankNoGap: No rule says what message is shown when a lookup finds no user.
Lookup (Enter)Non-blankYesGap: No rule states which user details are then displayed.
SaveBlank-Gap: No rule covers saving with a blank User ID.
SaveNon-blankYesGap: No rule states which fields are changed or what confirmation is shown on a successful update.

Open questions

  • SME-220 What should PF12 do on the update-user screen? (Business analyst (user security profile management))
  • SME-221 What should happen when the update-user screen is opened directly, without coming from another screen? (Business analyst (user security profile management))
  • SME-222 While an operator is editing a user's details, before pressing PF5 to save, should the new system lock the record, or check for conflicting changes when the operator saves? (Architecture team)
  • SME-223 The update-user screen displays the user's stored password. Should the new system keep showing stored passwords? (Security team)
  • SME-224 When a user record is not found during a save, the error flag is not set, unlike when it is not found during a lookup. Is this difference intended? (Business analyst (user security profile management))
  • SME-225 Please confirm this rule: when a user lookup is requested with a user ID entered and no error flagged, the system blanks the first name, last name, password and user type fields, then retrieves the user record by that user ID. (Business analyst (user security profile management))
  • DEF-154 Is this intended? After the re-read reports the user is not found, the save continues and attempts a rewrite of a record it never read, overwriting the not-found message with a generic update failure. (Subject-matter expert)

Design notes

  • For a non-blank User ID, clear the detail fields, then fetch that user by its key from the user store. Read it so that a later save in the same flow can update that record safely, for example with optimistic concurrency (a version or the read values). Retrieve and display user details
6. Open the User Update screen and look up a userdraft · online · 10 requirements · 11 rules · 10 criteria · 5 screens · 1 gap

Opens the User Update screen for an administrator, either straight from the user list with the selected user already looked up, or empty. It then shows the stored first name, last name, password and user type for the User ID they enter. It must send anyone without a session to sign-on, and it must show 'User ID NOT found...' rather than stale details when the user does not exist.

As an administrator, I want to open the User Update screen and look up a user by User ID, so that I can see that user's stored details before changing them.

Draft: the function is not signed off yet. Risk high; touches personal_data, security. rec/UserAccessControl/UserSecurityProfileManagement#6

Requirements

CodeClassRequirementCriteria
REQ-F-054business ruleWhen the Update User program is started without any session data, the system shall transfer to the sign-on program (COSGN00C).AC-01
REQ-F-055business ruleWhen the Update User screen is entered for the first time from another screen and a user was selected there (such as the user list), the system shall clear the message, pre-fill User ID with the selected user, look that user up straight away and show its details.AC-02
REQ-F-056formattingWhen the Update User screen is entered for the first time and no user was selected, the system shall show an empty screen with the cursor on User ID.AC-03
REQ-F-057business ruleWhen the administrator presses Enter on the Update User screen, the system shall look up the entered User ID and show its details.AC-04
REQ-F-058formattingWhen the user is found, the system shall show the stored First Name, Last Name, Password and User Type and the message 'Press PF5 key to save your updates ...' in neutral colour.AC-05
REQ-F-059business ruleIf no user exists for the entered User ID, then the system shall show 'User ID NOT found...' with the cursor on User ID and leave the detail fields blank.AC-06
REQ-F-060error handlingIf reading the user fails for any reason other than not found, then the system shall show 'Unable to lookup User...' and log the response codes.AC-07
REQ-F-061formattingWhen the administrator presses PF4 on the Update User screen, the system shall clear User ID, First Name, Last Name, Password, User Type and the message, and put the cursor on User ID.AC-08
REQ-F-062business ruleWhen the administrator presses PF12 on the Update User screen, the system shall go to the Admin menu (COADM01C) without saving.AC-09
REQ-F-063business ruleIf the administrator presses any key other than Enter, PF3, PF4, PF5 or PF12 on the Update User screen, then the system shall redisplay the screen with the message 'Invalid key pressed. Please see below...'.AC-10

Business rules

RuleClassText, worked examples and evidence
Update User requires an active session and auto-fetches a user preselected from the list
rec/group:claude/RULE-183/1
business rule
compliance, high
WHEN the Update User program is started without any session data, THE User Update SHALL transfer to the sign-on program (COSGN00C).
  • Session data: none (transaction CU02 typed directly) → The sign-on screen is shown.
app/cbl/COUSR02C.cbl:82-105, app/cbl/COUSR02C.cbl:143-172, app/cbl/COUSR00C.cbl:189-199
Fetching a user requires the user ID to exist in the security file
rec/group:claude/RULE-124/6
business rule
business, high
WHEN the screen is opened from the user list with a user already selected, THE User Update screen SHALL look that user up straight away.
  • Selected user: JSMITH01 → The screen opens with JSMITH01's details filled in
app/cbl/COUSR02C.cbl:143-172, app/cbl/COUSR02C.cbl:320-353, app/cbl/COUSR02C.cbl:99-104
Look up preselected user on first entry
rec/group:claude/RULE-183/2
business rule
business, high
WHEN the Update User screen is entered for the first time from another screen and a user was selected there, THE User Update SHALL clear the message, pre-fill User ID with the selected user, look that user up and show its details.
app/cbl/COUSR02C.cbl:82-105, app/cbl/COUSR02C.cbl:143-172, app/cbl/COUSR00C.cbl:189-199
Look up preselected user on first entry
rec/group:claude/RULE-183/3
formatting
display, high
WHEN the Update User screen is entered for the first time and no user was selected, THE User Update SHALL show an empty screen with the cursor on User ID.
  • Came from: Admin menu option 3 → An empty Update User screen is shown, cursor on User ID.
app/cbl/COUSR02C.cbl:82-105, app/cbl/COUSR02C.cbl:143-172, app/cbl/COUSR00C.cbl:189-199
Route operator request by pressed key
rec/group:claude/RULE-232/1
business rule
business, high
WHEN the admin presses Enter on the Update User screen, THE User Update SHALL look up the entered User ID and show its details.
  • User ID: JSMITH01; Key: Enter → JSMITH01's first name, last name, password and user type are shown.
app/cbl/COUSR02C.cbl:106-131, app/cbl/COUSR02C.cbl:250-261, app/cbl/COUSR02C.cbl:395-411, app/cpy/CSMSG01Y.cpy:20-21
Retrieve and display user details
rec/group:claude/RULE-124/3
formatting
display, high
WHEN the user is found, THE User Update screen SHALL show the stored First Name, Last Name, Password and User Type and the message 'Press PF5 key to save your updates ...' in neutral colour.
  • User ID: JSMITH01 (on file as John Smith, type U); Key: Enter → John, Smith, the password and U are shown with 'Press PF5 key to save your updates ...'
app/cbl/COUSR02C.cbl:143-172, app/cbl/COUSR02C.cbl:320-353, app/cbl/COUSR02C.cbl:99-104
Report user not found on lookup
rec/group:claude/RULE-124/4
business rule
validation, high
WHEN no user exists for the entered User ID, THE User Update screen SHALL show 'User ID NOT found...' with the cursor on User ID and leave the detail fields blank.
  • User ID: NOUSER01; Key: Enter → 'User ID NOT found...' is shown with the cursor on User ID
app/cbl/COUSR02C.cbl:143-172, app/cbl/COUSR02C.cbl:320-353, app/cbl/COUSR02C.cbl:99-104
Fetching a user requires the user ID to exist in the security file
rec/group:claude/RULE-124/5
error handling
error_handling, high
WHEN reading the user fails for any other reason, THE User Update screen SHALL show 'Unable to lookup User...' and log the response codes.
  • User ID: JSMITH01; File response: file not open → 'Unable to lookup User...' is shown
app/cbl/COUSR02C.cbl:143-172, app/cbl/COUSR02C.cbl:320-353, app/cbl/COUSR02C.cbl:99-104
Route operator request by pressed key
rec/group:claude/RULE-232/4
formatting
display, high
WHEN the admin presses PF4, THE User Update SHALL clear User ID, First Name, Last Name, Password, User Type and the message, and put the cursor on User ID.
  • User ID: JSMITH01; Key: PF4 → All fields are blank and nothing is saved.
app/cbl/COUSR02C.cbl:106-131, app/cbl/COUSR02C.cbl:250-261, app/cbl/COUSR02C.cbl:395-411, app/cpy/CSMSG01Y.cpy:20-21
Route operator request by pressed key
rec/group:claude/RULE-232/5
business rule
business, high
WHEN the admin presses PF12, THE User Update SHALL go to the Admin menu (COADM01C) without saving.
  • Change: User Type U to A, not saved; Key: PF12 → The Admin menu is shown and the user record is unchanged.
app/cbl/COUSR02C.cbl:106-131, app/cbl/COUSR02C.cbl:250-261, app/cbl/COUSR02C.cbl:395-411, app/cpy/CSMSG01Y.cpy:20-21
Reject unsupported key press
rec/group:claude/RULE-232/6
business rule
validation, high
WHEN the admin presses any key other than Enter, PF3, PF4, PF5 or PF12, THE User Update SHALL redisplay the screen with the message 'Invalid key pressed. Please see below...'.
  • Key: PF7 → The screen is shown again with 'Invalid key pressed. Please see below...'.
app/cbl/COUSR02C.cbl:106-131, app/cbl/COUSR02C.cbl:250-261, app/cbl/COUSR02C.cbl:395-411, app/cpy/CSMSG01Y.cpy:20-21

Acceptance criteria

IDCriterionChecks
AC-01Given Session data: none (transaction CU02 typed directly)
When the Update User program is started without any session data
Then The sign-on screen is shown.
REQ-F-054
Update User requires an active session and auto-fetches a user preselected from the list
worked example 1 of the rule
AC-02Given Selected user: JSMITH01
When the screen is opened from the user list with a user already selected
Then The screen opens with JSMITH01's details filled in
REQ-F-055
Fetching a user requires the user ID to exist in the security file
worked example 1 of the rule
AC-03Given Came from: Admin menu option 3
When the Update User screen is entered for the first time and no user was selected
Then An empty Update User screen is shown, cursor on User ID.
REQ-F-056
Look up preselected user on first entry
worked example 1 of the rule
AC-04Given User ID: JSMITH01; Key: Enter
When the admin presses Enter on the Update User screen
Then JSMITH01's first name, last name, password and user type are shown.
REQ-F-057
Route operator request by pressed key
worked example 1 of the rule
AC-05Given User ID: JSMITH01 (on file as John Smith, type U); Key: Enter
When the user is found
Then John, Smith, the password and U are shown with 'Press PF5 key to save your updates ...'
REQ-F-058
Retrieve and display user details
worked example 1 of the rule
AC-06Given User ID: NOUSER01; Key: Enter
When no user exists for the entered User ID
Then 'User ID NOT found...' is shown with the cursor on User ID
REQ-F-059
Report user not found on lookup
worked example 1 of the rule
AC-07Given User ID: JSMITH01; File response: file not open
When reading the user fails for any other reason
Then 'Unable to lookup User...' is shown
REQ-F-060
Fetching a user requires the user ID to exist in the security file
worked example 1 of the rule
AC-08Given User ID: JSMITH01; Key: PF4
When the admin presses PF4
Then All fields are blank and nothing is saved.
REQ-F-061
Route operator request by pressed key
worked example 1 of the rule
AC-09Given Change: User Type U to A, not saved; Key: PF12
When the admin presses PF12
Then The Admin menu is shown and the user record is unchanged.
REQ-F-062
Route operator request by pressed key
worked example 1 of the rule
AC-10Given Key: PF7
When the admin presses any key other than Enter, PF3, PF4, PF5 or PF12
Then The screen is shown again with 'Invalid key pressed. Please see below...'.
REQ-F-063
Reject unsupported key press
worked example 1 of the rule

Screens

  • Sign in S-SIGN-IN · design · replaces COSGN0A (4 kept, 5 dropped, 4 merged, 1 split)
  • Home S-HOME · design · replaces COMEN1A, COADM1A (38 merged, 6 dropped, 2 split)
  • Users S-USER-LIST · design · replaces COUSR0A (2 kept, 12 dropped, 48 merged, 2 split)
  • Update user S-USER-EDIT · design · replaces COUSR2A (8 kept, 2 dropped, 7 merged, 1 split)
    • **lookup field** User ID checks: Blank: 'User ID can NOT be empty...' Not on file: 'User ID NOT found...', and the details stay blank. Read failure: 'Unable to lookup User...'.
    • **primary button** Save changes checks: Checks User ID, First name, Last name, Password and User type in that order. Every blank field is listed in an error summary, each linked to its field, and nothing is saved; leaving the screen never hides these messages. Nothing changed: 'Please modify to update ...' User no longer on file: 'User ID NOT found...', and no save is tried. Any other failure: 'Unable to Update User...'.
  • CardDemo header and navigation S-APP-HEADER · design
    • **data table** Navigation checks: Every screen checks on the server that a session is signed in. With no session you are sent to Sign in with 'Please sign in to continue.' Administrator-only screens check the role on the server. A regular user who opens one sees 'No access - Admin Only option... ' and stays on Home.

Data contracts

CSUSR01Y (file record; COUSR02C), COCOM01Y (working storage; COUSR02C), COTTL01Y (working storage; COUSR02C), CSDAT01Y (working storage; COUSR02C), CSMSG01Y (working storage; COUSR02C)

Decision tables

Update User screen key handling

Key pressedAction taken by the Update User screenRule
EnterLook up the entered User ID and show its detailsrec/group:claude/RULE-232/1
PF5Validate and save the changes and stay on the Update User screenrec/group:claude/RULE-232/2
PF3Attempt the same validation and save as PF5, then return to the calling program, or the Admin menu (COADM01C) if none is recordedrec/group:claude/RULE-232/3
PF4Clear User ID, First Name, Last Name, Password, User Type and the message; cursor on User IDrec/group:claude/RULE-232/4
PF12Go to the Admin menu (COADM01C) without savingrec/group:claude/RULE-232/5
Any other keyRedisplay the screen with 'Invalid key pressed. Please see below...'rec/group:claude/RULE-232/6

Update User lookup outcome

How the lookup is triggeredLookup resultWhat the Update User screen showsRule
First entry, no user selectedNo lookupEmpty screen with the cursor on User IDrec/group:claude/RULE-183/3
First entry with a selected user, or EnterUser foundShow stored First Name, Last Name, Password and User Type with 'Press PF5 key to save your updates ...' in neutral colourrec/group:claude/RULE-124/3
First entry with a selected user, or EnterUser not foundShow 'User ID NOT found...', cursor on User ID, detail fields blankrec/group:claude/RULE-124/4
First entry with a selected user, or EnterRead fails for another reasonShow 'Unable to lookup User...' and log the response codesrec/group:claude/RULE-124/5
EnterUser ID blankGap: No rule says what the Update User screen does when Enter is pressed with a blank User ID.

Open questions

  • SME-220 What should PF12 do on the update-user screen? (Business analyst (user security profile management))
  • SME-221 What should happen when the update-user screen is opened directly, without coming from another screen? (Business analyst (user security profile management))
  • SME-222 While an operator is editing a user's details, before pressing PF5 to save, should the new system lock the record, or check for conflicting changes when the operator saves? (Architecture team)
  • SME-223 The update-user screen displays the user's stored password. Should the new system keep showing stored passwords? (Security team)
  • SME-224 When a user record is not found during a save, the error flag is not set, unlike when it is not found during a lookup. Is this difference intended? (Business analyst (user security profile management))
  • SME-225 Please confirm this rule: when a user lookup is requested with a user ID entered and no error flagged, the system blanks the first name, last name, password and user type fields, then retrieves the user record by that user ID. (Business analyst (user security profile management))
  • SME-226 The update-user function does not check that the signed-in user is an Admin. Is admin-only access enforced only by the admin menu, and must the new system check it on this function directly? (Security officer)
  • DEF-094 Is this intended? PF3 returns to the caller even when the save fails validation, finds no change or fails to write, so the admin never sees the error message and may think the change was saved. (Subject-matter expert)

Design notes

None.

7. Save changes to a user profiledraft · online · 12 requirements · 12 rules · 13 criteria · 4 screens · 1 gap

Lets an administrator save changes to a user's first name, last name, password and user type. They can save and stay (PF5) or save and leave (PF3). It must require every field, write only when at least one value actually changed, and confirm a successful save.

As an administrator, I want to save changes to a user's name, password and user type, so that the user's security profile stays correct.

Draft: the function is not signed off yet. Risk high; touches personal_data, security, updates_records. rec/UserAccessControl/UserSecurityProfileManagement#7

Requirements

CodeClassRequirementCriteria
REQ-F-064business ruleWhen the administrator presses PF5, the system shall validate and save the changes and stay on the Update User screen.AC-01
REQ-F-065business ruleWhen the administrator presses PF3, the system shall attempt the same validation and save as PF5 and then always return to the program that called it, or to the Admin menu (COADM01C) if no caller is recorded.AC-02, AC-03
REQ-F-066business ruleIf a save is requested (PF5, or PF3 save-and-exit) and the User ID is blank, then the system shall not save, show 'User ID can NOT be empty...' and place the cursor on User ID.AC-04
REQ-F-067business ruleIf a save is requested with a User ID but a blank First Name, then the system shall not save, show 'First Name can NOT be empty...' and place the cursor on First Name.AC-05
REQ-F-068business ruleIf a save is requested with User ID and First Name filled but a blank Last Name, then the system shall not save, show 'Last Name can NOT be empty...' and place the cursor on Last Name.AC-06
REQ-F-069business ruleIf a save is requested with User ID and both names filled but a blank Password, then the system shall not save, show 'Password can NOT be empty...' and place the cursor on Password.AC-07
REQ-F-070business ruleIf a save is requested with all other fields filled but a blank User Type, then the system shall not save, show 'User Type can NOT be empty...' and place the cursor on User Type.AC-08
REQ-F-071business ruleIf several fields are blank when a save is requested, then the system shall report only the first in the order User ID, First Name, Last Name, Password, User Type.AC-09
REQ-F-072error handlingIf PF3 is pressed with a blank required field, then the system shall skip the save but still return to the calling screen (or the admin menu), so the validation message is not left on view.AC-10
REQ-F-073business ruleWhen the administrator saves (PF5 or PF3) and User ID, First Name, Last Name, Password and User Type are all filled in, the system shall re-read the stored user, replace each of First Name, Last Name, Password and User Type that differs from the screen, and save the user record only if at least one of them changed.AC-11
REQ-F-074business ruleIf the administrator saves and none of First Name, Last Name, Password or User Type differs from the stored user, then the system shall not save anything and shall show 'Please modify to update ...' in red.AC-12
REQ-F-075formattingWhen the changed user record is saved successfully, the system shall show 'User <user ID> has been updated ...' in green.AC-13

Business rules

RuleClassText, worked examples and evidence
Route operator request by pressed key
rec/group:claude/RULE-232/2
business rule
business, high
WHEN the admin presses PF5, THE User Update SHALL validate and save the changes and stay on the Update User screen.
  • Key: PF5; Change: Last Name Smith to Smyth → The change is saved and the Update User screen is shown again with the result message.
app/cbl/COUSR02C.cbl:106-131, app/cbl/COUSR02C.cbl:250-261, app/cbl/COUSR02C.cbl:395-411, app/cpy/CSMSG01Y.cpy:20-21
Route operator request by pressed key
rec/group:claude/RULE-232/3
business rule
business, high
WHEN the admin presses PF3, THE User Update SHALL attempt the same validation and save as PF5 and then always return to the program that called it, or to the Admin menu (COADM01C) if no caller is recorded.
  • Caller: User List (COUSR00C); Key: PF3 → Changes are saved if valid and the User List screen is shown.
  • Caller: none recorded; Key: PF3 → The Admin menu (COADM01C) is shown.
app/cbl/COUSR02C.cbl:106-131, app/cbl/COUSR02C.cbl:250-261, app/cbl/COUSR02C.cbl:395-411, app/cpy/CSMSG01Y.cpy:20-21
Require user ID for update
rec/group:claude/RULE-125/1
business rule
validation, high
WHEN an administrator asks to save a user update (PF5, or PF3 save-and-exit) and the User ID is blank, THE User Update screen SHALL not save, show 'User ID can NOT be empty...' and place the cursor on User ID.
  • User ID: (blank); Key: PF5 → Nothing is saved; 'User ID can NOT be empty...' is shown with the cursor on User ID
app/cbl/COUSR02C.cbl:177-213, app/cbl/COUSR02C.cbl:215, app/cbl/COUSR02C.cbl:111-119, app/cbl/COUSR02C.cbl:122-123
Require first name for update
rec/group:claude/RULE-125/2
business rule
validation, high
WHEN a save is requested with a User ID but a blank First Name, THE User Update screen SHALL not save, show 'First Name can NOT be empty...' and place the cursor on First Name.
  • User ID: JSMITH01; First Name: (blank); Key: PF5 → Nothing is saved; 'First Name can NOT be empty...' is shown
app/cbl/COUSR02C.cbl:177-213, app/cbl/COUSR02C.cbl:215, app/cbl/COUSR02C.cbl:111-119, app/cbl/COUSR02C.cbl:122-123
Require last name for update
rec/group:claude/RULE-125/3
business rule
validation, high
WHEN a save is requested with User ID and First Name filled but a blank Last Name, THE User Update screen SHALL not save, show 'Last Name can NOT be empty...' and place the cursor on Last Name.
  • User ID: JSMITH01; First Name: John; Last Name: (blank); Password: pass1234; User Type: U; Key: PF5 → Nothing is saved; 'Last Name can NOT be empty...' is shown with the cursor on Last Name
app/cbl/COUSR02C.cbl:177-213, app/cbl/COUSR02C.cbl:215, app/cbl/COUSR02C.cbl:111-119, app/cbl/COUSR02C.cbl:122-123
Require password for update
rec/group:claude/RULE-125/4
business rule
validation, high
WHEN a save is requested with User ID and both names filled but a blank Password, THE User Update screen SHALL not save, show 'Password can NOT be empty...' and place the cursor on Password.
  • User ID: JSMITH01; First Name: John; Last Name: Smith; Password: (blank); Key: PF5 → Nothing is saved; 'Password can NOT be empty...' is shown
app/cbl/COUSR02C.cbl:177-213, app/cbl/COUSR02C.cbl:215, app/cbl/COUSR02C.cbl:111-119, app/cbl/COUSR02C.cbl:122-123
Require user type for update
rec/group:claude/RULE-125/5
business rule
validation, high
WHEN a save is requested with all other fields filled but a blank User Type, THE User Update screen SHALL not save, show 'User Type can NOT be empty...' and place the cursor on User Type.
  • User ID: JSMITH01; First Name: John; Last Name: Smith; Password: pass1234; User Type: (blank); Key: PF5 → Nothing is saved; 'User Type can NOT be empty...' is shown
app/cbl/COUSR02C.cbl:177-213, app/cbl/COUSR02C.cbl:215, app/cbl/COUSR02C.cbl:111-119, app/cbl/COUSR02C.cbl:122-123
User update requires all profile fields to be non-blank
rec/group:claude/RULE-125/6
business rule
validation, high
WHEN several fields are blank, THE User Update screen SHALL report only the first in the order User ID, First Name, Last Name, Password, User Type.
  • First Name: (blank); Last Name: (blank); Key: PF5 → Only 'First Name can NOT be empty...' is shown
app/cbl/COUSR02C.cbl:177-213, app/cbl/COUSR02C.cbl:215, app/cbl/COUSR02C.cbl:111-119, app/cbl/COUSR02C.cbl:122-123
User update requires all profile fields to be non-blank
rec/group:claude/RULE-125/7
error handling
error_handling, high
WHEN PF3 is pressed with a blank required field, THE User Update screen SHALL skip the save but still return to the calling screen (or the admin menu), so the validation message is not left on view.
  • Last Name: (blank); Key: PF3 → No update is written and the user is taken back to the previous screen
app/cbl/COUSR02C.cbl:177-213, app/cbl/COUSR02C.cbl:215, app/cbl/COUSR02C.cbl:111-119, app/cbl/COUSR02C.cbl:122-123
Apply changed user fields and save
rec/group:claude/RULE-182/1
business rule
business, high
WHEN the admin saves (PF5 or PF3) and User ID, First Name, Last Name, Password and User Type are all filled in, THE User Update SHALL re-read the stored user and replace each of First Name, Last Name, Password and User Type that differs from the screen, and save the user record only if at least one of them changed.
  • Stored user: JSMITH01, John, Smith, pass1234, type U; Screen: JSMITH01, John, Smith, pass1234, type A; Key: PF5 → The user record is rewritten with User Type 'A'; the other fields stay as they were.
app/cbl/COUSR02C.cbl:177-245, app/cbl/COUSR02C.cbl:320-338, app/cbl/COUSR02C.cbl:358-376
Reject update with no changes
rec/group:claude/RULE-182/2
business rule
validation, high
WHEN the admin saves and none of First Name, Last Name, Password or User Type differs from the stored user, THE User Update SHALL not save anything and SHALL show 'Please modify to update ...' in red.
  • Stored user: JSMITH01, John, Smith, pass1234, type U; Screen: JSMITH01, John, Smith, pass1234, type U; Key: PF5 → Nothing is written; the message 'Please modify to update ...' is shown in red.
app/cbl/COUSR02C.cbl:177-245, app/cbl/COUSR02C.cbl:320-338, app/cbl/COUSR02C.cbl:358-376
Save user record and confirm
rec/group:claude/RULE-182/3
formatting
display, high
WHEN the changed user record is saved successfully, THE User Update SHALL show 'User <user ID> has been updated ...' in green.
app/cbl/COUSR02C.cbl:177-245, app/cbl/COUSR02C.cbl:320-338, app/cbl/COUSR02C.cbl:358-376

Acceptance criteria

IDCriterionChecks
AC-01Given Key: PF5; Change: Last Name Smith to Smyth
When the admin presses PF5
Then The change is saved and the Update User screen is shown again with the result message.
REQ-F-064
Route operator request by pressed key
worked example 1 of the rule
AC-02Given Caller: User List (COUSR00C); Key: PF3
When the admin presses PF3
Then Changes are saved if valid and the User List screen is shown.
REQ-F-065
Route operator request by pressed key
worked example 1 of the rule
AC-03Given Caller: none recorded; Key: PF3
When the admin presses PF3
Then The Admin menu (COADM01C) is shown.
REQ-F-065
Route operator request by pressed key
worked example 2 of the rule
AC-04Given User ID: (blank); Key: PF5
When an administrator asks to save a user update (PF5, or PF3 save-and-exit) and the User ID is blank
Then Nothing is saved; 'User ID can NOT be empty...' is shown with the cursor on User ID
REQ-F-066
Require user ID for update
worked example 1 of the rule
AC-05Given User ID: JSMITH01; First Name: (blank); Key: PF5
When a save is requested with a User ID but a blank First Name
Then Nothing is saved; 'First Name can NOT be empty...' is shown
REQ-F-067
Require first name for update
worked example 1 of the rule
AC-06Given User ID: JSMITH01; First Name: John; Last Name: (blank); Password: pass1234; User Type: U; Key: PF5
When a save is requested with User ID and First Name filled but a blank Last Name
Then Nothing is saved; 'Last Name can NOT be empty...' is shown with the cursor on Last Name
REQ-F-068
Require last name for update
worked example 1 of the rule
AC-07Given User ID: JSMITH01; First Name: John; Last Name: Smith; Password: (blank); Key: PF5
When a save is requested with User ID and both names filled but a blank Password
Then Nothing is saved; 'Password can NOT be empty...' is shown
REQ-F-069
Require password for update
worked example 1 of the rule
AC-08Given User ID: JSMITH01; First Name: John; Last Name: Smith; Password: pass1234; User Type: (blank); Key: PF5
When a save is requested with all other fields filled but a blank User Type
Then Nothing is saved; 'User Type can NOT be empty...' is shown
REQ-F-070
Require user type for update
worked example 1 of the rule
AC-09Given First Name: (blank); Last Name: (blank); Key: PF5
When several fields are blank
Then Only 'First Name can NOT be empty...' is shown
REQ-F-071
User update requires all profile fields to be non-blank
worked example 1 of the rule
AC-10Given Last Name: (blank); Key: PF3
When PF3 is pressed with a blank required field
Then No update is written and the user is taken back to the previous screen
REQ-F-072
User update requires all profile fields to be non-blank
worked example 1 of the rule
AC-11Given Stored user: JSMITH01, John, Smith, pass1234, type U; Screen: JSMITH01, John, Smith, pass1234, type A; Key: PF5
When the admin saves (PF5 or PF3) and User ID, First Name, Last Name, Password and User Type are all filled in
Then The user record is rewritten with User Type 'A'; the other fields stay as they were.
REQ-F-073
Apply changed user fields and save
worked example 1 of the rule
AC-12Given Stored user: JSMITH01, John, Smith, pass1234, type U; Screen: JSMITH01, John, Smith, pass1234, type U; Key: PF5
When the admin saves and none of First Name, Last Name, Password or User Type differs from the stored user
Then Nothing is written; the message 'Please modify to update ...' is shown in red.
REQ-F-074
Reject update with no changes
worked example 1 of the rule
AC-13Given user 'USER0001' is stored with Last Name 'Smith' and the administrator has changed Last Name to 'Jones', with all other fields filled
When the administrator presses PF5 and the changed record is saved successfully
Then the message 'User USER0001 has been updated ...' is shown in green
REQ-F-075
Save user record and confirm
written from the rule

Screens

  • Sign in S-SIGN-IN · design · replaces COSGN0A (4 kept, 5 dropped, 4 merged, 1 split)
  • Home S-HOME · design · replaces COMEN1A, COADM1A (38 merged, 6 dropped, 2 split)
  • Users S-USER-LIST · design · replaces COUSR0A (2 kept, 12 dropped, 48 merged, 2 split)
  • Update user S-USER-EDIT · design · replaces COUSR2A (8 kept, 2 dropped, 7 merged, 1 split)
    • **lookup field** First name checks: Blank: 'First Name can NOT be empty...'
    • **lookup field** Last name checks: Blank: 'Last Name can NOT be empty...'
    • **lookup field** Password checks: Cleared without a new password: 'Password can NOT be empty...'
    • **lookup field** User type checks: None chosen: 'User Type can NOT be empty...'
    • **primary button** Save changes checks: Checks User ID, First name, Last name, Password and User type in that order. Every blank field is listed in an error summary, each linked to its field, and nothing is saved; leaving the screen never hides these messages. Nothing changed: 'Please modify to update ...' User no longer on file: 'User ID NOT found...', and no save is tried. Any other failure: 'Unable to Update User...'.

Data contracts

CSUSR01Y (file record; COUSR02C), COCOM01Y (working storage; COUSR02C), COTTL01Y (working storage; COUSR02C), CSDAT01Y (working storage; COUSR02C), CSMSG01Y (working storage; COUSR02C)

Decision tables

User update save validation

User IDFirst NameLast NamePasswordUser TypeAny of First Name, Last Name, Password, User Type differs from stored userSave resultRule
BlankAnyAnyAnyAnyAnyNot saved; 'User ID can NOT be empty...'; cursor on User IDrec/group:claude/RULE-125/1
FilledBlankAnyAnyAnyAnyNot saved; 'First Name can NOT be empty...'; cursor on First Namerec/group:claude/RULE-125/2
FilledFilledBlankAnyAnyAnyNot saved; 'Last Name can NOT be empty...'; cursor on Last Namerec/group:claude/RULE-125/3
FilledFilledFilledBlankAnyAnyNot saved; 'Password can NOT be empty...'; cursor on Passwordrec/group:claude/RULE-125/4
FilledFilledFilledFilledBlankAnyNot saved; 'User Type can NOT be empty...'; cursor on User Typerec/group:claude/RULE-125/5
FilledFilledFilledFilledFilledYesChanged fields replaced and user record saved; 'User <user ID> has been updated ...' in greenrec/group:claude/RULE-182/1
FilledFilledFilledFilledFilledNoNothing saved; 'Please modify to update ...' in redrec/group:claude/RULE-182/2
FilledFilledFilledFilledFilledStored user not found or save failsGap: No rule says what the screen shows if the re-read of the stored user or the save of the changed record fails.

Open questions

  • SME-220 What should PF12 do on the update-user screen? (Business analyst (user security profile management))
  • SME-221 What should happen when the update-user screen is opened directly, without coming from another screen? (Business analyst (user security profile management))
  • SME-222 While an operator is editing a user's details, before pressing PF5 to save, should the new system lock the record, or check for conflicting changes when the operator saves? (Architecture team)
  • SME-223 The update-user screen displays the user's stored password. Should the new system keep showing stored passwords? (Security team)
  • SME-224 When a user record is not found during a save, the error flag is not set, unlike when it is not found during a lookup. Is this difference intended? (Business analyst (user security profile management))
  • SME-225 Please confirm this rule: when a user lookup is requested with a user ID entered and no error flagged, the system blanks the first name, last name, password and user type fields, then retrieves the user record by that user ID. (Business analyst (user security profile management))
  • SME-227 Should the rule that saving a user writes the record only when at least one field actually changed be treated as top priority (P0)? (Product owner)
  • DEF-054 Is this intended? On PF3 (save and exit) a failed validation still returns to the previous screen, so the error message sent is immediately replaced and the user is not told the update was not saved. (Subject-matter expert)
  • DEF-079 Is this intended? The save does not check the result of re-reading the user: if the User ID is not found or the read fails, it still compares fields and tries to rewrite a record it never read for update, so the 'User ID NOT found...' message is replaced by whatever the rewrite returns. (Subject-matter expert)
  • DEF-094 Is this intended? PF3 returns to the caller even when the save fails validation, finds no change or fails to write, so the admin never sees the error message and may think the change was saved. (Subject-matter expert)

Design notes

None.

8. Delete a userdraft · online · 15 requirements · 15 rules · 16 criteria · 5 screens · 2 gaps

Lets an administrator look up a user and delete them from the user security file, so that the person can no longer sign on. Deletion happens on PF5 for whatever User ID is in the field, with no separate confirmation and no role check inside the screen. It must never delete a user other than the one whose ID is shown, and it must never delete anything when the User ID is blank.

As an administrator, I want to look up a user and delete them from the user security file, so that people who should no longer use CardDemo lose their access.

Draft: the function is not signed off yet. Risk high; touches personal_data, security, updates_records. rec/UserAccessControl/UserSecurityProfileManagement#8

Requirements

CodeClassRequirementCriteria
REQ-F-076business ruleWhen the User Delete transaction (CU03) is started with no session data, the system shall send the user to the sign-on program (COSGN00C).AC-01
REQ-F-077business ruleWhile session data is present, the system shall allow lookup and deletion without checking that the signed-on user is an administrator (type 'A'), relying on the program being offered only from the admin menu and user list.AC-02
REQ-F-078formattingWhen the User Delete screen is first opened and a user was selected on the User List screen, the system shall put that user ID in the field and look the user up straight away, showing the details or the lookup error.AC-13
REQ-F-079formattingWhen the User Delete screen is first opened with no user selected, the system shall show an empty screen with the cursor in the user ID field.AC-03
REQ-F-080formattingWhen the administrator presses Enter with a user ID that exists in the user security file (USRSEC), the system shall show that user's first name, last name and user type with the message 'Press PF5 key to delete this user ...' in neutral colour.AC-14
REQ-F-081business ruleIf the administrator presses Enter with the user ID blank, then the system shall show 'User ID can NOT be empty...' and not look up any user.AC-04
REQ-F-082business ruleIf the administrator presses Enter with a user ID that is not in the user security file, then the system shall show 'User ID NOT found...' and place the cursor on the user ID field.AC-05
REQ-F-083error handlingIf reading the user security file fails for any reason other than not found, then the system shall show 'Unable to lookup User...'.AC-06
REQ-F-084business ruleThe system shall not require a prior Enter lookup: PF5 deletes the user whose ID is in the user ID field, without a separate confirmation step.AC-15
REQ-F-085business ruleWhen the administrator presses PF5 with a user ID that exists in the user security file, the system shall read the record for update and delete it, clear the user ID, name and type fields, and show 'User <id> has been deleted ...' in green.AC-16
REQ-F-086business ruleIf the administrator presses PF5 with the user ID blank, then the system shall show 'User ID can NOT be empty...' and not delete any user.AC-07
REQ-F-087error handlingIf the administrator presses PF5 with a user ID that is not in the user security file, then the system shall report 'User ID NOT found...' and still attempt the delete, so the final screen may show 'Unable to Update User...' instead.AC-08
REQ-F-088error handlingIf deleting the user record fails for a reason other than not found, then the system shall show 'Unable to Update User...'.AC-09
REQ-F-089formattingWhen the administrator presses PF3 on the Delete User screen, the system shall return to the program that opened it (the user list COUSR00C or the admin menu COADM01C), or to the admin menu COADM01C when no calling program is recorded.AC-10, AC-11
REQ-F-090formattingWhen the administrator presses PF4 on the User Delete screen, the system shall clear the user ID, first name, last name, type and message and redisplay the empty screen.AC-12

Business rules

RuleClassText, worked examples and evidence
No role check inside user add/delete programs
rec/claude:claude/RULE-233/1
business rule
compliance, medium
WHEN the User Delete transaction (CU03) is started with no session data, THE User Delete program SHALL send the user to the sign-on program (COSGN00C).
  • Started by: typing CU03 on a blank terminal → Sign-on screen is shown
app/cbl/COUSR03C.cbl:90-132, app/cbl/COSGN00C.cbl:230-240, app/cpy/COADM02Y.cpy:41-44
No role check inside user add/delete programs
rec/claude:claude/RULE-233/2
business rule
compliance, medium
WHEN session data is present, THE User Delete program SHALL allow lookup and deletion without checking that the signed-on user is an administrator (type 'A'); access relies on the program being offered only from the admin menu and user list.
  • Signed-on user type: U; Session data: present → The delete screen works; no role check is made
app/cbl/COUSR03C.cbl:90-132, app/cbl/COSGN00C.cbl:230-240, app/cpy/COADM02Y.cpy:41-44
Look up preselected user on first entry
rec/aws:UserAccessControl/UserSecurityProfileManagement/id-11d6de683a/1
formatting
display, medium
WHEN the User Delete screen is first opened and a user was selected on the User List screen, THE User Delete program SHALL put that user ID in the field and look the user up straight away, showing the details or the lookup error.
app/cbl/COUSR03C.cbl:93-105, app/cbl/COUSR00C.cbl:153-154, app/cbl/COUSR00C.cbl:200-208
Look up preselected user on first entry
rec/aws:UserAccessControl/UserSecurityProfileManagement/id-11d6de683a/2
formatting
display, medium
WHEN the User Delete screen is first opened with no user selected, THE User Delete program SHALL show an empty screen with the cursor in the user ID field.
  • Opened from: Admin menu option 4 → Empty delete screen is shown
app/cbl/COUSR03C.cbl:93-105, app/cbl/COUSR00C.cbl:153-154, app/cbl/COUSR00C.cbl:200-208
Route operator key to user maintenance action
rec/group:claude/RULE-139/1
formatting
display, high
WHEN the administrator presses Enter with a user ID that exists in the user security file (USRSEC), THE User Delete screen SHALL show that user's first name, last name and user type with the message 'Press PF5 key to delete this user ...' in neutral colour.
app/cbl/COUSR03C.cbl:106-122, app/cbl/COUSR03C.cbl:142-192, app/cbl/COUSR03C.cbl:267-286, app/cbl/COUSR03C.cbl:305-322, app/cbl/COUSR03C.cbl:341-356
Reject empty user ID on lookup
rec/aws:UserAccessControl/UserSecurityProfileManagement/id-d07176ad51/1
business rule
validation, medium
WHEN the administrator presses Enter with the user ID blank, THE User Delete screen SHALL show 'User ID can NOT be empty...' and not look up any user.
  • User ID: (blank); Key: Enter → 'User ID can NOT be empty...' is shown
app/cbl/COUSR03C.cbl:144-156
Report user not found on lookup
rec/aws:UserAccessControl/UserSecurityProfileManagement/id-a6b9034964/1
business rule
validation, medium
WHEN the administrator presses Enter with a user ID that is not in the user security file, THE User Delete screen SHALL show 'User ID NOT found...' and place the cursor on the user ID field.
  • User ID: NOSUCH01; Key: Enter → 'User ID NOT found...' is shown and no name or type is displayed
app/cbl/COUSR03C.cbl:156-162, app/cbl/COUSR03C.cbl:287-299
Report user not found on lookup
rec/aws:UserAccessControl/UserSecurityProfileManagement/id-a6b9034964/2
error handling
error_handling, medium
WHEN reading the user security file fails for any reason other than not found, THE User Delete screen SHALL show 'Unable to lookup User...'.
  • User ID: JDOE0001; USRSEC file: closed → 'Unable to lookup User...' is shown
app/cbl/COUSR03C.cbl:156-162, app/cbl/COUSR03C.cbl:287-299
Retrieve then delete requested user
rec/group:claude/RULE-139/3
business rule
business, high
THE User Delete program SHALL NOT require a prior Enter lookup: PF5 deletes the user whose ID is in the user ID field, without a separate confirmation step.
app/cbl/COUSR03C.cbl:106-122, app/cbl/COUSR03C.cbl:142-192, app/cbl/COUSR03C.cbl:267-286, app/cbl/COUSR03C.cbl:305-322, app/cbl/COUSR03C.cbl:341-356
Route operator key to user maintenance action
rec/group:claude/RULE-139/2
business rule
business, high
WHEN the administrator presses PF5 with a user ID that exists in the user security file, THE User Delete program SHALL read the record for update and delete it, clear the user ID, name and type fields, and show 'User <id> has been deleted ...' in green.
app/cbl/COUSR03C.cbl:106-122, app/cbl/COUSR03C.cbl:142-192, app/cbl/COUSR03C.cbl:267-286, app/cbl/COUSR03C.cbl:305-322, app/cbl/COUSR03C.cbl:341-356
Reject empty user ID on deletion
rec/aws:UserAccessControl/UserSecurityProfileManagement/id-fe7f38497d/1
business rule
validation, medium
WHEN the administrator presses PF5 with the user ID blank, THE User Delete screen SHALL show 'User ID can NOT be empty...' and not delete any user.
  • User ID: (blank); Key: PF5 → 'User ID can NOT be empty...' is shown; nothing is deleted
app/cbl/COUSR03C.cbl:176-192
Report user not found on deletion
rec/aws:UserAccessControl/UserSecurityProfileManagement/id-25a0fc68a0/1
error handling
error_handling, medium
WHEN the administrator presses PF5 with a user ID that is not in the user security file, THE User Delete program SHALL report 'User ID NOT found...'; it then still attempts the delete, so the final screen may show 'Unable to Update User...' instead.
  • User ID: NOSUCH01; Key: PF5 → 'User ID NOT found...' is sent, then the delete is attempted and fails, ending with 'Unable to Update User...'
app/cbl/COUSR03C.cbl:188-192, app/cbl/COUSR03C.cbl:287-292, app/cbl/COUSR03C.cbl:305-336
Report user not found on deletion
rec/aws:UserAccessControl/UserSecurityProfileManagement/id-25a0fc68a0/2
error handling
error_handling, medium
WHEN deleting the user record fails for a reason other than not found, THE User Delete screen SHALL show 'Unable to Update User...'.
  • User ID: JDOE0001; Delete response: error → 'Unable to Update User...' is shown
app/cbl/COUSR03C.cbl:188-192, app/cbl/COUSR03C.cbl:287-292, app/cbl/COUSR03C.cbl:305-336
User admin screen key navigation
rec/claude:claude/RULE-257/1
formatting
display, medium
WHEN an administrator presses PF3 on the Delete User screen, THE user delete screen SHALL return to the program that opened it (the user list COUSR00C or the admin menu COADM01C), and SHALL go to the admin menu COADM01C when no calling program is recorded.
  • Key pressed: PF3; Calling program: COUSR00C → The user list screen (COUSR00C) is shown again
  • Key pressed: PF3; Calling program: (blank) → The admin menu (COADM01C) is shown
app/cbl/COUSR03C.cbl:113-119, app/cbl/COUSR03C.cbl:197-208, app/cbl/COUSR00C.cbl:200-209
Route operator key to user maintenance action
rec/group:claude/RULE-139/4
formatting
display, high
WHEN the administrator presses PF4, THE User Delete screen SHALL clear the user ID, first name, last name, type and message and redisplay the empty screen.
  • User ID: JDOE0001; Key: PF4 → All fields are blank; cursor in User ID
app/cbl/COUSR03C.cbl:106-122, app/cbl/COUSR03C.cbl:142-192, app/cbl/COUSR03C.cbl:267-286, app/cbl/COUSR03C.cbl:305-322, app/cbl/COUSR03C.cbl:341-356

Acceptance criteria

IDCriterionChecks
AC-01Given Started by: typing CU03 on a blank terminal
When the User Delete transaction (CU03) is started with no session data
Then Sign-on screen is shown
REQ-F-076
No role check inside user add/delete programs
worked example 1 of the rule
AC-02Given Signed-on user type: U; Session data: present
When session data is present
Then The delete screen works; no role check is made
REQ-F-077
No role check inside user add/delete programs
worked example 1 of the rule
AC-03Given Opened from: Admin menu option 4
When the User Delete screen is first opened with no user selected
Then Empty delete screen is shown
REQ-F-079
Look up preselected user on first entry
worked example 1 of the rule
AC-04Given User ID: (blank); Key: Enter
When the administrator presses Enter with the user ID blank
Then 'User ID can NOT be empty...' is shown
REQ-F-081
Reject empty user ID on lookup
worked example 1 of the rule
AC-05Given User ID: NOSUCH01; Key: Enter
When the administrator presses Enter with a user ID that is not in the user security file
Then 'User ID NOT found...' is shown and no name or type is displayed
REQ-F-082
Report user not found on lookup
worked example 1 of the rule
AC-06Given User ID: JDOE0001; USRSEC file: closed
When reading the user security file fails for any reason other than not found
Then 'Unable to lookup User...' is shown
REQ-F-083
Report user not found on lookup
worked example 1 of the rule
AC-07Given User ID: (blank); Key: PF5
When the administrator presses PF5 with the user ID blank
Then 'User ID can NOT be empty...' is shown; nothing is deleted
REQ-F-086
Reject empty user ID on deletion
worked example 1 of the rule
AC-08Given User ID: NOSUCH01; Key: PF5
When the administrator presses PF5 with a user ID that is not in the user security file
Then 'User ID NOT found...' is sent, then the delete is attempted and fails, ending with 'Unable to Update User...'
REQ-F-087
Report user not found on deletion
worked example 1 of the rule
AC-09Given User ID: JDOE0001; Delete response: error
When deleting the user record fails for a reason other than not found
Then 'Unable to Update User...' is shown
REQ-F-088
Report user not found on deletion
worked example 1 of the rule
AC-10Given Key pressed: PF3; Calling program: COUSR00C
When an administrator presses PF3 on the Delete User screen
Then The user list screen (COUSR00C) is shown again
REQ-F-089
User admin screen key navigation
worked example 1 of the rule
AC-11Given Key pressed: PF3; Calling program: (blank)
When an administrator presses PF3 on the Delete User screen
Then The admin menu (COADM01C) is shown
REQ-F-089
User admin screen key navigation
worked example 2 of the rule
AC-12Given User ID: JDOE0001; Key: PF4
When the administrator presses PF4
Then All fields are blank; cursor in User ID
REQ-F-090
Route operator key to user maintenance action
worked example 1 of the rule
AC-13Given the administrator marked user 'USER0003' with 'D' on the User List screen
When the User Delete screen opens for the first time
Then the User ID field holds 'USER0003' and the user is looked up straight away, showing that user's details, or the lookup error if the lookup fails
REQ-F-078
Look up preselected user on first entry
written from the rule
AC-14Given user 'USER0003' exists in the user security file
When the administrator enters User ID 'USER0003' on the User Delete screen and presses Enter
Then that user's first name, last name and user type are shown with the message 'Press PF5 key to delete this user ...' in neutral colour
REQ-F-080
Route operator key to user maintenance action
written from the rule
AC-15Given user 'USER0004' exists and the administrator has typed 'USER0004' into the User ID field without pressing Enter first
When the administrator presses PF5
Then user 'USER0004' is deleted with no separate confirmation step
REQ-F-084
Retrieve then delete requested user
written from the rule
AC-16Given user 'USER0003' exists in the user security file
When the administrator presses PF5 with User ID 'USER0003'
Then the record for 'USER0003' is removed from the user security file, the User ID, name and type fields are cleared, and 'User USER0003 has been deleted ...' is shown in green
REQ-F-085
Route operator key to user maintenance action
written from the rule

Screens

  • Sign in S-SIGN-IN · design · replaces COSGN0A (4 kept, 5 dropped, 4 merged, 1 split)
  • Home S-HOME · design · replaces COMEN1A, COADM1A (38 merged, 6 dropped, 2 split)
  • Users S-USER-LIST · design · replaces COUSR0A (2 kept, 12 dropped, 48 merged, 2 split)
  • Delete user S-USER-DELETE · design · replaces COUSR3A (4 kept, 2 dropped, 10 merged, 1 split)
    • **lookup field** User ID checks: Blank: 'User ID can NOT be empty...' Not on file: 'User ID NOT found...' Read failure: 'Unable to lookup User...'.
    • **summary card** User to delete
    • **primary button** Delete user checks: No user found: 'User ID can NOT be empty...' or 'User ID NOT found...', and nothing is deleted or attempted. Delete failure: 'Unable to Update User...'.
  • CardDemo header and navigation S-APP-HEADER · design
    • **data table** Navigation checks: Every screen checks on the server that a session is signed in. With no session you are sent to Sign in with 'Please sign in to continue.' Administrator-only screens check the role on the server. A regular user who opens one sees 'No access - Admin Only option... ' and stays on Home.

Data contracts

CSUSR01Y (file record; COUSR03C), COCOM01Y (working storage; COUSR03C), COTTL01Y (working storage; COUSR03C), CSDAT01Y (working storage; COUSR03C), CSMSG01Y (working storage; COUSR03C)

Decision tables

User Delete screen outcome by key and user lookup

Key pressedUser IDUser in user security fileWhat the User Delete screen doesRule
EnterBlankn/aShow 'User ID can NOT be empty...'; no lookuprec/aws:UserAccessControl/UserSecurityProfileManagement/id-d07176ad51/1
EnterFilledFoundShow first name, last name and user type with 'Press PF5 key to delete this user ...' in neutral colourrec/group:claude/RULE-139/1
EnterFilledNot foundShow 'User ID NOT found...'; cursor on user IDrec/aws:UserAccessControl/UserSecurityProfileManagement/id-a6b9034964/1
EnterFilledRead fails for another reasonShow 'Unable to lookup User...'rec/aws:UserAccessControl/UserSecurityProfileManagement/id-a6b9034964/2
PF5Blankn/aShow 'User ID can NOT be empty...'; no deleterec/aws:UserAccessControl/UserSecurityProfileManagement/id-fe7f38497d/1
PF5FilledFoundDelete the record, clear the fields and show 'User <id> has been deleted ...' in greenrec/group:claude/RULE-139/2
PF5FilledNot foundReport 'User ID NOT found...' then still attempt the delete; final screen may show 'Unable to Update User...'rec/aws:UserAccessControl/UserSecurityProfileManagement/id-25a0fc68a0/1
PF5FilledDelete fails for another reasonShow 'Unable to Update User...'rec/aws:UserAccessControl/UserSecurityProfileManagement/id-25a0fc68a0/2
PF3AnyAnyReturn to the calling program, or the admin menu COADM01C if none recordedrec/claude:claude/RULE-257/1
PF4AnyAnyClear user ID, first name, last name, type and message; redisplay empty screenrec/group:claude/RULE-139/4
PF12AnyAnyGap: No rule says what PF12 does on the User Delete screen.
Any other keyAnyAnyGap: No rule says how the User Delete screen handles keys other than Enter, PF3, PF4 and PF5.

Open questions

  • SME-228 What should happen when the delete-user screen is opened directly, without coming from another screen? (Business analyst)
  • SME-229 What should PF3 and PF12 each do on the delete-user screen? (Business analyst)
  • SME-230 On the delete-user screen, what should the messages say when a deletion fails and when an invalid key is pressed, and when should each appear? (Business analyst)
  • SME-231 The add-user and delete-user functions do not check the user's role themselves. Is admin-only access enforced elsewhere, such as by system transaction security or the admin menu? And must the new system explicitly check for the Admin role on these operations? (Security officer)
  • SME-232 Should user deletion be treated as top priority (P0) because pressing PF5 permanently removes the user's sign-on record with no soft delete, no copy of the record before deletion, and no audit trail? Should the rule's priority rationale be restated on that basis? (Security officer)
  • DEF-158 Is this intended? On PF5, the delete is attempted even when the read for update found no record (the error flag is not checked between the two steps), so the screen is sent twice and the 'User ID NOT found...' message is likely overwritten by 'Unable to Update User...'. (Subject-matter expert)
  • DEF-179 Confirm this is deliberate: The delete program does not itself verify the caller is an administrator; any session with a communication area that reaches CU03 can delete users. (Subject-matter expert)

Design notes

None.

9. Seed and load the user security filedraft · scheduled job · 8 requirements · 7 rules · 9 criteria

A setup job, run by operators, that builds the user security store from a fixed seed list. The list has ten accounts: administrators ADMIN001-ADMIN005 (type 'A') and regular users USER0001-USER0005 (type 'U'), all with password 'PASSWORD'. It must replace the store completely with exactly these seed records, and it must not leave a half-built staging set behind when a step fails.

As a system operator, I want to build the user security file from a staged seed list of users, so that CardDemo has administrator and regular user accounts to sign on with.

Draft: the function is not signed off yet. Risk high; touches personal_data, security, updates_records. rec/UserAccessControl/UserSecurityProfileManagement#9

Requirements

CodeClassRequirementCriteria
REQ-F-091business ruleThe system shall create the staging file AWS.M2.CARDDEMO.USRSEC.PS of fixed 80-byte records holding administrators ADMIN001-ADMIN005 (user type 'A') and regular users USER0001-USER0005 (user type 'U'), each with first and last name and the password 'PASSWORD'.AC-01, AC-02
REQ-F-092design noteThe system shall delete any earlier user security staging file first, catalogue the new one when the copy succeeds and delete it when the copy fails.AC-03
REQ-F-093design noteThe system shall delete and redefine the user security master (AWS.M2.CARDDEMO.USRSEC.VSAM.KSDS) as a keyed file of 80-byte records keyed on the 8-character user ID, then copy every record from the staging file (AWS.M2.CARDDEMO.USRSEC.PS) into it.AC-04
REQ-F-094business ruleThe system shall create a new staging file of user security records (AWS.M2.CARDDEMO.ESDSRRDS.PS, fixed 80-byte records) holding ten users: administrators ADMIN001-ADMIN005 with password 'PASSWORD' and user type 'A', and regular users USER0001-USER0005 with password 'PASSWORD' and user type 'U', each with a first and last name.AC-05, AC-06
REQ-F-095error handlingWhen the staging step ends normally, the system shall keep the staging file AWS.M2.CARDDEMO.ESDSRRDS.PS.AC-07
REQ-F-096error handlingIf the staging step ends abnormally, then the system shall delete the staging file AWS.M2.CARDDEMO.ESDSRRDS.PS.AC-07
REQ-F-097design noteThe system shall copy every record of the staging file AWS.M2.CARDDEMO.ESDSRRDS.PS into the newly redefined entry-sequenced user security file (AWS.M2.CARDDEMO.USRSEC.VSAM.ESDS), with both files opened for shared access and with no condition on earlier steps.AC-08
REQ-F-098design noteThe system shall copy every record of the staging file AWS.M2.CARDDEMO.ESDSRRDS.PS into the newly redefined relative-record user security file (AWS.M2.CARDDEMO.USRSEC.VSAM.RRDS), with both files opened for shared access and with no condition on earlier steps.AC-09

Business rules

RuleClassText, worked examples and evidence
Build user security staging file from seed list
rec/aws:UserAccessControl/UserSecurityProfileManagement/id-8037763530/1
business rule
compliance, medium
THE user security setup job SHALL create the staging file AWS.M2.CARDDEMO.USRSEC.PS of fixed 80-byte records, holding administrators ADMIN001-ADMIN005 (user type 'A') and regular users USER0001-USER0005 (user type 'U'), each with first and last name and the password 'PASSWORD'.
  • user ID: ADMIN001 → Seeded as MARGARET GOLD, password 'PASSWORD', user type 'A'
  • user ID: USER0003 → Seeded as LAURITZ ALME, password 'PASSWORD', user type 'U'
app/jcl/DUSRSECJ.jcl:23-26, app/jcl/DUSRSECJ.jcl:32-52, app/cpy/CSUSR01Y.cpy:17-23
Build user security staging file from seed list
rec/aws:UserAccessControl/UserSecurityProfileManagement/id-8037763530/2
design note
technical, medium
THE user security setup job SHALL delete any earlier staging file first, catalogue the new one when the copy succeeds and delete it when the copy fails.
  • existing AWS.M2.CARDDEMO.USRSEC.PS: present from last run → It is deleted and rebuilt from the seed list
app/jcl/DUSRSECJ.jcl:23-26, app/jcl/DUSRSECJ.jcl:32-52, app/cpy/CSUSR01Y.cpy:17-23
Load user security master from staging file
rec/aws:UserAccessControl/UserSecurityProfileManagement/id-1c37b83000/1
design note
technical, medium
THE user security setup job SHALL delete and redefine the user security master (AWS.M2.CARDDEMO.USRSEC.VSAM.KSDS) as a keyed file of 80-byte records keyed on the 8-character user ID, then copy every record from the staging file (AWS.M2.CARDDEMO.USRSEC.PS) into it.
  • staging file records: 10 (ADMIN001-ADMIN005, USER0001-USER0005) → The user security master holds exactly those 10 users, keyed by user ID
app/jcl/DUSRSECJ.jcl:58-74, app/jcl/DUSRSECJ.jcl:80-88
Stage user security records from in-stream data
rec/aws:UserAccessControl/UserSecurityProfileManagement/id-6d56c008f9/1
business rule
compliance, medium
THE User Security Credential Load SHALL create a new staging file of user security records (AWS.M2.CARDDEMO.ESDSRRDS.PS, fixed 80-byte records) holding ten users: administrators ADMIN001-ADMIN005 with password 'PASSWORD' and user type 'A', and regular users USER0001-USER0005 with password 'PASSWORD' and user type 'U', each with a first and last name.
  • user ID: ADMIN001 → Staged as MARGARET GOLD with password 'PASSWORD' and user type 'A'.
  • user ID: USER0002 → Staged as AJITH KUMAR with password 'PASSWORD' and user type 'U'.
app/jcl/ESDSRRDS.jcl:33-53, app/cpy/CSUSR01Y.cpy:17-23
Stage user security records from in-stream data
rec/aws:UserAccessControl/UserSecurityProfileManagement/id-6d56c008f9/2
error handling
error_handling, medium
WHEN the staging step ends normally, THE User Security Credential Load SHALL keep the staging file, and WHEN it ends abnormally, SHALL delete it.
  • staging step outcome: abend → AWS.M2.CARDDEMO.ESDSRRDS.PS is deleted.
app/jcl/ESDSRRDS.jcl:33-53, app/cpy/CSUSR01Y.cpy:17-23
Load staged credentials into user security file
rec/aws:UserAccessControl/UserSecurityProfileManagement/id-4dadd5bfc9/1
design note
technical, medium
THE User Security Credential Load SHALL copy every record of the user security staging file (AWS.M2.CARDDEMO.ESDSRRDS.PS) into the newly redefined entry-sequenced user security file (AWS.M2.CARDDEMO.USRSEC.VSAM.ESDS), with both files opened for shared access; the copy step has no condition on earlier steps.
  • records in staging file: 10 → The entry-sequenced user security file holds the same 10 records in the same order.
app/jcl/ESDSRRDS.jcl:59-73, app/jcl/ESDSRRDS.jcl:79-86
Load staged credentials into the user security file
rec/aws:UserAccessControl/UserSecurityProfileManagement/id-858c5bcf88/1
design note
technical, medium
THE User Security Credential Load SHALL copy every record of the user security staging file (AWS.M2.CARDDEMO.ESDSRRDS.PS) into the newly redefined relative-record user security file (AWS.M2.CARDDEMO.USRSEC.VSAM.RRDS), with both files opened for shared access; the copy step has no condition on earlier steps.
  • records in staging file: 10 → The relative-record user security file holds the 10 records as record numbers 1 to 10.
app/jcl/ESDSRRDS.jcl:93-107, app/jcl/ESDSRRDS.jcl:113-121

Acceptance criteria

IDCriterionChecks
AC-01Given user ID: ADMIN001
When user security setup job runs
Then Seeded as MARGARET GOLD, password 'PASSWORD', user type 'A'
REQ-F-091
Build user security staging file from seed list
worked example 1 of the rule
AC-02Given user ID: USER0003
When user security setup job runs
Then Seeded as LAURITZ ALME, password 'PASSWORD', user type 'U'
REQ-F-091
Build user security staging file from seed list
worked example 2 of the rule
AC-03Given existing AWS.M2.CARDDEMO.USRSEC.PS: present from last run
When user security setup job runs
Then It is deleted and rebuilt from the seed list
REQ-F-092
Build user security staging file from seed list
worked example 1 of the rule
AC-04Given staging file records: 10 (ADMIN001-ADMIN005, USER0001-USER0005)
When user security setup job runs
Then The user security master holds exactly those 10 users, keyed by user ID
REQ-F-093
Load user security master from staging file
worked example 1 of the rule
AC-05Given user ID: ADMIN001
When User Security Credential Load runs
Then Staged as MARGARET GOLD with password 'PASSWORD' and user type 'A'.
REQ-F-094
Stage user security records from in-stream data
worked example 1 of the rule
AC-06Given user ID: USER0002
When User Security Credential Load runs
Then Staged as AJITH KUMAR with password 'PASSWORD' and user type 'U'.
REQ-F-094
Stage user security records from in-stream data
worked example 2 of the rule
AC-07Given staging step outcome: abend
When the staging step ends normally
Then AWS.M2.CARDDEMO.ESDSRRDS.PS is deleted.
REQ-F-095, REQ-F-096
Stage user security records from in-stream data
worked example 1 of the rule
AC-08Given records in staging file: 10
When User Security Credential Load runs
Then The entry-sequenced user security file holds the same 10 records in the same order.
REQ-F-097
Load staged credentials into user security file
worked example 1 of the rule
AC-09Given records in staging file: 10
When User Security Credential Load runs
Then The relative-record user security file holds the 10 records as record numbers 1 to 10.
REQ-F-098
Load staged credentials into the user security file
worked example 1 of the rule

Screens

None: scheduled job.

Data contracts

None found in the source.

Decision tables

None.

Open questions

  • SME-256 When the user security master is loaded from the seed list, what should happen to users that already exist: replace, merge, or fail? What happens on a re-run? (Security administration)
  • SME-257 The seeded users have fixed, shared starting passwords (PASSWORDA, PASSWORDU) stored as plain text. Should the new system keep them, store them protected, and/or force a password change at first sign-on? (Security)
  • SME-258 The rules name two different user security stores as the target of the credentials load (the RRDS file and the ESDS file). Which one, or both, should receive the staged credentials? (Application data owner)
  • SME-259 The user credentials load runs even if building the staging file failed. Should it be skipped in that case, and what should the user security store look like then? (Batch operations)
  • SME-260 When staged credentials are loaded into the existing user security file, should its previous contents be replaced, added to, or required to be empty, and how are duplicate user IDs handled on a re-run? (Application data owner)
  • DEF-156 Confirm this is deliberate: Ten user credentials, including five administrators, are hard-coded in clear text in the job with the same default password 'PASSWORD'. (Subject-matter expert)
  • DEF-157 Confirm this is deliberate: Every seeded user, administrators included, gets the same plain-text password 'PASSWORD', and it is stored unencrypted in the job and the security file. (Subject-matter expert)

Design notes

  • The seed step must be repeatable. Remove any previous staged seed set first, keep the new one only if staging finishes successfully, and discard it if staging fails. A transactional load or a temporary table swapped in on success meets this. Build user security staging file from seed list
  • Recreate the user store from scratch, with the user ID (8 characters) as its unique primary key, then bulk-insert every staged seed record into it. This is a full reset, not a merge. Load user security master from staging file
  • The legacy job also copies the staged records, in arrival order, into an entry-sequenced copy of the user security file, whatever happened in earlier steps. The new application needs this only if something reads users in insertion order. Otherwise one keyed user store is enough. Confirm with the owner before building a second copy. Load staged credentials into user security file
  • The legacy job also copies the staged records into a relative-record (slot-numbered) copy of the user security file, whatever happened in earlier steps. The new application needs this only if a consumer looks users up by record number. Otherwise the keyed user store covers it. Confirm with the owner before building it. Load staged credentials into the user security file
+

Data contracts

The copybooks the capabilities' programs copy, as typed records, read from the source with no model.

CCPAUERY app/app-authorization-ims-db2-mq/cpy/CCPAUERY.cpy · 1 record(s), 11 fields

ERROR-LOG-RECORD

FieldPICTypeCode typeColumn typeSource
ERR-DATEX(06) text, 6 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAUERY.cpy:20
ERR-TIMEX(06) text, 6 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAUERY.cpy:21
ERR-APPLICATIONX(08) text, 8 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAUERY.cpy:22
ERR-PROGRAMX(08) text, 8 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAUERY.cpy:23
ERR-LOCATIONX(04) text, 4 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAUERY.cpy:24
ERR-LEVELX(01) text, 1 character
ERR-LOG = L, ERR-INFO = I, ERR-WARNING = W, ERR-CRITICAL = C
app/app-authorization-ims-db2-mq/cpy/CCPAUERY.cpy:25
ERR-SUBSYSTEMX(01) text, 1 character
ERR-APP = A, ERR-CICS = C, ERR-IMS = I, ERR-DB2 = D, ERR-MQ = M, ERR-FILE = F
app/app-authorization-ims-db2-mq/cpy/CCPAUERY.cpy:30
ERR-CODE-1X(09) text, 9 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAUERY.cpy:37
ERR-CODE-2X(09) text, 9 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAUERY.cpy:38
ERR-MESSAGEX(50) text, 50 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAUERY.cpy:39
ERR-EVENT-KEYX(20) text, 20 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAUERY.cpy:40
CCPAURLY app/app-authorization-ims-db2-mq/cpy/CCPAURLY.cpy · 6 record(s), 6 fields

PA-RL-CARD-NUM

FieldPICTypeCode typeColumn typeSource
PA-RL-CARD-NUMX(16) text, 16 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAURLY.cpy:19

PA-RL-TRANSACTION-ID

FieldPICTypeCode typeColumn typeSource
PA-RL-TRANSACTION-IDX(15) text, 15 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAURLY.cpy:20

PA-RL-AUTH-ID-CODE

FieldPICTypeCode typeColumn typeSource
PA-RL-AUTH-ID-CODEX(06) text, 6 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAURLY.cpy:21

PA-RL-AUTH-RESP-CODE

FieldPICTypeCode typeColumn typeSource
PA-RL-AUTH-RESP-CODEX(02) text, 2 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAURLY.cpy:22

PA-RL-AUTH-RESP-REASON

FieldPICTypeCode typeColumn typeSource
PA-RL-AUTH-RESP-REASONX(04) text, 4 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAURLY.cpy:23

PA-RL-APPROVED-AMT

FieldPICTypeCode typeColumn typeSource
PA-RL-APPROVED-AMT+9(10).99 formatted text, 14 characters (a number shown with 12 digits)app/app-authorization-ims-db2-mq/cpy/CCPAURLY.cpy:24
CCPAURQY app/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy · 18 record(s), 18 fields

PA-RQ-AUTH-DATE

FieldPICTypeCode typeColumn typeSource
PA-RQ-AUTH-DATEX(06) text, 6 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:19

PA-RQ-AUTH-TIME

FieldPICTypeCode typeColumn typeSource
PA-RQ-AUTH-TIMEX(06) text, 6 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:20

PA-RQ-CARD-NUM

FieldPICTypeCode typeColumn typeSource
PA-RQ-CARD-NUMX(16) text, 16 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:21

PA-RQ-AUTH-TYPE

FieldPICTypeCode typeColumn typeSource
PA-RQ-AUTH-TYPEX(04) text, 4 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:22

PA-RQ-CARD-EXPIRY-DATE

FieldPICTypeCode typeColumn typeSource
PA-RQ-CARD-EXPIRY-DATEX(04) text, 4 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:23

PA-RQ-MESSAGE-TYPE

FieldPICTypeCode typeColumn typeSource
PA-RQ-MESSAGE-TYPEX(06) text, 6 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:24

PA-RQ-MESSAGE-SOURCE

FieldPICTypeCode typeColumn typeSource
PA-RQ-MESSAGE-SOURCEX(06) text, 6 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:25

PA-RQ-PROCESSING-CODE

FieldPICTypeCode typeColumn typeSource
PA-RQ-PROCESSING-CODE9(06) unsigned integer, 6 digits (zoned decimal)app/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:26

PA-RQ-TRANSACTION-AMT

FieldPICTypeCode typeColumn typeSource
PA-RQ-TRANSACTION-AMT+9(10).99 formatted text, 14 characters (a number shown with 12 digits)app/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:27

PA-RQ-MERCHANT-CATAGORY-CODE

FieldPICTypeCode typeColumn typeSource
PA-RQ-MERCHANT-CATAGORY-CODEX(04) text, 4 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:28

PA-RQ-ACQR-COUNTRY-CODE

FieldPICTypeCode typeColumn typeSource
PA-RQ-ACQR-COUNTRY-CODEX(03) text, 3 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:29

PA-RQ-POS-ENTRY-MODE

FieldPICTypeCode typeColumn typeSource
PA-RQ-POS-ENTRY-MODE9(02) unsigned integer, 2 digits (zoned decimal)app/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:30

PA-RQ-MERCHANT-ID

FieldPICTypeCode typeColumn typeSource
PA-RQ-MERCHANT-IDX(15) text, 15 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:31

PA-RQ-MERCHANT-NAME

FieldPICTypeCode typeColumn typeSource
PA-RQ-MERCHANT-NAMEX(22) text, 22 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:32

PA-RQ-MERCHANT-CITY

FieldPICTypeCode typeColumn typeSource
PA-RQ-MERCHANT-CITYX(13) text, 13 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:33

PA-RQ-MERCHANT-STATE

FieldPICTypeCode typeColumn typeSource
PA-RQ-MERCHANT-STATEX(02) text, 2 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:34

PA-RQ-MERCHANT-ZIP

FieldPICTypeCode typeColumn typeSource
PA-RQ-MERCHANT-ZIPX(09) text, 9 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:35

PA-RQ-TRANSACTION-ID

FieldPICTypeCode typeColumn typeSource
PA-RQ-TRANSACTION-IDX(15) text, 15 charactersapp/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:36
CIPAUDTY app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy · 27 record(s), 28 fields

PA-AUTHORIZATION-KEY

FieldPICTypeCode typeColumn typeSource
PA-AUTH-DATE-9CS9(05) COMP-3signed integer, 5 digits (packed decimal)app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:20
PA-AUTH-TIME-9CS9(09) COMP-3signed integer, 9 digits (packed decimal)app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:21

PA-AUTH-ORIG-DATE

FieldPICTypeCode typeColumn typeSource
PA-AUTH-ORIG-DATEX(06) text, 6 charactersapp/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:22

PA-AUTH-ORIG-TIME

FieldPICTypeCode typeColumn typeSource
PA-AUTH-ORIG-TIMEX(06) text, 6 charactersapp/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:23

PA-CARD-NUM

FieldPICTypeCode typeColumn typeSource
PA-CARD-NUMX(16) text, 16 charactersapp/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:24

PA-AUTH-TYPE

FieldPICTypeCode typeColumn typeSource
PA-AUTH-TYPEX(04) text, 4 charactersapp/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:25

PA-CARD-EXPIRY-DATE

FieldPICTypeCode typeColumn typeSource
PA-CARD-EXPIRY-DATEX(04) text, 4 charactersapp/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:26

PA-MESSAGE-TYPE

FieldPICTypeCode typeColumn typeSource
PA-MESSAGE-TYPEX(06) text, 6 charactersapp/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:27

PA-MESSAGE-SOURCE

FieldPICTypeCode typeColumn typeSource
PA-MESSAGE-SOURCEX(06) text, 6 charactersapp/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:28

PA-AUTH-ID-CODE

FieldPICTypeCode typeColumn typeSource
PA-AUTH-ID-CODEX(06) text, 6 charactersapp/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:29

PA-AUTH-RESP-CODE

FieldPICTypeCode typeColumn typeSource
PA-AUTH-RESP-CODEX(02) text, 2 characters
PA-AUTH-APPROVED = 00
app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:30

PA-AUTH-RESP-REASON

FieldPICTypeCode typeColumn typeSource
PA-AUTH-RESP-REASONX(04) text, 4 charactersapp/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:32

PA-PROCESSING-CODE

FieldPICTypeCode typeColumn typeSource
PA-PROCESSING-CODE9(06) unsigned integer, 6 digits (zoned decimal)app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:33

PA-TRANSACTION-AMT

FieldPICTypeCode typeColumn typeSource
PA-TRANSACTION-AMTS9(10)V99 COMP-3signed decimal, 10 integer and 2 fraction digits (packed decimal)app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:34

PA-APPROVED-AMT

FieldPICTypeCode typeColumn typeSource
PA-APPROVED-AMTS9(10)V99 COMP-3signed decimal, 10 integer and 2 fraction digits (packed decimal)app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:35

PA-MERCHANT-CATAGORY-CODE

FieldPICTypeCode typeColumn typeSource
PA-MERCHANT-CATAGORY-CODEX(04) text, 4 charactersapp/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:36

PA-ACQR-COUNTRY-CODE

FieldPICTypeCode typeColumn typeSource
PA-ACQR-COUNTRY-CODEX(03) text, 3 charactersapp/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:37

PA-POS-ENTRY-MODE

FieldPICTypeCode typeColumn typeSource
PA-POS-ENTRY-MODE9(02) unsigned integer, 2 digits (zoned decimal)app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:38

PA-MERCHANT-ID

FieldPICTypeCode typeColumn typeSource
PA-MERCHANT-IDX(15) text, 15 charactersapp/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:39

PA-MERCHANT-NAME

FieldPICTypeCode typeColumn typeSource
PA-MERCHANT-NAMEX(22) text, 22 charactersapp/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:40

PA-MERCHANT-CITY

FieldPICTypeCode typeColumn typeSource
PA-MERCHANT-CITYX(13) text, 13 charactersapp/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:41

PA-MERCHANT-STATE

FieldPICTypeCode typeColumn typeSource
PA-MERCHANT-STATEX(02) text, 2 charactersapp/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:42

PA-MERCHANT-ZIP

FieldPICTypeCode typeColumn typeSource
PA-MERCHANT-ZIPX(09) text, 9 charactersapp/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:43

PA-TRANSACTION-ID

FieldPICTypeCode typeColumn typeSource
PA-TRANSACTION-IDX(15) text, 15 charactersapp/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:44

PA-MATCH-STATUS

FieldPICTypeCode typeColumn typeSource
PA-MATCH-STATUSX(01) text, 1 character
PA-MATCH-PENDING = P, PA-MATCH-AUTH-DECLINED = D, PA-MATCH-PENDING-EXPIRED = E, PA-MATCHED-WITH-TRAN = M
app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:45

PA-AUTH-FRAUD

FieldPICTypeCode typeColumn typeSource
PA-AUTH-FRAUDX(01) text, 1 character
PA-FRAUD-CONFIRMED = F, PA-FRAUD-REMOVED = R
app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:50

PA-FRAUD-RPT-DATE

FieldPICTypeCode typeColumn typeSource
PA-FRAUD-RPT-DATEX(08) text, 8 charactersapp/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:53

FILLER

FieldPICTypeCode typeColumn typeSource
FILLERX(17) text, 17 charactersapp/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:54
CIPAUSMY app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy · 13 record(s), 13 fields

PA-ACCT-ID

FieldPICTypeCode typeColumn typeSource
PA-ACCT-IDS9(11) COMP-3signed integer, 11 digits (packed decimal)app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:19

PA-CUST-ID

FieldPICTypeCode typeColumn typeSource
PA-CUST-ID9(09) unsigned integer, 9 digits (zoned decimal)app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:20

PA-AUTH-STATUS

FieldPICTypeCode typeColumn typeSource
PA-AUTH-STATUSX(01) text, 1 characterapp/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:21

PA-ACCOUNT-STATUS

FieldPICTypeCode typeColumn typeSource
PA-ACCOUNT-STATUSX(02) text, 2 characters
occurs 5
app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:22

PA-CREDIT-LIMIT

FieldPICTypeCode typeColumn typeSource
PA-CREDIT-LIMITS9(09)V99 COMP-3signed decimal, 9 integer and 2 fraction digits (packed decimal)app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:23

PA-CASH-LIMIT

FieldPICTypeCode typeColumn typeSource
PA-CASH-LIMITS9(09)V99 COMP-3signed decimal, 9 integer and 2 fraction digits (packed decimal)app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:24

PA-CREDIT-BALANCE

FieldPICTypeCode typeColumn typeSource
PA-CREDIT-BALANCES9(09)V99 COMP-3signed decimal, 9 integer and 2 fraction digits (packed decimal)app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:25

PA-CASH-BALANCE

FieldPICTypeCode typeColumn typeSource
PA-CASH-BALANCES9(09)V99 COMP-3signed decimal, 9 integer and 2 fraction digits (packed decimal)app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:26

PA-APPROVED-AUTH-CNT

FieldPICTypeCode typeColumn typeSource
PA-APPROVED-AUTH-CNTS9(04) COMPsigned integer, 4 digits (binary)app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:27

PA-DECLINED-AUTH-CNT

FieldPICTypeCode typeColumn typeSource
PA-DECLINED-AUTH-CNTS9(04) COMPsigned integer, 4 digits (binary)app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:28

PA-APPROVED-AUTH-AMT

FieldPICTypeCode typeColumn typeSource
PA-APPROVED-AUTH-AMTS9(09)V99 COMP-3signed decimal, 9 integer and 2 fraction digits (packed decimal)app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:29

PA-DECLINED-AUTH-AMT

FieldPICTypeCode typeColumn typeSource
PA-DECLINED-AUTH-AMTS9(09)V99 COMP-3signed decimal, 9 integer and 2 fraction digits (packed decimal)app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:30

FILLER

FieldPICTypeCode typeColumn typeSource
FILLERX(34) text, 34 charactersapp/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:31
COADM02Y app/cpy/COADM02Y.cpy · 1 record(s), 25 fields

CARDDEMO-ADMIN-MENU-OPTIONS

FieldPICTypeCode typeColumn typeSource
CDEMO-ADMIN-OPT-COUNT9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/COADM02Y.cpy:22
CDEMO-ADMIN-OPTIONS-DATA groupapp/cpy/COADM02Y.cpy:24
FILLER
in CDEMO-ADMIN-OPTIONS-DATA
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/COADM02Y.cpy:26
FILLER
in CDEMO-ADMIN-OPTIONS-DATA
X(35) text, 35 charactersapp/cpy/COADM02Y.cpy:27
FILLER
in CDEMO-ADMIN-OPTIONS-DATA
X(08) text, 8 charactersapp/cpy/COADM02Y.cpy:29
FILLER
in CDEMO-ADMIN-OPTIONS-DATA
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/COADM02Y.cpy:31
FILLER
in CDEMO-ADMIN-OPTIONS-DATA
X(35) text, 35 charactersapp/cpy/COADM02Y.cpy:32
FILLER
in CDEMO-ADMIN-OPTIONS-DATA
X(08) text, 8 charactersapp/cpy/COADM02Y.cpy:34
FILLER
in CDEMO-ADMIN-OPTIONS-DATA
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/COADM02Y.cpy:36
FILLER
in CDEMO-ADMIN-OPTIONS-DATA
X(35) text, 35 charactersapp/cpy/COADM02Y.cpy:37
FILLER
in CDEMO-ADMIN-OPTIONS-DATA
X(08) text, 8 charactersapp/cpy/COADM02Y.cpy:39
FILLER
in CDEMO-ADMIN-OPTIONS-DATA
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/COADM02Y.cpy:41
FILLER
in CDEMO-ADMIN-OPTIONS-DATA
X(35) text, 35 charactersapp/cpy/COADM02Y.cpy:42
FILLER
in CDEMO-ADMIN-OPTIONS-DATA
X(08) text, 8 charactersapp/cpy/COADM02Y.cpy:44
FILLER
in CDEMO-ADMIN-OPTIONS-DATA
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/COADM02Y.cpy:46
FILLER
in CDEMO-ADMIN-OPTIONS-DATA
X(35) text, 35 charactersapp/cpy/COADM02Y.cpy:47
FILLER
in CDEMO-ADMIN-OPTIONS-DATA
X(08) text, 8 charactersapp/cpy/COADM02Y.cpy:49
FILLER
in CDEMO-ADMIN-OPTIONS-DATA
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/COADM02Y.cpy:50
FILLER
in CDEMO-ADMIN-OPTIONS-DATA
X(35) text, 35 charactersapp/cpy/COADM02Y.cpy:51
FILLER
in CDEMO-ADMIN-OPTIONS-DATA
X(08) text, 8 charactersapp/cpy/COADM02Y.cpy:53
CDEMO-ADMIN-OPTIONS group
redefines CDEMO-ADMIN-OPTIONS-DATA
app/cpy/COADM02Y.cpy:55
CDEMO-ADMIN-OPT
in CDEMO-ADMIN-OPTIONS
group
occurs 9
app/cpy/COADM02Y.cpy:56
CDEMO-ADMIN-OPT-NUM
in CDEMO-ADMIN-OPTIONS/CDEMO-ADMIN-OPT
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/COADM02Y.cpy:57
CDEMO-ADMIN-OPT-NAME
in CDEMO-ADMIN-OPTIONS/CDEMO-ADMIN-OPT
X(35) text, 35 charactersapp/cpy/COADM02Y.cpy:58
CDEMO-ADMIN-OPT-PGMNAME
in CDEMO-ADMIN-OPTIONS/CDEMO-ADMIN-OPT
X(08) text, 8 charactersapp/cpy/COADM02Y.cpy:59
COCOM01Y app/cpy/COCOM01Y.cpy · 1 record(s), 21 fields

CARDDEMO-COMMAREA

FieldPICTypeCode typeColumn typeSource
CDEMO-GENERAL-INFO groupapp/cpy/COCOM01Y.cpy:20
CDEMO-FROM-TRANID
in CDEMO-GENERAL-INFO
X(04) text, 4 charactersapp/cpy/COCOM01Y.cpy:21
CDEMO-FROM-PROGRAM
in CDEMO-GENERAL-INFO
X(08) text, 8 charactersapp/cpy/COCOM01Y.cpy:22
CDEMO-TO-TRANID
in CDEMO-GENERAL-INFO
X(04) text, 4 charactersapp/cpy/COCOM01Y.cpy:23
CDEMO-TO-PROGRAM
in CDEMO-GENERAL-INFO
X(08) text, 8 charactersapp/cpy/COCOM01Y.cpy:24
CDEMO-USER-ID
in CDEMO-GENERAL-INFO
X(08) text, 8 charactersapp/cpy/COCOM01Y.cpy:25
CDEMO-USER-TYPE
in CDEMO-GENERAL-INFO
X(01) text, 1 character
CDEMO-USRTYP-ADMIN = A, CDEMO-USRTYP-USER = U
app/cpy/COCOM01Y.cpy:26
CDEMO-PGM-CONTEXT
in CDEMO-GENERAL-INFO
9(01) unsigned integer, 1 digit (zoned decimal)
CDEMO-PGM-ENTER = 0, CDEMO-PGM-REENTER = 1
app/cpy/COCOM01Y.cpy:29
CDEMO-CUSTOMER-INFO groupapp/cpy/COCOM01Y.cpy:32
CDEMO-CUST-ID
in CDEMO-CUSTOMER-INFO
9(09) unsigned integer, 9 digits (zoned decimal)app/cpy/COCOM01Y.cpy:33
CDEMO-CUST-FNAME
in CDEMO-CUSTOMER-INFO
X(25) text, 25 charactersapp/cpy/COCOM01Y.cpy:34
CDEMO-CUST-MNAME
in CDEMO-CUSTOMER-INFO
X(25) text, 25 charactersapp/cpy/COCOM01Y.cpy:35
CDEMO-CUST-LNAME
in CDEMO-CUSTOMER-INFO
X(25) text, 25 charactersapp/cpy/COCOM01Y.cpy:36
CDEMO-ACCOUNT-INFO groupapp/cpy/COCOM01Y.cpy:37
CDEMO-ACCT-ID
in CDEMO-ACCOUNT-INFO
9(11) unsigned integer, 11 digits (zoned decimal)app/cpy/COCOM01Y.cpy:38
CDEMO-ACCT-STATUS
in CDEMO-ACCOUNT-INFO
X(01) text, 1 characterapp/cpy/COCOM01Y.cpy:39
CDEMO-CARD-INFO groupapp/cpy/COCOM01Y.cpy:40
CDEMO-CARD-NUM
in CDEMO-CARD-INFO
9(16) unsigned integer, 16 digits (zoned decimal)app/cpy/COCOM01Y.cpy:41
CDEMO-MORE-INFO groupapp/cpy/COCOM01Y.cpy:42
CDEMO-LAST-MAP
in CDEMO-MORE-INFO
X(7) text, 7 charactersapp/cpy/COCOM01Y.cpy:43
CDEMO-LAST-MAPSET
in CDEMO-MORE-INFO
X(7) text, 7 charactersapp/cpy/COCOM01Y.cpy:44
CODATECN app/cpy/CODATECN.cpy · 1 record(s), 31 fields

CODATECN-REC

FieldPICTypeCode typeColumn typeSource
CODATECN-IN-REC groupapp/cpy/CODATECN.cpy:18
CODATECN-TYPE
in CODATECN-IN-REC
X text, 1 character
YYYYMMDD-IN = 1, YYYY-MM-DD-IN = 2
app/cpy/CODATECN.cpy:19
CODATECN-INP-DATE
in CODATECN-IN-REC
X(20) text, 20 charactersapp/cpy/CODATECN.cpy:22
CODATECN-1INP
in CODATECN-IN-REC
group
redefines CODATECN-INP-DATE
app/cpy/CODATECN.cpy:23
CODATECN-1YYYY
in CODATECN-IN-REC/CODATECN-1INP
XXXX text, 4 charactersapp/cpy/CODATECN.cpy:24
CODATECN-1MM
in CODATECN-IN-REC/CODATECN-1INP
XX text, 2 charactersapp/cpy/CODATECN.cpy:25
CODATECN-1DD
in CODATECN-IN-REC/CODATECN-1INP
XX text, 2 charactersapp/cpy/CODATECN.cpy:26
CODATECN-1FIL
in CODATECN-IN-REC/CODATECN-1INP
X(12) text, 12 charactersapp/cpy/CODATECN.cpy:27
CODATECN-2INP
in CODATECN-IN-REC
group
redefines CODATECN-INP-DATE
app/cpy/CODATECN.cpy:28
CODATECN-1O-YYYY
in CODATECN-IN-REC/CODATECN-2INP
XXXX text, 4 charactersapp/cpy/CODATECN.cpy:29
CODATECN-1I-S1
in CODATECN-IN-REC/CODATECN-2INP
X text, 1 characterapp/cpy/CODATECN.cpy:30
CODATECN-1MM
in CODATECN-IN-REC/CODATECN-2INP
XX text, 2 charactersapp/cpy/CODATECN.cpy:31
CODATECN-1I-S2
in CODATECN-IN-REC/CODATECN-2INP
X text, 1 characterapp/cpy/CODATECN.cpy:32
CODATECN-2YY
in CODATECN-IN-REC/CODATECN-2INP
XX text, 2 charactersapp/cpy/CODATECN.cpy:33
CODATECN-2FIL
in CODATECN-IN-REC/CODATECN-2INP
X(10) text, 10 charactersapp/cpy/CODATECN.cpy:34
CODATECN-OUT-REC groupapp/cpy/CODATECN.cpy:35
CODATECN-OUTTYPE
in CODATECN-OUT-REC
X text, 1 character
YYYY-MM-DD-OP = 1, YYYYMMDD-OP = 2
app/cpy/CODATECN.cpy:36
CODATECN-0UT-DATE
in CODATECN-OUT-REC
X(20) text, 20 charactersapp/cpy/CODATECN.cpy:39
CODATECN-1OUT
in CODATECN-OUT-REC
group
redefines CODATECN-0UT-DATE
app/cpy/CODATECN.cpy:40
CODATECN-1O-YYYY
in CODATECN-OUT-REC/CODATECN-1OUT
XXXX text, 4 charactersapp/cpy/CODATECN.cpy:41
CODATECN-1O-S1
in CODATECN-OUT-REC/CODATECN-1OUT
X text, 1 characterapp/cpy/CODATECN.cpy:42
CODATECN-1O-MM
in CODATECN-OUT-REC/CODATECN-1OUT
XX text, 2 charactersapp/cpy/CODATECN.cpy:43
CODATECN-1O-S2
in CODATECN-OUT-REC/CODATECN-1OUT
X text, 1 characterapp/cpy/CODATECN.cpy:44
CODATECN-1O-DD
in CODATECN-OUT-REC/CODATECN-1OUT
XX text, 2 charactersapp/cpy/CODATECN.cpy:45
CODATECN-1OFIL
in CODATECN-OUT-REC/CODATECN-1OUT
X(10) text, 10 charactersapp/cpy/CODATECN.cpy:46
CODATECN-2OUT
in CODATECN-OUT-REC
group
redefines CODATECN-0UT-DATE
app/cpy/CODATECN.cpy:47
CODATECN-2O-YYYY
in CODATECN-OUT-REC/CODATECN-2OUT
XXXX text, 4 charactersapp/cpy/CODATECN.cpy:48
CODATECN-2O-MM
in CODATECN-OUT-REC/CODATECN-2OUT
XX text, 2 charactersapp/cpy/CODATECN.cpy:49
CODATECN-2O-DD
in CODATECN-OUT-REC/CODATECN-2OUT
XX text, 2 charactersapp/cpy/CODATECN.cpy:50
CODATECN-2OFIL
in CODATECN-OUT-REC/CODATECN-2OUT
X(12) text, 12 charactersapp/cpy/CODATECN.cpy:51
CODATECN-ERROR-MSGX(38) text, 38 charactersapp/cpy/CODATECN.cpy:52
COMEN02Y app/cpy/COMEN02Y.cpy · 1 record(s), 52 fields

CARDDEMO-MAIN-MENU-OPTIONS

FieldPICTypeCode typeColumn typeSource
CDEMO-MENU-OPT-COUNT9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/COMEN02Y.cpy:21
CDEMO-MENU-OPTIONS-DATA groupapp/cpy/COMEN02Y.cpy:23
FILLER
in CDEMO-MENU-OPTIONS-DATA
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/COMEN02Y.cpy:25
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(35) text, 35 charactersapp/cpy/COMEN02Y.cpy:26
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(08) text, 8 charactersapp/cpy/COMEN02Y.cpy:28
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(01) text, 1 characterapp/cpy/COMEN02Y.cpy:29
FILLER
in CDEMO-MENU-OPTIONS-DATA
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/COMEN02Y.cpy:31
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(35) text, 35 charactersapp/cpy/COMEN02Y.cpy:32
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(08) text, 8 charactersapp/cpy/COMEN02Y.cpy:34
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(01) text, 1 characterapp/cpy/COMEN02Y.cpy:35
FILLER
in CDEMO-MENU-OPTIONS-DATA
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/COMEN02Y.cpy:37
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(35) text, 35 charactersapp/cpy/COMEN02Y.cpy:38
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(08) text, 8 charactersapp/cpy/COMEN02Y.cpy:40
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(01) text, 1 characterapp/cpy/COMEN02Y.cpy:41
FILLER
in CDEMO-MENU-OPTIONS-DATA
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/COMEN02Y.cpy:43
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(35) text, 35 charactersapp/cpy/COMEN02Y.cpy:44
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(08) text, 8 charactersapp/cpy/COMEN02Y.cpy:46
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(01) text, 1 characterapp/cpy/COMEN02Y.cpy:47
FILLER
in CDEMO-MENU-OPTIONS-DATA
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/COMEN02Y.cpy:49
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(35) text, 35 charactersapp/cpy/COMEN02Y.cpy:50
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(08) text, 8 charactersapp/cpy/COMEN02Y.cpy:52
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(01) text, 1 characterapp/cpy/COMEN02Y.cpy:53
FILLER
in CDEMO-MENU-OPTIONS-DATA
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/COMEN02Y.cpy:55
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(35) text, 35 charactersapp/cpy/COMEN02Y.cpy:56
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(08) text, 8 charactersapp/cpy/COMEN02Y.cpy:58
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(01) text, 1 characterapp/cpy/COMEN02Y.cpy:59
FILLER
in CDEMO-MENU-OPTIONS-DATA
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/COMEN02Y.cpy:61
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(35) text, 35 charactersapp/cpy/COMEN02Y.cpy:62
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(08) text, 8 charactersapp/cpy/COMEN02Y.cpy:64
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(01) text, 1 characterapp/cpy/COMEN02Y.cpy:65
FILLER
in CDEMO-MENU-OPTIONS-DATA
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/COMEN02Y.cpy:67
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(35) text, 35 charactersapp/cpy/COMEN02Y.cpy:68
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(08) text, 8 charactersapp/cpy/COMEN02Y.cpy:71
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(01) text, 1 characterapp/cpy/COMEN02Y.cpy:72
FILLER
in CDEMO-MENU-OPTIONS-DATA
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/COMEN02Y.cpy:74
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(35) text, 35 charactersapp/cpy/COMEN02Y.cpy:75
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(08) text, 8 charactersapp/cpy/COMEN02Y.cpy:77
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(01) text, 1 characterapp/cpy/COMEN02Y.cpy:78
FILLER
in CDEMO-MENU-OPTIONS-DATA
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/COMEN02Y.cpy:80
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(35) text, 35 charactersapp/cpy/COMEN02Y.cpy:81
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(08) text, 8 charactersapp/cpy/COMEN02Y.cpy:83
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(01) text, 1 characterapp/cpy/COMEN02Y.cpy:84
FILLER
in CDEMO-MENU-OPTIONS-DATA
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/COMEN02Y.cpy:86
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(35) text, 35 charactersapp/cpy/COMEN02Y.cpy:87
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(08) text, 8 charactersapp/cpy/COMEN02Y.cpy:89
FILLER
in CDEMO-MENU-OPTIONS-DATA
X(01) text, 1 characterapp/cpy/COMEN02Y.cpy:90
CDEMO-MENU-OPTIONS group
redefines CDEMO-MENU-OPTIONS-DATA
app/cpy/COMEN02Y.cpy:93
CDEMO-MENU-OPT
in CDEMO-MENU-OPTIONS
group
occurs 12
app/cpy/COMEN02Y.cpy:94
CDEMO-MENU-OPT-NUM
in CDEMO-MENU-OPTIONS/CDEMO-MENU-OPT
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/COMEN02Y.cpy:95
CDEMO-MENU-OPT-NAME
in CDEMO-MENU-OPTIONS/CDEMO-MENU-OPT
X(35) text, 35 charactersapp/cpy/COMEN02Y.cpy:96
CDEMO-MENU-OPT-PGMNAME
in CDEMO-MENU-OPTIONS/CDEMO-MENU-OPT
X(08) text, 8 charactersapp/cpy/COMEN02Y.cpy:97
CDEMO-MENU-OPT-USRTYPE
in CDEMO-MENU-OPTIONS/CDEMO-MENU-OPT
X(01) text, 1 characterapp/cpy/COMEN02Y.cpy:98
COSTM01 app/cpy/COSTM01.CPY · 1 record(s), 16 fields

TRNX-RECORD

FieldPICTypeCode typeColumn typeSource
TRNX-KEY groupapp/cpy/COSTM01.CPY:21
TRNX-CARD-NUM
in TRNX-KEY
X(16) text, 16 charactersapp/cpy/COSTM01.CPY:22
TRNX-ID
in TRNX-KEY
X(16) text, 16 charactersapp/cpy/COSTM01.CPY:23
TRNX-REST groupapp/cpy/COSTM01.CPY:24
TRNX-TYPE-CD
in TRNX-REST
X(02) text, 2 charactersapp/cpy/COSTM01.CPY:25
TRNX-CAT-CD
in TRNX-REST
9(04) unsigned integer, 4 digits (zoned decimal)app/cpy/COSTM01.CPY:26
TRNX-SOURCE
in TRNX-REST
X(10) text, 10 charactersapp/cpy/COSTM01.CPY:27
TRNX-DESC
in TRNX-REST
X(100) text, 100 charactersapp/cpy/COSTM01.CPY:28
TRNX-AMT
in TRNX-REST
S9(09)V99 signed decimal, 9 integer and 2 fraction digits (zoned decimal)app/cpy/COSTM01.CPY:29
TRNX-MERCHANT-ID
in TRNX-REST
9(09) unsigned integer, 9 digits (zoned decimal)app/cpy/COSTM01.CPY:30
TRNX-MERCHANT-NAME
in TRNX-REST
X(50) text, 50 charactersapp/cpy/COSTM01.CPY:31
TRNX-MERCHANT-CITY
in TRNX-REST
X(50) text, 50 charactersapp/cpy/COSTM01.CPY:32
TRNX-MERCHANT-ZIP
in TRNX-REST
X(10) text, 10 charactersapp/cpy/COSTM01.CPY:33
TRNX-ORIG-TS
in TRNX-REST
X(26) text, 26 charactersapp/cpy/COSTM01.CPY:34
TRNX-PROC-TS
in TRNX-REST
X(26) text, 26 charactersapp/cpy/COSTM01.CPY:35
FILLER
in TRNX-REST
X(20) text, 20 charactersapp/cpy/COSTM01.CPY:36
COTTL01Y app/cpy/COTTL01Y.cpy · 1 record(s), 3 fields

CCDA-SCREEN-TITLE

FieldPICTypeCode typeColumn typeSource
CCDA-TITLE01X(40) text, 40 charactersapp/cpy/COTTL01Y.cpy:18
CCDA-TITLE02X(40) text, 40 charactersapp/cpy/COTTL01Y.cpy:20
CCDA-THANK-YOUX(40) text, 40 charactersapp/cpy/COTTL01Y.cpy:23
CSDAT01Y app/cpy/CSDAT01Y.cpy · 1 record(s), 38 fields

WS-DATE-TIME

FieldPICTypeCode typeColumn typeSource
WS-CURDATE-DATA groupapp/cpy/CSDAT01Y.cpy:18
WS-CURDATE
in WS-CURDATE-DATA
groupapp/cpy/CSDAT01Y.cpy:19
WS-CURDATE-YEAR
in WS-CURDATE-DATA/WS-CURDATE
9(04) unsigned integer, 4 digits (zoned decimal)app/cpy/CSDAT01Y.cpy:20
WS-CURDATE-MONTH
in WS-CURDATE-DATA/WS-CURDATE
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/CSDAT01Y.cpy:21
WS-CURDATE-DAY
in WS-CURDATE-DATA/WS-CURDATE
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/CSDAT01Y.cpy:22
WS-CURDATE-N
in WS-CURDATE-DATA
9(08) unsigned integer, 8 digits (zoned decimal)
redefines WS-CURDATE
app/cpy/CSDAT01Y.cpy:23
WS-CURTIME
in WS-CURDATE-DATA
groupapp/cpy/CSDAT01Y.cpy:24
WS-CURTIME-HOURS
in WS-CURDATE-DATA/WS-CURTIME
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/CSDAT01Y.cpy:25
WS-CURTIME-MINUTE
in WS-CURDATE-DATA/WS-CURTIME
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/CSDAT01Y.cpy:26
WS-CURTIME-SECOND
in WS-CURDATE-DATA/WS-CURTIME
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/CSDAT01Y.cpy:27
WS-CURTIME-MILSEC
in WS-CURDATE-DATA/WS-CURTIME
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/CSDAT01Y.cpy:28
WS-CURTIME-N
in WS-CURDATE-DATA
9(08) unsigned integer, 8 digits (zoned decimal)
redefines WS-CURTIME
app/cpy/CSDAT01Y.cpy:29
WS-CURDATE-MM-DD-YY groupapp/cpy/CSDAT01Y.cpy:30
WS-CURDATE-MM
in WS-CURDATE-MM-DD-YY
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/CSDAT01Y.cpy:31
FILLER
in WS-CURDATE-MM-DD-YY
X(01) text, 1 characterapp/cpy/CSDAT01Y.cpy:32
WS-CURDATE-DD
in WS-CURDATE-MM-DD-YY
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/CSDAT01Y.cpy:33
FILLER
in WS-CURDATE-MM-DD-YY
X(01) text, 1 characterapp/cpy/CSDAT01Y.cpy:34
WS-CURDATE-YY
in WS-CURDATE-MM-DD-YY
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/CSDAT01Y.cpy:35
WS-CURTIME-HH-MM-SS groupapp/cpy/CSDAT01Y.cpy:36
WS-CURTIME-HH
in WS-CURTIME-HH-MM-SS
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/CSDAT01Y.cpy:37
FILLER
in WS-CURTIME-HH-MM-SS
X(01) text, 1 characterapp/cpy/CSDAT01Y.cpy:38
WS-CURTIME-MM
in WS-CURTIME-HH-MM-SS
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/CSDAT01Y.cpy:39
FILLER
in WS-CURTIME-HH-MM-SS
X(01) text, 1 characterapp/cpy/CSDAT01Y.cpy:40
WS-CURTIME-SS
in WS-CURTIME-HH-MM-SS
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/CSDAT01Y.cpy:41
WS-TIMESTAMP groupapp/cpy/CSDAT01Y.cpy:42
WS-TIMESTAMP-DT-YYYY
in WS-TIMESTAMP
9(04) unsigned integer, 4 digits (zoned decimal)app/cpy/CSDAT01Y.cpy:43
FILLER
in WS-TIMESTAMP
X(01) text, 1 characterapp/cpy/CSDAT01Y.cpy:44
WS-TIMESTAMP-DT-MM
in WS-TIMESTAMP
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/CSDAT01Y.cpy:45
FILLER
in WS-TIMESTAMP
X(01) text, 1 characterapp/cpy/CSDAT01Y.cpy:46
WS-TIMESTAMP-DT-DD
in WS-TIMESTAMP
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/CSDAT01Y.cpy:47
FILLER
in WS-TIMESTAMP
X(01) text, 1 characterapp/cpy/CSDAT01Y.cpy:48
WS-TIMESTAMP-TM-HH
in WS-TIMESTAMP
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/CSDAT01Y.cpy:49
FILLER
in WS-TIMESTAMP
X(01) text, 1 characterapp/cpy/CSDAT01Y.cpy:50
WS-TIMESTAMP-TM-MM
in WS-TIMESTAMP
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/CSDAT01Y.cpy:51
FILLER
in WS-TIMESTAMP
X(01) text, 1 characterapp/cpy/CSDAT01Y.cpy:52
WS-TIMESTAMP-TM-SS
in WS-TIMESTAMP
9(02) unsigned integer, 2 digits (zoned decimal)app/cpy/CSDAT01Y.cpy:53
FILLER
in WS-TIMESTAMP
X(01) text, 1 characterapp/cpy/CSDAT01Y.cpy:54
WS-TIMESTAMP-TM-MS6
in WS-TIMESTAMP
9(06) unsigned integer, 6 digits (zoned decimal)app/cpy/CSDAT01Y.cpy:55
CSDB2RPY app/app-transaction-type-db2/cpy/CSDB2RPY.cpy · 0 record(s), 0 fields
CSDB2RWY app/app-transaction-type-db2/cpy/CSDB2RWY.cpy · 4 record(s), 11 fields

WS-DB2-COMMON-VARS

FieldPICTypeCode typeColumn typeSource
WS-DISP-SQLCODE----9 formatted text, 5 characters (a number shown with 1 digit)app/app-transaction-type-db2/cpy/CSDB2RWY.cpy:22
WS-DUMMY-DB2-INTS9(4) COMP-3signed integer, 4 digits (packed decimal)app/app-transaction-type-db2/cpy/CSDB2RWY.cpy:23
WS-DB2-PROCESSING-FLAGX(1) text, 1 character
WS-DB2-OK = 0, WS-DB2-ERROR = 1
app/app-transaction-type-db2/cpy/CSDB2RWY.cpy:25
WS-DB2-CURRENT-ACTIONX(72) text, 72 charactersapp/app-transaction-type-db2/cpy/CSDB2RWY.cpy:28

WS-DSNTIAC-FORMATTED

FieldPICTypeCode typeColumn typeSource
WS-DSNTIAC-MESG-LENS9(4) COMPsigned integer, 4 digits (binary)app/app-transaction-type-db2/cpy/CSDB2RWY.cpy:34
WS-DSNTIAC-FMTD-TEXT groupapp/app-transaction-type-db2/cpy/CSDB2RWY.cpy:35
WS-DSNTIAC-FMTD-TEXT-LINE
in WS-DSNTIAC-FMTD-TEXT
X(72) text, 72 characters
occurs 10
app/app-transaction-type-db2/cpy/CSDB2RWY.cpy:36

WS-DSNTIAC-LRECL

FieldPICTypeCode typeColumn typeSource
WS-DSNTIAC-LRECLS9(4) COMPsigned integer, 4 digits (binary)app/app-transaction-type-db2/cpy/CSDB2RWY.cpy:41

WS-DSNTIAC-ERROR

FieldPICTypeCode typeColumn typeSource
WS-DSNTIAC-ERR-MSGX(10) text, 10 charactersapp/app-transaction-type-db2/cpy/CSDB2RWY.cpy:43
WS-DSNTIAC-ERR-CD-XX(02) text, 2 charactersapp/app-transaction-type-db2/cpy/CSDB2RWY.cpy:44
WS-DSNTIAC-ERR-CD9(02) unsigned integer, 2 digits (zoned decimal)
redefines WS-DSNTIAC-ERR-CD-X
app/app-transaction-type-db2/cpy/CSDB2RWY.cpy:45
CSLKPCDY app/cpy/CSLKPCDY.cpy · 3 record(s), 4 fields

WS-US-PHONE-AREA-CODE-TO-EDIT

FieldPICTypeCode typeColumn typeSource
WS-US-PHONE-AREA-CODE-TO-EDITXXX text, 3 characters
VALID-PHONE-AREA-CODE = 201, VALID-GENERAL-PURP-CODE = 201, VALID-EASY-RECOG-AREA-CODE = 200
app/cpy/CSLKPCDY.cpy:24

US-STATE-CODE-TO-EDIT

FieldPICTypeCode typeColumn typeSource
US-STATE-CODE-TO-EDITX(2) text, 2 characters
VALID-US-STATE-CODE = AL
app/cpy/CSLKPCDY.cpy:1012

US-STATE-ZIPCODE-TO-EDIT

FieldPICTypeCode typeColumn typeSource
US-STATE-AND-FIRST-ZIP2X(4) text, 4 characters
VALID-US-STATE-ZIP-CD2-COMBO = AA34
app/cpy/CSLKPCDY.cpy:1072
LAST-3-OF-ZIPX(3) text, 3 charactersapp/cpy/CSLKPCDY.cpy:1314
CSMSG01Y app/cpy/CSMSG01Y.cpy · 1 record(s), 2 fields

CCDA-COMMON-MESSAGES

FieldPICTypeCode typeColumn typeSource
CCDA-MSG-THANK-YOUX(50) text, 50 charactersapp/cpy/CSMSG01Y.cpy:18
CCDA-MSG-INVALID-KEYX(50) text, 50 charactersapp/cpy/CSMSG01Y.cpy:20
CSMSG02Y app/cpy/CSMSG02Y.cpy · 1 record(s), 4 fields

ABEND-DATA

FieldPICTypeCode typeColumn typeSource
ABEND-CODEX(4) text, 4 charactersapp/cpy/CSMSG02Y.cpy:22
ABEND-CULPRITX(8) text, 8 charactersapp/cpy/CSMSG02Y.cpy:24
ABEND-REASONX(50) text, 50 charactersapp/cpy/CSMSG02Y.cpy:26
ABEND-MSGX(72) text, 72 charactersapp/cpy/CSMSG02Y.cpy:28
CSSETATY app/cpy/CSSETATY.cpy · 0 record(s), 0 fields
CSSTRPFY app/cpy/CSSTRPFY.cpy · 0 record(s), 0 fields
CSUSR01Y app/cpy/CSUSR01Y.cpy · 1 record(s), 6 fields

SEC-USER-DATA

FieldPICTypeCode typeColumn typeSource
SEC-USR-IDX(08) text, 8 charactersapp/cpy/CSUSR01Y.cpy:18
SEC-USR-FNAMEX(20) text, 20 charactersapp/cpy/CSUSR01Y.cpy:19
SEC-USR-LNAMEX(20) text, 20 charactersapp/cpy/CSUSR01Y.cpy:20
SEC-USR-PWDX(08) text, 8 charactersapp/cpy/CSUSR01Y.cpy:21
SEC-USR-TYPEX(01) text, 1 characterapp/cpy/CSUSR01Y.cpy:22
SEC-USR-FILLERX(23) text, 23 charactersapp/cpy/CSUSR01Y.cpy:23
CSUTLDPY app/cpy/CSUTLDPY.cpy · 0 record(s), 0 fields
CSUTLDWY app/cpy/CSUTLDWY.cpy · 7 record(s), 34 fields

WS-EDIT-DATE-CCYYMMDD

FieldPICTypeCode typeColumn typeSource
WS-EDIT-DATE-CCYY groupapp/cpy/CSUTLDWY.cpy:5
WS-EDIT-DATE-CC
in WS-EDIT-DATE-CCYY
X(2) text, 2 charactersapp/cpy/CSUTLDWY.cpy:6
WS-EDIT-DATE-CC-N
in WS-EDIT-DATE-CCYY
9(2) unsigned integer, 2 digits (zoned decimal)
redefines WS-EDIT-DATE-CC
THIS-CENTURY = 20, LAST-CENTURY = 19
app/cpy/CSUTLDWY.cpy:7
WS-EDIT-DATE-YY
in WS-EDIT-DATE-CCYY
X(2) text, 2 charactersapp/cpy/CSUTLDWY.cpy:11
WS-EDIT-DATE-YY-N
in WS-EDIT-DATE-CCYY
9(2) unsigned integer, 2 digits (zoned decimal)
redefines WS-EDIT-DATE-YY
app/cpy/CSUTLDWY.cpy:12
WS-EDIT-DATE-CCYY-N9(4) unsigned integer, 4 digits (zoned decimal)
redefines WS-EDIT-DATE-CCYY
app/cpy/CSUTLDWY.cpy:14
WS-EDIT-DATE-MMX(2) text, 2 charactersapp/cpy/CSUTLDWY.cpy:16
WS-EDIT-DATE-MM-N9(2) unsigned integer, 2 digits (zoned decimal)
redefines WS-EDIT-DATE-MM
WS-VALID-MONTH = 1, WS-31-DAY-MONTH = 1, WS-FEBRUARY = 2
app/cpy/CSUTLDWY.cpy:17
WS-EDIT-DATE-DDX(2) text, 2 charactersapp/cpy/CSUTLDWY.cpy:25
WS-EDIT-DATE-DD-N9(2) unsigned integer, 2 digits (zoned decimal)
redefines WS-EDIT-DATE-DD
WS-VALID-DAY = 1, WS-DAY-31 = 31, WS-DAY-30 = 30, WS-DAY-29 = 29, WS-VALID-FEB-DAY = 1
app/cpy/CSUTLDWY.cpy:26

WS-EDIT-DATE-CCYYMMDD-N

FieldPICTypeCode typeColumn typeSource
WS-EDIT-DATE-CCYYMMDD-N9(8) unsigned integer, 8 digits (zoned decimal)
redefines WS-EDIT-DATE-CCYYMMDD
app/cpy/CSUTLDWY.cpy:35

WS-EDIT-DATE-BINARY

FieldPICTypeCode typeColumn typeSource
WS-EDIT-DATE-BINARYS9(9) BINARYsigned integer, 9 digits (binary)app/cpy/CSUTLDWY.cpy:37

WS-CURRENT-DATE

FieldPICTypeCode typeColumn typeSource
WS-CURRENT-DATE-YYYYMMDDX(8) text, 8 charactersapp/cpy/CSUTLDWY.cpy:39
WS-CURRENT-DATE-YYYYMMDD-N9(8) unsigned integer, 8 digits (zoned decimal)
redefines WS-CURRENT-DATE-YYYYMMDD
app/cpy/CSUTLDWY.cpy:40
WS-CURRENT-DATE-BINARYS9(9) BINARYsigned integer, 9 digits (binary)app/cpy/CSUTLDWY.cpy:42

WS-EDIT-DATE-FLGS

FieldPICTypeCode typeColumn typeSource
WS-EDIT-YEAR-FLGX(01) text, 1 character
FLG-YEAR-ISVALID = , FLG-YEAR-NOT-OK = 0, FLG-YEAR-BLANK = B
app/cpy/CSUTLDWY.cpy:46
WS-EDIT-MONTHX(01) text, 1 character
FLG-MONTH-ISVALID = , FLG-MONTH-NOT-OK = 0, FLG-MONTH-BLANK = B
app/cpy/CSUTLDWY.cpy:50
WS-EDIT-DAYX(01) text, 1 character
FLG-DAY-ISVALID = , FLG-DAY-NOT-OK = 0, FLG-DAY-BLANK = B
app/cpy/CSUTLDWY.cpy:54

WS-DATE-FORMAT

FieldPICTypeCode typeColumn typeSource
WS-DATE-FORMATX(08) text, 8 charactersapp/cpy/CSUTLDWY.cpy:58

WS-DATE-VALIDATION-RESULT

FieldPICTypeCode typeColumn typeSource
WS-SEVERITYX(04) text, 4 charactersapp/cpy/CSUTLDWY.cpy:61
WS-SEVERITY-N9(4) unsigned integer, 4 digits (zoned decimal)
redefines WS-SEVERITY
app/cpy/CSUTLDWY.cpy:62
FILLERX(11) text, 11 charactersapp/cpy/CSUTLDWY.cpy:64
WS-MSG-NOX(04) text, 4 charactersapp/cpy/CSUTLDWY.cpy:66
WS-MSG-NO-N9(4) unsigned integer, 4 digits (zoned decimal)
redefines WS-MSG-NO
app/cpy/CSUTLDWY.cpy:67
FILLERX(01) text, 1 characterapp/cpy/CSUTLDWY.cpy:69
WS-RESULTX(15) text, 15 charactersapp/cpy/CSUTLDWY.cpy:71
FILLERX(01) text, 1 characterapp/cpy/CSUTLDWY.cpy:72
FILLERX(09) text, 9 charactersapp/cpy/CSUTLDWY.cpy:74
WS-DATEX(10) text, 10 charactersapp/cpy/CSUTLDWY.cpy:76
FILLERX(01) text, 1 characterapp/cpy/CSUTLDWY.cpy:77
FILLERX(10) text, 10 charactersapp/cpy/CSUTLDWY.cpy:79
WS-DATE-FMTX(10) text, 10 charactersapp/cpy/CSUTLDWY.cpy:81
FILLERX(01) text, 1 characterapp/cpy/CSUTLDWY.cpy:82
FILLERX(03) text, 3 charactersapp/cpy/CSUTLDWY.cpy:84
CUSTREC app/cpy/CUSTREC.cpy · 1 record(s), 19 fields

CUSTOMER-RECORD

FieldPICTypeCode typeColumn typeSource
CUST-ID9(09) unsigned integer, 9 digits (zoned decimal)app/cpy/CUSTREC.cpy:5
CUST-FIRST-NAMEX(25) text, 25 charactersapp/cpy/CUSTREC.cpy:6
CUST-MIDDLE-NAMEX(25) text, 25 charactersapp/cpy/CUSTREC.cpy:7
CUST-LAST-NAMEX(25) text, 25 charactersapp/cpy/CUSTREC.cpy:8
CUST-ADDR-LINE-1X(50) text, 50 charactersapp/cpy/CUSTREC.cpy:9
CUST-ADDR-LINE-2X(50) text, 50 charactersapp/cpy/CUSTREC.cpy:10
CUST-ADDR-LINE-3X(50) text, 50 charactersapp/cpy/CUSTREC.cpy:11
CUST-ADDR-STATE-CDX(02) text, 2 charactersapp/cpy/CUSTREC.cpy:12
CUST-ADDR-COUNTRY-CDX(03) text, 3 charactersapp/cpy/CUSTREC.cpy:13
CUST-ADDR-ZIPX(10) text, 10 charactersapp/cpy/CUSTREC.cpy:14
CUST-PHONE-NUM-1X(15) text, 15 charactersapp/cpy/CUSTREC.cpy:15
CUST-PHONE-NUM-2X(15) text, 15 charactersapp/cpy/CUSTREC.cpy:16
CUST-SSN9(09) unsigned integer, 9 digits (zoned decimal)app/cpy/CUSTREC.cpy:17
CUST-GOVT-ISSUED-IDX(20) text, 20 charactersapp/cpy/CUSTREC.cpy:18
CUST-DOB-YYYYMMDDX(10) text, 10 charactersapp/cpy/CUSTREC.cpy:19
CUST-EFT-ACCOUNT-IDX(10) text, 10 charactersapp/cpy/CUSTREC.cpy:20
CUST-PRI-CARD-HOLDER-INDX(01) text, 1 characterapp/cpy/CUSTREC.cpy:21
CUST-FICO-CREDIT-SCORE9(03) unsigned integer, 3 digits (zoned decimal)app/cpy/CUSTREC.cpy:22
FILLERX(168) text, 168 charactersapp/cpy/CUSTREC.cpy:23
CVACT01Y app/cpy/CVACT01Y.cpy · 1 record(s), 13 fields

ACCOUNT-RECORD

FieldPICTypeCode typeColumn typeSource
ACCT-ID9(11) unsigned integer, 11 digits (zoned decimal)app/cpy/CVACT01Y.cpy:5
ACCT-ACTIVE-STATUSX(01) text, 1 characterapp/cpy/CVACT01Y.cpy:6
ACCT-CURR-BALS9(10)V99 signed decimal, 10 integer and 2 fraction digits (zoned decimal)app/cpy/CVACT01Y.cpy:7
ACCT-CREDIT-LIMITS9(10)V99 signed decimal, 10 integer and 2 fraction digits (zoned decimal)app/cpy/CVACT01Y.cpy:8
ACCT-CASH-CREDIT-LIMITS9(10)V99 signed decimal, 10 integer and 2 fraction digits (zoned decimal)app/cpy/CVACT01Y.cpy:9
ACCT-OPEN-DATEX(10) text, 10 charactersapp/cpy/CVACT01Y.cpy:10
ACCT-EXPIRAION-DATEX(10) text, 10 charactersapp/cpy/CVACT01Y.cpy:11
ACCT-REISSUE-DATEX(10) text, 10 charactersapp/cpy/CVACT01Y.cpy:12
ACCT-CURR-CYC-CREDITS9(10)V99 signed decimal, 10 integer and 2 fraction digits (zoned decimal)app/cpy/CVACT01Y.cpy:13
ACCT-CURR-CYC-DEBITS9(10)V99 signed decimal, 10 integer and 2 fraction digits (zoned decimal)app/cpy/CVACT01Y.cpy:14
ACCT-ADDR-ZIPX(10) text, 10 charactersapp/cpy/CVACT01Y.cpy:15
ACCT-GROUP-IDX(10) text, 10 charactersapp/cpy/CVACT01Y.cpy:16
FILLERX(178) text, 178 charactersapp/cpy/CVACT01Y.cpy:17
CVACT02Y app/cpy/CVACT02Y.cpy · 1 record(s), 7 fields

CARD-RECORD

FieldPICTypeCode typeColumn typeSource
CARD-NUMX(16) text, 16 charactersapp/cpy/CVACT02Y.cpy:5
CARD-ACCT-ID9(11) unsigned integer, 11 digits (zoned decimal)app/cpy/CVACT02Y.cpy:6
CARD-CVV-CD9(03) unsigned integer, 3 digits (zoned decimal)app/cpy/CVACT02Y.cpy:7
CARD-EMBOSSED-NAMEX(50) text, 50 charactersapp/cpy/CVACT02Y.cpy:8
CARD-EXPIRAION-DATEX(10) text, 10 charactersapp/cpy/CVACT02Y.cpy:9
CARD-ACTIVE-STATUSX(01) text, 1 characterapp/cpy/CVACT02Y.cpy:10
FILLERX(59) text, 59 charactersapp/cpy/CVACT02Y.cpy:11
CVACT03Y app/cpy/CVACT03Y.cpy · 1 record(s), 4 fields

CARD-XREF-RECORD

FieldPICTypeCode typeColumn typeSource
XREF-CARD-NUMX(16) text, 16 charactersapp/cpy/CVACT03Y.cpy:5
XREF-CUST-ID9(09) unsigned integer, 9 digits (zoned decimal)app/cpy/CVACT03Y.cpy:6
XREF-ACCT-ID9(11) unsigned integer, 11 digits (zoned decimal)app/cpy/CVACT03Y.cpy:7
FILLERX(14) text, 14 charactersapp/cpy/CVACT03Y.cpy:8
CVCRD01Y app/cpy/CVCRD01Y.cpy · 1 record(s), 13 fields

CC-WORK-AREAS

FieldPICTypeCode typeColumn typeSource
CC-WORK-AREA groupapp/cpy/CVCRD01Y.cpy:2
CCARD-AID
in CC-WORK-AREA
X(5) text, 5 characters
CCARD-AID-ENTER = ENTER, CCARD-AID-CLEAR = CLEAR, CCARD-AID-PA1 = PA1 , CCARD-AID-PA2 = PA2 , CCARD-AID-PFK01 = PFK01, CCARD-AID-PFK02 = PFK02, CCARD-AID-PFK03 = PFK03, CCARD-AID-PFK04 = PFK04, CCARD-AID-PFK05 = PFK05, CCARD-AID-PFK06 = PFK06, CCARD-AID-PFK07 = PFK07, CCARD-AID-PFK08 = PFK08, CCARD-AID-PFK09 = PFK09, CCARD-AID-PFK10 = PFK10, CCARD-AID-PFK11 = PFK11, CCARD-AID-PFK12 = PFK12
app/cpy/CVCRD01Y.cpy:3
CCARD-NEXT-PROG
in CC-WORK-AREA
X(8) text, 8 charactersapp/cpy/CVCRD01Y.cpy:21
CCARD-NEXT-MAPSET
in CC-WORK-AREA
X(7) text, 7 charactersapp/cpy/CVCRD01Y.cpy:23
CCARD-NEXT-MAP
in CC-WORK-AREA
X(7) text, 7 charactersapp/cpy/CVCRD01Y.cpy:24
CCARD-ERROR-MSG
in CC-WORK-AREA
X(75) text, 75 charactersapp/cpy/CVCRD01Y.cpy:28
CCARD-RETURN-MSG
in CC-WORK-AREA
X(75) text, 75 characters
CCARD-RETURN-MSG-OFF =
app/cpy/CVCRD01Y.cpy:29
CC-ACCT-ID
in CC-WORK-AREA
X(11) text, 11 charactersapp/cpy/CVCRD01Y.cpy:34
CC-ACCT-ID-N
in CC-WORK-AREA
9(11) unsigned integer, 11 digits (zoned decimal)
redefines CC-ACCT-ID
app/cpy/CVCRD01Y.cpy:36
CC-CARD-NUM
in CC-WORK-AREA
X(16) text, 16 charactersapp/cpy/CVCRD01Y.cpy:37
CC-CARD-NUM-N
in CC-WORK-AREA
9(16) unsigned integer, 16 digits (zoned decimal)
redefines CC-CARD-NUM
app/cpy/CVCRD01Y.cpy:39
CC-CUST-ID
in CC-WORK-AREA
X(09) text, 9 charactersapp/cpy/CVCRD01Y.cpy:40
CC-CUST-ID-N
in CC-WORK-AREA
9(9) unsigned integer, 9 digits (zoned decimal)
redefines CC-CUST-ID
app/cpy/CVCRD01Y.cpy:42
CVCUS01Y app/cpy/CVCUS01Y.cpy · 1 record(s), 19 fields

CUSTOMER-RECORD

FieldPICTypeCode typeColumn typeSource
CUST-ID9(09) unsigned integer, 9 digits (zoned decimal)app/cpy/CVCUS01Y.cpy:5
CUST-FIRST-NAMEX(25) text, 25 charactersapp/cpy/CVCUS01Y.cpy:6
CUST-MIDDLE-NAMEX(25) text, 25 charactersapp/cpy/CVCUS01Y.cpy:7
CUST-LAST-NAMEX(25) text, 25 charactersapp/cpy/CVCUS01Y.cpy:8
CUST-ADDR-LINE-1X(50) text, 50 charactersapp/cpy/CVCUS01Y.cpy:9
CUST-ADDR-LINE-2X(50) text, 50 charactersapp/cpy/CVCUS01Y.cpy:10
CUST-ADDR-LINE-3X(50) text, 50 charactersapp/cpy/CVCUS01Y.cpy:11
CUST-ADDR-STATE-CDX(02) text, 2 charactersapp/cpy/CVCUS01Y.cpy:12
CUST-ADDR-COUNTRY-CDX(03) text, 3 charactersapp/cpy/CVCUS01Y.cpy:13
CUST-ADDR-ZIPX(10) text, 10 charactersapp/cpy/CVCUS01Y.cpy:14
CUST-PHONE-NUM-1X(15) text, 15 charactersapp/cpy/CVCUS01Y.cpy:15
CUST-PHONE-NUM-2X(15) text, 15 charactersapp/cpy/CVCUS01Y.cpy:16
CUST-SSN9(09) unsigned integer, 9 digits (zoned decimal)app/cpy/CVCUS01Y.cpy:17
CUST-GOVT-ISSUED-IDX(20) text, 20 charactersapp/cpy/CVCUS01Y.cpy:18
CUST-DOB-YYYY-MM-DDX(10) text, 10 charactersapp/cpy/CVCUS01Y.cpy:19
CUST-EFT-ACCOUNT-IDX(10) text, 10 charactersapp/cpy/CVCUS01Y.cpy:20
CUST-PRI-CARD-HOLDER-INDX(01) text, 1 characterapp/cpy/CVCUS01Y.cpy:21
CUST-FICO-CREDIT-SCORE9(03) unsigned integer, 3 digits (zoned decimal)app/cpy/CVCUS01Y.cpy:22
FILLERX(168) text, 168 charactersapp/cpy/CVCUS01Y.cpy:23
CVEXPORT app/cpy/CVEXPORT.cpy · 1 record(s), 71 fields

EXPORT-RECORD

FieldPICTypeCode typeColumn typeSource
EXPORT-REC-TYPEX(1) text, 1 characterapp/cpy/CVEXPORT.cpy:10
EXPORT-TIMESTAMPX(26) text, 26 charactersapp/cpy/CVEXPORT.cpy:11
EXPORT-TIMESTAMP-R group
redefines EXPORT-TIMESTAMP
app/cpy/CVEXPORT.cpy:12
EXPORT-DATE
in EXPORT-TIMESTAMP-R
X(10) text, 10 charactersapp/cpy/CVEXPORT.cpy:13
EXPORT-DATE-TIME-SEP
in EXPORT-TIMESTAMP-R
X(1) text, 1 characterapp/cpy/CVEXPORT.cpy:14
EXPORT-TIME
in EXPORT-TIMESTAMP-R
X(15) text, 15 charactersapp/cpy/CVEXPORT.cpy:15
EXPORT-SEQUENCE-NUM9(9) COMPunsigned integer, 9 digits (binary)app/cpy/CVEXPORT.cpy:16
EXPORT-BRANCH-IDX(4) text, 4 charactersapp/cpy/CVEXPORT.cpy:17
EXPORT-REGION-CODEX(5) text, 5 charactersapp/cpy/CVEXPORT.cpy:18
EXPORT-RECORD-DATAX(460) text, 460 charactersapp/cpy/CVEXPORT.cpy:19
EXPORT-CUSTOMER-DATA group
redefines EXPORT-RECORD-DATA
app/cpy/CVEXPORT.cpy:24
EXP-CUST-ID
in EXPORT-CUSTOMER-DATA
9(09) COMPunsigned integer, 9 digits (binary)app/cpy/CVEXPORT.cpy:25
EXP-CUST-FIRST-NAME
in EXPORT-CUSTOMER-DATA
X(25) text, 25 charactersapp/cpy/CVEXPORT.cpy:26
EXP-CUST-MIDDLE-NAME
in EXPORT-CUSTOMER-DATA
X(25) text, 25 charactersapp/cpy/CVEXPORT.cpy:27
EXP-CUST-LAST-NAME
in EXPORT-CUSTOMER-DATA
X(25) text, 25 charactersapp/cpy/CVEXPORT.cpy:28
EXP-CUST-ADDR-LINES
in EXPORT-CUSTOMER-DATA
group
occurs 3
app/cpy/CVEXPORT.cpy:29
EXP-CUST-ADDR-LINE
in EXPORT-CUSTOMER-DATA/EXP-CUST-ADDR-LINES
X(50) text, 50 charactersapp/cpy/CVEXPORT.cpy:30
EXP-CUST-ADDR-STATE-CD
in EXPORT-CUSTOMER-DATA
X(02) text, 2 charactersapp/cpy/CVEXPORT.cpy:31
EXP-CUST-ADDR-COUNTRY-CD
in EXPORT-CUSTOMER-DATA
X(03) text, 3 charactersapp/cpy/CVEXPORT.cpy:32
EXP-CUST-ADDR-ZIP
in EXPORT-CUSTOMER-DATA
X(10) text, 10 charactersapp/cpy/CVEXPORT.cpy:33
EXP-CUST-PHONE-NUMS
in EXPORT-CUSTOMER-DATA
group
occurs 2
app/cpy/CVEXPORT.cpy:34
EXP-CUST-PHONE-NUM
in EXPORT-CUSTOMER-DATA/EXP-CUST-PHONE-NUMS
X(15) text, 15 charactersapp/cpy/CVEXPORT.cpy:35
EXP-CUST-SSN
in EXPORT-CUSTOMER-DATA
9(09) unsigned integer, 9 digits (zoned decimal)app/cpy/CVEXPORT.cpy:36
EXP-CUST-GOVT-ISSUED-ID
in EXPORT-CUSTOMER-DATA
X(20) text, 20 charactersapp/cpy/CVEXPORT.cpy:37
EXP-CUST-DOB-YYYY-MM-DD
in EXPORT-CUSTOMER-DATA
X(10) text, 10 charactersapp/cpy/CVEXPORT.cpy:38
EXP-CUST-EFT-ACCOUNT-ID
in EXPORT-CUSTOMER-DATA
X(10) text, 10 charactersapp/cpy/CVEXPORT.cpy:39
EXP-CUST-PRI-CARD-HOLDER-IND
in EXPORT-CUSTOMER-DATA
X(01) text, 1 characterapp/cpy/CVEXPORT.cpy:40
EXP-CUST-FICO-CREDIT-SCORE
in EXPORT-CUSTOMER-DATA
9(03) COMP-3unsigned integer, 3 digits (packed decimal)app/cpy/CVEXPORT.cpy:41
FILLER
in EXPORT-CUSTOMER-DATA
X(134) text, 134 charactersapp/cpy/CVEXPORT.cpy:42
EXPORT-ACCOUNT-DATA group
redefines EXPORT-RECORD-DATA
app/cpy/CVEXPORT.cpy:47
EXP-ACCT-ID
in EXPORT-ACCOUNT-DATA
9(11) unsigned integer, 11 digits (zoned decimal)app/cpy/CVEXPORT.cpy:48
EXP-ACCT-ACTIVE-STATUS
in EXPORT-ACCOUNT-DATA
X(01) text, 1 characterapp/cpy/CVEXPORT.cpy:49
EXP-ACCT-CURR-BAL
in EXPORT-ACCOUNT-DATA
S9(10)V99 COMP-3signed decimal, 10 integer and 2 fraction digits (packed decimal)app/cpy/CVEXPORT.cpy:50
EXP-ACCT-CREDIT-LIMIT
in EXPORT-ACCOUNT-DATA
S9(10)V99 signed decimal, 10 integer and 2 fraction digits (zoned decimal)app/cpy/CVEXPORT.cpy:51
EXP-ACCT-CASH-CREDIT-LIMIT
in EXPORT-ACCOUNT-DATA
S9(10)V99 COMP-3signed decimal, 10 integer and 2 fraction digits (packed decimal)app/cpy/CVEXPORT.cpy:52
EXP-ACCT-OPEN-DATE
in EXPORT-ACCOUNT-DATA
X(10) text, 10 charactersapp/cpy/CVEXPORT.cpy:53
EXP-ACCT-EXPIRAION-DATE
in EXPORT-ACCOUNT-DATA
X(10) text, 10 charactersapp/cpy/CVEXPORT.cpy:54
EXP-ACCT-REISSUE-DATE
in EXPORT-ACCOUNT-DATA
X(10) text, 10 charactersapp/cpy/CVEXPORT.cpy:55
EXP-ACCT-CURR-CYC-CREDIT
in EXPORT-ACCOUNT-DATA
S9(10)V99 signed decimal, 10 integer and 2 fraction digits (zoned decimal)app/cpy/CVEXPORT.cpy:56
EXP-ACCT-CURR-CYC-DEBIT
in EXPORT-ACCOUNT-DATA
S9(10)V99 COMPsigned decimal, 10 integer and 2 fraction digits (binary)app/cpy/CVEXPORT.cpy:57
EXP-ACCT-ADDR-ZIP
in EXPORT-ACCOUNT-DATA
X(10) text, 10 charactersapp/cpy/CVEXPORT.cpy:58
EXP-ACCT-GROUP-ID
in EXPORT-ACCOUNT-DATA
X(10) text, 10 charactersapp/cpy/CVEXPORT.cpy:59
FILLER
in EXPORT-ACCOUNT-DATA
X(352) text, 352 charactersapp/cpy/CVEXPORT.cpy:60
EXPORT-TRANSACTION-DATA group
redefines EXPORT-RECORD-DATA
app/cpy/CVEXPORT.cpy:65
EXP-TRAN-ID
in EXPORT-TRANSACTION-DATA
X(16) text, 16 charactersapp/cpy/CVEXPORT.cpy:66
EXP-TRAN-TYPE-CD
in EXPORT-TRANSACTION-DATA
X(02) text, 2 charactersapp/cpy/CVEXPORT.cpy:67
EXP-TRAN-CAT-CD
in EXPORT-TRANSACTION-DATA
9(04) unsigned integer, 4 digits (zoned decimal)app/cpy/CVEXPORT.cpy:68
EXP-TRAN-SOURCE
in EXPORT-TRANSACTION-DATA
X(10) text, 10 charactersapp/cpy/CVEXPORT.cpy:69
EXP-TRAN-DESC
in EXPORT-TRANSACTION-DATA
X(100) text, 100 charactersapp/cpy/CVEXPORT.cpy:70
EXP-TRAN-AMT
in EXPORT-TRANSACTION-DATA
S9(09)V99 COMP-3signed decimal, 9 integer and 2 fraction digits (packed decimal)app/cpy/CVEXPORT.cpy:71
EXP-TRAN-MERCHANT-ID
in EXPORT-TRANSACTION-DATA
9(09) COMPunsigned integer, 9 digits (binary)app/cpy/CVEXPORT.cpy:72
EXP-TRAN-MERCHANT-NAME
in EXPORT-TRANSACTION-DATA
X(50) text, 50 charactersapp/cpy/CVEXPORT.cpy:73
EXP-TRAN-MERCHANT-CITY
in EXPORT-TRANSACTION-DATA
X(50) text, 50 charactersapp/cpy/CVEXPORT.cpy:74
EXP-TRAN-MERCHANT-ZIP
in EXPORT-TRANSACTION-DATA
X(10) text, 10 charactersapp/cpy/CVEXPORT.cpy:75
EXP-TRAN-CARD-NUM
in EXPORT-TRANSACTION-DATA
X(16) text, 16 charactersapp/cpy/CVEXPORT.cpy:76
EXP-TRAN-ORIG-TS
in EXPORT-TRANSACTION-DATA
X(26) text, 26 charactersapp/cpy/CVEXPORT.cpy:77
EXP-TRAN-PROC-TS
in EXPORT-TRANSACTION-DATA
X(26) text, 26 charactersapp/cpy/CVEXPORT.cpy:78
FILLER
in EXPORT-TRANSACTION-DATA
X(140) text, 140 charactersapp/cpy/CVEXPORT.cpy:79
EXPORT-CARD-XREF-DATA group
redefines EXPORT-RECORD-DATA
app/cpy/CVEXPORT.cpy:84
EXP-XREF-CARD-NUM
in EXPORT-CARD-XREF-DATA
X(16) text, 16 charactersapp/cpy/CVEXPORT.cpy:85
EXP-XREF-CUST-ID
in EXPORT-CARD-XREF-DATA
9(09) unsigned integer, 9 digits (zoned decimal)app/cpy/CVEXPORT.cpy:86
EXP-XREF-ACCT-ID
in EXPORT-CARD-XREF-DATA
9(11) COMPunsigned integer, 11 digits (binary)app/cpy/CVEXPORT.cpy:87
FILLER
in EXPORT-CARD-XREF-DATA
X(427) text, 427 charactersapp/cpy/CVEXPORT.cpy:88
EXPORT-CARD-DATA group
redefines EXPORT-RECORD-DATA
app/cpy/CVEXPORT.cpy:93
EXP-CARD-NUM
in EXPORT-CARD-DATA
X(16) text, 16 charactersapp/cpy/CVEXPORT.cpy:94
EXP-CARD-ACCT-ID
in EXPORT-CARD-DATA
9(11) COMPunsigned integer, 11 digits (binary)app/cpy/CVEXPORT.cpy:95
EXP-CARD-CVV-CD
in EXPORT-CARD-DATA
9(03) COMPunsigned integer, 3 digits (binary)app/cpy/CVEXPORT.cpy:96
EXP-CARD-EMBOSSED-NAME
in EXPORT-CARD-DATA
X(50) text, 50 charactersapp/cpy/CVEXPORT.cpy:97
EXP-CARD-EXPIRAION-DATE
in EXPORT-CARD-DATA
X(10) text, 10 charactersapp/cpy/CVEXPORT.cpy:98
EXP-CARD-ACTIVE-STATUS
in EXPORT-CARD-DATA
X(01) text, 1 characterapp/cpy/CVEXPORT.cpy:99
FILLER
in EXPORT-CARD-DATA
X(373) text, 373 charactersapp/cpy/CVEXPORT.cpy:100
CVTRA01Y app/cpy/CVTRA01Y.cpy · 1 record(s), 6 fields

TRAN-CAT-BAL-RECORD

FieldPICTypeCode typeColumn typeSource
TRAN-CAT-KEY groupapp/cpy/CVTRA01Y.cpy:5
TRANCAT-ACCT-ID
in TRAN-CAT-KEY
9(11) unsigned integer, 11 digits (zoned decimal)app/cpy/CVTRA01Y.cpy:6
TRANCAT-TYPE-CD
in TRAN-CAT-KEY
X(02) text, 2 charactersapp/cpy/CVTRA01Y.cpy:7
TRANCAT-CD
in TRAN-CAT-KEY
9(04) unsigned integer, 4 digits (zoned decimal)app/cpy/CVTRA01Y.cpy:8
TRAN-CAT-BALS9(09)V99 signed decimal, 9 integer and 2 fraction digits (zoned decimal)app/cpy/CVTRA01Y.cpy:9
FILLERX(22) text, 22 charactersapp/cpy/CVTRA01Y.cpy:10
CVTRA02Y app/cpy/CVTRA02Y.cpy · 1 record(s), 6 fields

DIS-GROUP-RECORD

FieldPICTypeCode typeColumn typeSource
DIS-GROUP-KEY groupapp/cpy/CVTRA02Y.cpy:5
DIS-ACCT-GROUP-ID
in DIS-GROUP-KEY
X(10) text, 10 charactersapp/cpy/CVTRA02Y.cpy:6
DIS-TRAN-TYPE-CD
in DIS-GROUP-KEY
X(02) text, 2 charactersapp/cpy/CVTRA02Y.cpy:7
DIS-TRAN-CAT-CD
in DIS-GROUP-KEY
9(04) unsigned integer, 4 digits (zoned decimal)app/cpy/CVTRA02Y.cpy:8
DIS-INT-RATES9(04)V99 signed decimal, 4 integer and 2 fraction digits (zoned decimal)app/cpy/CVTRA02Y.cpy:9
FILLERX(28) text, 28 charactersapp/cpy/CVTRA02Y.cpy:10
CVTRA03Y app/cpy/CVTRA03Y.cpy · 1 record(s), 3 fields

TRAN-TYPE-RECORD

FieldPICTypeCode typeColumn typeSource
TRAN-TYPEX(02) text, 2 charactersapp/cpy/CVTRA03Y.cpy:5
TRAN-TYPE-DESCX(50) text, 50 charactersapp/cpy/CVTRA03Y.cpy:6
FILLERX(08) text, 8 charactersapp/cpy/CVTRA03Y.cpy:7
CVTRA04Y app/cpy/CVTRA04Y.cpy · 1 record(s), 5 fields

TRAN-CAT-RECORD

FieldPICTypeCode typeColumn typeSource
TRAN-CAT-KEY groupapp/cpy/CVTRA04Y.cpy:5
TRAN-TYPE-CD
in TRAN-CAT-KEY
X(02) text, 2 charactersapp/cpy/CVTRA04Y.cpy:6
TRAN-CAT-CD
in TRAN-CAT-KEY
9(04) unsigned integer, 4 digits (zoned decimal)app/cpy/CVTRA04Y.cpy:7
TRAN-CAT-TYPE-DESCX(50) text, 50 charactersapp/cpy/CVTRA04Y.cpy:8
FILLERX(04) text, 4 charactersapp/cpy/CVTRA04Y.cpy:9
CVTRA05Y app/cpy/CVTRA05Y.cpy · 1 record(s), 14 fields

TRAN-RECORD

FieldPICTypeCode typeColumn typeSource
TRAN-IDX(16) text, 16 charactersapp/cpy/CVTRA05Y.cpy:5
TRAN-TYPE-CDX(02) text, 2 charactersapp/cpy/CVTRA05Y.cpy:6
TRAN-CAT-CD9(04) unsigned integer, 4 digits (zoned decimal)app/cpy/CVTRA05Y.cpy:7
TRAN-SOURCEX(10) text, 10 charactersapp/cpy/CVTRA05Y.cpy:8
TRAN-DESCX(100) text, 100 charactersapp/cpy/CVTRA05Y.cpy:9
TRAN-AMTS9(09)V99 signed decimal, 9 integer and 2 fraction digits (zoned decimal)app/cpy/CVTRA05Y.cpy:10
TRAN-MERCHANT-ID9(09) unsigned integer, 9 digits (zoned decimal)app/cpy/CVTRA05Y.cpy:11
TRAN-MERCHANT-NAMEX(50) text, 50 charactersapp/cpy/CVTRA05Y.cpy:12
TRAN-MERCHANT-CITYX(50) text, 50 charactersapp/cpy/CVTRA05Y.cpy:13
TRAN-MERCHANT-ZIPX(10) text, 10 charactersapp/cpy/CVTRA05Y.cpy:14
TRAN-CARD-NUMX(16) text, 16 charactersapp/cpy/CVTRA05Y.cpy:15
TRAN-ORIG-TSX(26) text, 26 charactersapp/cpy/CVTRA05Y.cpy:16
TRAN-PROC-TSX(26) text, 26 charactersapp/cpy/CVTRA05Y.cpy:17
FILLERX(20) text, 20 charactersapp/cpy/CVTRA05Y.cpy:18
CVTRA06Y app/cpy/CVTRA06Y.cpy · 1 record(s), 14 fields

DALYTRAN-RECORD

FieldPICTypeCode typeColumn typeSource
DALYTRAN-IDX(16) text, 16 charactersapp/cpy/CVTRA06Y.cpy:5
DALYTRAN-TYPE-CDX(02) text, 2 charactersapp/cpy/CVTRA06Y.cpy:6
DALYTRAN-CAT-CD9(04) unsigned integer, 4 digits (zoned decimal)app/cpy/CVTRA06Y.cpy:7
DALYTRAN-SOURCEX(10) text, 10 charactersapp/cpy/CVTRA06Y.cpy:8
DALYTRAN-DESCX(100) text, 100 charactersapp/cpy/CVTRA06Y.cpy:9
DALYTRAN-AMTS9(09)V99 signed decimal, 9 integer and 2 fraction digits (zoned decimal)app/cpy/CVTRA06Y.cpy:10
DALYTRAN-MERCHANT-ID9(09) unsigned integer, 9 digits (zoned decimal)app/cpy/CVTRA06Y.cpy:11
DALYTRAN-MERCHANT-NAMEX(50) text, 50 charactersapp/cpy/CVTRA06Y.cpy:12
DALYTRAN-MERCHANT-CITYX(50) text, 50 charactersapp/cpy/CVTRA06Y.cpy:13
DALYTRAN-MERCHANT-ZIPX(10) text, 10 charactersapp/cpy/CVTRA06Y.cpy:14
DALYTRAN-CARD-NUMX(16) text, 16 charactersapp/cpy/CVTRA06Y.cpy:15
DALYTRAN-ORIG-TSX(26) text, 26 charactersapp/cpy/CVTRA06Y.cpy:16
DALYTRAN-PROC-TSX(26) text, 26 charactersapp/cpy/CVTRA06Y.cpy:17
FILLERX(20) text, 20 charactersapp/cpy/CVTRA06Y.cpy:18
CVTRA07Y app/cpy/CVTRA07Y.cpy · 7 record(s), 39 fields

REPORT-NAME-HEADER

FieldPICTypeCode typeColumn typeSource
REPT-SHORT-NAMEX(38) text, 38 charactersapp/cpy/CVTRA07Y.cpy:5
REPT-LONG-NAMEX(41) text, 41 charactersapp/cpy/CVTRA07Y.cpy:7
REPT-DATE-HEADERX(12) text, 12 charactersapp/cpy/CVTRA07Y.cpy:9
REPT-START-DATEX(10) text, 10 charactersapp/cpy/CVTRA07Y.cpy:11
FILLERX(04) text, 4 charactersapp/cpy/CVTRA07Y.cpy:12
REPT-END-DATEX(10) text, 10 charactersapp/cpy/CVTRA07Y.cpy:13

TRANSACTION-DETAIL-REPORT

FieldPICTypeCode typeColumn typeSource
TRAN-REPORT-TRANS-IDX(16) text, 16 charactersapp/cpy/CVTRA07Y.cpy:16
FILLERX(01) text, 1 characterapp/cpy/CVTRA07Y.cpy:17
TRAN-REPORT-ACCOUNT-IDX(11) text, 11 charactersapp/cpy/CVTRA07Y.cpy:18
FILLERX(01) text, 1 characterapp/cpy/CVTRA07Y.cpy:19
TRAN-REPORT-TYPE-CDX(02) text, 2 charactersapp/cpy/CVTRA07Y.cpy:20
FILLERX(01) text, 1 characterapp/cpy/CVTRA07Y.cpy:21
TRAN-REPORT-TYPE-DESCX(15) text, 15 charactersapp/cpy/CVTRA07Y.cpy:22
FILLERX(01) text, 1 characterapp/cpy/CVTRA07Y.cpy:23
TRAN-REPORT-CAT-CD9(04) unsigned integer, 4 digits (zoned decimal)app/cpy/CVTRA07Y.cpy:24
FILLERX(01) text, 1 characterapp/cpy/CVTRA07Y.cpy:25
TRAN-REPORT-CAT-DESCX(29) text, 29 charactersapp/cpy/CVTRA07Y.cpy:26
FILLERX(01) text, 1 characterapp/cpy/CVTRA07Y.cpy:27
TRAN-REPORT-SOURCEX(10) text, 10 charactersapp/cpy/CVTRA07Y.cpy:28
FILLERX(04) text, 4 charactersapp/cpy/CVTRA07Y.cpy:29
TRAN-REPORT-AMT-ZZZ,ZZZ,ZZZ.ZZ formatted text, 15 characters (a number shown with 11 digits)app/cpy/CVTRA07Y.cpy:30
FILLERX(02) text, 2 charactersapp/cpy/CVTRA07Y.cpy:31

TRANSACTION-HEADER-1

FieldPICTypeCode typeColumn typeSource
FILLERX(17) text, 17 charactersapp/cpy/CVTRA07Y.cpy:34
FILLERX(12) text, 12 charactersapp/cpy/CVTRA07Y.cpy:36
FILLERX(19) text, 19 charactersapp/cpy/CVTRA07Y.cpy:38
FILLERX(35) text, 35 charactersapp/cpy/CVTRA07Y.cpy:40
FILLERX(14) text, 14 charactersapp/cpy/CVTRA07Y.cpy:42
FILLERX text, 1 characterapp/cpy/CVTRA07Y.cpy:44
FILLERX(16) text, 16 charactersapp/cpy/CVTRA07Y.cpy:45

TRANSACTION-HEADER-2

FieldPICTypeCode typeColumn typeSource
TRANSACTION-HEADER-2X(133) text, 133 charactersapp/cpy/CVTRA07Y.cpy:48

REPORT-PAGE-TOTALS

FieldPICTypeCode typeColumn typeSource
FILLERX(11) text, 11 charactersapp/cpy/CVTRA07Y.cpy:51
FILLERX(86) text, 86 charactersapp/cpy/CVTRA07Y.cpy:53
REPT-PAGE-TOTAL+ZZZ,ZZZ,ZZZ.ZZ formatted text, 15 characters (a number shown with 11 digits)app/cpy/CVTRA07Y.cpy:54

REPORT-ACCOUNT-TOTALS

FieldPICTypeCode typeColumn typeSource
FILLERX(13) text, 13 charactersapp/cpy/CVTRA07Y.cpy:57
FILLERX(84) text, 84 charactersapp/cpy/CVTRA07Y.cpy:59
REPT-ACCOUNT-TOTAL+ZZZ,ZZZ,ZZZ.ZZ formatted text, 15 characters (a number shown with 11 digits)app/cpy/CVTRA07Y.cpy:60

REPORT-GRAND-TOTALS

FieldPICTypeCode typeColumn typeSource
FILLERX(11) text, 11 charactersapp/cpy/CVTRA07Y.cpy:63
FILLERX(86) text, 86 charactersapp/cpy/CVTRA07Y.cpy:65
REPT-GRAND-TOTAL+ZZZ,ZZZ,ZZZ.ZZ formatted text, 15 characters (a number shown with 11 digits)app/cpy/CVTRA07Y.cpy:66
IMSFUNCS app/app-authorization-ims-db2-mq/cpy/IMSFUNCS.cpy · 1 record(s), 10 fields

FUNC-CODES

FieldPICTypeCode typeColumn typeSource
FUNC-GUX(04) text, 4 charactersapp/app-authorization-ims-db2-mq/cpy/IMSFUNCS.cpy:18
FUNC-GHUX(04) text, 4 charactersapp/app-authorization-ims-db2-mq/cpy/IMSFUNCS.cpy:19
FUNC-GNX(04) text, 4 charactersapp/app-authorization-ims-db2-mq/cpy/IMSFUNCS.cpy:20
FUNC-GHNX(04) text, 4 charactersapp/app-authorization-ims-db2-mq/cpy/IMSFUNCS.cpy:21
FUNC-GNPX(04) text, 4 charactersapp/app-authorization-ims-db2-mq/cpy/IMSFUNCS.cpy:22
FUNC-GHNPX(04) text, 4 charactersapp/app-authorization-ims-db2-mq/cpy/IMSFUNCS.cpy:23
FUNC-REPLX(04) text, 4 charactersapp/app-authorization-ims-db2-mq/cpy/IMSFUNCS.cpy:24
FUNC-ISRTX(04) text, 4 charactersapp/app-authorization-ims-db2-mq/cpy/IMSFUNCS.cpy:25
FUNC-DLETX(04) text, 4 charactersapp/app-authorization-ims-db2-mq/cpy/IMSFUNCS.cpy:26
PARMCOUNTS9(05) COMP-5signed integer, 5 digits (native binary)app/app-authorization-ims-db2-mq/cpy/IMSFUNCS.cpy:27
PADFLPCB app/app-authorization-ims-db2-mq/cpy/PADFLPCB.CPY · 1 record(s), 9 fields

PADFLPCB

FieldPICTypeCode typeColumn typeSource
PADFL-DBDNAMEX(08) text, 8 charactersapp/app-authorization-ims-db2-mq/cpy/PADFLPCB.CPY:18
PADFL-SEG-LEVELX(02) text, 2 charactersapp/app-authorization-ims-db2-mq/cpy/PADFLPCB.CPY:19
PADFL-PCB-STATUSX(02) text, 2 charactersapp/app-authorization-ims-db2-mq/cpy/PADFLPCB.CPY:20
PADFL-PCB-PROCOPTX(04) text, 4 charactersapp/app-authorization-ims-db2-mq/cpy/PADFLPCB.CPY:21
FILLERS9(05) COMPsigned integer, 5 digits (binary)app/app-authorization-ims-db2-mq/cpy/PADFLPCB.CPY:22
PADFL-SEG-NAMEX(08) text, 8 charactersapp/app-authorization-ims-db2-mq/cpy/PADFLPCB.CPY:23
PADFL-KEYFB-NAMES9(05) COMPsigned integer, 5 digits (binary)app/app-authorization-ims-db2-mq/cpy/PADFLPCB.CPY:24
PADFL-NUM-SENSEGSS9(05) COMPsigned integer, 5 digits (binary)app/app-authorization-ims-db2-mq/cpy/PADFLPCB.CPY:25
PADFL-KEYFBX(255) text, 255 charactersapp/app-authorization-ims-db2-mq/cpy/PADFLPCB.CPY:26
PASFLPCB app/app-authorization-ims-db2-mq/cpy/PASFLPCB.CPY · 1 record(s), 9 fields

PASFLPCB

FieldPICTypeCode typeColumn typeSource
PASFL-DBDNAMEX(08) text, 8 charactersapp/app-authorization-ims-db2-mq/cpy/PASFLPCB.CPY:18
PASFL-SEG-LEVELX(02) text, 2 charactersapp/app-authorization-ims-db2-mq/cpy/PASFLPCB.CPY:19
PASFL-PCB-STATUSX(02) text, 2 charactersapp/app-authorization-ims-db2-mq/cpy/PASFLPCB.CPY:20
PASFL-PCB-PROCOPTX(04) text, 4 charactersapp/app-authorization-ims-db2-mq/cpy/PASFLPCB.CPY:21
FILLERS9(05) COMPsigned integer, 5 digits (binary)app/app-authorization-ims-db2-mq/cpy/PASFLPCB.CPY:22
PASFL-SEG-NAMEX(08) text, 8 charactersapp/app-authorization-ims-db2-mq/cpy/PASFLPCB.CPY:23
PASFL-KEYFB-NAMES9(05) COMPsigned integer, 5 digits (binary)app/app-authorization-ims-db2-mq/cpy/PASFLPCB.CPY:24
PASFL-NUM-SENSEGSS9(05) COMPsigned integer, 5 digits (binary)app/app-authorization-ims-db2-mq/cpy/PASFLPCB.CPY:25
PASFL-KEYFBX(100) text, 100 charactersapp/app-authorization-ims-db2-mq/cpy/PASFLPCB.CPY:26
PAUTBPCB app/app-authorization-ims-db2-mq/cpy/PAUTBPCB.CPY · 1 record(s), 9 fields

PAUTBPCB

FieldPICTypeCode typeColumn typeSource
PAUT-DBDNAMEX(08) text, 8 charactersapp/app-authorization-ims-db2-mq/cpy/PAUTBPCB.CPY:18
PAUT-SEG-LEVELX(02) text, 2 charactersapp/app-authorization-ims-db2-mq/cpy/PAUTBPCB.CPY:19
PAUT-PCB-STATUSX(02) text, 2 charactersapp/app-authorization-ims-db2-mq/cpy/PAUTBPCB.CPY:20
PAUT-PCB-PROCOPTX(04) text, 4 charactersapp/app-authorization-ims-db2-mq/cpy/PAUTBPCB.CPY:21
FILLERS9(05) COMPsigned integer, 5 digits (binary)app/app-authorization-ims-db2-mq/cpy/PAUTBPCB.CPY:22
PAUT-SEG-NAMEX(08) text, 8 charactersapp/app-authorization-ims-db2-mq/cpy/PAUTBPCB.CPY:23
PAUT-KEYFB-NAMES9(05) COMPsigned integer, 5 digits (binary)app/app-authorization-ims-db2-mq/cpy/PAUTBPCB.CPY:24
PAUT-NUM-SENSEGSS9(05) COMPsigned integer, 5 digits (binary)app/app-authorization-ims-db2-mq/cpy/PAUTBPCB.CPY:25
PAUT-KEYFBX(255) text, 255 charactersapp/app-authorization-ims-db2-mq/cpy/PAUTBPCB.CPY:26
+

What the checks still found

  • None.
+
\ No newline at end of file diff --git a/reports/carddemo/design/journeys.html b/reports/carddemo/design/journeys.html new file mode 100644 index 00000000..4cca2e08 --- /dev/null +++ b/reports/carddemo/design/journeys.html @@ -0,0 +1,29 @@ + +User journeys
+

Legacy screens · Screen flow · aws-carddemo

+

User journeys

+

17 journeys over 21 of 21 screens, grouped by a Claude step per domain and checked by Reframe: +every step follows a link in the screen flow, and every capability and requirement cited exists. Model output, for review.

+

Customer Account Self-Service

J01 View an account

Card services agent · Look up an account by number and see its balances, limits, dates and the customer's profile while the caller waits.

  1. Login Screen COSGN0A: Sign in with user ID and password
  2. Main Menu COMEN1A: Choose option 1, Account View
  3. View Account CACTVWA: Enter the 11-digit account number and press Enter
  4. View Account CACTVWA: Fix the account number if an error is shown, then read the account and customer details
  5. Main Menu COMEN1A: Press F3 to return to the main menu
3 capabilities, 27 requirements
  • Validate and look up an account for viewing rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#16
  • Display account and customer details rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#17
  • Navigate the account view screen rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#18
  • REQ-F-123 When the account number entered on the Account View screen is '*' or blank, the system shall treat the account number as not supplied.
  • REQ-F-124 If no account number is supplied, then the system shall reject the request as an input error without reading any file, set the session account to zero, show 'No input received', and redisplay the account field as '*' in red.
  • REQ-F-125 If the account number supplied is not all digits (including one shorter than 11 digits) or is all zeros, then the system shall reject it as an input error without reading any file, set the session account to zero, show the account field in red and show 'Account Filter must be a non-zero 11 digit number'.
  • REQ-F-126 When the account number is 11 digits and not all zeros, the system shall accept it as the session account and go on to the account lookup.
  • REQ-F-127 When an account number passes validation, the system shall look the account up in the card cross-reference by account number (CXACAIX) and, when it is found, keep that account's customer number and card number for the rest of the session.
  • REQ-F-128 If the account is not in the card cross-reference, then the system shall stop the lookup, treat it as an input error, show the account number in red and show 'Account:<account number> not found in Cross ref file. Resp:<code> Reas:<code>'.
  • REQ-F-129 If reading the card cross-reference fails for any reason other than 'not found', then the system shall stop the lookup, treat it as an input error and show 'File Error: READ on CXACAIX returned RESP <code>,RESP2 <code>'.
  • REQ-F-130 When the account is found in the cross-reference, the system shall read the account master (ACCTDAT) by account number and, on success, mark the account as found so that its details are displayed.
  • REQ-F-131 If the account is not in the account master, then the system shall treat it as an input error, show the account number in red and show 'Account:<account number> not found in Acct Master file.Resp:<code> Reas:<code>', and for any other read failure show 'File Error: READ on ACCTDAT returned RESP <code>,RESP2 <code>'.
  • REQ-F-132 If reading the account master does not succeed, then the system shall still go on to read the customer master, because the stop check after the account read never triggers.
  • REQ-F-133 The system shall read the customer master (CUSTDAT) using the customer number taken from the card cross-reference and, on success, mark the customer as found so that the customer details are displayed.
  • REQ-F-134 If the customer is not in the customer master, then the system shall treat it as an input error and show 'CustId:<customer number> not found in customer master.Resp: <code> REAS:<code>', unless an earlier message is already set.
  • REQ-F-135 If reading the customer master fails for any reason other than 'not found', then the system shall treat it as an input error and show 'File Error: READ on CUSTDAT returned RESP <code>,RESP2 <code>', replacing any earlier message.
  • REQ-F-136 While the program context is re-entry (1), when PF3 was not pressed, the system shall read and validate the entered account number, redisplay the screen with the error on an input error, and otherwise look up the card cross-reference, account master and customer master in turn (stopping at the first not found) and display the screen.
  • REQ-F-137 When the account was found in the account master file, the system shall show the account status, current balance, credit limit, cash credit limit, current cycle credit, current cycle debit, open date, expiration date, reissue date and group id.
  • REQ-F-138 When the account's customer was found in the customer master file, the system shall show the customer id, FICO score, date of birth, first, middle and last name, address lines, city, state, zip, country, both phone numbers, government-issued id, EFT account id and primary card holder indicator.
  • REQ-N-005 When the customer is found, the system shall show the customer's full Social Security number, unmasked, in the form NNN-NN-NNNN.
  • REQ-F-139 When the account view screen is shown with no session data passed (started directly), the system shall show no account or customer details and show the information line 'Enter or update id of account to display'.
  • REQ-F-140 While session data exists, the system shall show the account number the user entered in the account number field, or leave the field empty when no account number was entered.
  • REQ-F-141 The system shall show 'Enter or update id of account to display' on the information line when no information message has been set, and always show the current error message, if there is one, on the error line.
  • REQ-F-142 The system shall place the cursor on the account number field every time the account view screen is shown, whether or not the input had an error.
  • REQ-F-143 When the user presses any key other than Enter or PF3 (PF15 counts as PF3), such as PF7, Clear or PA1, the system shall treat it as Enter.
  • REQ-F-144 When the user presses PF3, the system shall transfer control, with the session data and the program context reset to first entry, to the calling program and transaction, or to the main menu ('COMEN01C', transaction 'CM00') when no caller is recorded.
  • REQ-F-145 When the program starts with no session data, or is entered from the main menu ('COMEN01C') other than as a re-entry, the system shall start a fresh session context, discarding any passed data.
  • REQ-F-146 While the program context is first entry (0), when PF3 was not pressed, the system shall show the empty account search screen and wait for input.
  • REQ-F-147 When the account view screen is sent, the system shall set the program context to re-entry (1) and end the task, keeping the session data, so that the next input from the user starts transaction 'CAVW'.
  • REQ-F-148 If the program context is neither first entry nor re-entry, then the system shall send the plain text 'UNEXPECTED DATA SCENARIO' and end.

J02 Update an account

Card services agent · Change an account's and its customer's details after confirming the caller, saving only valid, confirmed changes.

  1. Login Screen COSGN0A: Sign in with user ID and password
  2. Main Menu COMEN1A: Choose option 2, Account Update
  3. Update Account CACTUPA: Enter the account number and press Enter to fetch the account and customer
  4. Update Account CACTUPA: Type the changes to account and customer fields and press Enter to check them
  5. Update Account CACTUPA: Correct any field the error message points to and press Enter again
  6. Update Account CACTUPA: Press F5 to save the changes, or F12 to cancel them
  7. Main Menu COMEN1A: Press F3 to return to the main menu
15 capabilities, 126 requirements
  • Find the account to update rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#1
  • View account and customer details for update rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#2
  • Capture entered changes rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#3
  • Validate changed account and customer fields rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#4
  • Validate account and customer dates rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#5
  • Confirm and save the account update rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#6
  • Select an account to update rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#7
  • Detect changes before validating rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#8
  • Validate customer name and address rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#9
  • Validate customer phone numbers rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#10
  • Validate identity and credit details rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#11
  • Validate account flags and EFT account rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#12
  • Save confirmed account and customer changes rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#13
  • Navigate the account update screen rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#14
  • Update account details with validation and confirmation rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#15
  • REQ-F-001 When the account update screen is shown on first entry to the function, the system shall set the information message to 'Enter or update id of account to update'.
  • REQ-F-002 When the account update screen is shown, it is not a first entry, and no account details have been fetched yet, the system shall set the information message to 'Enter or update id of account to update'.
  • REQ-F-003 If no update stage matches and the information message is blank, then the system shall default the information message to 'Enter or update id of account to update'.
  • REQ-F-004 When the account is found in the card cross-reference by account ID, the system shall take the customer ID and card number from it for the session and go on to read the account and customer.
  • REQ-F-005 If the account is not in the card cross-reference, then the system shall flag the account as invalid, stop the lookup and show 'Account:<account> not found in Cross ref file. Resp:<resp> Reas:<reason>'.
  • REQ-F-006 If the card cross-reference read fails for any other reason, then the system shall flag the account as invalid, stop the lookup and show 'File Error: READ on CXACAIX returned RESP <resp>,RESP2 <reason>'.
  • REQ-F-007 When the account master read succeeds, the system shall mark the account as found.
  • REQ-F-008 If the account is not on the account master, then the system shall flag an input error, mark the account search invalid and, if no message is already set, report 'Account:<id> not found in Acct Master file.Resp:<resp> Reas:<reason>'.
  • REQ-F-009 If the account master read fails for any other reason, then the system shall flag an input error, mark the account search invalid and report 'File Error: READ on ACCTDAT returned RESP <resp>...'.
  • REQ-F-010 When the customer master read for the account's customer succeeds, the system shall mark the customer as found.
  • REQ-F-011 If the customer is not on the customer master, then the system shall flag an input error, mark the customer search invalid and, if no message is already set, report 'CustId:<id> not found in customer master.Resp: <resp> REAS:<reason>'.
  • REQ-F-012 If the customer master read fails for any other reason, then the system shall flag an input error, mark the customer search invalid and report 'File Error: READ on CUSTDAT returned RESP <resp>...'.
  • REQ-F-013 When the account is found in the card cross-reference, the system shall save the account id, customer id, customer names, account status and card number as the session context.
  • REQ-F-014 When the account is found in the card cross-reference, the system shall copy the fetched account and customer values into the original snapshot, splitting the open, expiry, reissue and birth dates (YYYY-MM-DD) into year, month and day.
  • REQ-F-015 The system shall always show the current information message and the current error or return message in their message lines.
  • REQ-F-016 When the account update screen shows the original values, the system shall clear all field-error flags and set the information message to 'Update account details presented above.'
  • REQ-F-017 When the account update screen is shown after details were fetched and the stage is details shown ('S') or changes not OK ('E'), the system shall set the information message to 'Update account details presented above.'
  • REQ-F-018 When the original values are shown and either the account or the customer was found, the system shall show the stored account status, the current balance, credit limit, cash credit limit and cycle credit and debit as formatted amounts, the open, expiry and reissue dates as year, month and day, and the account group.
  • REQ-F-019 When the original values are shown and the customer was found, the system shall show the stored customer details, with the SSN split into 3-2-4 digits, both phone numbers split into area code, prefix and line number, and the date of birth split into year, month and day.
  • REQ-F-020 When the account update screen is shown on re-entry, the system shall show the entered account id, but leave it blank when the id is zero and the account search is valid.
  • REQ-F-021 When the screen is shown on re-entry and either no details have been fetched or the account id is zero, the system shall show all account and customer fields blank.
  • REQ-F-022 When the screen is shown on re-entry with details shown ('S'), the system shall show the original fetched values, and when changes have been made ('E', 'N', 'C', 'L', 'F'), the system shall show the values the operator entered.
  • REQ-F-023 While account details are shown for editing (state 'S') or shown again with input errors (state 'E'), the system shall let the operator change status, credit and cash limits, balance, cycle credit and debit, open, expiry and reissue dates, group, SSN, FICO score, date of birth, names, address lines, city, state, ZIP, both phones, government ID, EFT account and primary-holder flag.
  • REQ-N-001 While account details are shown for editing (state 'S' or 'E'), the system shall keep the account number, customer number and country protected so they cannot be changed.
  • REQ-N-002 While changes are waiting for confirmation (state 'N') or have been saved (state 'C'), the system shall protect every field.
  • REQ-F-024 While no account is fetched yet or the save failed, the system shall leave only the account number open for entry.
  • REQ-F-025 When the operator submits changes and the account group entry is '*' or blank, the system shall treat the group as not supplied, and otherwise take the entered group as the proposed group.
  • REQ-F-026 When the operator submits changes and the country code entry is '*' or blank, the system shall treat the country code as not supplied, and otherwise take the entered value as the proposed country code.
  • REQ-F-027 When account details are already on the update screen and the operator submits the customer number field as '*' or blank, the system shall treat the customer number as not supplied, and otherwise take the entered customer number as the proposed value to compare with the stored one and write to the customer record on save.
  • REQ-F-028 When account details are already on the update screen and the operator submits the government-issued ID field as '*' or blank, the system shall treat the government ID as not supplied, and otherwise take the entered value as the proposed government ID to compare with the stored one and write to the customer record on save.
  • REQ-F-029 When the operator submits changes to a fetched account and any of the credit limit, cash credit limit, current balance, current cycle credit or current cycle debit is blank or '*', the system shall treat that amount as not supplied.
  • REQ-F-030 When an entered amount reads as a valid currency number (an optional '$', thousands commas, a sign and decimals allowed), the system shall convert it to the proposed new numeric amount with two decimal places.
  • REQ-F-031 When the operator submits the account update screen after the account details are shown, the system shall treat each year, month or day part of the open, expiry and reissue dates entered as '*' or left blank as not supplied, and take any other entry as typed.
  • REQ-F-032 When the operator enters a date of birth part (year, month or day) as '*' or leaves it blank, the system shall treat that part as not supplied, and otherwise take the entered part as the proposed value.
  • REQ-F-033 When account details have been fetched and the entered values differ from the fetched ones, and the changes are not already validated or saved, the system shall check every account and customer field and mark the changes not OK ('E') until all checks pass.
  • REQ-F-034 The system shall require the account status and the primary card holder flag to be Y or N.
  • REQ-F-035 The system shall require the open, expiry, reissue and birth dates to be valid dates, with the birth date passing an extra date-of-birth check.
  • REQ-F-036 The system shall require the credit limit, cash credit limit, current balance, cycle credit and cycle debit to be valid signed currency numbers.
  • REQ-F-037 If an amount is not supplied (blank or '*'), then the system shall reject it with the message '<field> must be supplied.' (for example 'Credit Limit must be supplied.').
  • REQ-F-038 If a supplied amount is not a valid currency number, then the system shall reject it with the message '<field> is not valid', using the names 'Credit Limit', 'Cash Credit Limit', 'Current Balance', 'Current Cycle Credit Limit' or 'Current Cycle Debit Limit'.
  • REQ-F-039 The system shall accept any valid currency number for the five amounts, including negative values and zero, without a range or sign check.
  • REQ-F-040 If the first 3 digits of the SSN are 000, 666 or 900-999, then the system shall reject the SSN with ': should not be 000, 666, or between 900 and 999'.
  • REQ-F-041 The system shall require the FICO score to be 3 digits between 300 and 850, rejecting it otherwise with ': should be between 300 and 850'.
  • REQ-F-042 The system shall require the first and last names (25 characters), city (50) and country (3) to be letters only, allow the middle name (25) to be blank but letters only, and require address line 1 (50).
  • REQ-F-043 The system shall require the state to be a valid 2-letter US state code (': is not a valid state code'), the ZIP to be 5 digits, the state and ZIP to match each other, both phone numbers to be valid US numbers, and the EFT account id to be 10 digits.
  • REQ-N-003 The system shall show only the first error message found on the screen.
  • REQ-F-044 When all field checks pass, the system shall set the stage to changes validated but not confirmed ('N').
  • REQ-F-045 When the entered values differ from the stored account and are not awaiting or past confirmation, the system shall check the 'Open Date', 'Expiry Date', 'Reissue Date' and 'Date of Birth' in that order with the same date check, prefix each message with the date's name, and show only the first error message found.
  • REQ-F-046 If the year of a date is blank, then the system shall reject the date with '<date name> : Year must be supplied.' and still go on to check the month and day.
  • REQ-F-047 If the year of a date is not a four-digit number, then the system shall reject the date with '<date name> must be 4 digit number.'
  • REQ-F-048 If a numeric year does not start with 19 or 20, then the system shall reject the date with '<date name> : Century is not valid.'
  • REQ-F-049 If the month of a date is blank, then the system shall reject the date with '<date name> : Month must be supplied.'
  • REQ-F-050 If the month of a date is not a number from 1 to 12, then the system shall reject the date with '<date name>: Month must be a number between 1 and 12.'
  • REQ-F-051 If the day of a date is blank, then the system shall reject the date with '<date name> : Day must be supplied.'
  • REQ-F-052 If the day of a date is not a number or is outside 1 to 31, then the system shall reject the date with '<date name>:day must be a number between 1 and 31.'
  • REQ-F-053 If the day is 31 and the month is not 1, 3, 5, 7, 8, 10 or 12, then the system shall reject the date with '<date name>:Cannot have 31 days in this month.' and stop checking that date.
  • REQ-F-054 If the date is 30 February, then the system shall reject it with '<date name>:Cannot have 30 days in this month.' and stop checking that date.
  • REQ-F-055 If the date is 29 February and the year is not a leap year (a year ending in 00 must divide by 400, any other year by 4), then the system shall reject it with '<date name>:Not a leap year.Cannot have 29 days in this month.'
  • REQ-F-056 If any of the year, month or day of a date has failed its check, then the system shall stop checking that date without the final date-service check.
  • REQ-F-057 When a date passes all the earlier checks, the system shall confirm it with the date service (CSUTLDTC) in format 'YYYYMMDD' and reject it with '<date name> validation error Sev code: <severity> Message code: <message number>' if the service returns a non-zero severity.
  • REQ-F-058 When the date service rejects a date, the system shall still mark the date's year, month and day as valid, so that only the error message and the screen's input-error state record the failure.
  • REQ-F-059 When the operator presses a key that is not Enter, not PF3, not PF5 while changes are pending confirmation ('N'), and not PF12 after the account details are fetched, the system shall reject the requested key operation and treat the request as Enter, while allowed keys keep their requested operation.
  • REQ-F-060 If any stored account or customer value differs from the value fetched when the details were shown, then the system shall flag 'Record changed by some one else. Please review' and stop the save.
  • REQ-F-061 When a confirmed account update is saved, the system shall rewrite the account record from a layout that has no ZIP field, so that the entered account group ID goes into the stored ZIP position (offsets 103-112) and the stored group-ID position is overwritten with whatever the unset filler area holds.
  • REQ-F-062 When the operator submits the account update screen, the system shall treat an account number of '*' or blank as not supplied and otherwise take the entered value as the account to search for.
  • REQ-F-063 While no account details have been fetched yet, the system shall check only the account number and ignore every other field on the screen.
  • REQ-F-064 If no account details have been fetched yet and the account number is blank or '*', then the system shall show the error 'No input received', set the current account number to zeros and read no account.
  • REQ-F-065 If no account details have been fetched yet and the account number supplied is not numeric or is all zeros, then the system shall show 'Account Number if supplied must be a 11 digit Non-Zero Number', set the current account number to zeros and read no account.
  • REQ-F-066 While no account details have been fetched yet, when the account number is an 11-digit non-zero number, the system shall accept it as the current account and go on to look the account up.
  • REQ-F-067 When account details are not yet fetched, or the operator presses PF12 to cancel changes, and the account number entered is valid, the system shall look up the card cross-reference, then the account, then the customer, stopping at the first one not found, and shall show the details (state 'S') only when all three are found.
  • REQ-F-068 When the operator presses Enter on an account already shown, the system shall compare every entered value with the value fetched, ignoring upper/lower case and surrounding spaces for text fields (status, group, names, address, state, country, ZIP, government ID, primary-holder flag) and comparing amounts, dates, phone parts, SSN, EFT account and FICO exactly, counting any difference as a change.
  • REQ-F-069 When no entered value differs from the fetched values, the system shall show 'No change detected with respect to values fetched.', run no field checks, save nothing and leave the details on screen without asking for confirmation.
  • REQ-F-070 While the update is neither awaiting confirmation ('N') nor completed ('C'), when a change is detected, the system shall mark the changes as not yet accepted ('E'), run every field check, and move the update to awaiting confirmation ('N') if all checks pass.
  • REQ-F-071 When no change is detected, or the update is awaiting confirmation ('N') or completed ('C'), the system shall clear all field error flags and skip every field check, including the date checks.
  • REQ-F-072 When several fields fail validation, the system shall flag every invalid field but show only the message of the first failing field.
  • REQ-F-073 When the operator enters '*' or leaves blank the first, middle or last name, address line 1 or 2, city, state, ZIP code or EFT account id, the system shall treat that entry as not supplied, and otherwise take the entered value as the proposed new value, holding the city as address line 3.
  • REQ-F-074 If the first name, last name, city, state or country is not supplied after the operator changes account or customer details, then the system shall reject the input with '<field> must be supplied.' (for example 'First Name must be supplied.') and mark the field blank ('B').
  • REQ-F-075 If a supplied first name, last name, city, state or country contains any character other than the letters A-Z or a-z and spaces, then the system shall reject it with '<field> can have alphabets only.' and mark the field invalid ('0').
  • REQ-F-076 If a supplied middle name contains anything other than letters and spaces, then the system shall reject it with 'Middle Name can have alphabets only.', and the system shall accept a blank middle name.
  • REQ-F-077 If address line 1 is not supplied, then the system shall reject the input with 'Address Line 1 must be supplied.' and mark it blank ('B'), accepting any other content and not checking address line 2 at all.
  • REQ-F-078 If the state is present and passes the letters-only check but is not one of the valid US state codes, then the system shall reject the change, flag the state as in error, and show 'State: is not a valid state code' if no earlier error message has been set.
  • REQ-F-079 If the ZIP code (5 positions) is blank, not all digits, or zero, then the system shall reject it with 'ZIP must be supplied.' (flag 'B'), '<field> must be all numeric.' (flag '0') or '<field> must not be zero.' (flag '0') respectively.
  • REQ-F-080 When both the state and the ZIP code have passed their own edits, the system shall check that the state together with the first two digits of the ZIP code is a known valid state/ZIP-prefix combination.
  • REQ-F-081 If the state and first two ZIP digits are not a valid combination, then the system shall reject the change, flag both the state and the ZIP code as in error, and show 'Invalid zip code for state' if no earlier error message has been set.
  • REQ-F-082 When the operator enters '*' or leaves blank any part of phone number 1 or phone number 2 (area code, prefix or line number), the system shall treat that part as not supplied before validating it.
  • REQ-F-083 When the area code, prefix and line number of a phone number are all not supplied, the system shall accept the phone number as omitted and skip all further checks on it.
  • REQ-F-084 If any part of a phone number is supplied but its area code is not, then the system shall flag an input error with '<Phone Number 1 or 2>: Area code must be supplied.' and go on to check the prefix.
  • REQ-F-085 If a supplied area code is not all digits, then the system shall flag an input error with '<Phone Number 1 or 2>: Area code must be A 3 digit number.' and go on to check the prefix.
  • REQ-F-086 If a supplied area code is 000, then the system shall flag an input error with '<Phone Number 1 or 2>: Area code cannot be zero' and go on to check the prefix.
  • REQ-F-087 If a supplied numeric, non-zero area code is not one of the listed North American general-purpose area codes (410 codes between '201' and '989', not every number in that range), then the system shall flag an input error with '<Phone Number 1 or 2>: Not valid North America general purpose area code'.
  • REQ-F-088 If the prefix of a phone number being checked is not supplied, then the system shall flag an input error with '<Phone Number 1 or 2>: Prefix code must be supplied.' and go on to check the line number.
  • REQ-F-089 If a supplied prefix is not all digits, then the system shall flag an input error with '<Phone Number 1 or 2>: Prefix code must be A 3 digit number.' and go on to check the line number.
  • REQ-F-090 If a supplied prefix is 000, then the system shall flag an input error with '<Phone Number 1 or 2>: Prefix code cannot be zero' and go on to check the line number, accepting any other three-digit prefix (for example 555).
  • REQ-F-091 If the line number of a phone number being checked is not supplied, then the system shall flag an input error with '<Phone Number 1 or 2>: Line number code must be supplied.'.
  • REQ-F-092 If a supplied line number is not all digits, then the system shall flag an input error with '<Phone Number 1 or 2>: Line number code must be A 4 digit number.'.
  • REQ-F-093 If a supplied line number is 0000, then the system shall flag an input error with '<Phone Number 1 or 2>: Line number code cannot be zero', accepting any other four-digit line number.
  • REQ-F-094 When more than one phone number part fails its checks, the system shall flag every failing part in error but show only the first message raised, with no later message replacing one already set.
  • REQ-F-095 When the operator enters a Social Security Number part as '*' or leaves it blank, the system shall treat that part as not supplied, and otherwise take the entered part as the proposed value.
  • REQ-F-096 If the first three SSN characters are blank, not all numeric or zero, then the system shall reject them with 'SSN: First 3 chars must be supplied.', 'SSN: First 3 chars must be all numeric.' or 'SSN: First 3 chars must not be zero.' respectively, and shall not check the other two SSN parts.
  • REQ-F-097 If the first three SSN characters are numeric and equal 666 or fall between 900 and 999, then the system shall reject them with 'SSN: First 3 chars: should not be 000, 666, or between 900 and 999'.
  • REQ-F-098 When the first three SSN characters are numeric and non-zero, the system shall require the 4th-5th characters and the last 4 characters each to be supplied, all numeric and non-zero, giving 'SSN 4th & 5th chars …' or 'SSN Last 4 chars …' with 'must be supplied.', 'must be all numeric.' or 'must not be zero.'.
  • REQ-F-099 If a valid calendar date of birth is today or later, then the system shall reject it, flag the day, month and year fields, and show 'Date of Birth:cannot be in the future ' if no earlier error message is already set.
  • REQ-F-100 If the FICO score is entered as blank or '*', then the system shall treat it as not supplied and reject it with 'FICO Score must be supplied.'.
  • REQ-F-101 If the FICO score is not all three digits, then the system shall reject it with 'FICO Score must be all numeric.', and if it is zero, the system shall reject it with 'FICO Score must not be zero.'.
  • REQ-F-102 If a numeric, non-zero FICO score is below 300 or above 850, then the system shall mark the FICO score in error and reject the input with 'FICO Score: should be between 300 and 850', accepting 300 and 850 themselves.
  • REQ-F-103 When the operator submits account changes and leaves the Account Status or Primary Card Holder entry blank or as '*', the system shall treat that entry as not supplied (low-values) rather than as a value to save.
  • REQ-F-104 If changed account details are validated and the Account Status or Primary Card Holder value is not supplied (blank, low-values or '0'), then the system shall reject the input with '<field> must be supplied.' (e.g. 'Account Status must be supplied.', 'Primary Card Holder must be supplied.') and place the cursor on that field.
  • REQ-F-105 If changed account details are validated and a supplied Account Status or Primary Card Holder value is anything other than 'Y' or 'N', then the system shall reject the input with '<field> must be Y or N.' (e.g. 'Account Status must be Y or N.', 'Primary Card Holder must be Y or N.') and place the cursor on that field.
  • REQ-F-106 If the EFT account id (10 positions) is blank, not all digits, or zero, then the system shall reject it with '<field> must be supplied.' (flag 'B'), '<field> must be all numeric.' (flag '0') or '<field> must not be zero.' (flag '0') respectively.
  • REQ-F-107 When the operator presses PF5 to confirm validated changes, the system shall read the account record and then the customer record for update.
  • REQ-F-108 If the account or customer record cannot be locked, then the system shall stop without saving and show 'Could not lock account record for update' or 'Could not lock customer record for update'.
  • REQ-F-109 When both records are locked and neither was changed by someone else since it was shown, the system shall rewrite the account master (ACCTDAT) with the new status, balance, limits, cycle credit and debit, group and the open, expiry and reissue dates as YYYY-MM-DD.
  • REQ-F-110 If the account rewrite fails, then the system shall not update the customer and shall show 'Update of record failed'.
  • REQ-F-111 When the account rewrite succeeds, the system shall rewrite the customer master (CUSTDAT) with the new name, address, phones formatted as '(aaa)bbb-cccc', SSN, government ID, date of birth as YYYY-MM-DD, EFT account, primary holder indicator and FICO score.
  • REQ-N-004 If the customer rewrite fails, then the system shall roll back the account rewrite (SYNCPOINT ROLLBACK) and show 'Update of record failed'.
  • REQ-F-112 When both rewrites succeed, the system shall mark the change as done and tell the operator the update succeeded.
  • REQ-F-113 If a save fails because the account could not be locked ('L') or the update failed ('F'), then the system shall show the message 'Changes unsuccessful. Please try again'.
  • REQ-F-114 When the operator arrives with no saved context, or comes from the main menu ('COMEN01C') for the first time, the system shall clear any previous update data and show an empty screen asking 'Enter or update id of account to update'.
  • REQ-F-115 When the operator submits the screen with any key other than PF3 after a committed ('C') or failed ('L', 'F') save, the system shall clear the update data and account number and show an empty screen asking for a new account number.
  • REQ-F-116 When the operator submits the screen with any key other than PF3, and it is not a first arrival and not the interaction after a committed or failed save, the system shall read and check the entries, decide the next step from the update state, and show the screen again.
  • REQ-F-117 The system shall accept PF5 only while validated changes await confirmation ('N') and PF12 only once account details have been fetched, and shall treat any other key, or PF5/PF12 outside those states, as Enter.
  • REQ-F-118 While details are shown, when the operator changes one or more values, the system shall check every field and set the state to 'N' with the message 'Changes validated.Press F5 to save' if no check fails, or to 'E' (changes not OK) if any check fails.
  • REQ-F-119 While details are shown, when the operator submits without changing any value, the system shall keep the details shown (state 'S') and report 'No change detected with respect to values fetched.'.
  • REQ-F-120 When the state is changes not OK ('E'), or validated changes ('N') are submitted without PF5, the system shall save nothing and show the details again for correction or confirmation.
  • REQ-F-121 When validated changes ('N') are confirmed with PF5, the system shall save them and set the state to 'L' if the account cannot be locked, 'F' if the locked update fails, 'S' (details shown again) if someone else changed the record since it was read, or 'C' otherwise.
  • REQ-F-122 When a save completes ('C'), the system shall show the message 'Changes committed to database'.

J03 Pay an account balance

Card services agent · Pay off the full balance owed on an account and have the payment recorded as a transaction.

  1. Login Screen COSGN0A: Sign in with user ID and password
  2. Main Menu COMEN1A: Choose option 10, Bill Payment
  3. Bill Payment COBIL0A: Enter the account ID and press Enter to see the current balance
  4. Bill Payment COBIL0A: Type Y to confirm the payment (or N to decline) and press Enter
  5. Main Menu COMEN1A: Press F3 to return to the main menu
2 capabilities, 23 requirements
  • Request a bill payment rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#19
  • Post a full-balance bill payment rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#20
  • REQ-N-006 When the Bill Payment transaction is started with no session data, the system shall transfer to the sign-on program (COSGN00C).
  • REQ-F-149 When the Bill Payment screen is entered for the first time from another screen, the system shall mark the session as re-entered, start with a blank screen with the cursor on the account ID, and display it.
  • REQ-F-150 When the Bill Payment screen is first entered and an account was already selected, the system shall fill in that account ID and process it as if Enter were pressed, before showing the screen.
  • REQ-F-151 When the user presses PF3 on the Bill Payment screen, the system shall return to the screen it was called from, or to the main menu (COMEN01C) when no caller is recorded.
  • REQ-F-152 When the user presses Enter the system shall process the payment request, when PF4 it shall clear all fields, and when any other key it shall show 'Invalid key pressed. Please see below...'.
  • REQ-F-153 If the account ID is blank, then the system shall show 'Acct ID can NOT be empty...', place the cursor on the account ID and make no payment.
  • REQ-F-154 If the account is looked up (confirmation 'Y', 'y' or blank) and does not exist, then the system shall show 'Account ID NOT found...' and make no payment, and on any other lookup failure show 'Unable to lookup Account...' and make no payment.
  • REQ-F-155 While no error has been flagged, when the account balance is zero or less and an account ID was entered, the system shall flag an error and show 'You have nothing to pay...'.
  • REQ-F-156 When an account ID is entered and the confirmation is blank, the system shall look up the account, show its current balance and the message 'Confirm to make a bill payment...', and post nothing (provided the balance is above zero).
  • REQ-F-157 When an account ID is entered and the confirmation is 'Y' or 'y', the system shall look up the account for update, show its balance and go on to post a payment for the full current balance.
  • REQ-F-158 When the confirmation is 'N' or 'n', the system shall clear the account ID, balance and confirmation fields, redisplay the empty screen and post nothing.
  • REQ-F-159 If the confirmation is anything other than 'Y', 'y', 'N', 'n' or blank, then the system shall show 'Invalid value. Valid values are (Y/N)...', place the cursor on the confirmation field and post nothing.
  • REQ-F-160 When the user confirms a bill payment with 'Y' or 'y' and the account has a balance to pay, the system shall look up the card linked to the account and number the new payment transaction as the highest existing transaction ID plus 1.
  • REQ-F-161 When a confirmed bill payment needs a new transaction number, the system shall position at the end of the transaction file, read the last transaction record and take its transaction ID as the latest existing number.
  • REQ-F-162 When reading back from the end of the transaction file finds no transaction, the system shall treat the latest transaction ID as zero, so the payment is given transaction ID 1.
  • REQ-F-163 If a confirmed payment's lookup of the card linked to the account finds no card link, then the system shall show 'Account ID NOT found...', or 'Unable to lookup XREF AIX file...' on any other failure.
  • REQ-F-164 When the user confirms a bill payment, the system shall record a payment for the full current account balance and reduce the account's current balance by that amount, leaving it at zero.
  • REQ-F-165 The system shall record each online payment with type '02', category 2, source 'POS TERM', description 'BILL PAYMENT - ONLINE', merchant ID 999999999, merchant name 'BILL PAYMENT', merchant city and ZIP 'N/A', the account's card number, and the current date and time as both origin and processing time.
  • REQ-F-166 When a confirmed payment is posted, the system shall write a payment transaction for the full current balance, then subtract that amount from the account balance and save the account.
  • REQ-F-167 When the bill payment transaction is written successfully, the system shall clear the account ID, balance and confirmation fields and show in green 'Payment successful. Your Transaction ID is <new ID>.'.
  • REQ-F-168 If the payment transaction ID already exists, then the system shall show 'Tran ID already exist...', and for any other write failure 'Unable to Add Bill pay Transaction...'.
  • REQ-F-169 If the payment transaction cannot be written or the card lookup fails, then the system shall still subtract the payment from the balance and save the account, so the balance is cleared without a payment on file.
  • REQ-F-170 If saving the updated account fails, then the system shall show 'Account ID NOT found...' if the account is not found, or 'Unable to Update Account...' for any other failure, with the cursor on the account ID.

J04 Find and view a transaction

Card services agent · Browse transactions page by page, or look one up by ID, and see its full details.

  1. Login Screen COSGN0A: Sign in with user ID and password
  2. Main Menu COMEN1A: Choose option 6, Transaction List
  3. List Transactions COTRN0A: Optionally enter a transaction ID to start from, then page with F7 and F8
  4. List Transactions COTRN0A: Mark a transaction with S and press Enter
  5. View Transaction COTRN1A: Read the transaction details, or enter another transaction ID and press Enter
  6. List Transactions COTRN0A: Press F5 to go back to the list
  7. Main Menu COMEN1A: Press F3 to return to the main menu
5 capabilities, 47 requirements
  • Browse and page through the transaction list rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#25
  • Select a transaction from the list to view its details rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#26
  • Transaction list access and session handling rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#27
  • Look up a single transaction rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#28
  • View a single transaction rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#29
  • REQ-F-195 When the transaction list is opened from another screen (not a re-entry), the system shall mark itself as re-entered, clear the screen, read the first page of up to 10 transactions from the start of the transaction file and display it.
  • REQ-F-196 The system shall, at the start of every transaction list interaction, clear the message line, reset its error, end-of-file and next-page indicators, set the screen to be fully redrawn, and place the cursor on the transaction ID field.
  • REQ-F-197 When the user presses a key on the redisplayed transaction list, the system shall read the screen input and then run search and selection for Enter, show the previous page for PF7, or show the next page for PF8.
  • REQ-F-198 When the Tran ID filter is blank and the user presses Enter, the system shall show the first page starting from the first transaction on file.
  • REQ-F-199 When the Tran ID filter is numeric and the user presses Enter, the system shall start the list at that transaction ID, or at the next higher ID if it does not exist.
  • REQ-F-200 If the Tran ID filter is not entirely digits across all 16 positions, then the system shall show 'Tran ID must be Numeric ...', put the cursor on the filter, keep the entry, and not build a new page.
  • REQ-F-201 When the user presses Enter without selecting a row, the system shall reset the page number to 0, build the first page (shown as page 1 if any transaction is found), and clear the filter field when no error occurred.
  • REQ-F-202 When the numeric Tran ID filter is higher than every transaction ID on file, the system shall show 'You are at the top of the page...' with no rows and page number 0.
  • REQ-F-203 When a page is built after Enter, PF3 (return from the transaction detail screen) or PF7, the system shall start with the transaction at the starting ID itself (or the next higher ID) without skipping it.
  • REQ-F-204 When a forward page is built, the system shall first blank all 10 rows, so that rows after the last transaction found stay empty.
  • REQ-F-205 When a transaction record has been retrieved for display on the list page, the system shall convert the transaction amount (TRAN-AMT) to the signed display amount (WS-TRAN-AMT) and derive the display date (WS-TRAN-DATE) as MM/DD/YY from the month, the day and the last two digits of the year of the origination timestamp (TRAN-ORIG-TS).
  • REQ-F-206 The system shall remember the transaction ID shown in row 1 as the page's first transaction ID (CDEMO-CT00-TRNID-FIRST), used as the starting point for the next PF7, and the ID in row 10 as the page's last transaction ID.
  • REQ-F-207 When a transaction is placed in the tenth row, the system shall remember its ID as the page's last transaction ID (CDEMO-CT00-TRNID-LAST), which the next PF8 starts from.
  • REQ-F-208 When all 10 rows are filled, the system shall add 1 to the page number and read one transaction ahead, setting next page available to Y if another transaction exists and to N if not.
  • REQ-F-209 When the transactions run out before 10 rows are filled, the system shall set next page available to N and add 1 to the page number only if at least one transaction was placed on the page.
  • REQ-F-210 When the end of the transactions is reached while filling the page or in the look-ahead read, the system shall show the message 'You have reached the bottom of the page...'.
  • REQ-F-211 If positioning on or reading the transaction file fails for any reason other than not found or end of file, then the system shall stop filling the page and show 'Unable to lookup transaction...'.
  • REQ-F-212 When the user presses PF8 and a next page is available, the system shall restart at the last transaction ID shown on the current page, skip that transaction so it is not repeated, and show up to the next 10 transactions in transaction ID order.
  • REQ-F-213 If the user presses PF8 when no next page is available, then the system shall redisplay the current screen without erasing it and with the message 'You are already at the bottom of the page...'.
  • REQ-F-214 When the user presses PF7 on the transaction list and the current page number is greater than 1, the system shall start reading from the first transaction ID shown on the current page, mark a next page as available, and show the previous page.
  • REQ-F-215 When the user presses PF7 and the current page number is 1 or lower, the system shall redisplay the current screen without clearing it, with the message 'You are already at the top of the page...', and still mark a next page as available.
  • REQ-F-216 When paging backward with PF7, the system shall first step back past the current page's first transaction, so that the previous page does not repeat it.
  • REQ-F-217 When paging backward, the system shall clear the ten rows and fill them from row 10 up to row 1 with the preceding transactions in descending ID order, stopping early if the start of the transaction file is reached or a read fails.
  • REQ-F-218 When all ten rows have been filled while paging backward, the system shall check for one more earlier transaction and decrease the page number by 1 if one exists and the page number is above 1, otherwise set the page number to 1.
  • REQ-F-219 When the start of the transaction file is reached before all ten rows are filled while paging backward, the system shall show the message 'You have reached the top of the page...', leave the unfilled top rows blank and leave the page number unchanged.
  • REQ-F-220 When the user presses Enter on the transaction list, the system shall take the first of the ten rows, top to bottom, whose selection field is not blank, recording that row's selection code and transaction ID (CDEMO-CT00-TRN-SEL-FLG, CDEMO-CT00-TRN-SELECTED) and ignoring any later marked rows.
  • REQ-F-221 When the taken row's selection code is 'S' or 's' and the row has a transaction ID, the system shall pass that transaction ID to the Transaction Detail program (COTRN01C) as a fresh entry (context 0), recording the list screen (CT00, COTRN00C) as the caller.
  • REQ-F-222 If the taken row's selection code is anything other than 'S' or 's', then the system shall show the message 'Invalid selection. Valid value is S', place the cursor on the transaction ID search field and redisplay the list.
  • REQ-F-223 When Enter is processed and none of the 10 list rows has a selection code, the system shall clear any remembered selection code and selected transaction ID, so no transaction is opened and the list is redisplayed.
  • REQ-N-008 When the transaction list program (COTRN00C) is started without any session data (no commarea), the system shall transfer the user to the sign-on program 'COSGN00C'.
  • REQ-N-009 The system shall show transactions from every account and card in transaction-ID order to any signed-on user, regular or admin, without limiting them to the user's own account or checking user type.
  • REQ-F-224 When the user presses PF3 on the transaction list, the system shall return the user to the main menu program 'COMEN01C'.
  • REQ-F-225 If the user presses any key other than Enter, PF3, PF7 or PF8 on the transaction list, then the system shall redisplay the screen with the message 'Invalid key pressed. Please see below...' and the cursor on the transaction ID field.
  • REQ-N-010 The system shall end every transaction list interaction by waiting for the next user input under transaction 'CT00', keeping the session data (page position, selection, user) for the next screen.
  • REQ-F-226 While the caller's data is present and the program is not being re-entered, when the transaction view is opened, the system shall reset the screen, position the cursor on the transaction ID entry field, pre-fill the ID and perform the transaction lookup where a transaction was pre-selected on a prior screen (CDEMO-CT01-TRN-SELECTED not spaces or low-values), and then display the transaction view screen.
  • REQ-F-227 If the entered transaction ID (TRNIDINI) is spaces or low-values, then the system shall flag an error, show the message 'Tran ID can NOT be empty...' and redisplay the screen with the cursor on the transaction ID field.
  • REQ-F-228 When the user presses Enter on the Transaction View screen, the system shall read the entered Transaction ID and look up the transaction.
  • REQ-F-229 When a Transaction ID is entered and Enter is pressed, or the user arrives from the transaction list with a transaction selected, the system shall clear the previously shown details and look up the transaction record with that ID in the transaction file (TRANSACT).
  • REQ-F-230 If the user asks to view a transaction and the Transaction ID is blank, then the system shall not look anything up and shall redisplay the screen with the message 'Tran ID can NOT be empty...'.
  • REQ-F-231 When the transaction is found, the system shall show its transaction ID, card number, type code, category code, source, amount (signed), description, original and processed timestamps, and merchant ID, name, city and ZIP.
  • REQ-F-232 The system shall show the transaction amount on the Transaction View with a leading sign, 8 digits before the decimal point and 2 after (format +99999999.99).
  • REQ-F-233 If no transaction exists with the entered ID, then the system shall redisplay the Transaction View with the message 'Transaction ID NOT found...' and the cursor on the Transaction ID field.
  • REQ-N-011 If reading the transaction file fails for any reason other than not found, then the system shall log the response and reason codes and redisplay the Transaction View with the message 'Unable to lookup Transaction...'.
  • REQ-F-234 When the user presses PF3 on the Transaction View, the system shall return to the program that opened it, or to the main menu (COMEN01C) if no calling program is known.
  • REQ-F-235 When the user presses PF4 on the Transaction View, the system shall clear the Transaction ID, all transaction and merchant fields and the message, put the cursor on the Transaction ID field and redisplay the empty screen.
  • REQ-F-236 When the user presses PF5 on the Transaction View, the system shall go to the transaction list (COTRN00C).
  • REQ-F-237 If the user presses any key other than Enter, PF3, PF4 or PF5 on the Transaction View, then the system shall redisplay the screen with the message 'Invalid key pressed. Please see below...'.

J05 Add a transaction

Card services agent · Record a new transaction against an account or card, with every field checked before it is added.

  1. Login Screen COSGN0A: Sign in with user ID and password
  2. Main Menu COMEN1A: Choose option 8, Transaction Add
  3. Add Transaction COTRN2A: Enter the account or card number and the transaction details (F5 copies the last transaction)
  4. Add Transaction COTRN2A: Correct any field the error message points to
  5. Add Transaction COTRN2A: Type Y to confirm and press Enter to add the transaction
  6. Main Menu COMEN1A: Press F3 to return to the main menu
6 capabilities, 65 requirements
  • Open and navigate the Add Transaction screen rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#30
  • Identify the account and card for a new transaction rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#31
  • Validate new transaction details rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#32
  • Record a confirmed new transaction rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#33
  • Confirm a transaction before it is added rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#34
  • Validate a date against a format mask rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#35
  • REQ-N-012 If the transaction add program is started without any session data, then the system shall send the user to the sign-on program 'COSGN00C'.
  • REQ-F-238 When the transaction add screen is entered for the first time (not a re-entry), the system shall clear the message, show a blank form with the cursor on Account ID, and mark the session so the next input counts as a re-entry.
  • REQ-F-239 When the transaction add screen is entered for the first time and the caller passed a selected value (CDEMO-CT02-TRN-SELECTED), the system shall put that value in Card Number and process it at once as if Enter were pressed.
  • REQ-F-240 When the user presses PF3 on the transaction add screen, the system shall return to the program that called it, or to the main menu 'COMEN01C' if no caller is recorded.
  • REQ-F-241 When the user presses Enter on the transaction add screen, the system shall check the entries and add the transaction if confirmed.
  • REQ-F-242 When the user presses PF4 on the transaction add screen, the system shall clear all fields and redisplay the form.
  • REQ-F-243 When the operator presses PF5 to copy data from the last transaction, the system shall validate the keys, retrieve the most recent transaction on file, prefill the form's data fields with its details when no error is flagged, and then process them as for Enter.
  • REQ-F-244 If the user presses any key other than Enter, PF3, PF4 or PF5 on the transaction add screen, then the system shall show 'Invalid key pressed. Please see below...'.
  • REQ-F-245 When the operator presses Enter or PF5 on the Add Transaction screen, or opens it with a transaction already selected from the transaction list, the system shall first identify the account and card for the new transaction using the account ID and card number fields.
  • REQ-F-246 If both the account ID and the card number are blank, then the system shall show 'Account or Card Number must be entered...', put the cursor on the account ID and save nothing.
  • REQ-F-247 If an account ID is entered and it is not all digits, then the system shall reject the entry, show 'Account ID must be Numeric...', put the cursor on the account ID and save nothing.
  • REQ-F-248 When a numeric account ID is entered, the system shall look the account up in the card cross-reference by account (CXACAIX) and fill the card number with the card linked to it, replacing any card number the operator typed.
  • REQ-F-249 If the entered account ID is not in the card cross-reference, then the system shall show 'Account ID NOT found...', put the cursor on the account ID and save nothing.
  • REQ-N-013 If looking up the account in the card cross-reference fails for any reason other than not found, then the system shall write the response codes to the system log, show 'Unable to lookup Acct in XREF AIX file...' and save nothing.
  • REQ-F-250 If the account ID is blank and a card number is entered that is not all digits, then the system shall reject the entry, show 'Card Number must be Numeric...', put the cursor on the card number and save nothing.
  • REQ-F-251 When the account ID is blank and a numeric card number is entered, the system shall look the card up in the card cross-reference (CCXREF) and fill the account ID with the account linked to that card.
  • REQ-F-252 If the entered card number is not in the card cross-reference, then the system shall show 'Card Number NOT found...', put the cursor on the card number and save nothing.
  • REQ-N-014 If looking up the card in the card cross-reference fails for any reason other than not found, then the system shall write the response codes to the system log, show 'Unable to lookup Card # in XREF file...' and save nothing.
  • REQ-F-253 When Enter is pressed on the Add Transaction screen and the account or card number has passed its checks, the system shall check the transaction fields for blanks in this order: Type CD, Category CD, Source, Description, Amount, Orig Date, Proc Date, Merchant ID, Merchant Name, Merchant City, Merchant Zip, and report only the first blank field.
  • REQ-F-254 If a mandatory transaction field is blank (spaces or low-values), then the system shall show that field's message, put the cursor on that field, redisplay the screen and save nothing.
  • REQ-F-255 If the transaction type code is blank, then the system shall show 'Type CD can NOT be empty...' with the cursor on the type code (TTYPCDI).
  • REQ-F-256 If the type code is entered and the category code is blank, then the system shall show 'Category CD can NOT be empty...' with the cursor on the category code (TCATCDI).
  • REQ-F-257 If the type and category codes are entered and the source is blank, then the system shall show 'Source can NOT be empty...' with the cursor on the source (TRNSRCI).
  • REQ-F-258 If type, category and source are entered and the description is blank, then the system shall show 'Description can NOT be empty...' with the cursor on the description (TDESCI).
  • REQ-F-259 If type, category, source and description are entered and the amount is blank, then the system shall show 'Amount can NOT be empty...' with the cursor on the amount (TRNAMTI).
  • REQ-F-260 If all fields up to the amount are entered and the origination date is blank, then the system shall show 'Orig Date can NOT be empty...' with the cursor on the origination date (TORIGDTI).
  • REQ-F-261 If all fields up to the origination date are entered and the processing date is blank, then the system shall show 'Proc Date can NOT be empty...' with the cursor on the processing date (TPROCDTI).
  • REQ-F-262 If all fields up to the processing date are entered and the merchant ID is blank, then the system shall show 'Merchant ID can NOT be empty...' with the cursor on the merchant ID (MIDI).
  • REQ-F-263 If all fields up to the merchant ID are entered and the merchant name is blank, then the system shall show 'Merchant Name can NOT be empty...' with the cursor on the merchant name (MNAMEI).
  • REQ-F-264 If all fields up to the merchant name are entered and the merchant city is blank, then the system shall show 'Merchant City can NOT be empty...' with the cursor on the merchant city (MCITYI).
  • REQ-F-265 If all fields up to the merchant city are entered and the merchant zip is blank, then the system shall show 'Merchant Zip can NOT be empty...' with the cursor on the merchant zip (MZIPI).
  • REQ-F-266 When all eleven mandatory transaction fields are entered, the system shall pass the blank check and go on to the numeric and format checks.
  • REQ-F-267 If the transaction type code is not numeric, then the system shall show 'Type CD must be Numeric...' with the cursor on the type code and save nothing.
  • REQ-F-268 If the type code is numeric and the category code is not numeric, then the system shall show 'Category CD must be Numeric...' with the cursor on the category code and save nothing.
  • REQ-F-269 If the amount entered does not start with '-' or '+', followed by eight digits, a '.', and two digits, then the system shall reject it with 'Amount should be in format -99999999.99' and save nothing.
  • REQ-F-270 When the amount passes the format check, the system shall convert it to a signed number with two decimals, show it back in the form +99999999.99, and store that value as the transaction amount when the transaction is added.
  • REQ-F-271 If the origination date is not in the form YYYY-MM-DD (four digits, '-', two digits, '-', two digits), then the system shall reject the entry, show 'Orig Date should be in format YYYY-MM-DD' and save nothing.
  • REQ-F-272 If the processing date is not in the form YYYY-MM-DD, then the system shall reject the entry, show 'Proc Date should be in format YYYY-MM-DD' and save nothing.
  • REQ-F-273 If the origination date has the right form but the date-check service (CSUTLDTC) does not confirm it as a real calendar date (severity not '0000' and message number not '2513'), then the system shall show 'Orig Date - Not a valid date...' and save nothing.
  • REQ-F-274 If the origination date is accepted but the date-check service (CSUTLDTC) does not confirm the processing date as a real calendar date (severity not '0000' and message number not '2513'), then the system shall show 'Proc Date - Not a valid date...' and save nothing.
  • REQ-F-275 If all earlier checks pass and the Merchant ID is not entirely digits across its 9 positions, then the system shall reject the entry, show 'Merchant ID must be Numeric...' and put the cursor on Merchant ID.
  • REQ-F-276 The system shall stop the Transaction Add checks at the first failed check and show only that message, so a later check is made only after every earlier check has passed.
  • REQ-F-277 When every Transaction Add field passes validation and Confirm is 'Y' or 'y', the system shall add the transaction.
  • REQ-F-278 When a confirmed transaction is added, the system shall find the highest transaction number on the transaction file by reading backward from the end, and give the new transaction that number plus 1 as a 16-digit, zero-padded number.
  • REQ-F-279 When reading backward finds no transaction on the file (end of file), the system shall count the highest number as zero, so the new transaction is numbered 0000000000000001.
  • REQ-F-280 If the lookup of the highest transaction number fails, then the system shall add nothing and show 'Transaction ID NOT found...' when the start position is not found, or 'Unable to lookup Transaction...' for any other error, with the cursor on Account ID.
  • REQ-F-281 When a confirmed transaction has been given its new number, the system shall write a new record to the transaction file (TRANSACT) with that number, the entered type, category, source, description, amount, merchant ID, name, city and zip, origination and processing dates, and the card number found for the entered account or card.
  • REQ-F-282 When the new transaction is written successfully, the system shall clear every field and show in green 'Transaction added successfully. Your Tran ID is <number>.'
  • REQ-F-283 If writing the new transaction fails because the number already exists, then the system shall show 'Tran ID already exist...' with the cursor on Account ID and keep the entries.
  • REQ-N-015 If writing the new transaction fails for any other reason, then the system shall show 'Unable to Add Transaction...' with the cursor on Account ID and log the response codes.
  • REQ-F-284 When every field passes validation and Confirm is 'N', 'n' or left blank, the system shall redisplay the Transaction Add screen with 'Confirm to add this transaction...' and the cursor on Confirm, and add nothing.
  • REQ-F-285 If every field passes validation and Confirm holds any value other than 'Y', 'N', 'n' or blank, then the system shall redisplay the Transaction Add screen with 'Invalid value. Valid values are (Y/N)...' and the cursor on Confirm, and add nothing.
  • REQ-F-286 The system shall pass the caller's 10-character date and 10-character format mask to the date conversion service (CEEDAYS) and record the returned severity and message number as 4-digit values in its result.
  • REQ-F-287 The system shall return an 80-character result made of the severity, 'Mesg Code:', the message number, the result text, 'TstDate:' with the tested date and 'Mask used:' with the mask, and shall set the program return code to the severity.
  • REQ-F-288 When the date conversion service returns an all-zero feedback token for the date and mask it was given, the system shall set the result text to 'Date is valid'.
  • REQ-F-289 If the date conversion service reports insufficient data (feedback X'000309CB59C3C5C5', message 2507), then the system shall set the result text to 'Insufficient'.
  • REQ-F-290 If the date conversion service reports a bad date value (feedback X'000309CC59C3C5C5', severity 3, message 2508), then the system shall set the result text to 'Datevalue error'.
  • REQ-F-291 If the date conversion service reports an invalid era (feedback X'000309CD59C3C5C5', message 2509), then the system shall set the result text to 'Invalid Era'.
  • REQ-F-292 If the date conversion service reports an unsupported date range (feedback X'000309D159C3C5C5', message 2513), then the system shall set the result text to 'Unsupp. Range'.
  • REQ-F-293 If the date conversion service reports an invalid month (feedback X'000309D559C3C5C5', message 2517), then the system shall set the result text to 'Invalid month'.
  • REQ-F-294 If the date conversion service reports a bad format mask (feedback X'000309D659C3C5C5', message 2518), then the system shall set the result text to 'Bad Pic String'.
  • REQ-F-295 If the date conversion service reports a year-in-era of zero (feedback X'000309D959C3C5C5', message 2521), then the system shall set the result text to 'YearInEra is 0'.
  • REQ-F-296 If the date conversion service reports that the date contains non-numeric characters, then the system shall return the result text 'Nonnumeric data' together with the service's severity and message code, so the caller treats the date as invalid.
  • REQ-F-297 If the date conversion feedback matches none of the recognised tokens, then the system shall set the result text to 'Date is invalid'.
  • REQ-F-298 If the returned severity is not '0000' and the message number is not '2513', then the calling screens (report date range, transaction add) shall treat the date as invalid and show their error, for example 'Start Date - Not a valid date...' or 'Orig Date - Not a valid date...'.

J06 Request a transaction report

Card services agent · Submit a monthly, yearly or custom-period transaction report for printing.

  1. Login Screen COSGN0A: Sign in with user ID and password
  2. Main Menu COMEN1A: Choose option 9, Transaction Reports
  3. Transaction Reports CORPT0A: Choose Monthly, Yearly or Custom, entering start and end dates for a custom period
  4. Transaction Reports CORPT0A: Correct the dates if an error is shown
  5. Transaction Reports CORPT0A: Type Y to confirm and press Enter to submit the report
  6. Main Menu COMEN1A: Press F3 to return to the main menu
7 capabilities, 43 requirements
  • Set report period for transaction reports rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#21
  • Reach and move around the transaction report screen rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#22
  • Choose a report type and a valid custom period rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#23
  • Confirm and submit a transaction report for printing rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#24
  • Validate a date against a format mask rec/CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#35
  • Extract transactions for a reporting period rec/CustomerAccountSelf-Service/DailyTransactionProcessingandReporting#15
  • Run the transaction report job rec/CustomerAccountSelf-Service/DailyTransactionProcessingandReporting#16
  • REQ-F-171 When the monthly option is blank and the yearly option is marked, the system shall set the report period from January 1 to December 31 of the current year and submit the report job.
  • REQ-F-172 When the operator selects the monthly report option, the system shall set the report period from the first to the last day of the current month and submit the report job.
  • REQ-N-007 When the transaction report program (CR00) starts with no session data, the system shall send the user to the sign-on screen (COSGN00C).
  • REQ-F-173 When the user first arrives at the transaction report screen from another screen, the system shall show an empty report screen with the cursor on Monthly.
  • REQ-F-174 When the user presses PF3 on the transaction report screen, the system shall return to the main menu (COMEN01C).
  • REQ-F-175 When the user presses Enter on the transaction report screen, the system shall process the report request.
  • REQ-F-176 If the user presses any key other than Enter or PF3 on the transaction report screen, then the system shall show 'Invalid key pressed. Please see below...' with the cursor on Monthly.
  • REQ-F-177 When more than one report type is marked, the system shall process only the first in the order Monthly, Yearly, Custom and ignore the others.
  • REQ-F-178 If none of Monthly, Yearly or Custom is marked, then the system shall show 'Select a report type to print report...' with the cursor on Monthly and submit nothing.
  • REQ-F-179 If a Custom report is requested and a start or end month, day or year is blank, then the system shall check the parts in the order start month, start day, start year, end month, end day, end year, show the message for the first blank part, put the cursor on that part and submit nothing.
  • REQ-F-180 When all custom date parts are entered, the system shall convert each month and day to a two-digit number and each year to a four-digit number before checking them.
  • REQ-F-181 If a custom start or end month is above '12' or not numeric, then the system shall show 'Start Date - Not a valid Month...' or 'End Date - Not a valid Month...', put the cursor on that month and submit nothing.
  • REQ-F-182 If a custom start or end day is above '31' or not numeric, then the system shall show 'Start Date - Not a valid Day...' or 'End Date - Not a valid Day...', put the cursor on that day and submit nothing.
  • REQ-F-183 If a custom start or end year is not numeric, then the system shall show 'Start Date - Not a valid Year...' or 'End Date - Not a valid Year...', put the cursor on that year and submit nothing.
  • REQ-F-184 If the custom start date, checked as YYYY-MM-DD by the date utility (CSUTLDTC), is not a real calendar date, then the system shall show 'Start Date - Not a valid date...', put the cursor on the start month and submit nothing, while accepting a date the utility reports only as outside its supported range (message number '2513').
  • REQ-F-185 If the custom end date, checked as YYYY-MM-DD by the date utility (CSUTLDTC), is not a real calendar date, then the system shall show 'End Date - Not a valid date...', put the cursor on the end month and submit nothing, while accepting a date reported only as outside the supported range (message number '2513').
  • REQ-F-186 When a Custom report's dates pass every check, the system shall use the entered start and end dates as the report period, name the report 'Custom' and go on to submit the report job.
  • REQ-F-187 When a report request has passed its checks and the Confirm field is blank, the system shall show 'Please confirm to print the <report name> report...' (for example Monthly, Yearly or Custom), put the cursor on Confirm and submit nothing.
  • REQ-F-188 When the Confirm field is 'Y' or 'y', the system shall submit the report job (TRNRPT00) to the batch job queue, clear the screen and show '<report name> report submitted for printing ...' in green.
  • REQ-F-189 When the Confirm field is 'N' or 'n', the system shall clear all entry fields, submit nothing, and show the screen again with no message and the cursor on Monthly.
  • REQ-F-190 If the Confirm field holds any value other than 'Y', 'y', 'N' or 'n', then the system shall show '"<value>" is not a valid value to confirm...', put the cursor on Confirm and submit nothing.
  • REQ-F-191 When the user confirms a report request with 'Y' or 'y', the system shall put the report start and end dates into the job's selection parameters (PARM-START-DATE, PARM-END-DATE) and date card (DATEPARM) as 'YYYY-MM-DD YYYY-MM-DD'.
  • REQ-F-192 When the request is confirmed, the system shall write the job stream to the job queue 'JOBS' one 80-character line at a time, from the first line up to and including the '/*EOF' line (or a blank line), and never more than 1000 lines.
  • REQ-F-193 If writing a line of the report job to the job queue 'JOBS' fails, then the system shall stop writing further lines and show 'Unable to Write TDQ (JOBS)...' with the cursor on the Monthly field.
  • REQ-F-194 When a report job has been submitted without error, the system shall clear all entry fields and show in green '<report name> report submitted for printing ...' with the cursor on the Monthly field.
  • REQ-F-286 The system shall pass the caller's 10-character date and 10-character format mask to the date conversion service (CEEDAYS) and record the returned severity and message number as 4-digit values in its result.
  • REQ-F-287 The system shall return an 80-character result made of the severity, 'Mesg Code:', the message number, the result text, 'TstDate:' with the tested date and 'Mask used:' with the mask, and shall set the program return code to the severity.
  • REQ-F-288 When the date conversion service returns an all-zero feedback token for the date and mask it was given, the system shall set the result text to 'Date is valid'.
  • REQ-F-289 If the date conversion service reports insufficient data (feedback X'000309CB59C3C5C5', message 2507), then the system shall set the result text to 'Insufficient'.
  • REQ-F-290 If the date conversion service reports a bad date value (feedback X'000309CC59C3C5C5', severity 3, message 2508), then the system shall set the result text to 'Datevalue error'.
  • REQ-F-291 If the date conversion service reports an invalid era (feedback X'000309CD59C3C5C5', message 2509), then the system shall set the result text to 'Invalid Era'.
  • REQ-F-292 If the date conversion service reports an unsupported date range (feedback X'000309D159C3C5C5', message 2513), then the system shall set the result text to 'Unsupp. Range'.
  • REQ-F-293 If the date conversion service reports an invalid month (feedback X'000309D559C3C5C5', message 2517), then the system shall set the result text to 'Invalid month'.
  • REQ-F-294 If the date conversion service reports a bad format mask (feedback X'000309D659C3C5C5', message 2518), then the system shall set the result text to 'Bad Pic String'.
  • REQ-F-295 If the date conversion service reports a year-in-era of zero (feedback X'000309D959C3C5C5', message 2521), then the system shall set the result text to 'YearInEra is 0'.
  • REQ-F-296 If the date conversion service reports that the date contains non-numeric characters, then the system shall return the result text 'Nonnumeric data' together with the service's severity and message code, so the caller treats the date as invalid.
  • REQ-F-297 If the date conversion feedback matches none of the recognised tokens, then the system shall set the result text to 'Date is invalid'.
  • REQ-F-298 If the returned severity is not '0000' and the message number is not '2513', then the calling screens (report date range, transaction add) shall treat the date as invalid and show their error, for example 'Start Date - Not a valid date...' or 'Orig Date - Not a valid date...'.
  • REQ-F-074 The system shall first copy every record of the transaction master (AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS) into a new generation of the transaction backup (AWS.M2.CARDDEMO.TRANSACT.BKUP) of 350-byte records, cataloged on success and discarded on failure.
  • REQ-F-075 When the transaction backup for the run has been created, the system shall keep only transactions whose processing date (TRAN-PROC-DT) is within the report date range inclusive, sort them ascending by card number, and write them to a new generation of the daily transaction extract (AWS.M2.CARDDEMO.TRANSACT.DALY).
  • REQ-F-077 When the run is requested from the online report screen, the system shall use the start and end dates of that request as the date range.
  • REQ-F-080 When the daily transaction extract for the run has been created, the system shall run the report program (CBTRN03C) against that extract and the card cross-reference, transaction type, transaction category and report date parameter files, and write a new generation of the transaction report (AWS.M2.CARDDEMO.TRANREPT) of 133-byte lines.
  • REQ-F-081 When the report is requested from the online report screen, the system shall take the report date parameters from the dates entered on that request instead of the stored date parameter file.

Customer Data Setup

J07 Find and view a card

Card services agent · Find a caller's card in the card list by account or card number and check its embossed name, status and expiry date.

  1. Login Screen COSGN0A: Sign in with user ID and password.
  2. Main Menu COMEN1A: Choose option 3, Credit Card List.
  3. List Credit Cards CCRDLIA: Enter the caller's account number and/or card number to filter the list, and page forward (F8) or back (F7) if needed; correct the filter if it is rejected.
  4. List Credit Cards CCRDLIA: Type S next to the card and press Enter.
  5. View Credit Card Detail CCRDSLA: Read the card's name on card, active status and expiry date.
  6. List Credit Cards CCRDLIA: Press F3 to go back to the card list, which starts again from page 1.
  7. Main Menu COMEN1A: Press F3 to return to the main menu.
5 capabilities, 46 requirements
  • Browse and page the card list rec/CustomerDataSetup/CreditCardListDetailViewandUpdate#1
  • Filter the card list by account and card number rec/CustomerDataSetup/CreditCardListDetailViewandUpdate#2
  • Select a card to view or update rec/CustomerDataSetup/CreditCardListDetailViewandUpdate#3
  • Search and view card details rec/CustomerDataSetup/CreditCardListDetailViewandUpdate#4
  • Enter and leave the card detail screen rec/CustomerDataSetup/CreditCardListDetailViewandUpdate#5
  • REQ-F-001 When the card list is started from the main menu, the system shall show the first 7 cards from the beginning of the card file.
  • REQ-F-002 When the card list is started from another program with context 'enter' (from main menu option 3, or on return from card detail or card update), the system shall clear the saved first and last card positions, set the page to 1 and the last-page flag to 'not shown', and not read any screen input.
  • REQ-F-003 When the user arrives with PF3 from another program (such as leaving card detail or card update), or the list is re-entered from another program, the system shall reset the session to page 1 as a regular user and list the cards from the beginning of the card file.
  • REQ-F-004 While the card list fills a page going forward, when a card record passes the account and card-number filters, the system shall add its card number, account number and active status as the next row and, if it is the first row and the page number is 0, set the page number to 1.
  • REQ-F-005 When a page reaches 7 cards, the system shall stop filling the page and read one more card record ahead, without applying the filters, to decide whether a next page exists.
  • REQ-F-006 When the look-ahead read after a full page finds another card record, the system shall set the next page indicator to 'Y' and remember that card as the start of the next page.
  • REQ-F-007 When a page is filled with the maximum of 7 cards and reading one card further reaches the end of the card file, the system shall record that no next page exists and, if no other message is set, show 'NO MORE RECORDS TO SHOW'.
  • REQ-F-008 When the end of the card file is reached before the page holds 7 cards, the system shall stop reading, record that no next page exists, and show 'NO MORE RECORDS TO SHOW' if no other message is set.
  • REQ-F-009 When the end of the card file is reached on page 1 with no card listed, the system shall show 'NO RECORDS FOUND FOR THIS SEARCH CONDITION.' instead of 'NO MORE RECORDS TO SHOW'.
  • REQ-F-010 When there is no input error and the user presses PF8 while a next page exists ('Y'), the system shall add one to the page number and list cards starting from the card found by the look-ahead read after the last card shown.
  • REQ-F-011 When there is no input error, exit, page change or valid selection (for example Enter with nothing selected, or PF8 with no next page), the system shall redisplay cards, applying any filters, starting from the first card of the page currently shown.
  • REQ-F-012 When there is no input error and the user presses PF7 while on page 1, the system shall redisplay page 1 starting from its first card with the message 'NO PREVIOUS PAGES TO DISPLAY'.
  • REQ-F-013 When there is no input error and the user presses PF7 while not on page 1, the system shall subtract one from the page number and read backward from the first card of the current page, skipping that card itself.
  • REQ-F-014 While reading backward, the system shall place each card that passes the account and card-number filters into the rows from row 7 up to row 1, stop when row 1 is filled, and make the card in row 1 the new first card of the page.
  • REQ-F-015 When the user pages backward, the system shall set the next page indicator to 'Y' and remember the first card of the page just left as the start of the next page, so that PF8 returns to that page.
  • REQ-F-016 When the user presses any key other than PF8, the system shall reset the last-page flag to 'not shown'.
  • REQ-F-017 When the user presses PF8 on the last page for the first time, the system shall show the page again with the instruction 'TYPE S FOR DETAIL, U TO UPDATE ANY RECORD' and remember that the last page has been shown.
  • REQ-F-018 When the user presses PF8 again on a last page that has already been shown, the system shall redisplay that page with the message 'NO MORE PAGES TO DISPLAY'.
  • REQ-F-019 The system shall show 'TYPE S FOR DETAIL, U TO UPDATE ANY RECORD' on the card list in every case not otherwise covered, except when the message is 'NO RECORDS FOUND FOR THIS SEARCH CONDITION.' or a filter is in error.
  • REQ-F-020 When the user presses PF3 and the originating program is the card list, the system shall transfer control to the main menu program ('COMEN01C') with the shared context, ending the card list.
  • REQ-F-021 When the account filter or card filter is left blank or all zeros, the system shall treat that filter as not supplied and not filter on that field.
  • REQ-F-022 If the card filter supplied is non-numeric and no earlier error exists, then the system shall reject it with 'CARD ID FILTER,IF SUPPLIED MUST BE A 16 DIGIT NUMBER'.
  • REQ-F-023 If the account filter supplied is non-numeric, then the system shall reject it with 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER' and protect the selection rows.
  • REQ-F-024 When a numeric account filter or card filter is submitted, the system shall accept and save that account number or card number.
  • REQ-F-025 When a valid account filter is entered, the system shall list only cards whose account number equals the filter.
  • REQ-F-026 When a valid card number filter is entered, the system shall list only the card with that number, and when both filters are entered, the system shall list a card only if it matches both.
  • REQ-F-027 If an account or card filter entered is invalid, then the system shall redisplay the list screen with only the filter error message and no instruction line, re-reading the cards only when both filters are valid or blank.
  • REQ-F-028 If the filters are valid and the operator selects more than one row with 'S' or 'U', then the system shall reject the selection with 'PLEASE SELECT ONLY ONE RECORD TO VIEW OR UPDATE' and mark the affected rows in error.
  • REQ-F-029 If the filters are valid and the operator enters a code other than 'S', 'U' or blank, then the system shall reject it with 'INVALID ACTION CODE' and mark the affected rows in error.
  • REQ-F-030 When the filters are valid and a row is selected, the system shall record the selected row.
  • REQ-F-031 If the selection fails a check, then the system shall redisplay the list screen with the error message.
  • REQ-F-032 When the user types 'S' against one card row and presses Enter with no input error, the system shall transfer to card detail (COCRDSLC) passing that row's account and card number, with the card list as the previous program and context 'enter'.
  • REQ-F-044 When a card lookup is made, the system shall read the card master (CARDDAT) by the 16-digit card number only, and shall not check that the card belongs to the account entered.
  • REQ-F-045 When the card is found, the system shall show ' Displaying requested details' with the card's embossed name, expiry month, expiry year and active status.
  • REQ-F-046 If no card exists with the requested card number, then the system shall reject the search, show both the account and the card number in red, and show 'Did not find cards for this search condition'.
  • REQ-F-047 If reading the card master fails for any reason other than not found, then the system shall reject the search, show the account in red and show 'File Error: READ on CARDDAT returned RESP <code>,RESP2 <code>'.
  • REQ-F-048 When the card detail screen is shown and no information message has been set, the system shall show the information message 'Please enter Account and Card Number'.
  • REQ-F-049 The system shall show the current error message (if any) on the error line and the information message on the information line of the card detail screen.
  • REQ-F-050 When the card detail screen is shown with session details, the system shall show the saved account number and card number, leaving a field empty when its saved value is zero.
  • REQ-F-051 When the card detail screen was reached from the card list (last screen COCRDLI, caller COCRDLIC), the system shall show the account and card fields as protected (not editable) in the default colour, and otherwise shall leave them editable.
  • REQ-F-052 If a search field fails its check, then the system shall show that field in red, and show '*' in red in a field left blank on resubmission, even if the fields are protected.
  • REQ-F-053 The system shall place the cursor on the account field when it is invalid or blank, otherwise on the card field when that is invalid or blank, and otherwise on the account field.
  • REQ-F-056 When the card detail program is entered for the first time from the card list (COCRDLIC) and PF3 was not pressed, the system shall use the account and card number passed by the list as already valid, without checking them again, then look up the card and show its details.
  • REQ-F-057 When the user presses PF3 (or PF15) on the card detail screen, the system shall transfer control to the program and transaction that called it (for example the card list COCRDLIC with transaction CCLI), or to the main menu COMEN01C with transaction CM00 when no caller is recorded.
  • REQ-F-058 When control leaves the card detail screen on PF3, the system shall pass the shared session details showing COCRDSLC / CCDL as the sender, the user type as regular user ('U'), the last screen as COCRDSL / CCRDSLA, and the next program's entry as a first entry.
  • REQ-N-001 The system shall mark every card detail screen it sends as awaiting re-entry and return under transaction CCDL, so that the user's next action is treated as a re-entry.

J08 Update a card

Card services agent · Change a card's embossed name, active status or expiry date after confirming the caller, and save it safely.

  1. Login Screen COSGN0A: Sign in with user ID and password.
  2. Main Menu COMEN1A: Choose option 3, Credit Card List.
  3. List Credit Cards CCRDLIA: Filter by the caller's account or card number, type U next to the card and press Enter.
  4. Update Credit Card Details CCRDUPA: Check the card details shown, change the name on card, active flag (Y/N) or expiry month/year, and press Enter to have the changes checked.
  5. Update Credit Card Details CCRDUPA: Fix any field the system rejects and press Enter again (or press F12 to discard the edits).
  6. Update Credit Card Details CCRDUPA: Press F5 to confirm and save, and read the result message.
  7. List Credit Cards CCRDLIA: Press F3 to go back to the card list.
  8. Main Menu COMEN1A: Press F3 to return to the main menu.
9 capabilities, 44 requirements
  • Browse and page the card list rec/CustomerDataSetup/CreditCardListDetailViewandUpdate#1
  • Filter the card list by account and card number rec/CustomerDataSetup/CreditCardListDetailViewandUpdate#2
  • Select a card to view or update rec/CustomerDataSetup/CreditCardListDetailViewandUpdate#3
  • Detect unchanged card details on update rec/CustomerDataSetup/CreditCardListDetailViewandUpdate#6
  • Find and show a card for update rec/CustomerDataSetup/CreditCardListDetailViewandUpdate#7
  • Edit and validate card details rec/CustomerDataSetup/CreditCardListDetailViewandUpdate#8
  • Confirm and save card changes rec/CustomerDataSetup/CreditCardListDetailViewandUpdate#9
  • Leave or restart card update rec/CustomerDataSetup/CreditCardListDetailViewandUpdate#10
  • Save card changes rec/CustomerDataSetup/CreditCardListDetailViewandUpdate#11
  • REQ-F-002 When the card list is started from another program with context 'enter' (from main menu option 3, or on return from card detail or card update), the system shall clear the saved first and last card positions, set the page to 1 and the last-page flag to 'not shown', and not read any screen input.
  • REQ-F-003 When the user arrives with PF3 from another program (such as leaving card detail or card update), or the list is re-entered from another program, the system shall reset the session to page 1 as a regular user and list the cards from the beginning of the card file.
  • REQ-F-019 The system shall show 'TYPE S FOR DETAIL, U TO UPDATE ANY RECORD' on the card list in every case not otherwise covered, except when the message is 'NO RECORDS FOUND FOR THIS SEARCH CONDITION.' or a filter is in error.
  • REQ-F-024 When a numeric account filter or card filter is submitted, the system shall accept and save that account number or card number.
  • REQ-F-025 When a valid account filter is entered, the system shall list only cards whose account number equals the filter.
  • REQ-F-026 When a valid card number filter is entered, the system shall list only the card with that number, and when both filters are entered, the system shall list a card only if it matches both.
  • REQ-F-030 When the filters are valid and a row is selected, the system shall record the selected row.
  • REQ-F-033 When the user types 'U' against one card row and presses Enter with no input error, the system shall transfer to card update (COCRDUPC) passing that row's account and card number, with the card list as the previous program and context 'enter'.
  • REQ-F-059 When the edited card data equals the fetched data ignoring case, the system shall set the no-change message, mark all detail fields valid and skip detailed edits.
  • REQ-F-060 While the update stage is validated ('N') or committed ('C'), the system shall mark all detail fields valid and skip detailed edits.
  • REQ-F-064 When the card update screen is redisplayed (not a first entry), the system shall show the account number and card number search keys, leaving each one blank when its value is zero.
  • REQ-F-073 If the card number is not on the card file, then the system shall flag both search keys as in error, show 'Did not find cards for this search condition' (unless an earlier message is already set), and keep the search screen.
  • REQ-F-074 If the card file read fails for any other reason, then the system shall flag an input error and show 'File Error: READ on CARDDAT returned RESP <code>' with the response codes.
  • REQ-F-075 When the requested card is found on the card file, the system shall keep as the card's original details the embossed name converted to upper case, the expiry year, month and day taken from the stored expiry date (positions 1-4, 6-7 and 9-10), the active status and the CVV code.
  • REQ-F-076 While the card details have just been fetched and are being shown unchanged (state 'S'), the system shall show, on redisplay, the card's stored embossed name, active status, expiry day, expiry month and expiry year as read from the card file, with the information message 'Details of selected card shown above'.
  • REQ-F-077 When the operator arrives at card update from the card list ('COCRDLIC') for the first time, or presses PF12 while the card list is the calling program, the system shall take the account and card number passed by the card list, read that card, mark the details as shown and display the update screen.
  • REQ-F-078 When the operator submits the card update screen with the embossed name, active status, expiry month or expiry year entered as '*' or left blank, the system shall treat that value as not supplied, and otherwise shall take the entry as the new value.
  • REQ-F-079 The system shall always take the expiry day exactly as returned by the screen, without the '*' or blank check, as the new expiry day written back to the card record.
  • REQ-F-080 When the entered card details equal the fetched details ignoring upper/lower case, the system shall skip the field checks, report 'No change detected with respect to values fetched.' and leave the details shown (state 'S') without asking for confirmation.
  • REQ-F-081 When card details are shown and the operator submits name, status or expiry values that differ (ignoring upper/lower case) from the stored ones, the system shall run the name, status, expiry month and expiry year checks.
  • REQ-F-082 If the changed card name is missing, '*', blank or zeros, then the system shall reject the change with 'Card name not provided' and show '*' in the name field in red.
  • REQ-F-083 If the changed card name contains anything other than letters A-Z, a-z and spaces, then the system shall reject the change with 'Card name can only contain alphabets and spaces' and show the name in red.
  • REQ-F-084 If the entered details differ from those fetched and the card active status is not supplied, is '0', or is anything other than uppercase 'Y' or 'N', then the system shall reject the input with 'Card Active Status must be Y or N', unless an earlier field already set a message.
  • REQ-F-085 If the changed expiry month is missing, '*', blank or zeros, or is not between 1 and 12, then the system shall reject the change with 'Card expiry month must be between 1 and 12' and show the month in red.
  • REQ-F-086 If the changed expiry year is missing, '*', blank or zeros, or is not between 1950 and 2099, then the system shall reject the change with 'Invalid card expiry year' and show the year in red.
  • REQ-F-087 When the expiry month or year was rejected because it was missing, blank or zeros, the system shall show '*' in that field in red.
  • REQ-F-088 When more than one card field fails its check, the system shall show only the message of the first failing check, in the order name, status, expiry month, expiry year.
  • REQ-F-089 If any changed value fails its check, then the system shall keep the screen in the changes-with-errors state ('E') and show 'Update card details presented above.' alongside the error message.
  • REQ-F-090 When the changed values pass all checks, the system shall move to awaiting confirmation (state 'N') and show 'Changes validated.Press F5 to save'.
  • REQ-F-091 While the edits still have errors (state 'E'), the system shall not save and shall show the card details again in the same state.
  • REQ-F-092 When the card update screen is redisplayed after the operator has entered changes (stage 'E', 'N', 'C', 'L' or 'F'), the system shall show the operator's entered embossed name, active status, expiry month and expiry year, and the card's original expiry day.
  • REQ-F-093 The system shall accept only Enter, PF3, PF5 when changes have been validated and await confirmation (state 'N'), and PF12 once card details have been fetched, treating any other key, including PF5 in any other state, as Enter.
  • REQ-F-094 When card details are already shown and the operator presses PF12, the system shall discard the unsaved edits, re-read the card and show its stored details again (state 'S').
  • REQ-F-095 While validated changes await confirmation (state 'N'), the system shall save the changes only when the operator presses PF5, and shall show the changes again in the same state without saving when any other accepted key is pressed.
  • REQ-F-096 If the PF5 save cannot read and lock the card record for update, then the system shall not write the card, set the lock-error state ('L'), and show 'Could not lock record for update' (if no other message is set) and 'Changes unsuccessful. Please try again'.
  • REQ-F-097 If, at the PF5 save, the locked card record differs from the values originally fetched in CVV, embossed name (compared in uppercase), expiry year, month or day, or active status, then the system shall not write the card, show 'Record changed by some one else. Please review', load the current stored values and return to showing details (state 'S').
  • REQ-F-098 If the locked rewrite of the card record fails, then the system shall set the update-failed state ('F') and show 'Changes unsuccessful. Please try again'.
  • REQ-F-099 When changes are awaiting confirmation ('N') and the operator presses PF5 and the save succeeds, the system shall show 'Changes committed to database' (state 'C').
  • REQ-F-100 When the operator presses PF3, or entered from the card list and the update has completed or failed and they press any key, the system shall commit its work and transfer control to the program and transaction that called it, or to the main menu (COMEN01C, transaction CM00) when no caller is recorded.
  • REQ-F-101 When the card update program exits and the operator had come from the card list, the system shall clear the selected account and card numbers before returning.
  • REQ-F-102 When the card update program exits, the system shall record itself (COCRDUPC, transaction CCUP) as the calling program, mark the session user type as a regular user and flag the next program as a fresh entry.
  • REQ-F-103 When a save has completed ('C') or failed ('L' or 'F') and the operator did not come from the card list, the system shall on the next interaction clear the update state and the account and card keys and show an empty search screen with 'Please enter Account and Card Number'.
  • REQ-F-104 When the locked card record is unchanged since it was fetched, the system shall rewrite the card with the entered embossed name, active status and expiry date built as year-month-day, keeping the card number and account, and show 'Changes committed to database'.
  • REQ-F-105 If the rewrite of the locked card record fails, then the system shall show 'Update of record failed' and 'Changes unsuccessful. Please try again'.

J09 Review and correct transaction types in the list

Administrator · Browse and filter the transaction types, then correct a description or delete an obsolete type straight from the list.

  1. Login Screen COSGN0A: Sign in as an administrator.
  2. Admin Menu COADM1A: Choose option 5, Transaction Type List/Update.
  3. Maintain Transaction Type CTRTLIA: Optionally filter by type code or description text, and page forward (F8) or back (F7) through the types.
  4. Maintain Transaction Type CTRTLIA: Mark one row U and type the new description, or mark it D, and press Enter; correct any rejected entry.
  5. Maintain Transaction Type CTRTLIA: Press F10 to confirm the highlighted update or delete, and read the outcome.
  6. Admin Menu COADM1A: Press F3 to save and return to the admin menu.
9 capabilities, 67 requirements
  • Enter and leave the transaction type list rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#2
  • Page through transaction types rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#3
  • Filter the transaction type list rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#4
  • Update transaction type descriptions from the list rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#5
  • Access to transaction type maintenance rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#6
  • Filter the transaction type list rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#7
  • Mark a list row for update or delete rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#8
  • Confirm and apply a list update or delete rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#9
  • Navigate from the transaction type list rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#10
  • REQ-F-012 When the transaction type list is entered from another program (such as option 5 of the admin menu), the system shall discard any earlier filters, row selections and paging position, start at the first page and treat the request as Enter.
  • REQ-F-014 When the operator presses PF3 on the transaction type list, the system shall commit work and return to the program it was entered from, or to the admin menu (COADM01C, transaction 'CA00') when it was started directly or from itself.
  • REQ-F-015 When the transaction type list receives input from its own screen (caller data is present and the previous program was 'COTRTLIC'), the system shall read the screen and then check the row actions, the description filter, the type code filter and finally whether any records match the filters, in that order.
  • REQ-F-016 When the first row of a page is read and the page number is still 0 (a fresh start of the list), the system shall set the page number to 1.
  • REQ-F-017 The system shall show at most 7 transaction types per page in ascending type-code order, limited to the type-code filter and the description pattern only when each filter has been accepted (type filter flag and description filter flag = '1').
  • REQ-F-018 When a page has been filled with 7 types and another matching type follows, the system shall record that a next page exists (next-page indicator 'Y') and keep that following type code as the start of the next page.
  • REQ-F-019 When the database has no more matching transaction types before 7 rows are filled, the system shall stop reading and record that no next page exists.
  • REQ-F-020 When the user presses F8 and a next page exists, the system shall show the page starting at the stored next type code (type code >= that code), add 1 to the page number and clear any row selections.
  • REQ-F-021 When the matching transaction types run out after the operator pressed F8 and no other message is pending, the system shall show 'No more pages for these search conditions'.
  • REQ-F-022 When the operator presses PF8 and there is no further page and the last page had not already been shown, the system shall show the information message 'Type U to update, D to delete any record' and remember that the last page has now been shown.
  • REQ-F-023 When the user presses F8 again after the last page has already been shown, the system shall show the same page again with the message 'No more pages to display'.
  • REQ-F-024 When the user presses F7 and the list is not on the first page, the system shall show the 7 matching types just before the current page's first code, in ascending order, subtract 1 from the page number, clear row selections and mark that a next page exists.
  • REQ-F-025 When the user presses F7 on the first page and there are no input errors, the system shall show the first page again from its first type code with the message 'No previous pages to display'.
  • REQ-F-026 When the operator presses PF7 and the page shown afterwards is page 1 (because page 1 was already shown, or because the list paged back from page 2), the system shall show 'No previous pages to display', unless a filter error or a completed delete or update message takes precedence.
  • REQ-F-027 When the list is on page 1 and no transaction type is read, the system shall show 'No records found for this search condition.'.
  • REQ-F-028 When no input error, page up, page down, exit, or delete or update request applies, the system shall re-read the current page starting from its first type code and show it.
  • REQ-F-029 When no delete or update outcome, filter error, delete or update prompt, or paging message applies, and either no informational message is set or another page exists, the system shall show the message 'Type U to update, D to delete any record'.
  • REQ-F-030 If the database cannot open or read the forward list of transaction types, then the system shall show an empty or partly filled page and a database error message naming the failed step.
  • REQ-F-031 If a previous-page read stops before all 7 rows are filled, because fewer than 7 earlier types match or the database fails, then the system shall stop reading and report a database error ('Error on fetch Cursor C-TR-TYPE-BACKWARD').
  • REQ-F-032 When the type code filter is blank, empty (low-values), zeros or '00', the system shall treat it as not supplied and list all type codes, with no error.
  • REQ-F-033 When a numeric type code filter is entered, the system shall list only the transaction type with that code.
  • REQ-F-034 If a type code filter is entered and is not numeric, then the system shall reject it with 'TYPE CODE FILTER,IF SUPPLIED MUST BE A 2 DIGIT NUMBER', show the filter in red with the cursor on it, lock the row selection fields and not re-read the list.
  • REQ-F-035 When the entered type code filter differs from the one last used, the system shall reset paging to the start, remember the new filter, and mark the filter as changed so that a pending F10 confirmation is treated as Enter.
  • REQ-F-036 When the entered type code filter equals the one last used, or both the entered and the previous filter are empty, the system shall keep the current paging and mark the filter as unchanged.
  • REQ-F-037 When the description filter is left blank, the system shall apply no description filter, so the list, paging and record count include every description.
  • REQ-F-038 When a description filter is entered, the system shall list, page and count only transaction types whose description contains the entered text (trimmed and wrapped in '%' for a contains match).
  • REQ-F-039 When the description filter entered differs from the one used for the previous screen (blank and blank count as the same), the system shall restart paging from the first page, remember the new filter and ignore any row actions entered on that screen.
  • REQ-F-040 When no delete or update has just completed and the type code filter or the description filter is in error, the system shall show no information message, so that only the filter error message (for example 'TYPE CODE FILTER,IF SUPPLIED MUST BE A 2 DIGIT NUMBER' or 'No Records found for these filter conditions') is shown.
  • REQ-F-041 When the operator submits the transaction type list screen, the system shall capture the type code and description filters and, for each of the 7 rows, the action code, the type code and the description.
  • REQ-F-042 When a row's description field holds only '*' or is blank, the system shall treat the description as not entered, and otherwise shall use the entered text with leading and trailing spaces removed.
  • REQ-F-043 When a transaction type row marked 'U' is submitted and the entered description matches the stored description, ignoring upper/lower case and leading or trailing spaces, the system shall show 'No change detected with respect to database values.' and skip the remaining description checks for that row.
  • REQ-F-044 When the entered description of a row marked 'U' differs from the stored description, the system shall treat the row as changed and check the first 50 characters of the description as a required letters-and-digits field named 'Transaction Desc'.
  • REQ-F-045 If a changed description is not entered (blank or '*'), then the system shall reject the input and show 'Transaction Desc must be supplied.', unless an earlier message has already been set.
  • REQ-F-046 If a changed description contains any character other than a letter, a digit or a space, then the system shall reject the input and show 'Transaction Desc can have numbers or alphabets only.', unless an earlier message has already been set.
  • REQ-F-047 If a description entered for update fails its checks, then the system shall show that description in red with the cursor on it, and shall show a description that was not entered as '*'.
  • REQ-F-048 When a row is marked 'U' as the only valid action on the screen and the operator has typed a description that differs from the stored one and is not blank, the system shall show the operator's typed description on that row instead of the stored description.
  • REQ-F-049 When a row is not the single valid 'U' action on the screen, or it is but the typed description does not differ from the stored one, the system shall show the stored transaction type description on that row.
  • REQ-F-050 If the submitted screen has an input error, then the system shall show the error message and stay on the list screen rather than act on any key pressed.
  • REQ-F-051 If the submitted screen has an input error but both the type code filter and the description filter are acceptable, then the system shall re-read the current page starting from its first type code before showing the error.
  • REQ-F-052 When neither the type filter nor the description filter holds a usable value (both blank, or the type filter is blank or not numeric with no description), the system shall skip the check that the filters match any record.
  • REQ-F-053 When at least one filter holds a usable value, the system shall count the transaction types whose type code equals the type filter (if one was given) and whose description contains the description filter text (if one was given).
  • REQ-F-054 If no transaction type matches the supplied filters, then the system shall treat the input as an error, show 'No Records found for these filter conditions', show each supplied filter in red with the cursor on it, and lock the row selection fields.
  • REQ-F-055 If the database count of matching transaction types fails, then the system shall treat the input as an error and, unless another message is already set, show a database error message built from 'Error reading TRANSACTION_TYPE table ' and the SQL code.
  • REQ-F-056 When the user has changed the transaction type filter or the description filter, the system shall clear every row action code and skip all row action checks for that submission.
  • REQ-F-057 When the filters are unchanged, the system shall count as an action every one of the 7 rows whose action code is not blank, and count separately the rows marked 'D' (delete) and 'U' (update).
  • REQ-F-058 When the filters are unchanged, the system shall remember the top-most row marked 'D' or 'U' as the selected row (0 if none) and note whether it differs from the row selected on the previous screen.
  • REQ-F-059 If a row's action code is anything other than 'D', 'U' or blank (including lower-case 'd' or 'u'), then the system shall highlight that row in error, reject the input and show 'Action code selected is invalid'.
  • REQ-F-060 If two to seven rows carry a non-blank action code, then the system shall highlight every row marked 'D' or 'U' in error, reject the input and show 'Please select only 1 action', replacing any 'Action code selected is invalid' message.
  • REQ-F-061 When a row is marked 'U', the system shall check that row's description, even if other rows are also marked.
  • REQ-F-062 When the user presses Enter with exactly one row marked 'D', no other row action and neither filter changed, the system shall highlight that row, remember that a delete is pending (delete-requested flag 'Y') and show 'Delete HIGHLIGHTED row ? Press F10 to confirm'.
  • REQ-F-063 When the user presses Enter with exactly one row marked 'U', no other row action and neither filter changed, the system shall highlight that row, remember that an update is pending (update-requested flag 'Y') and show 'Update HIGHLIGHTED row. Press F10 to save'.
  • REQ-F-064 When the user presses Enter with a row marked 'D' or 'U', the system shall show the same page again from its first type code, re-reading the list only when neither filter is in error.
  • REQ-F-065 When the user presses F10 and no delete or update is pending from the previous Enter, the system shall treat the key as Enter and just show the list again.
  • REQ-F-066 When the user presses F10 while a delete or update is pending but has changed the type filter, the description filter or which row is selected since the confirmation prompt, the system shall treat the key as Enter instead of carrying out the change.
  • REQ-F-067 When the user presses F10 while a delete or update is pending and neither filter nor the selected row has changed, the system shall delete the marked transaction type if the row is marked 'D', or save the new description if it is marked 'U'.
  • REQ-F-068 When the user presses PF10 to confirm a row marked 'U', and the type filter, description filter and row selection are unchanged since the screen was shown, the system shall replace that type code's stored description with the entered description, trimmed, in the transaction type table (CARDDEMO.TRANSACTION_TYPE), and commit the change.
  • REQ-F-069 When an update has been confirmed with PF10, the system shall re-read the list starting from the first type code on the current page and redisplay it, whether or not the update succeeded.
  • REQ-F-070 When the confirmed update succeeds and no deletion was confirmed in the same request, the system shall show the message 'HIGHLIGHTED row was updated'.
  • REQ-F-071 If the database finds no row for the type code being updated (SQLCODE +100), then the system shall show a message starting 'Record not found. Deleted by others ?' and leave the update pending for confirmation.
  • REQ-F-072 If the update hits a deadlock (SQLCODE -911), then the system shall show a message starting 'Deadlock. Someone else updating ?', treat the request as an input error and leave the update pending for confirmation.
  • REQ-F-073 If the update fails with any other negative database code, then the system shall show a message starting 'Update failed with' followed by the database error details, and leave the update pending for confirmation.
  • REQ-F-074 When the operator has marked one transaction type for delete and presses F10 without changing the filters or the selection, the system shall delete that type from the transaction type table (CARDDEMO.TRANSACTION_TYPE).
  • REQ-F-075 When the delete succeeds, the system shall commit the change, show 'HIGHLIGHTED row deleted.Hit Enter to continue', and start the next interaction from the first page with filters cleared.
  • REQ-F-076 If the database refuses the delete because other records still refer to the transaction type (SQLCODE -532), then the system shall delete nothing, keep the delete request pending, and show 'Please delete associated child records first:' followed by the database error details.
  • REQ-F-077 If the delete fails for any other database reason, then the system shall show 'Delete failed with message:' followed by the database error details and treat the delete as not done.
  • REQ-F-078 When the user presses PF3 on the list screen, the system shall commit and transfer control, with the shared context, to the admin menu program 'COADM01C'.
  • REQ-N-003 The system shall not check the user type before allowing updates or deletes of transaction types on the Transaction Type List screen.

J10 Add a transaction type

Administrator · Add a new transaction type code with its description so new kinds of transactions can be classified.

  1. Login Screen COSGN0A: Sign in as an administrator.
  2. Admin Menu COADM1A: Choose option 5, Transaction Type List/Update.
  3. Maintain Transaction Type CTRTLIA: Check the type is not already listed, then press F2 to add one.
  4. Transaction Type Update Screen CTRTUPA: Enter the new two-digit type code and press Enter; the system reports it is not on file.
  5. Transaction Type Update Screen CTRTUPA: Press F5 to create it, type the description and press Enter to have it checked; fix it if rejected.
  6. Transaction Type Update Screen CTRTUPA: Press F5 to save the new type and read the confirmation.
  7. Maintain Transaction Type CTRTLIA: Press F3 to go back to the transaction type list, which starts fresh.
  8. Admin Menu COADM1A: Press F3 to return to the admin menu.
9 capabilities, 48 requirements
  • Enter and leave the transaction type list rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#2
  • Navigate from the transaction type list rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#10
  • Look up a transaction type to maintain rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#11
  • Show maintenance screen values and messages rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#12
  • Exit the maintenance screen rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#15
  • Find a transaction type to maintain rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#16
  • Change a transaction type description rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#17
  • Add a new transaction type rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#18
  • Control maintenance screen keys and flow rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#20
  • REQ-F-013 When the operator returns to the list from the transaction type add/update screen (transaction 'CTTU') by pressing PF3, the system shall treat the key as Enter rather than exit and show the first page afresh, discarding previous filters, selections and paging.
  • REQ-F-014 When the operator presses PF3 on the transaction type list, the system shall commit work and return to the program it was entered from, or to the admin menu (COADM01C, transaction 'CA00') when it was started directly or from itself.
  • REQ-F-079 When the user presses PF2 on the list screen, the system shall transfer control, with the shared context, to the transaction type add/update program 'COTRTUPC'.
  • REQ-F-080 While the state is neither new-record entry ('R') nor awaiting save confirmation ('N'), when the transaction type code is blank, the system shall show 'Tran Type code must be supplied.', mark the code field '*' in red, return to asking for a code and skip all other checks.
  • REQ-F-081 While the state is neither 'R' nor 'N', when the transaction type code is not numeric, the system shall show 'Tran Type code must be numeric.', highlight the code in red, return to asking for a code and skip all other checks.
  • REQ-F-082 While the state is neither 'R' nor 'N', when the transaction type code is zero, the system shall show 'Tran Type code must not be zero.', highlight the code in red, return to asking for a code and skip all other checks.
  • REQ-F-083 When a transaction type code fails these checks, the system shall return to the 'details not fetched' state rather than keep an invalid-search-key state ('K').
  • REQ-F-084 While the state is neither 'R' nor 'N', when the code is a valid non-zero number and no record has been fetched yet, the system shall store the code as two digits with a leading zero and stop editing, so that the table is searched for that code.
  • REQ-F-085 When the maintenance screen looks up a transaction type code, the system shall first clear the previously held original details and the information message.
  • REQ-F-086 When the transaction type table (CARDDEMO.TRANSACTION_TYPE) returns a row for the requested code, the system shall mark the type as found and keep its code and description (to its stored length) as the original values used for display and for detecting the operator's later edits.
  • REQ-F-087 If the looked-up transaction type is not found or the read fails, then the system shall keep no original values.
  • REQ-F-088 If no transaction type row exists for the entered code, then the system shall mark the code as in error, show 'No record found for this key in database' unless another message is already set, and offer to add the record with 'Press F05 to add. F12 to cancel'.
  • REQ-F-089 When the entered code was not found ('X') and the operator submits the same code again without pressing F5, the system shall keep the previously captured code and description, ignore what was typed on the screen, skip all other checks, treat the code as valid and return to the 'details not fetched' state so the code is looked up again in the transaction type table.
  • REQ-F-090 When F5 is pressed in the not-found state ('X'), the system shall switch straight to new-record entry.
  • REQ-F-091 When the maintenance screen is shown for a fresh start (on arrival from the admin menu or the transaction type list, or when a finished, failed or cancelled action restarts the screen), the system shall show the information message 'Enter transaction type to be maintained'.
  • REQ-F-092 When the operator returns to the maintenance screen and no transaction type has been fetched yet (including after a blank or invalid type code), the system shall show the message 'Enter transaction type to be maintained'.
  • REQ-F-093 When the maintenance screen is showing a fetched transaction type, or a cancelled change has no original transaction type held, the system shall show the message 'Enter transaction type to be maintained'.
  • REQ-F-094 When the maintenance screen is redisplayed in a state that has no information message of its own and no message is already set (for example after a delete the database refused because child records exist), the system shall show the information message 'Enter transaction type to be maintained'.
  • REQ-F-095 When the operator's changes failed validation, or the operator cancelled a validated change while an original transaction type is still held, the system shall show the message 'Update transaction type details shown.'
  • REQ-F-096 When the screen is redisplayed after the first entry and the state is record shown ('S'), awaiting delete confirmation ('9'), delete failed ('6'), delete done ('7'), update cancelled ('B') or any state without its own display rule, the system shall show the code and description as stored on the table, discarding typed values and clearing description error marks.
  • REQ-F-097 When the screen is redisplayed after the first entry and the state is changes entered ('E', 'N', 'L' or 'F'), not found ('X'), invalid key ('K'), new record ('R') or update done ('C'), the system shall show the transaction type code and description as the operator entered them.
  • REQ-F-098 When the entered details have failed validation ('E') or have passed validation and are waiting for F5 confirmation ('N'), the system shall leave the maintenance state unchanged, so the screen is shown again with the entered values and the message for that state.
  • REQ-F-099 When a key press is not an exit, a first entry, a delete, save or cancel step handled on its own, or a key not allowed in the current state, the system shall read the screen input, validate it, decide the next action and redisplay the screen.
  • REQ-F-106 When the operator presses F3 on the Transaction Type Maintenance screen, the system shall commit the database work (SYNCPOINT) and transfer control to the calling program and transaction recorded for the session, or to the Admin menu (COADM01C, transaction 'CA00') when none is recorded.
  • REQ-F-107 When the maintenance screen is entered from the Admin menu (COADM01C) or the Transaction Type list (COTRTLIC), the system shall clear the recorded caller, so that F3 always returns the operator to the Admin menu (COADM01C, 'CA00') and never to the Transaction Type list.
  • REQ-F-108 When the maintenance screen is entered for the first time from the Admin menu or the transaction type list, or is started with no prior context, the system shall clear any saved maintenance context and show an empty search screen asking 'Enter transaction type to be maintained'.
  • REQ-F-109 When the operator presses Enter on the Transaction Type Maintenance screen while not adding a new record and not awaiting confirmation of changes, the system shall check the entered transaction type code before looking it up.
  • REQ-F-110 If the transaction type code is left blank or entered as '*', then the system shall show 'Tran Type code must be supplied.' and keep waiting for a search code without looking anything up.
  • REQ-F-111 If the transaction type code is supplied but is not a number, then the system shall show 'Tran Type code must be numeric.', mark the search code as invalid and not look anything up.
  • REQ-F-112 If the transaction type code is a number equal to zero, then the system shall show 'Tran Type code must not be zero.', mark the search code as invalid and not look anything up.
  • REQ-F-113 When the transaction type code is a supplied, non-zero number, the system shall accept it, convert it to a two-digit code padded with a leading zero, and use that as the lookup key.
  • REQ-F-114 If more than one check fails on the same entry, then the system shall show only the first error message found.
  • REQ-F-115 When a valid transaction type code is entered on the search screen, the system shall look it up in the transaction type table and show its details (state 'S') if found, or report it as not found (state 'X') with the prompt 'Press F05 to add. F12 to cancel'.
  • REQ-F-116 While the searched code was not found, when the operator re-sends the same code without pressing F5, the system shall treat it as a new search and look the code up again.
  • REQ-F-117 When the operator presses Enter after changing the description of a displayed or new transaction type, the system shall mark the changes as not OK (state 'E') and then validate the description (up to 50 characters).
  • REQ-F-118 When the operator enters '*' or leaves the transaction type description blank, the system shall treat the description as not supplied, and otherwise keep the entry with leading and trailing spaces removed.
  • REQ-F-119 If the changed description is blank (spaces or '*'), then the system shall show 'Transaction Desc must be supplied.' and keep the changes-not-OK state ('E').
  • REQ-F-120 If the changed description contains any character other than letters, digits and spaces, then the system shall show 'Transaction Desc can have numbers or alphabets only.' and keep the changes-not-OK state ('E').
  • REQ-F-121 When the changed description passes validation, the system shall move to changes-validated-awaiting-confirmation (state 'N') and show 'Changes validated.Press F5 to save'.
  • REQ-F-122 When the operator changes the shown or new details and the changes fail an edit, the system shall move to changes not OK (state 'E'), and when nothing changed, the system shall keep showing the details.
  • REQ-F-123 When the operator presses F5 after the changes have been validated and are awaiting confirmation (state 'N'), the system shall update that type's description in the transaction type table and then show the outcome on the screen.
  • REQ-F-130 When F5 is pressed after the searched code was not found (state 'X'), the system shall switch to creating a new record (state 'R') and prompt 'Enter new transaction type details.'.
  • REQ-F-131 When the save finds no row for the type (SQLCODE +100), the system shall insert the type code and description as a new row in CARDDEMO.TRANSACTION_TYPE, commit it and show 'Changes committed to database'.
  • REQ-F-132 If the insert of a new type fails, then the system shall show the error 'Error inserting record into: TRANSACTION_TYPE Table. SQLCODE:…' with the database error text, yet set the outcome to committed ('C') and show 'Changes committed to database' instead of 'Changes unsuccessful'.
  • REQ-F-140 The system shall accept F3 (exit) in every state, and Enter in every state except while a delete is awaiting confirmation.
  • REQ-F-141 The system shall accept F4 only when record details are shown or a delete is awaiting confirmation; F5 only when changes are validated, the record was not found, or a delete is in progress; and F12 only when changes are validated, details are shown, the record was not found, a delete is awaiting confirmation, or a new record is being created.
  • REQ-F-142 If the key pressed is not allowed in the current state, then the system shall redisplay with the message 'Invalid key pressed' (when no other message is already set) and take no other action.
  • REQ-F-143 When F12 is pressed while details are shown, a new record is being entered or the searched type was not found, or the previous step ended in a saved change, a failed save, a lock error, a completed or failed delete, or a cancelled change with no original details, the system shall start over at the empty search screen.

J11 Change or delete a transaction type

Administrator · Look up a transaction type by code and either correct its description or delete it, confirming before anything is changed.

  1. Login Screen COSGN0A: Sign in as an administrator.
  2. Admin Menu COADM1A: Choose option 6, Transaction Type Maintenance.
  3. Transaction Type Update Screen CTRTUPA: Enter the transaction type code and press Enter to see its description; correct the code if rejected.
  4. Transaction Type Update Screen CTRTUPA: Change the description and press Enter to have it checked, or press F4 to ask to delete the type.
  5. Transaction Type Update Screen CTRTUPA: Press F5 to save the change, or F4 again to confirm the delete; press F12 instead to cancel.
  6. Admin Menu COADM1A: Press F3 to commit and return to the admin menu.
9 capabilities, 57 requirements
  • Look up a transaction type to maintain rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#11
  • Show maintenance screen values and messages rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#12
  • Detect changes to a fetched transaction type rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#13
  • Cancel a pending maintenance change rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#14
  • Exit the maintenance screen rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#15
  • Find a transaction type to maintain rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#16
  • Change a transaction type description rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#17
  • Delete a transaction type rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#19
  • Control maintenance screen keys and flow rec/CustomerDataSetup/TransactionTypeReferenceDataMaintenance#20
  • REQ-F-080 While the state is neither new-record entry ('R') nor awaiting save confirmation ('N'), when the transaction type code is blank, the system shall show 'Tran Type code must be supplied.', mark the code field '*' in red, return to asking for a code and skip all other checks.
  • REQ-F-081 While the state is neither 'R' nor 'N', when the transaction type code is not numeric, the system shall show 'Tran Type code must be numeric.', highlight the code in red, return to asking for a code and skip all other checks.
  • REQ-F-082 While the state is neither 'R' nor 'N', when the transaction type code is zero, the system shall show 'Tran Type code must not be zero.', highlight the code in red, return to asking for a code and skip all other checks.
  • REQ-F-083 When a transaction type code fails these checks, the system shall return to the 'details not fetched' state rather than keep an invalid-search-key state ('K').
  • REQ-F-084 While the state is neither 'R' nor 'N', when the code is a valid non-zero number and no record has been fetched yet, the system shall store the code as two digits with a leading zero and stop editing, so that the table is searched for that code.
  • REQ-F-085 When the maintenance screen looks up a transaction type code, the system shall first clear the previously held original details and the information message.
  • REQ-F-086 When the transaction type table (CARDDEMO.TRANSACTION_TYPE) returns a row for the requested code, the system shall mark the type as found and keep its code and description (to its stored length) as the original values used for display and for detecting the operator's later edits.
  • REQ-F-087 If the looked-up transaction type is not found or the read fails, then the system shall keep no original values.
  • REQ-F-091 When the maintenance screen is shown for a fresh start (on arrival from the admin menu or the transaction type list, or when a finished, failed or cancelled action restarts the screen), the system shall show the information message 'Enter transaction type to be maintained'.
  • REQ-F-092 When the operator returns to the maintenance screen and no transaction type has been fetched yet (including after a blank or invalid type code), the system shall show the message 'Enter transaction type to be maintained'.
  • REQ-F-093 When the maintenance screen is showing a fetched transaction type, or a cancelled change has no original transaction type held, the system shall show the message 'Enter transaction type to be maintained'.
  • REQ-F-094 When the maintenance screen is redisplayed in a state that has no information message of its own and no message is already set (for example after a delete the database refused because child records exist), the system shall show the information message 'Enter transaction type to be maintained'.
  • REQ-F-095 When the operator's changes failed validation, or the operator cancelled a validated change while an original transaction type is still held, the system shall show the message 'Update transaction type details shown.'
  • REQ-F-096 When the screen is redisplayed after the first entry and the state is record shown ('S'), awaiting delete confirmation ('9'), delete failed ('6'), delete done ('7'), update cancelled ('B') or any state without its own display rule, the system shall show the code and description as stored on the table, discarding typed values and clearing description error marks.
  • REQ-F-097 When the screen is redisplayed after the first entry and the state is changes entered ('E', 'N', 'L' or 'F'), not found ('X'), invalid key ('K'), new record ('R') or update done ('C'), the system shall show the transaction type code and description as the operator entered them.
  • REQ-F-098 When the entered details have failed validation ('E') or have passed validation and are waiting for F5 confirmation ('N'), the system shall leave the maintenance state unchanged, so the screen is shown again with the entered values and the message for that state.
  • REQ-F-099 When a key press is not an exit, a first entry, a delete, save or cancel step handled on its own, or a key not allowed in the current state, the system shall read the screen input, validate it, decide the next action and redisplay the screen.
  • REQ-F-100 When the operator presses Enter on a transaction type, the system shall treat it as unchanged if the type code and the description match the values fetched, ignoring upper/lower case and leading or trailing spaces, and otherwise record that a change has occurred.
  • REQ-F-101 When no change is found, the system shall show 'No change detected with respect to values fetched.', leave the record in the show-details state without offering a save, and skip the description checks.
  • REQ-F-102 While the changes are already validated and awaiting F5 confirmation (state 'N') or already committed (state 'C'), the system shall skip the description checks and keep the current state.
  • REQ-F-103 When F12 is pressed while a validated change is waiting for F5 confirmation ('N'), the system shall ignore the screen input, show 'Update was cancelled' and redisplay the stored values for editing with 'Update transaction type details shown.'.
  • REQ-F-104 When F12 is pressed while a delete is waiting for confirmation ('9'), the system shall ignore the screen input, show 'Delete was cancelled' and return to asking for a transaction type.
  • REQ-F-105 When F12 is pressed on a shown record ('S'), the system shall restart the screen to ask for a new transaction type.
  • REQ-F-106 When the operator presses F3 on the Transaction Type Maintenance screen, the system shall commit the database work (SYNCPOINT) and transfer control to the calling program and transaction recorded for the session, or to the Admin menu (COADM01C, transaction 'CA00') when none is recorded.
  • REQ-F-107 When the maintenance screen is entered from the Admin menu (COADM01C) or the Transaction Type list (COTRTLIC), the system shall clear the recorded caller, so that F3 always returns the operator to the Admin menu (COADM01C, 'CA00') and never to the Transaction Type list.
  • REQ-F-108 When the maintenance screen is entered for the first time from the Admin menu or the transaction type list, or is started with no prior context, the system shall clear any saved maintenance context and show an empty search screen asking 'Enter transaction type to be maintained'.
  • REQ-F-109 When the operator presses Enter on the Transaction Type Maintenance screen while not adding a new record and not awaiting confirmation of changes, the system shall check the entered transaction type code before looking it up.
  • REQ-F-110 If the transaction type code is left blank or entered as '*', then the system shall show 'Tran Type code must be supplied.' and keep waiting for a search code without looking anything up.
  • REQ-F-111 If the transaction type code is supplied but is not a number, then the system shall show 'Tran Type code must be numeric.', mark the search code as invalid and not look anything up.
  • REQ-F-112 If the transaction type code is a number equal to zero, then the system shall show 'Tran Type code must not be zero.', mark the search code as invalid and not look anything up.
  • REQ-F-113 When the transaction type code is a supplied, non-zero number, the system shall accept it, convert it to a two-digit code padded with a leading zero, and use that as the lookup key.
  • REQ-F-114 If more than one check fails on the same entry, then the system shall show only the first error message found.
  • REQ-F-115 When a valid transaction type code is entered on the search screen, the system shall look it up in the transaction type table and show its details (state 'S') if found, or report it as not found (state 'X') with the prompt 'Press F05 to add. F12 to cancel'.
  • REQ-F-117 When the operator presses Enter after changing the description of a displayed or new transaction type, the system shall mark the changes as not OK (state 'E') and then validate the description (up to 50 characters).
  • REQ-F-118 When the operator enters '*' or leaves the transaction type description blank, the system shall treat the description as not supplied, and otherwise keep the entry with leading and trailing spaces removed.
  • REQ-F-119 If the changed description is blank (spaces or '*'), then the system shall show 'Transaction Desc must be supplied.' and keep the changes-not-OK state ('E').
  • REQ-F-120 If the changed description contains any character other than letters, digits and spaces, then the system shall show 'Transaction Desc can have numbers or alphabets only.' and keep the changes-not-OK state ('E').
  • REQ-F-121 When the changed description passes validation, the system shall move to changes-validated-awaiting-confirmation (state 'N') and show 'Changes validated.Press F5 to save'.
  • REQ-F-122 When the operator changes the shown or new details and the changes fail an edit, the system shall move to changes not OK (state 'E'), and when nothing changed, the system shall keep showing the details.
  • REQ-F-123 When the operator presses F5 after the changes have been validated and are awaiting confirmation (state 'N'), the system shall update that type's description in the transaction type table and then show the outcome on the screen.
  • REQ-F-124 When the description update succeeds, the system shall commit the change, set the outcome to committed ('C') and show 'Changes committed to database'.
  • REQ-F-125 If the update cannot lock the row (SQLCODE -911), then the system shall set the outcome to lock error ('L'), show 'Changes unsuccessful' and give the error 'Could not lock record for update'.
  • REQ-F-126 If the update fails with any other negative SQLCODE, then the system shall show the error 'Error updating: TRANSACTION_TYPE Table. SQLCODE:…' with the database error text, yet set the outcome to committed ('C') and show 'Changes committed to database' instead of 'Changes unsuccessful'.
  • REQ-F-127 If the save fails for any other database reason, then the system shall end in state 'F' showing 'Changes unsuccessful'.
  • REQ-F-128 When F12 is pressed while validated changes await confirmation (state 'N'), the system shall discard the pending save, show 'Update was cancelled' and mark the changes as backed out (state 'B').
  • REQ-F-129 While changes are backed out (state 'B') and the next input brings no new change, the system shall return to changes not OK (state 'E') so the operator can edit again, keeping states 'E' and 'N' otherwise unchanged in the decision step.
  • REQ-F-133 When a transaction type's details are on screen and the operator presses F4, the system shall not delete yet but shall ask for confirmation with the message 'Delete this record ? Press F4 to confirm', with all fields protected.
  • REQ-F-134 When the operator presses F4 again while the delete confirmation is pending, the system shall delete the transaction type with the code originally fetched for display (not any code typed since) from the transaction type table.
  • REQ-F-135 When the confirmed delete succeeds, the system shall commit the deletion and show 'Delete successful.'.
  • REQ-F-136 If the confirmed delete is refused because other records still refer to the transaction type (SQLCODE -532), then the system shall not delete it and shall show an error starting 'Please delete associated child records first:' followed by the SQL code and database message.
  • REQ-F-137 If the confirmed delete fails for any other database reason, then the system shall mark the delete as failed, show 'Changes unsuccessful' as the information message, and show an error starting 'Delete failed with message:' followed by the SQL code and database message.
  • REQ-F-138 When F12 is pressed while a delete awaits confirmation (state '9'), the system shall not delete the record, show 'Delete was cancelled' and return to the search state with details not fetched.
  • REQ-F-139 When the operator presses a key after a delete has succeeded or failed, the system shall start over and prompt for a new transaction type to search for.
  • REQ-F-140 The system shall accept F3 (exit) in every state, and Enter in every state except while a delete is awaiting confirmation.
  • REQ-F-141 The system shall accept F4 only when record details are shown or a delete is awaiting confirmation; F5 only when changes are validated, the record was not found, or a delete is in progress; and F12 only when changes are validated, details are shown, the record was not found, a delete is awaiting confirmation, or a new record is being created.
  • REQ-F-142 If the key pressed is not allowed in the current state, then the system shall redisplay with the message 'Invalid key pressed' (when no other message is already set) and take no other action.
  • REQ-F-143 When F12 is pressed while details are shown, a new record is being entered or the searched type was not found, or the previous step ended in a saved change, a failed save, a lock error, a completed or failed delete, or a cancelled change with no original details, the system shall start over at the empty search screen.

Unclassified

J12 Review an account's pending authorizations

Card services agent · Look up an account's recent card authorizations, page through them and open one to see its full details while the caller waits.

  1. Login Screen COSGN0A: Sign in with user ID and password.
  2. Main Menu COMEN1A: Choose option 11, Pending Authorization View.
  3. View Authorizations COPAU0A: Enter the account ID and press Enter to see the customer, limits, approved and declined totals and the first five authorizations; correct the account ID if an error is shown.
  4. View Authorizations COPAU0A: Press F8 and F7 to page forward and back through the authorizations, five at a time.
  5. View Authorizations COPAU0A: Type S next to an authorization and press Enter to open it.
  6. View Authorization Details COPAU1A: Review the authorization's card, amount, merchant, response and reason, and fraud status; press F8 to move to the next authorization on the account.
  7. View Authorizations COPAU0A: Press F3 to return to the authorization list.
  8. Main Menu COMEN1A: Press F3 to return to the main menu.
5 capabilities, 48 requirements
  • Inquire on an account's pending authorizations rec/No domain/CardAuthorizationandFraudManagement#9
  • Page through an account's pending authorizations rec/No domain/CardAuthorizationandFraudManagement#10
  • Select an authorization for detail rec/No domain/CardAuthorizationandFraudManagement#11
  • View pending authorization details rec/No domain/CardAuthorizationandFraudManagement#13
  • Navigate the authorization detail screen rec/No domain/CardAuthorizationandFraudManagement#14
  • REQ-F-082 When the pending authorization summary is started with no session data, the system shall start a new session, mark it as re-entered and show an empty screen with the cursor on the account number field.
  • REQ-F-083 When the summary screen is entered from another function for the first time, the system shall mark the session as re-entered, use the passed account number if it is numeric (otherwise treat it as not supplied), load the account details and first page of authorizations, and display the screen with a full erase.
  • REQ-F-084 When the operator presses Enter with the Account ID blank, the system shall flag an error, show 'Please enter Acct Id...', clear the working account, put the cursor on Account ID and load no account details or authorizations.
  • REQ-F-085 When the operator presses Enter with an Account ID that is not entirely numeric, the system shall show 'Acct Id must be Numeric ...', flag an error, clear the working account, put the cursor on Account ID and load no account details or authorizations.
  • REQ-F-086 When the operator presses Enter with a numeric Account ID, the system shall save it as the current account for the session, process any row selection, reset to the first page, and reload the account details and the first five pending authorizations.
  • REQ-F-087 When the Enter processing completes, the system shall redisplay the screen with the Account ID field showing the accepted account, or blank when the entry was rejected.
  • REQ-F-088 When a numeric account number is present, entered with Enter or passed in from the menu, the system shall look up the account's card cross-reference, account record, customer record and pending-authorization summary, and shall load the first page of authorizations only when a summary exists for the account.
  • REQ-F-089 When the card cross-reference for the account is found, the system shall save the customer ID and card number from it in the session for later screens.
  • REQ-F-090 The system shall show the customer name as the first word of the first name, a space, the middle initial, a space, and the last name.
  • REQ-F-091 The system shall show address line 1 as address lines 1 and 2 joined by a comma, and address line 2 as address line 3, the state code and the first 5 digits of the ZIP code joined by commas, cutting each address line at its first double space.
  • REQ-F-092 The system shall show the customer ID, the first phone number, and the account's credit limit and cash credit limit from the account master as signed amounts with two decimals.
  • REQ-F-093 When a pending authorization summary exists for the account, the system shall show its approved count, declined count, approved amount, declined amount, credit balance and cash balance.
  • REQ-F-094 When no pending authorization summary exists for the account, the system shall show the approved and declined counts and amounts and the credit and cash balances as zero, and shall not list any authorizations.
  • REQ-F-095 If reading the pending authorization summary fails for any reason other than not found, then the system shall flag an error, show ' System error while reading AUTH Summary: Code:' followed by the database status code, put the cursor on Account ID and show the totals as zero.
  • REQ-F-096 If no card cross-reference exists for the account, then the system shall show 'Account:<account> not found in XREF file. Resp:<code> Reas:<code>', and on any other read failure of file CXACAIX shall flag an error and show 'Account:<account> System error while reading XREF file. Resp:<code> Reas:<code>'.
  • REQ-F-097 If the account record is not on the account file, then the system shall show 'Account:<account> not found in ACCT file. Resp:<code> Reas:<code>', and on any other read failure of file ACCTDAT shall flag an error and show 'Account:<account> System error while reading ACCT file. Resp:<code> Reas:<code>'.
  • REQ-F-098 If the customer record is not on the customer file, then the system shall show 'Customer:<customer> not found in CUST file. Resp:<code> Reas:<code>', and on any other read failure of file CUSTDAT shall flag an error and show 'Customer:<customer> System error while reading CUST file. Resp:<code> Reas:<code>'.
  • REQ-F-099 When the user presses PF3 on the summary screen, the system shall transfer control to the main menu (COMEN01C), passing the session data.
  • REQ-F-100 If the user presses any key other than Enter, PF3, PF7 or PF8, then the system shall flag an error and redisplay the screen with the message 'Invalid key pressed. Please see below...' and the cursor on the account number field.
  • REQ-F-101 When a page of authorizations is loaded and no error is flagged, the system shall read up to 5 pending authorizations for the account into the list rows (on backward paging starting at the saved first key of that page), remember each page's first key and the last key shown, then read one more ahead to set whether a next page exists.
  • REQ-F-102 When the user pages forward (PF8), the system shall re-read the account's authorization summary and reposition at the last authorization shown when one exists, otherwise clear the start key.
  • REQ-F-103 When the user presses PF8 and a next page exists, the system shall clear the five list rows, load the next page of up to 5 pending authorizations and redisplay the screen without a full erase.
  • REQ-F-104 When the user presses PF8 and no further page of authorizations exists, the system shall keep the current list and show 'You are already at the bottom of the page...'.
  • REQ-F-105 When the operator presses PF7 and the current page number is greater than 1, the system shall step the page number back by one, reposition to the saved first authorization key of that page, and redisplay up to five authorizations starting from that key without erasing the screen.
  • REQ-F-106 When the operator presses PF7 and the current page number is 1 or less, the system shall show 'You are already at the top of the page...' and leave the list unchanged.
  • REQ-F-107 When an authorization is placed in the summary list, the system shall show it as approved 'A' when its response code is '00' and as declined 'D' for any other response code.
  • REQ-F-108 When an authorization is listed, the system shall show its approved amount with a sign and two decimals, its original date held as YYMMDD as MM/DD/YY, and its original time held as HHMMSS as HH:MM:SS, along with transaction id, authorization type and match status.
  • REQ-F-109 When Enter is pressed with a numeric account number, the system shall take the first of the five list rows, from top to bottom, that has a selection code and record that code and the row's authorization key, and if no row is marked shall clear the selection.
  • REQ-F-110 When the recorded selection code is 'S' or 's' and the row holds an authorization key, the system shall pass control to the authorization detail program COPAUS1C with that key, recording COPAUS0C and transaction CPVS as where the user came from.
  • REQ-F-111 If the recorded selection code is anything other than 'S' or 's', then the system shall show 'Invalid selection. Valid value is S' and redisplay the account's authorization list.
  • REQ-F-115 When the authorization detail screen is first opened from the pending authorization list, or the user presses Enter, the system shall read the selected authorization for the account and display its details.
  • REQ-F-116 When a selected authorization has been read without error, the system shall show the card number, the original authorization date (stored as YYMMDD) as MM/DD/YY and the original time (stored as HHMMSS) as HH:MM:SS.
  • REQ-F-117 When a selected authorization has been read without error, the system shall show the approved amount right-aligned with two decimals and a leading '-' when it is negative.
  • REQ-F-118 When a selected authorization has been read without error, the system shall show the card expiry date (stored as four characters) as the first two characters, '/', and the last two characters.
  • REQ-F-119 When a selected authorization has been read without error, the system shall show the processing code, POS entry mode, message source, merchant category code, authorization type, transaction ID, match status, and the merchant name, ID, city, state and ZIP as stored.
  • REQ-F-120 When the authorization is shown and its fraud flag is 'F' (fraud confirmed) or 'R' (fraud removed), the system shall show the flag, '-', and the fraud report date, and otherwise shall show '-'.
  • REQ-F-121 If the account id passed in is not numeric or no authorization is selected (spaces or low-values), then the system shall not read the database, set the error flag and show the screen with all authorization detail fields blank and no message.
  • REQ-F-122 If a database read error occurred (error flag on), then the system shall leave the authorization detail fields blank.
  • REQ-F-123 The system shall first read the account's pending authorization summary by account id and, only when that read succeeds (status blank or 'FW'), read the authorization detail under that account whose key matches the selected key.
  • REQ-F-124 If the summary or the detail is not found (status 'GE') or the end of the database is reached (status 'GB'), then the system shall mark that no authorizations remain and skip any further read, without an error message.
  • REQ-F-125 If reading the authorization summary returns any status other than success, not found or end of database, then the system shall set the error flag and show ' System error while reading Auth Summary: Code:' followed by the status code.
  • REQ-F-126 If reading the authorization detail returns any status other than success, not found or end of database, then the system shall set the error flag and show ' System error while reading Auth Details: Code:' followed by the status code.
  • REQ-F-127 When the detail program starts with no data passed from a calling screen, the system shall transfer control to the authorization summary program (COPAUS0C).
  • REQ-F-128 When the user presses PF3 on the detail screen, the system shall return to the authorization summary list (COPAUS0C).
  • REQ-F-129 When the user presses PF8 on the detail screen, the system shall re-read the selected authorization of the account, fetch the next authorization under the same account, make it the selected authorization and display its details.
  • REQ-F-130 When the user presses PF8 and there is no further authorization for the account, the system shall keep the current selection and show 'Already at the last Authorization...' without erasing the screen.
  • REQ-F-131 If reading the next authorization fails with any database status other than success, not found or end of data, then the system shall flag an error, show ' System error while reading next Auth: Code:' followed by the status code, and not fill in the authorization details.
  • REQ-F-132 When the user presses any key other than Enter, PF3, PF5 or PF8, the system shall re-read and redisplay the selected authorization as for Enter, with the message 'Invalid key pressed. Please see below...'.

J13 Report or clear fraud on an authorization

Card services agent · Find a suspect authorization on an account and mark it as fraud, or remove a fraud mark set in error, so the authorization and the fraud register agree.

  1. Login Screen COSGN0A: Sign in with user ID and password.
  2. Main Menu COMEN1A: Choose option 11, Pending Authorization View.
  3. View Authorizations COPAU0A: Enter the account ID and press Enter to list its authorizations.
  4. View Authorizations COPAU0A: Type S next to the suspect authorization and press Enter.
  5. View Authorization Details COPAU1A: Check the authorization's details, response and decline reason, and its current fraud status.
  6. View Authorization Details COPAU1A: Press F5 to report fraud, or to remove an existing fraud mark, and confirm the redisplayed fraud flag and report date, or read the error message if the update failed.
  7. View Authorizations COPAU0A: Press F3 to return to the authorization list.
7 capabilities, 26 requirements
  • View authorization detail and mark fraud rec/No domain/CardAuthorizationandFraudManagement#12
  • Mark or unmark an authorization as fraud rec/No domain/CardAuthorizationandFraudManagement#15
  • Record fraud action in the fraud register rec/No domain/CardAuthorizationandFraudManagement#16
  • Inquire on an account's pending authorizations rec/No domain/CardAuthorizationandFraudManagement#9
  • Select an authorization for detail rec/No domain/CardAuthorizationandFraudManagement#11
  • View pending authorization details rec/No domain/CardAuthorizationandFraudManagement#13
  • Navigate the authorization detail screen rec/No domain/CardAuthorizationandFraudManagement#14
  • REQ-F-112 When authorization details are being populated, the system shall show the reason as '<code>-<description>' from the decline reason table, or as '9999-ERROR' when the code is not in the table.
  • REQ-F-113 When the authorization detail screen shows an authorization, the system shall show response 'A' in green when the response code is '00', otherwise 'D' in red.
  • REQ-F-114 When the user presses PF5 on the selected authorization, the system shall re-read the authorization and, if its fraud flag is 'F', set it to 'R' with a remove-fraud action 'R', otherwise set it to 'F' with a report-fraud action 'F', and pass the record with account and customer number to the fraud processor (COPAUS2C).
  • REQ-F-133 When the user presses PF5 on the authorization detail screen and the selected authorization is marked fraud ('F'), the system shall set its fraud flag to 'R' (fraud removed) and request the fraud action 'R' (remove fraud).
  • REQ-F-134 When the user presses PF5 on the authorization detail screen and the selected authorization is not marked fraud (blank or 'R'), the system shall set its fraud flag to 'F' (fraud confirmed) and request the fraud action 'F' (report fraud).
  • REQ-F-135 The system shall send the whole authorization record, the account number, the customer number and the fraud action to the fraud update program (COPAUS2C).
  • REQ-F-136 The system shall set the fraud report date on the authorization record returned by the fraud update program to today's date in MM/DD/YY form with separators, which the detail screen then saves on the pending authorization and displays.
  • REQ-F-137 When the fraud update program completes normally and reports success ('S'), the system shall replace the pending authorization detail record (PAUTDTL1) with the record carrying the toggled fraud flag and the fraud report date set by the fraud update program.
  • REQ-F-138 When the replace of the authorization detail succeeds (status blank or 'FW'), the system shall commit the fraud register change and the authorization detail change together and show 'AUTH FRAUD REMOVED...' if the flag is now 'R', otherwise 'AUTH MARKED FRAUD...'.
  • REQ-N-003 If the replace of the authorization detail returns any other status, then the system shall roll back both the fraud register change and the authorization detail change, set the error flag and show ' System error while FRAUD Tagging, ROLLBACK||' followed by the database status code.
  • REQ-F-139 If the fraud update program completes but reports failure, then the system shall roll back, leave the authorization detail unchanged and show the fraud program's message (for example ' SYSTEM ERROR DB2: CODE:…').
  • REQ-F-140 If the link to the fraud update program does not complete normally, then the system shall roll back and leave the authorization detail unchanged, without setting any message.
  • REQ-F-141 When a PF5 fraud action finishes, the system shall redisplay the same authorization's details.
  • REQ-F-142 The system shall derive the authorization timestamp from the original authorization date and from 999999999 minus the complemented authorization time, and use the card number with that timestamp as the fraud row key.
  • REQ-F-143 When a fraud action is received, the system shall add a row to the fraud table (CARDDEMO.AUTHFRDS) holding the card number, the rebuilt authorization timestamp, the authorization details, the action code, today's database date as report date, and the account and customer ids, and on success return status 'S' with 'ADD SUCCESS'.
  • REQ-F-144 When the fraud table already holds a row for the same card number and authorization timestamp (duplicate key, SQLCODE -803), the system shall instead update that row's fraud flag to the new action code and its report date to today's database date, and on success return status 'S' with 'UPDT SUCCESS'.
  • REQ-F-145 If adding the fraud row fails with any database error other than a duplicate key, then the system shall return status 'F' with the message ' SYSTEM ERROR DB2: CODE:' followed by the SQL code and ', STATE: ' and the SQL state.
  • REQ-F-146 If updating the existing fraud row fails, then the system shall return status 'F' with the message ' UPDT ERROR DB2: CODE:' followed by the SQL code and ', STATE: ' and the SQL state.
  • REQ-F-086 When the operator presses Enter with a numeric Account ID, the system shall save it as the current account for the session, process any row selection, reset to the first page, and reload the account details and the first five pending authorizations.
  • REQ-F-088 When a numeric account number is present, entered with Enter or passed in from the menu, the system shall look up the account's card cross-reference, account record, customer record and pending-authorization summary, and shall load the first page of authorizations only when a summary exists for the account.
  • REQ-F-109 When Enter is pressed with a numeric account number, the system shall take the first of the five list rows, from top to bottom, that has a selection code and record that code and the row's authorization key, and if no row is marked shall clear the selection.
  • REQ-F-110 When the recorded selection code is 'S' or 's' and the row holds an authorization key, the system shall pass control to the authorization detail program COPAUS1C with that key, recording COPAUS0C and transaction CPVS as where the user came from.
  • REQ-F-115 When the authorization detail screen is first opened from the pending authorization list, or the user presses Enter, the system shall read the selected authorization for the account and display its details.
  • REQ-F-116 When a selected authorization has been read without error, the system shall show the card number, the original authorization date (stored as YYMMDD) as MM/DD/YY and the original time (stored as HHMMSS) as HH:MM:SS.
  • REQ-F-120 When the authorization is shown and its fraud flag is 'F' (fraud confirmed) or 'R' (fraud removed), the system shall show the flag, '-', and the fraud report date, and otherwise shall show '-'.
  • REQ-F-128 When the user presses PF3 on the detail screen, the system shall return to the authorization summary list (COPAUS0C).

User Access Control

J14 Sign in and choose a function

Card services agent · Sign in to CardDemo with a user ID and password, get to the main menu, pick the function needed and sign off at the end.

  1. Login Screen COSGN0A: Start CardDemo, type your user ID and password and press Enter to sign in.
  2. Login Screen COSGN0A: If you see an error such as a missing field, user not found or wrong password, fix the entry and press Enter again.
  3. Main Menu COMEN1A: Signing in as a regular user opens the main menu. Type the number of the function you need and press Enter.
  4. Main Menu COMEN1A: If the option is not valid, is for administrators only, or is not available yet, read the message and enter a different option.
  5. Login Screen COSGN0A: Press F3 on the main menu to sign off and go back to the sign-on screen.
3 capabilities, 29 requirements
  • Sign on to CardDemo rec/UserAccessControl/UserSecurityProfileManagement#1
  • Register online CardDemo programs and transactions rec/UserAccessControl/SystemOperationsandMaintenance#1
  • Navigate the Main Menu with access control rec/UserAccessControl/SystemOperationsandMaintenance#3
  • REQ-F-001 The system shall define the login program COSGN00C in the CICS group CARDDEMO with data location ANY and transaction code CC00.
  • REQ-F-001 When the sign-on transaction (CC00) starts with no data passed in from a previous screen, the system shall clear the error state and message and show a blank sign-on screen with the cursor on the User ID field.
  • REQ-F-002 When the user presses Enter on the sign-on screen, the system shall check the entered User ID and Password and try to sign the user on.
  • REQ-F-003 When Enter is pressed and the User ID is blank, the system shall redisplay the sign-on screen with 'Please enter User ID ...' and the cursor on the User ID field, without reading the user security file.
  • REQ-F-004 When Enter is pressed with a User ID but a blank Password, the system shall redisplay the sign-on screen with 'Please enter Password ...' and the cursor on the Password field, without reading the user security file.
  • REQ-F-005 When both User ID and Password are entered, the system shall convert both to upper case, keep the User ID for the session, and look the user up in the user security file (USRSEC) by that User ID.
  • REQ-F-006 If no user security record exists for the entered User ID, then the system shall redisplay the sign-on screen with 'User not found. Try again ...' and the cursor on the User ID field.
  • REQ-F-007 If reading the user security file fails for any reason other than the user not being found, then the system shall redisplay the sign-on screen with 'Unable to verify the User ...' and the cursor on the User ID field.
  • REQ-F-008 If the user is found but the stored password differs from the upper-cased entered password, then the system shall redisplay the sign-on screen with 'Wrong Password. Try again ...' and the cursor on the Password field.
  • REQ-N-001 If a user enters a wrong password, then the system shall allow another attempt, with no limit on the number of failed attempts, no account lockout and no record of the failure.
  • REQ-F-009 When the user is found and the stored password equals the upper-cased entered password, the system shall record the session context for the next program: coming from transaction 'CC00' and program 'COSGN00C', the user ID in upper case, the user's type from the user security file, and a program context of 0 (first entry).
  • REQ-F-011 When sign-on succeeds and the user's type is anything other than 'A', the system shall transfer control to the regular user main menu (COMEN01C), not the admin menu, passing the session context.
  • REQ-F-012 When the user presses PF3 on the sign-on screen, the system shall clear the terminal, show the plain-text message 'Thank you for using CardDemo application...' and end without starting the sign-on transaction again.
  • REQ-F-013 When the user presses any key other than Enter or PF3 on the sign-on screen, the system shall redisplay the sign-on screen with the message 'Invalid key pressed. Please see below...'.
  • REQ-F-014 When the sign-on screen is shown (first entry, an input error or an invalid key), the system shall wait for the user's next key under the sign-on transaction CC00, passing the CardDemo session data forward.
  • REQ-F-012 When the Main Menu (transaction CM00) is started without session data, the system shall show no menu and transfer the user to the sign-on screen (COSGN00C).
  • REQ-F-013 When the Main Menu is started with session data whose program state is not 're-enter' (for example straight after sign-on or on return from a function screen), the system shall mark the state as re-enter, clear the screen and show the menu without reading any input.
  • REQ-F-014 When the Main Menu is started with the program state already 're-enter', the system shall read the screen and handle the key pressed.
  • REQ-F-015 The system shall show one Main Menu line per menu option (11 options), each made of the option number, '. ' and the option name, in the screen slot for that option's position.
  • REQ-F-016 When the user presses Enter on the Main Menu after it has been displayed, the system shall drop trailing blanks from the typed option, right-justify it in two positions, fill blanks with zeros, show the resulting two-digit option number back on the screen and process that option number.
  • REQ-F-017 When the user presses PF3 on the Main Menu, the system shall return the user to the sign-on screen (COSGN00C).
  • REQ-F-018 If the user presses any key other than Enter or PF3 on the Main Menu, then the system shall redisplay the menu with the message 'Invalid key pressed. Please see below...'.
  • REQ-F-019 If the option number is not numeric, is zero, or is greater than the number of menu options (11), then the system shall redisplay the menu with the message 'Please enter a valid option number...' and select nothing.
  • REQ-F-020 If a regular user ('U') selects an option whose user type is 'A', then the system shall flag an error and redisplay the menu with 'No access - Admin Only option... '.
  • REQ-F-021 When the selected option's program name starts with 'DUMMY', the system shall redisplay the menu with the green message 'This option <name> is coming soon ...'.
  • REQ-F-022 When a valid option whose program is neither COPAUS0C nor a placeholder starting with 'DUMMY' is selected, the system shall record transaction 'CM00' and program 'COMEN01C' as the origin, reset the target screen's context to zero, and transfer the user to that option's program with the session data.
  • REQ-F-023 While CICS reports program COPAUS0C as defined, when a valid option whose program is COPAUS0C (option 11, 'Pending Authorization View') is selected, the system shall record transaction 'CM00' and program 'COMEN01C' as the origin, reset the target screen's context, and transfer the user to COPAUS0C with the session data.
  • REQ-F-024 If a valid option whose program is COPAUS0C is selected and CICS does not report that program as defined, then the system shall redisplay the menu with the red message 'This option <option name> is not installed...'.
  • REQ-F-025 When the Main Menu finishes an interaction without transferring to another program, the system shall end the task and wait for the user's next key under transaction 'CM00', passing the session data along.

J15 Find a user and update their profile

Administrator · Find a user in the user list and correct their name, password or user type.

  1. Login Screen COSGN0A: Sign in with an administrator user ID and password.
  2. Admin Menu COADM1A: The admin menu opens. Enter option 1 (User List) and press Enter.
  3. List Users COUSR0A: Type a user ID to start the list from, or leave it blank, and press Enter. Use F8 and F7 to page forward and back ten users at a time.
  4. List Users COUSR0A: Type U next to the user you want to change and press Enter.
  5. Update User COUSR2A: Check the user's details, which are already filled in. Change the first name, last name, password or user type and press F5 to save.
  6. Update User COUSR2A: If a required field is blank or nothing was changed, read the message, correct the entry and press F5 again until 'has been updated' appears.
  7. Admin Menu COADM1A: Press F3 to save and exit, or F12 to cancel, and go back to the admin menu.
  8. Login Screen COSGN0A: Press F3 on the admin menu to sign off.
7 capabilities, 61 requirements
  • Sign on to CardDemo rec/UserAccessControl/UserSecurityProfileManagement#1
  • Navigate the Admin Menu rec/UserAccessControl/SystemOperationsandMaintenance#2
  • Browse the user list rec/UserAccessControl/UserSecurityProfileManagement#2
  • Select a user to update or delete rec/UserAccessControl/UserSecurityProfileManagement#3
  • Look up and update a user rec/UserAccessControl/UserSecurityProfileManagement#5
  • Open the User Update screen and look up a user rec/UserAccessControl/UserSecurityProfileManagement#6
  • Save changes to a user profile rec/UserAccessControl/UserSecurityProfileManagement#7
  • REQ-F-002 When the user presses Enter on the sign-on screen, the system shall check the entered User ID and Password and try to sign the user on.
  • REQ-F-005 When both User ID and Password are entered, the system shall convert both to upper case, keep the User ID for the session, and look the user up in the user security file (USRSEC) by that User ID.
  • REQ-F-009 When the user is found and the stored password equals the upper-cased entered password, the system shall record the session context for the next program: coming from transaction 'CC00' and program 'COSGN00C', the user ID in upper case, the user's type from the user security file, and a program context of 0 (first entry).
  • REQ-F-010 When sign-on succeeds and the user's type is 'A' (administrator), the system shall transfer control to the administrator menu (COADM01C), passing the session context.
  • REQ-F-004 When the Admin Menu is entered with session data and it is not a re-entry from its own screen, the system shall clear any error and message, mark the session as re-entry, and display a fresh, empty administration menu.
  • REQ-F-005 The system shall list each admin option (currently 6) on its own line in order, as the option number, '. ' and the option name, whenever the Admin Menu is displayed.
  • REQ-F-006 When the operator presses Enter on the Admin Menu, the system shall read the option entry ignoring trailing blanks, right-align it, turn remaining blanks into zeros, treat it as a two-digit option number, show that number back in the option field and process that option number.
  • REQ-F-007 If the operator presses a key other than Enter or PF3 on the Admin Menu, then the system shall flag an error and redisplay the menu with the message 'Invalid key pressed. Please see below...'.
  • REQ-F-008 If the option entered on the Admin Menu is not numeric, is zero, or is greater than the number of admin options (6), then the system shall flag an error and redisplay the menu with the message 'Please enter a valid option number...'.
  • REQ-F-009 When an operator selects a valid Admin Menu option (1 to 6) whose program name does not start with 'DUMMY', the system shall record the Admin Menu as the origin (transaction 'CA00', program 'COADM01C'), reset the target screen's context to first entry, and transfer control to that option's program with the session data.
  • REQ-F-010 If the program of a selected Admin Menu option is not defined in CICS, then the system shall redisplay the menu with the green message 'This option is not installed ...' (without the option name) and wait for the next entry.
  • REQ-F-011 When a selected Admin Menu option's program name starts with 'DUMMY', the system shall redisplay the menu with the green message 'This option is not installed ...'.
  • REQ-N-001 The system shall not check the signed-on user's type within the Admin Menu, relying on sign-on to send only admin users ('A') to it, so that a session reaching it with user type 'U' can still open the user-security functions.
  • REQ-F-015 When the User List program is started without any session data, the system shall transfer the operator to the sign-on program (COSGN00C).
  • REQ-F-016 When the User List program is entered for the first time in a session, the system shall mark the session as re-entered, clear the screen fields and show the first page of up to ten users from the start of the user file.
  • REQ-F-017 When the operator presses a key on the User List screen, the system shall process the selection or filter on Enter, return to the Admin menu (COADM01C) on PF3, show the previous page on PF7 and the next page on PF8.
  • REQ-F-018 When the operator presses any key other than Enter, PF3, PF7 or PF8, the system shall redisplay the User List screen with the message 'Invalid key pressed. Please see below...' and the cursor on the user ID entry field.
  • REQ-F-019 When the selection step completes without transferring control, the system shall start the list at the entered user ID (or from the beginning when none was entered), reset the page number to 0, build the page forward, and clear the user ID entry when no error occurred.
  • REQ-F-020 When a user record is read into a row of the user list page (rows 1 to 10), the system shall show that user's ID, first name, last name and user type in that row.
  • REQ-F-021 When a user is placed in row 1 of the page, the system shall remember that user ID as the page's first user, which PF7 uses as the starting point to page backward.
  • REQ-F-022 When a user is placed in row 10 of the page, the system shall remember that user ID as the page's last user, which PF8 uses as the starting point to page forward.
  • REQ-F-023 When the operator presses PF8 and a next page is marked, the system shall start from the last user shown on the current page (row 10), skip that user, clear the rows, and show up to the next ten users in user ID order.
  • REQ-F-024 If the operator presses PF8 while no next page is marked, then the system shall show the message 'You are already at the bottom of the page...' and redisplay the current screen without clearing it.
  • REQ-F-025 When a forward page fills all ten rows, the system shall add 1 to the page number and read one user ahead, marking a next page ('Y') if another user exists and no next page ('N') if not.
  • REQ-F-026 When a forward page reaches the end of the user file before ten rows are filled, the system shall mark no next page, add 1 to the page number only if at least one user was shown, and show 'You have reached the bottom of the page...'.
  • REQ-F-027 If the user file cannot be read during forward paging (any response other than normal or end of file), then the system shall show 'Unable to lookup User...' and stop filling rows.
  • REQ-F-028 When the operator presses PF7 and the page number is greater than 1, the system shall start from the first user shown on the current page, skip that user, and fill the rows from row 10 upward to row 1 with the up to ten users that come before it in user ID order, after clearing all rows.
  • REQ-F-029 If the operator presses PF7 and the list is on page 1 or lower, then the system shall show the message 'You are already at the top of the page...' and redisplay the current screen without clearing it.
  • REQ-F-030 When the operator presses PF7, the system shall mark that a next page exists (next-page flag set to 'Y'), even when PF7 is refused at the top of the list.
  • REQ-F-031 When a PF7 backward page has filled all ten rows, the system shall look one user further back and lower the page number by 1 if such a user exists and the page is above 1, otherwise set the page number to 1 and show 'You have reached the top of the page...', leaving the page number unchanged if fewer than ten earlier users were found.
  • REQ-F-032 If the user file cannot be read during backward paging (any response other than normal or end of file), then the system shall show 'Unable to lookup User...' and stop filling rows.
  • REQ-F-033 When the User List program finishes a screen interaction without transferring elsewhere, the system shall wait for the operator's next key under transaction CU00, keeping the session data including the page number, first and last user shown and next-page flag.
  • REQ-F-034 When the operator presses Enter on the user list and one or more of the 10 rows has a selection code entered, the system shall take only the first marked row from the top, saving its selection code and user ID as the pending selection, and ignore marks on later rows.
  • REQ-F-035 When the operator presses Enter and no row has a selection code entered, the system shall clear the pending selection code and selected user ID to blanks so that no update or delete screen is opened, and shall just refresh the list.
  • REQ-F-036 When the pending selection code is 'U' or 'u' and a user ID was selected, the system shall transfer to the Update User program (COUSR02C), passing the selected user ID with from-transaction 'CU00', from-program 'COUSR00C' and context 0.
  • REQ-F-038 If a row with a user ID is selected with an action code other than 'U', 'u', 'D' or 'd', then the system shall not open any user screen, shall show the message 'Invalid selection. Valid values are U and D', and shall place the cursor on the user ID search field.
  • REQ-F-051 If the administrator asks to look up a user (presses Enter) with User ID blank, then the system shall show 'User ID can NOT be empty...' with the cursor on User ID and not look the user up.
  • REQ-F-052 When a lookup is made with a non-blank User ID, the system shall clear the name, password and type fields and read that user from the user security file (USRSEC), holding it for update.
  • REQ-F-053 If the administrator saves and the entered User ID does not exist, then the system shall report 'User ID NOT found...' with the cursor on User ID but still try to save, so the last message shown is 'Unable to Update User...'.
  • REQ-F-054 When the Update User program is started without any session data, the system shall transfer to the sign-on program (COSGN00C).
  • REQ-F-055 When the Update User screen is entered for the first time from another screen and a user was selected there (such as the user list), the system shall clear the message, pre-fill User ID with the selected user, look that user up straight away and show its details.
  • REQ-F-056 When the Update User screen is entered for the first time and no user was selected, the system shall show an empty screen with the cursor on User ID.
  • REQ-F-057 When the administrator presses Enter on the Update User screen, the system shall look up the entered User ID and show its details.
  • REQ-F-058 When the user is found, the system shall show the stored First Name, Last Name, Password and User Type and the message 'Press PF5 key to save your updates ...' in neutral colour.
  • REQ-F-059 If no user exists for the entered User ID, then the system shall show 'User ID NOT found...' with the cursor on User ID and leave the detail fields blank.
  • REQ-F-060 If reading the user fails for any reason other than not found, then the system shall show 'Unable to lookup User...' and log the response codes.
  • REQ-F-061 When the administrator presses PF4 on the Update User screen, the system shall clear User ID, First Name, Last Name, Password, User Type and the message, and put the cursor on User ID.
  • REQ-F-062 When the administrator presses PF12 on the Update User screen, the system shall go to the Admin menu (COADM01C) without saving.
  • REQ-F-063 If the administrator presses any key other than Enter, PF3, PF4, PF5 or PF12 on the Update User screen, then the system shall redisplay the screen with the message 'Invalid key pressed. Please see below...'.
  • REQ-F-064 When the administrator presses PF5, the system shall validate and save the changes and stay on the Update User screen.
  • REQ-F-065 When the administrator presses PF3, the system shall attempt the same validation and save as PF5 and then always return to the program that called it, or to the Admin menu (COADM01C) if no caller is recorded.
  • REQ-F-066 If a save is requested (PF5, or PF3 save-and-exit) and the User ID is blank, then the system shall not save, show 'User ID can NOT be empty...' and place the cursor on User ID.
  • REQ-F-067 If a save is requested with a User ID but a blank First Name, then the system shall not save, show 'First Name can NOT be empty...' and place the cursor on First Name.
  • REQ-F-068 If a save is requested with User ID and First Name filled but a blank Last Name, then the system shall not save, show 'Last Name can NOT be empty...' and place the cursor on Last Name.
  • REQ-F-069 If a save is requested with User ID and both names filled but a blank Password, then the system shall not save, show 'Password can NOT be empty...' and place the cursor on Password.
  • REQ-F-070 If a save is requested with all other fields filled but a blank User Type, then the system shall not save, show 'User Type can NOT be empty...' and place the cursor on User Type.
  • REQ-F-071 If several fields are blank when a save is requested, then the system shall report only the first in the order User ID, First Name, Last Name, Password, User Type.
  • REQ-F-072 If PF3 is pressed with a blank required field, then the system shall skip the save but still return to the calling screen (or the admin menu), so the validation message is not left on view.
  • REQ-F-073 When the administrator saves (PF5 or PF3) and User ID, First Name, Last Name, Password and User Type are all filled in, the system shall re-read the stored user, replace each of First Name, Last Name, Password and User Type that differs from the screen, and save the user record only if at least one of them changed.
  • REQ-F-074 If the administrator saves and none of First Name, Last Name, Password or User Type differs from the stored user, then the system shall not save anything and shall show 'Please modify to update ...' in red.
  • REQ-F-075 When the changed user record is saved successfully, the system shall show 'User <user ID> has been updated ...' in green.

J16 Add a new user

Administrator · Create a user profile with a name, user ID, password and user type so the new person can sign in to CardDemo.

  1. Login Screen COSGN0A: Sign in with an administrator user ID and password.
  2. Admin Menu COADM1A: Enter option 2 (User Add) and press Enter.
  3. Add User COUSR1A: Enter the first name, last name, user ID, password and user type (A for admin, U for user), then press Enter to add the user.
  4. Add User COUSR1A: If a field is empty or the user ID already exists, correct it and press Enter again until 'has been added' appears. Press F4 to clear the form and add another user.
  5. Admin Menu COADM1A: Press F3 to go back to the admin menu.
3 capabilities, 16 requirements
  • Sign on to CardDemo rec/UserAccessControl/UserSecurityProfileManagement#1
  • Navigate the Admin Menu rec/UserAccessControl/SystemOperationsandMaintenance#2
  • Add a new user rec/UserAccessControl/UserSecurityProfileManagement#4
  • REQ-F-010 When sign-on succeeds and the user's type is 'A' (administrator), the system shall transfer control to the administrator menu (COADM01C), passing the session context.
  • REQ-F-006 When the operator presses Enter on the Admin Menu, the system shall read the option entry ignoring trailing blanks, right-align it, turn remaining blanks into zeros, treat it as a two-digit option number, show that number back in the option field and process that option number.
  • REQ-F-009 When an operator selects a valid Admin Menu option (1 to 6) whose program name does not start with 'DUMMY', the system shall record the Admin Menu as the origin (transaction 'CA00', program 'COADM01C'), reset the target screen's context to first entry, and transfer control to that option's program with the session data.
  • REQ-F-039 When the administrator presses Enter on the Add User screen, the system shall check the fields in the order First Name, Last Name, User ID, Password, User Type and stop at the first one that is blank, writing no record.
  • REQ-F-040 If First Name is blank, then the system shall redisplay the screen with 'First Name can NOT be empty...' and the cursor on First Name.
  • REQ-F-041 If First Name is filled and Last Name is blank, then the system shall redisplay the screen with 'Last Name can NOT be empty...' and the cursor on Last Name.
  • REQ-F-042 If both names are filled and User ID is blank, then the system shall redisplay the screen with 'User ID can NOT be empty...' and the cursor on User ID.
  • REQ-F-043 If both names and User ID are filled and Password is blank, then the system shall redisplay the screen with 'Password can NOT be empty...' and the cursor on Password.
  • REQ-F-044 If names, User ID and Password are filled and User Type is blank, then the system shall redisplay the screen with 'User Type can NOT be empty...' and the cursor on User Type.
  • REQ-F-045 The system shall accept any non-blank single character as User Type and save it as entered, although the screen offers only 'A' (Admin) and 'U' (User).
  • REQ-F-046 When all five fields are filled, the system shall build the user security record from the entered User ID, first name, last name, password and user type and attempt to add it to the user security file (USRSEC).
  • REQ-N-002 When an administrator adds a new user, the system shall store the password in the user security file exactly as typed, with no encryption or hashing, in an 8-character field (SEC-USR-PWD).
  • REQ-F-047 When the new user record is added successfully, the system shall clear all entry fields and show 'User <id> has been added ...' in green.
  • REQ-F-048 If a user with the entered User ID already exists in the user security file (duplicate key or record response), then the system shall add nothing, leave the existing record unchanged and redisplay the screen with 'User ID already exist...' and the cursor on User ID.
  • REQ-F-049 If adding the user record fails for any other reason, then the system shall redisplay the screen with 'Unable to Add User...' and the cursor on First Name.
  • REQ-F-050 If the administrator presses a key other than Enter, PF3 or PF4 on the Add User screen, then the system shall redisplay the screen with 'Invalid key pressed. Please see below...' and the cursor on First Name, adding no user.

J17 Remove a user

Administrator · Find a user who should no longer have access and delete their profile so they can no longer sign in.

  1. Login Screen COSGN0A: Sign in with an administrator user ID and password.
  2. Admin Menu COADM1A: Enter option 1 (User List) and press Enter.
  3. List Users COUSR0A: Find the user, paging with F7 and F8 if needed, type D next to them and press Enter.
  4. Delete User COUSR3A: Check the user's name and type, which are filled in, to make sure it is the right person, then press F5 to delete them.
  5. Delete User COUSR3A: If the user ID is empty or not found, correct it, press Enter to look the user up again, then press F5.
  6. Admin Menu COADM1A: Press F3 to go back to the admin menu.
5 capabilities, 24 requirements
  • Sign on to CardDemo rec/UserAccessControl/UserSecurityProfileManagement#1
  • Navigate the Admin Menu rec/UserAccessControl/SystemOperationsandMaintenance#2
  • Browse the user list rec/UserAccessControl/UserSecurityProfileManagement#2
  • Select a user to update or delete rec/UserAccessControl/UserSecurityProfileManagement#3
  • Delete a user rec/UserAccessControl/UserSecurityProfileManagement#8
  • REQ-F-010 When sign-on succeeds and the user's type is 'A' (administrator), the system shall transfer control to the administrator menu (COADM01C), passing the session context.
  • REQ-F-006 When the operator presses Enter on the Admin Menu, the system shall read the option entry ignoring trailing blanks, right-align it, turn remaining blanks into zeros, treat it as a two-digit option number, show that number back in the option field and process that option number.
  • REQ-F-009 When an operator selects a valid Admin Menu option (1 to 6) whose program name does not start with 'DUMMY', the system shall record the Admin Menu as the origin (transaction 'CA00', program 'COADM01C'), reset the target screen's context to first entry, and transfer control to that option's program with the session data.
  • REQ-F-019 When the selection step completes without transferring control, the system shall start the list at the entered user ID (or from the beginning when none was entered), reset the page number to 0, build the page forward, and clear the user ID entry when no error occurred.
  • REQ-F-020 When a user record is read into a row of the user list page (rows 1 to 10), the system shall show that user's ID, first name, last name and user type in that row.
  • REQ-F-023 When the operator presses PF8 and a next page is marked, the system shall start from the last user shown on the current page (row 10), skip that user, clear the rows, and show up to the next ten users in user ID order.
  • REQ-F-028 When the operator presses PF7 and the page number is greater than 1, the system shall start from the first user shown on the current page, skip that user, and fill the rows from row 10 upward to row 1 with the up to ten users that come before it in user ID order, after clearing all rows.
  • REQ-F-034 When the operator presses Enter on the user list and one or more of the 10 rows has a selection code entered, the system shall take only the first marked row from the top, saving its selection code and user ID as the pending selection, and ignore marks on later rows.
  • REQ-F-037 When the pending selection code is 'D' or 'd' and a user ID was selected, the system shall transfer to the Delete User program (COUSR03C), passing the selected user ID with from-transaction 'CU00', from-program 'COUSR00C' and context 0.
  • REQ-F-076 When the User Delete transaction (CU03) is started with no session data, the system shall send the user to the sign-on program (COSGN00C).
  • REQ-F-077 While session data is present, the system shall allow lookup and deletion without checking that the signed-on user is an administrator (type 'A'), relying on the program being offered only from the admin menu and user list.
  • REQ-F-078 When the User Delete screen is first opened and a user was selected on the User List screen, the system shall put that user ID in the field and look the user up straight away, showing the details or the lookup error.
  • REQ-F-079 When the User Delete screen is first opened with no user selected, the system shall show an empty screen with the cursor in the user ID field.
  • REQ-F-080 When the administrator presses Enter with a user ID that exists in the user security file (USRSEC), the system shall show that user's first name, last name and user type with the message 'Press PF5 key to delete this user ...' in neutral colour.
  • REQ-F-081 If the administrator presses Enter with the user ID blank, then the system shall show 'User ID can NOT be empty...' and not look up any user.
  • REQ-F-082 If the administrator presses Enter with a user ID that is not in the user security file, then the system shall show 'User ID NOT found...' and place the cursor on the user ID field.
  • REQ-F-083 If reading the user security file fails for any reason other than not found, then the system shall show 'Unable to lookup User...'.
  • REQ-F-084 The system shall not require a prior Enter lookup: PF5 deletes the user whose ID is in the user ID field, without a separate confirmation step.
  • REQ-F-085 When the administrator presses PF5 with a user ID that exists in the user security file, the system shall read the record for update and delete it, clear the user ID, name and type fields, and show 'User <id> has been deleted ...' in green.
  • REQ-F-086 If the administrator presses PF5 with the user ID blank, then the system shall show 'User ID can NOT be empty...' and not delete any user.
  • REQ-F-087 If the administrator presses PF5 with a user ID that is not in the user security file, then the system shall report 'User ID NOT found...' and still attempt the delete, so the final screen may show 'Unable to Update User...' instead.
  • REQ-F-088 If deleting the user record fails for a reason other than not found, then the system shall show 'Unable to Update User...'.
  • REQ-F-089 When the administrator presses PF3 on the Delete User screen, the system shall return to the program that opened it (the user list COUSR00C or the admin menu COADM01C), or to the admin menu COADM01C when no calling program is recorded.
  • REQ-F-090 When the administrator presses PF4 on the User Delete screen, the system shall clear the user ID, first name, last name, type and message and redisplay the empty screen.
+

Screens in no journey

  • None.
+

What the checks still found

  • None.
+
\ No newline at end of file diff --git a/reports/carddemo/design/legacy/CACTUPA.html b/reports/carddemo/design/legacy/CACTUPA.html new file mode 100644 index 00000000..41f3cc1b --- /dev/null +++ b/reports/carddemo/design/legacy/CACTUPA.html @@ -0,0 +1,50 @@ + +CACTUPA legacy screen
+

All legacy screens · aws-carddemo

+

Update Account

+

Map CACTUPA in mapset COACTUP, app/bms/COACTUP.bms line 25 · +24 × 80 · 43 input, 11 output, 44 label fields · used by COACTUPC

+
         ·          ········································    Date: mm/dd/yy  
+Prog: ········      ········································    Time: hh:mm:ss  
+                                                                                
+                                Update Account                                  
+                  Account Number :   ___________        Active Y/N:  _          
+       Opened : ____ - __ - __        Credit Limit        : _______________     
+       Expiry : ____ - __ - __        Cash credit Limit   : _______________     
+       Reissue: ____ - __ - __        Current Balance     : _______________     
+                                      Current Cycle Credit: _______________     
+       Account Group: __________      Current Cycle Debit : _______________     
+                               Customer Details                                 
+       Customer id  : _________                 SSN:  999 - 99 - 9999           
+       Date of birth: ____ - __ - __            FICO Score:  ___                
+First Name                 Middle Name:               Last Name :               
+_________________________  _________________________  _________________________ 
+Address: __________________________________________________   State     __      
+         __________________________________________________   Zip       _____   
+City     __________________________________________________   Country   ___     
+Phone 1: ___ ___ ____  Government Issued Id Ref    :     ____________________   
+Phone 2: ___ ___ ____  EFT Account Id:  __________  Primary Card Holder Y/N: _  
+                                                                                
+                      ·············································             
+··············································································  
+ENTER=Process F3=Exit F5=Save F12=Cancel                                        
+

Drawn by Reframe from the BMS source, with no model. Underlined: input fields. Dots: fields the program fills. Hover a field for its name and attributes.

+

Function keys

KeyThe screen saysHandled in the program
ENTERProcessCOACTUPC line 906: SET PFK-VALID TO TRUE
F3ExitCOACTUPC line 927: MOVE LIT-MENUTRANID TO CDEMO-TO-TRANID
F5SaveCOACTUPC line 2603: PERFORM 9600-WRITE-PROCESSING
F12CancelCOACTUPC line 2572: SET WS-RETURN-MSG-OFF TO TRUE
+

Checks

  • an unnamed field at line 1, column 1 (BMS line 487) shares its attribute byte with the label 'Tran:' at line 1, column 1
+

Fields

FieldKindLine, columnLengthAttributesColourInitial textBMS line
–label1, 15ASKIP, NORMBLUETran:29
TRNNAMEoutput1, 74ASKIP, FSET, NORMBLUE34
TITLE01output1, 2140ASKIP, NORMYELLOW38
–label1, 655ASKIP, NORMBLUEDate:42
CURDATEoutput1, 718ASKIP, NORMBLUEmm/dd/yy47
–label2, 15ASKIP, NORMBLUEProg:52
PGMNAMEoutput2, 78ASKIP, NORMBLUE57
TITLE02output2, 2140ASKIP, NORMYELLOW61
–label2, 655ASKIP, NORMBLUETime:65
CURTIMEoutput2, 718ASKIP, NORMBLUEhh:mm:ss70
–label4, 3314NEUTRALUpdate Account75
–label5, 1916ASKIP, NORMTURQUOISEAccount Number :79
ACCTSIDinput5, 3811IC, UNPROT84
–label5, 5712TURQUOISEActive Y/N: 90
ACSTTUSinput5, 701UNPROT94
–label6, 88TURQUOISEOpened :100
OPNYEARinput6, 174FSET, UNPROT104
–label6, 221-109
OPNMONinput6, 242UNPROT112
–label6, 271-117
OPNDAYinput6, 292UNPROT120
–label6, 3921ASKIP, NORMTURQUOISECredit Limit :127
ACRDLIMinput6, 6115FSET, UNPROT132
–label7, 88TURQUOISEExpiry :138
EXPYEARinput7, 174UNPROT142
–label7, 221-147
EXPMONinput7, 242UNPROT150
–label7, 271-155
EXPDAYinput7, 292UNPROT158
–label7, 3921ASKIP, NORMTURQUOISECash credit Limit :165
ACSHLIMinput7, 6115FSET, UNPROT170
–label8, 88TURQUOISEReissue:176
RISYEARinput8, 174UNPROT180
–label8, 221-185
RISMONinput8, 242UNPROT188
–label8, 271-193
RISDAYinput8, 292UNPROT196
–label8, 3921ASKIP, NORMTURQUOISECurrent Balance :203
ACURBALinput8, 6115FSET, UNPROT208
–label9, 3921ASKIP, NORMTURQUOISECurrent Cycle Credit:214
ACRCYCRinput9, 6115FSET, UNPROT219
–label10, 814TURQUOISEAccount Group:225
AADDGRPinput10, 2310UNPROT229
–label10, 3921ASKIP, NORMTURQUOISECurrent Cycle Debit :235
ACRCYDBinput10, 6115FSET, UNPROT240
–label11, 3216NEUTRALCustomer Details246
–label12, 814TURQUOISECustomer id :250
ACSTNUMinput12, 239UNPROT254
–label12, 494TURQUOISESSN:260
ACTSSN1input12, 553UNPROT999264
–label12, 591-269
ACTSSN2input12, 612UNPROT99272
–label12, 641-277
ACTSSN3input12, 664UNPROT9999280
–label13, 814TURQUOISEDate of birth:287
DOBYEARinput13, 234UNPROT291
–label13, 281-296
DOBMONinput13, 302UNPROT299
–label13, 331-304
DOBDAYinput13, 352UNPROT307
–label13, 4911TURQUOISEFICO Score:314
ACSTFCOinput13, 623UNPROT318
–label14, 110TURQUOISEFirst Name324
–label14, 2813TURQUOISEMiddle Name: 328
–label14, 5512TURQUOISELast Name : 332
ACSFNAMinput15, 125UNPROT336
ACSMNAMinput15, 2825UNPROT342
ACSLNAMinput15, 5525UNPROT348
–label16, 18TURQUOISEAddress:352
ACSADL1input16, 1050UNPROT356
–label16, 636TURQUOISEState 362
ACSSTTEinput16, 732UNPROT366
ACSADL2input17, 1050UNPROT372
–label17, 633TURQUOISEZip378
ACSZIPCinput17, 735UNPROT382
–label18, 15TURQUOISECity 388
ACSCITYinput18, 1050UNPROT392
–label18, 637TURQUOISECountry398
ACSCTRYinput18, 733UNPROT402
–label19, 18TURQUOISEPhone 1:408
ACSPH1Ainput19, 103UNPROT412
ACSPH1Binput19, 143UNPROT417
ACSPH1Cinput19, 184UNPROT422
–label19, 2430TURQUOISEGovernment Issued Id Ref : 429
ACSGOVTinput19, 5820UNPROT433
–label20, 18TURQUOISEPhone 2:439
ACSPH2Ainput20, 103UNPROT443
ACSPH2Binput20, 143UNPROT448
ACSPH2Cinput20, 184UNPROT453
–label20, 2416TURQUOISEEFT Account Id: 460
ACSEFTCinput20, 4110UNPROT464
–label20, 5324TURQUOISEPrimary Card Holder Y/N:470
ACSPFLGinput20, 781UNPROT474
INFOMSGoutput22, 2345ASKIPNEUTRAL480
ERRMSGoutput23, 178ASKIP, BRT, FSETRED489
FKEYSoutput24, 121ASKIP, NORMYELLOWENTER=Process F3=Exit493
FKEY05output24, 237ASKIP, DRKYELLOWF5=Save498
FKEY12output24, 3110ASKIP, DRKYELLOWF12=Cancel503
+
\ No newline at end of file diff --git a/reports/carddemo/design/legacy/CACTVWA.html b/reports/carddemo/design/legacy/CACTVWA.html new file mode 100644 index 00000000..3c5548b5 --- /dev/null +++ b/reports/carddemo/design/legacy/CACTVWA.html @@ -0,0 +1,50 @@ + +CACTVWA legacy screen
+

All legacy screens · aws-carddemo

+

View Account

+

Map CACTVWA in mapset COACTVW, app/bms/COACTVW.bms line 25 · +24 × 80 · 1 input, 36 output, 35 label fields · used by COACTVWC

+
         ·          ········································    Date: mm/dd/yy  
+Prog: ········      ········································    Time: hh:mm:ss  
+                                                                                
+                                View Account                                    
+                  Account Number :   ___________        Active Y/N:  ·          
+       Opened:  ··········            Credit Limit        : ···············     
+       Expiry:  ··········            Cash credit Limit   : ···············     
+       Reissue: ··········            Current Balance     : ···············     
+                                      Current Cycle Credit: ···············     
+       Account Group: ··········      Current Cycle Debit : ···············     
+                               Customer Details                                 
+       Customer id  : ·········                 SSN: ············               
+       Date of birth: ··········                FICO Score: ···                 
+First Name                 Middle Name:               Last Name :               
+·························  ·························  ························· 
+Address: ··················································   State     ··      
+         ··················································   Zip       ·····   
+City     ··················································   Country   ···     
+Phone 1: ············· Government Issued Id Ref    :     ····················   
+Phone 2: ············· EFT Account Id:  ··········  Primary Card Holder Y/N: ·  
+                                                                                
+                      ·············································             
+··············································································  
+  F3=Exit                                                                       
+

Drawn by Reframe from the BMS source, with no model. Underlined: input fields. Dots: fields the program fills. Hover a field for its name and attributes.

+

Function keys

KeyThe screen saysHandled in the program
ENTER–COACTVWC line 307: SET PFK-VALID TO TRUEhandled, not shown on the screen
F3ExitCOACTVWC line 324: MOVE LIT-MENUTRANID TO CDEMO-TO-TRANID
+

Checks

  • an unnamed field at line 1, column 1 (BMS line 363) shares its attribute byte with the label 'Tran:' at line 1, column 1
+

Fields

FieldKindLine, columnLengthAttributesColourInitial textBMS line
–label1, 15ASKIP, NORMBLUETran:29
TRNNAMEoutput1, 74ASKIP, FSET, NORMBLUE34
TITLE01output1, 2140ASKIP, NORMYELLOW38
–label1, 655ASKIP, NORMBLUEDate:42
CURDATEoutput1, 718ASKIP, NORMBLUEmm/dd/yy47
–label2, 15ASKIP, NORMBLUEProg:52
PGMNAMEoutput2, 78ASKIP, NORMBLUE57
TITLE02output2, 2140ASKIP, NORMYELLOW61
–label2, 655ASKIP, NORMBLUETime:65
CURTIMEoutput2, 718ASKIP, NORMBLUEhh:mm:ss70
–label4, 3312NEUTRALView Account75
–label5, 1916ASKIP, NORMTURQUOISEAccount Number :79
ACCTSIDinput5, 3811FSET, IC, NORM, UNPROTGREEN84
–label5, 5712TURQUOISEActive Y/N: 93
ACSTTUSoutput5, 701ASKIP97
–label6, 87TURQUOISEOpened:103
ADTOPENoutput6, 1710107
–label6, 3921ASKIP, NORMTURQUOISECredit Limit :112
ACRDLIMoutput6, 6115117
–label7, 87TURQUOISEExpiry:124
AEXPDToutput7, 1710128
–label7, 3921ASKIP, NORMTURQUOISECash credit Limit :133
ACSHLIMoutput7, 6115138
–label8, 88TURQUOISEReissue:145
AREISDToutput8, 1710149
–label8, 3921ASKIP, NORMTURQUOISECurrent Balance :154
ACURBALoutput8, 6115159
–label9, 3921ASKIP, NORMTURQUOISECurrent Cycle Credit:166
ACRCYCRoutput9, 6115171
–label10, 814TURQUOISEAccount Group:178
AADDGRPoutput10, 2310182
–label10, 3921ASKIP, NORMTURQUOISECurrent Cycle Debit :187
ACRCYDBoutput10, 6115192
–label11, 3216NEUTRALCustomer Details199
–label12, 814TURQUOISECustomer id :203
ACSTNUMoutput12, 239207
–label12, 494TURQUOISESSN:212
ACSTSSNoutput12, 5412216
–label13, 814TURQUOISEDate of birth:221
ACSTDOBoutput13, 2310225
–label13, 4911TURQUOISEFICO Score:230
ACSTFCOoutput13, 613234
–label14, 110TURQUOISEFirst Name239
–label14, 2813TURQUOISEMiddle Name: 243
–label14, 5512TURQUOISELast Name : 247
ACSFNAMoutput15, 125251
ACSMNAMoutput15, 2825256
ACSLNAMoutput15, 5525261
–label16, 18TURQUOISEAddress:264
ACSADL1output16, 1050268
–label16, 636TURQUOISEState 273
ACSSTTEoutput16, 732277
ACSADL2output17, 1050282
–label17, 633TURQUOISEZip287
ACSZIPCoutput17, 735291
–label18, 15TURQUOISECity 297
ACSCITYoutput18, 1050301
–label18, 637TURQUOISECountry306
ACSCTRYoutput18, 733310
–label19, 18TURQUOISEPhone 1:315
ACSPHN1output19, 1013319
–label19, 2430TURQUOISEGovernment Issued Id Ref : 322
ACSGOVToutput19, 5820326
–label20, 18TURQUOISEPhone 2:331
ACSPHN2output20, 1013335
–label20, 2416TURQUOISEEFT Account Id: 338
ACSEFTCoutput20, 4110342
–label20, 5324TURQUOISEPrimary Card Holder Y/N:347
ACSPFLGoutput20, 781351
INFOMSGoutput22, 2345PROTNEUTRAL356
ERRMSGoutput23, 178ASKIP, BRT, FSETRED365
–label24, 160ASKIP, NORMTURQUOISE F3=Exit 369
+
\ No newline at end of file diff --git a/reports/carddemo/design/legacy/CCRDLIA.html b/reports/carddemo/design/legacy/CCRDLIA.html new file mode 100644 index 00000000..814e5b55 --- /dev/null +++ b/reports/carddemo/design/legacy/CCRDLIA.html @@ -0,0 +1,50 @@ + +CCRDLIA legacy screen
+

All legacy screens · aws-carddemo

+

List Credit Cards

+

Map CCRDLIA in mapset COCRDLI, app/bms/COCRDLI.bms line 25 · +24 × 80 · 2 input, 43 output, 17 label fields · used by COCRDLIC

+
Tran: ····          ········································    Date: mm/dd/yy  
+Prog: ········      ········································    Time: hh:mm:ss  
+                                                                                
+                              List Credit Cards                      Page  ···  
+                                                                                
+                     Account Number    :   ___________                          
+                     Credit Card Number:   ________________                     
+                                                                                
+         Select     Account Number           Card Number         Active         
+         ------    ---------------        ---------------       --------        
+           ·         ···········          ················        ·             
+           · ·       ···········          ················        ·             
+           · ·       ···········          ················        ·             
+           · ·       ···········          ················        ·             
+           · ·       ···········          ················        ·             
+           · ·       ···········          ················        ·             
+           · ·       ···········          ················        ·             
+                                                                                
+                                                                                
+                  ·············································                 
+                                                                                
+                                                                                
+··············································································  
+  F3=Exit F7=Backward  F8=Forward                                               
+

Drawn by Reframe from the BMS source, with no model. Underlined: input fields. Dots: fields the program fills. Hover a field for its name and attributes.

+

Function keys

KeyThe screen saysHandled in the program
ENTER–COCRDLIC line 371: SET PFK-VALID TO TRUE
COCRDLIC line 517: MOVE LIT-THISTRANID TO CDEMO-FROM-TRANID
COCRDLIC line 545: MOVE LIT-THISTRANID TO CDEMO-FROM-TRANID
handled, not shown on the screen
F3ExitCOCRDLIC line 384: MOVE LIT-THISTRANID TO CDEMO-FROM-TRANID
COCRDLIC line 458: CDEMO-FROM-PROGRAM NOT EQUAL LIT-THISPGM
F7BackwardCOCRDLIC line 439:
COCRDLIC line 444: MOVE WS-CA-FIRST-CARD-NUM
COCRDLIC line 501: MOVE WS-CA-FIRST-CARD-NUM
COCRDLIC line 901: MOVE 'NO PREVIOUS PAGES TO DISPLAY'
F8ForwardCOCRDLIC line 410: CONTINUE
COCRDLIC line 486: MOVE WS-CA-LAST-CARD-NUM
COCRDLIC line 905: MOVE 'NO MORE PAGES TO DISPLAY'
COCRDLIC line 910: SET WS-INFORM-REC-ACTIONS TO TRUE
+

Checks

  • None.
+

Fields

FieldKindLine, columnLengthAttributesColourInitial textBMS line
–label1, 15ASKIP, NORMBLUETran:29
TRNNAMEoutput1, 74ASKIP, FSET, NORMBLUE34
TITLE01output1, 2140ASKIP, NORMYELLOW38
–label1, 655ASKIP, NORMBLUEDate:42
CURDATEoutput1, 718ASKIP, NORMBLUEmm/dd/yy47
–label2, 15ASKIP, NORMBLUEProg:52
PGMNAMEoutput2, 78ASKIP, NORMBLUE57
TITLE02output2, 2140ASKIP, NORMYELLOW61
–label2, 655ASKIP, NORMBLUETime:65
CURTIMEoutput2, 718ASKIP, NORMBLUEhh:mm:ss70
–label4, 3117NEUTRALList Credit Cards75
–label4, 705Page 79
PAGENOoutput4, 76382
–label6, 2219ASKIP, NORMTURQUOISEAccount Number :84
ACCTSIDinput6, 4411FSET, IC, NORM, UNPROTGREEN89
–label7, 2219ASKIP, NORMTURQUOISECredit Card Number:96
CARDSIDinput7, 4416FSET, NORM, UNPROTGREEN101
–label9, 1010NEUTRALSelect 108
–label9, 2114NEUTRALAccount Number112
–label9, 4513NEUTRAL Card Number 116
–label9, 667NEUTRALActive 120
–label10, 106NEUTRAL------124
–label10, 2015NEUTRAL---------------128
–label10, 4315NEUTRAL---------------132
–label10, 658NEUTRAL--------136
CRDSEL1output11, 121FSET, NORM, PROTDEFAULT140
ACCTNO1output11, 2211NORM, PROTDEFAULT147
CRDNUM1output11, 4316NORM, PROTDEFAULT152
CRDSTS1output11, 671NORM, PROTDEFAULT157
CRDSEL2output12, 121FSET, NORM, PROTDEFAULT162
CRDSTP2output12, 141ASKIP, DRK, FSETDEFAULT169
ACCTNO2output12, 2211NORM, PROTDEFAULT174
CRDNUM2output12, 4316NORM, PROTDEFAULT179
CRDSTS2output12, 671NORM, PROTDEFAULT184
CRDSEL3output13, 121FSET, NORM, PROTDEFAULT189
CRDSTP3output13, 141ASKIP, DRK, FSETDEFAULT196
ACCTNO3output13, 2211NORM, PROTDEFAULT201
CRDNUM3output13, 4316NORM, PROTDEFAULT206
CRDSTS3output13, 671NORM, PROTDEFAULT211
CRDSEL4output14, 121FSET, NORM, PROTDEFAULT216
CRDSTP4output14, 141ASKIP, DRK, FSETDEFAULT223
ACCTNO4output14, 2211NORM, PROTDEFAULT228
CRDNUM4output14, 4316NORM, PROTDEFAULT233
CRDSTS4output14, 671NORM, PROTDEFAULT238
CRDSEL5output15, 121FSET, NORM, PROTDEFAULT243
CRDSTP5output15, 141ASKIP, DRK, FSETDEFAULT250
ACCTNO5output15, 2211NORM, PROTDEFAULT255
CRDNUM5output15, 4316NORM, PROTDEFAULT260
CRDSTS5output15, 671NORM, PROTDEFAULT265
CRDSEL6output16, 121FSET, NORM, PROTDEFAULT270
CRDSTP6output16, 141ASKIP, DRK, FSETDEFAULT277
ACCTNO6output16, 2211NORM, PROTDEFAULT282
CRDNUM6output16, 4316NORM, PROTDEFAULT287
CRDSTS6output16, 671NORM, PROTDEFAULT292
CRDSEL7output17, 121FSET, NORM, PROTDEFAULT297
CRDSTP7output17, 141ASKIP, DRK, FSETDEFAULT304
ACCTNO7output17, 2211NORM, PROTDEFAULT309
CRDNUM7output17, 4316NORM, PROTDEFAULT314
CRDSTS7output17, 671NORM, PROTDEFAULT319
INFOMSGoutput20, 1945PROTNEUTRAL324
ERRMSGoutput23, 178ASKIP, BRT, FSETRED331
–label24, 178ASKIP, NORMTURQUOISE F3=Exit F7=Backward F8=Forward335
+
\ No newline at end of file diff --git a/reports/carddemo/design/legacy/CCRDSLA.html b/reports/carddemo/design/legacy/CCRDSLA.html new file mode 100644 index 00000000..7a4c81dc --- /dev/null +++ b/reports/carddemo/design/legacy/CCRDSLA.html @@ -0,0 +1,50 @@ + +CCRDSLA legacy screen
+

All legacy screens · aws-carddemo

+

View Credit Card Detail

+

Map CCRDSLA in mapset COCRDSL, app/bms/COCRDSL.bms line 25 · +24 × 80 · 2 input, 13 output, 11 label fields · used by COCRDSLC

+
Tran: ····          ········································    Date: mm/dd/yy  
+Prog: ········      ········································    Time: hh:mm:ss  
+                                                                                
+                             View Credit Card Detail                            
+                                                                                
+                                                                                
+                      Account Number    :   ___________                         
+                      Card Number       :   ________________                    
+                                                                                
+                                                                                
+   Name on card      :  ··················································      
+                                                                                
+   Card Active Y/N   :  ·                                                       
+                                                                                
+   Expiry Date       :  ·· / ····                                               
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                        ········································                
+                                                                                
+                                                                                
+················································································
+ENTER=Search Cards  F3=Exit                                                     
+

Drawn by Reframe from the BMS source, with no model. Underlined: input fields. Dots: fields the program fills. Hover a field for its name and attributes.

+

Function keys

KeyThe screen saysHandled in the program
ENTERSearch CardsCOCRDSLC line 292: SET PFK-VALID TO TRUE
F3ExitCOCRDSLC line 305: MOVE LIT-MENUTRANID TO CDEMO-TO-TRANID
+

Checks

  • FKEYS at line 24, column 1 (BMS line 148) has its attribute byte on the data of ERRMSG at line 23, column 1
+

Fields

FieldKindLine, columnLengthAttributesColourInitial textBMS line
–label1, 15ASKIP, NORMBLUETran:29
TRNNAMEoutput1, 74ASKIP, FSET, NORMBLUE34
TITLE01output1, 2140ASKIP, NORMYELLOW38
–label1, 655ASKIP, NORMBLUEDate:42
CURDATEoutput1, 718ASKIP, NORMBLUEmm/dd/yy47
–label2, 15ASKIP, NORMBLUEProg:52
PGMNAMEoutput2, 78ASKIP, NORMBLUE57
TITLE02output2, 2140ASKIP, NORMYELLOW61
–label2, 655ASKIP, NORMBLUETime:65
CURTIMEoutput2, 718ASKIP, NORMBLUEhh:mm:ss70
–label4, 3023NEUTRALView Credit Card Detail75
–label7, 2319ASKIP, NORMTURQUOISEAccount Number :79
ACCTSIDinput7, 4511FSET, IC, NORM, UNPROTDEFAULT84
–label8, 2319ASKIP, NORMTURQUOISECard Number :91
CARDSIDinput8, 4516FSET, NORM, UNPROTDEFAULT96
–label11, 420TURQUOISEName on card :103
CRDNAMEoutput11, 2550107
–label13, 420TURQUOISECard Active Y/N : 112
CRDSTCDoutput13, 251ASKIP116
–label15, 420TURQUOISEExpiry Date : 122
EXPMONoutput15, 252ASKIP126
–label15, 281/130
EXPYEARoutput15, 304ASKIP133
INFOMSGoutput20, 2540PROTNEUTRAL139
ERRMSGoutput23, 180ASKIP, BRT, FSETRED144
FKEYSoutput24, 175ASKIP, NORMYELLOWENTER=Search Cards F3=Exit148
+
\ No newline at end of file diff --git a/reports/carddemo/design/legacy/CCRDUPA.html b/reports/carddemo/design/legacy/CCRDUPA.html new file mode 100644 index 00000000..2d657f54 --- /dev/null +++ b/reports/carddemo/design/legacy/CCRDUPA.html @@ -0,0 +1,50 @@ + +CCRDUPA legacy screen
+

All legacy screens · aws-carddemo

+

Update Credit Card Details

+

Map CCRDUPA in mapset COCRDUP, app/bms/COCRDUP.bms line 25 · +24 × 80 · 5 input, 12 output, 11 label fields · used by COCRDUPC

+
Tran: ····          ········································    Date: mm/dd/yy  
+Prog: ········      ········································    Time: hh:mm:ss  
+                                                                                
+                             Update Credit Card Details                         
+                                                                                
+                                                                                
+                      Account Number    :   ···········                         
+                      Card Number       :   ________________                    
+                                                                                
+                                                                                
+   Name on card      :  __________________________________________________      
+                                                                                
+   Card Active Y/N   :  _                                                       
+                                                                                
+   Expiry Date       :  __ / ____  ··                                           
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                        ········································                
+                                                                                
+                                                                                
+················································································
+ENTER=Process F3=Exit F5=Save F12=Cancel                                        
+

Drawn by Reframe from the BMS source, with no model. Underlined: input fields. Dots: fields the program fills. Hover a field for its name and attributes.

+

Function keys

KeyThe screen saysHandled in the program
ENTERProcessCOCRDUPC line 414: SET PFK-VALID TO TRUE
F3ExitCOCRDUPC line 435:
F5SaveCOCRDUPC line 989: PERFORM 9200-WRITE-PROCESSING
F12CancelCOCRDUPC line 484: SET CDEMO-PGM-REENTER TO TRUE
COCRDUPC line 958: PERFORM 9000-READ-DATA
+

Checks

  • FKEYS at line 24, column 1 (BMS line 158) has its attribute byte on the data of ERRMSG at line 23, column 1
+

Fields

FieldKindLine, columnLengthAttributesColourInitial textBMS line
–label1, 15ASKIP, NORMBLUETran:29
TRNNAMEoutput1, 74ASKIP, FSET, NORMBLUE34
TITLE01output1, 2140ASKIP, NORMYELLOW38
–label1, 655ASKIP, NORMBLUEDate:42
CURDATEoutput1, 718ASKIP, NORMBLUEmm/dd/yy47
–label2, 15ASKIP, NORMBLUEProg:52
PGMNAMEoutput2, 78ASKIP, NORMBLUE57
TITLE02output2, 2140ASKIP, NORMYELLOW61
–label2, 655ASKIP, NORMBLUETime:65
CURTIMEoutput2, 718ASKIP, NORMBLUEhh:mm:ss70
–label4, 3026NEUTRALUpdate Credit Card Details75
–label7, 2319ASKIP, NORMTURQUOISEAccount Number :79
ACCTSIDoutput7, 4511FSET, IC, NORM, PROTDEFAULT84
–label8, 2319ASKIP, NORMTURQUOISECard Number :91
CARDSIDinput8, 4516FSET, NORM, UNPROTDEFAULT96
–label11, 420TURQUOISEName on card :103
CRDNAMEinput11, 2550UNPROT107
–label13, 420TURQUOISECard Active Y/N : 113
CRDSTCDinput13, 251UNPROT117
–label15, 420TURQUOISEExpiry Date : 123
EXPMONinput15, 252UNPROT127
–label15, 281/132
EXPYEARinput15, 304UNPROT135
EXPDAYoutput15, 362DRK, FSET, PROT142
INFOMSGoutput20, 2540PROTNEUTRAL149
ERRMSGoutput23, 180ASKIP, BRT, FSETRED154
FKEYSoutput24, 121ASKIP, NORMYELLOWENTER=Process F3=Exit158
FKEYSCoutput24, 2318ASKIP, DRKYELLOWF5=Save F12=Cancel163
+
\ No newline at end of file diff --git a/reports/carddemo/design/legacy/COADM1A.html b/reports/carddemo/design/legacy/COADM1A.html new file mode 100644 index 00000000..eca2196c --- /dev/null +++ b/reports/carddemo/design/legacy/COADM1A.html @@ -0,0 +1,50 @@ + +COADM1A legacy screen
+

All legacy screens · aws-carddemo

+

Admin Menu

+

Map COADM1A in mapset COADM01, app/bms/COADM01.bms line 26 · +24 × 80 · 1 input, 19 output, 7 label fields · used by COADM01C

+
Tran: ····          ········································    Date: mm/dd/yy  
+Prog: ········      ········································    Time: hh:mm:ss  
+                                                                                
+                                  Admin Menu                                    
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+              Please select an option : __                                      
+                                                                                
+                                                                                
+··············································································  
+ENTER=Continue  F3=Exit                                                         
+

Drawn by Reframe from the BMS source, with no model. Underlined: input fields. Dots: fields the program fills. Hover a field for its name and attributes.

+

Function keys

KeyThe screen saysHandled in the program
ENTERContinueCOADM01C line 98: PERFORM PROCESS-ENTER-KEY
F3ExitCOADM01C line 100: MOVE 'COSGN00C' TO CDEMO-TO-PROGRAM
+

Checks

  • None.
+

Fields

FieldKindLine, columnLengthAttributesColourInitial textBMS line
–label1, 15ASKIP, NORMBLUETran:29
TRNNAMEoutput1, 74ASKIP, FSET, NORMBLUE34
TITLE01output1, 2140ASKIP, FSET, NORMYELLOW38
–label1, 655ASKIP, NORMBLUEDate:42
CURDATEoutput1, 718ASKIP, FSET, NORMBLUEmm/dd/yy47
–label2, 15ASKIP, NORMBLUEProg:52
PGMNAMEoutput2, 78ASKIP, FSET, NORMBLUE57
TITLE02output2, 2140ASKIP, FSET, NORMYELLOW61
–label2, 655ASKIP, NORMBLUETime:65
CURTIMEoutput2, 718ASKIP, FSET, NORMBLUEhh:mm:ss70
–label4, 3510ASKIP, BRTNEUTRALAdmin Menu75
OPTN001output6, 2040ASKIP, FSET, NORMBLUE 80
OPTN002output7, 2040ASKIP, FSET, NORMBLUE 85
OPTN003output8, 2040ASKIP, FSET, NORMBLUE 90
OPTN004output9, 2040ASKIP, FSET, NORMBLUE 95
OPTN005output10, 2040ASKIP, FSET, NORMBLUE 100
OPTN006output11, 2040ASKIP, FSET, NORMBLUE 105
OPTN007output12, 2040ASKIP, FSET, NORMBLUE 110
OPTN008output13, 2040ASKIP, FSET, NORMBLUE 115
OPTN009output14, 2040ASKIP, FSET, NORMBLUE 120
OPTN010output15, 2040ASKIP, FSET, NORMBLUE 125
OPTN011output16, 2040ASKIP, FSET, NORMBLUE 130
OPTN012output17, 2040ASKIP, FSET, NORMBLUE 135
–label20, 1525ASKIP, BRTTURQUOISEPlease select an option :140
OPTIONinput20, 412FSET, IC, NORM, NUM, UNPROT145
ERRMSGoutput23, 178ASKIP, BRT, FSETRED154
–label24, 123ASKIP, NORMYELLOWENTER=Continue F3=Exit158
+
\ No newline at end of file diff --git a/reports/carddemo/design/legacy/COBIL0A.html b/reports/carddemo/design/legacy/COBIL0A.html new file mode 100644 index 00000000..56b015ad --- /dev/null +++ b/reports/carddemo/design/legacy/COBIL0A.html @@ -0,0 +1,50 @@ + +COBIL0A legacy screen
+

All legacy screens · aws-carddemo

+

Bill Payment

+

Map COBIL0A in mapset COBIL00, app/bms/COBIL00.bms line 26 · +24 × 80 · 2 input, 8 output, 11 label fields · used by COBIL00C

+
Tran: ····          ········································    Date: mm/dd/yy  
+Prog: ········      ········································    Time: hh:mm:ss  
+                                                                                
+                                  Bill Payment                                  
+                                                                                
+     Enter Acct ID: ___________                                                 
+                                                                                
+     ----------------------------------------------------------------------     
+                                                                                
+                                                                                
+     Your current balance is:  ··············                                   
+                                                                                
+                                                                                
+                                                                                
+     Do you want to pay your balance now. Please confirm:  _  (Y/N)             
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+··············································································  
+ENTER=Continue  F3=Back  F4=Clear                                               
+

Drawn by Reframe from the BMS source, with no model. Underlined: input fields. Dots: fields the program fills. Hover a field for its name and attributes.

+

Function keys

KeyThe screen saysHandled in the program
ENTERContinueCOBIL00C line 126: PERFORM PROCESS-ENTER-KEY
F3BackCOBIL00C line 128: MOVE 'COMEN01C' TO CDEMO-TO-PROGRAM
F4ClearCOBIL00C line 136: PERFORM CLEAR-CURRENT-SCREEN
+

Checks

  • None.
+

Fields

FieldKindLine, columnLengthAttributesColourInitial textBMS line
–label1, 15ASKIP, NORMBLUETran:29
TRNNAMEoutput1, 74ASKIP, FSET, NORMBLUE34
TITLE01output1, 2140ASKIP, FSET, NORMYELLOW38
–label1, 655ASKIP, NORMBLUEDate:42
CURDATEoutput1, 718ASKIP, FSET, NORMBLUEmm/dd/yy47
–label2, 15ASKIP, NORMBLUEProg:52
PGMNAMEoutput2, 78ASKIP, FSET, NORMBLUE57
TITLE02output2, 2140ASKIP, FSET, NORMYELLOW61
–label2, 655ASKIP, NORMBLUETime:65
CURTIMEoutput2, 718ASKIP, FSET, NORMBLUEhh:mm:ss70
–label4, 3512ASKIP, BRTNEUTRALBill Payment75
–label6, 614ASKIP, NORMGREENEnter Acct ID:80
ACTIDINinput6, 2111FSET, IC, NORM, UNPROTGREEN85
–label8, 670YELLOW----------------------------------------------------------------------93
–label11, 625ASKIP, NORMTURQUOISEYour current balance is: 98
CURBALoutput11, 3214ASKIP, FSET, NORMBLUE103
–label15, 653ASKIP, NORMTURQUOISEDo you want to pay your balance now. Please confirm: 109
CONFIRMinput15, 601FSET, NORM, UNPROTGREEN115
–label15, 635ASKIP, NORMNEUTRAL(Y/N)122
ERRMSGoutput23, 178ASKIP, BRT, FSETRED127
–label24, 133ASKIP, NORMYELLOWENTER=Continue F3=Back F4=Clear131
+
\ No newline at end of file diff --git a/reports/carddemo/design/legacy/COMEN1A.html b/reports/carddemo/design/legacy/COMEN1A.html new file mode 100644 index 00000000..f25bd611 --- /dev/null +++ b/reports/carddemo/design/legacy/COMEN1A.html @@ -0,0 +1,50 @@ + +COMEN1A legacy screen
+

All legacy screens · aws-carddemo

+

Main Menu

+

Map COMEN1A in mapset COMEN01, app/bms/COMEN01.bms line 26 · +24 × 80 · 1 input, 19 output, 7 label fields · used by COMEN01C

+
Tran: ····          ········································    Date: mm/dd/yy  
+Prog: ········      ········································    Time: hh:mm:ss  
+                                                                                
+                                  Main Menu                                     
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+              Please select an option : __                                      
+                                                                                
+                                                                                
+··············································································  
+ENTER=Continue  F3=Exit                                                         
+

Drawn by Reframe from the BMS source, with no model. Underlined: input fields. Dots: fields the program fills. Hover a field for its name and attributes.

+

Function keys

KeyThe screen saysHandled in the program
ENTERContinueCOMEN01C line 94: PERFORM PROCESS-ENTER-KEY
F3ExitCOMEN01C line 96: MOVE 'COSGN00C' TO CDEMO-TO-PROGRAM
+

Checks

  • None.
+

Fields

FieldKindLine, columnLengthAttributesColourInitial textBMS line
–label1, 15ASKIP, NORMBLUETran:29
TRNNAMEoutput1, 74ASKIP, FSET, NORMBLUE34
TITLE01output1, 2140ASKIP, FSET, NORMYELLOW38
–label1, 655ASKIP, NORMBLUEDate:42
CURDATEoutput1, 718ASKIP, FSET, NORMBLUEmm/dd/yy47
–label2, 15ASKIP, NORMBLUEProg:52
PGMNAMEoutput2, 78ASKIP, FSET, NORMBLUE57
TITLE02output2, 2140ASKIP, FSET, NORMYELLOW61
–label2, 655ASKIP, NORMBLUETime:65
CURTIMEoutput2, 718ASKIP, FSET, NORMBLUEhh:mm:ss70
–label4, 359ASKIP, BRTNEUTRALMain Menu75
OPTN001output6, 2040ASKIP, FSET, NORMBLUE 80
OPTN002output7, 2040ASKIP, FSET, NORMBLUE 85
OPTN003output8, 2040ASKIP, FSET, NORMBLUE 90
OPTN004output9, 2040ASKIP, FSET, NORMBLUE 95
OPTN005output10, 2040ASKIP, FSET, NORMBLUE 100
OPTN006output11, 2040ASKIP, FSET, NORMBLUE 105
OPTN007output12, 2040ASKIP, FSET, NORMBLUE 110
OPTN008output13, 2040ASKIP, FSET, NORMBLUE 115
OPTN009output14, 2040ASKIP, FSET, NORMBLUE 120
OPTN010output15, 2040ASKIP, FSET, NORMBLUE 125
OPTN011output16, 2040ASKIP, FSET, NORMBLUE 130
OPTN012output17, 2040ASKIP, FSET, NORMBLUE 135
–label20, 1525ASKIP, BRTTURQUOISEPlease select an option :140
OPTIONinput20, 412FSET, IC, NORM, NUM, UNPROT145
ERRMSGoutput23, 178ASKIP, BRT, FSETRED154
–label24, 123ASKIP, NORMYELLOWENTER=Continue F3=Exit158
+
\ No newline at end of file diff --git a/reports/carddemo/design/legacy/COPAU0A.html b/reports/carddemo/design/legacy/COPAU0A.html new file mode 100644 index 00000000..1c40a73b --- /dev/null +++ b/reports/carddemo/design/legacy/COPAU0A.html @@ -0,0 +1,50 @@ + +COPAU0A legacy screen
+

All legacy screens · aws-carddemo

+

View Authorizations

+

Map COPAU0A in mapset COPAU00, app/app-authorization-ims-db2-mq/bms/COPAU00.bms line 26 · +24 × 80 · 6 input, 56 output, 36 label fields · used by COPAUS0C

+
Tran: ····          ········································    Date: mm/dd/yy  
+Prog: ········      ········································    Time: hh:mm:ss  
+                             View Authorizations                                
+                                                                                
+  Search Acct Id: ___________                                                   
+  Name:  ·························         Customer Id:  ·········              
+         ·························         Acct Status:  ·                      
+         ·························                                              
+         PH:  ·············                Approval # :  ···   Decline #:  ···  
+                                                                                
+     Credit Lim:                  Cash Lim:              Appr Amt:              
+     Credit Bal:                  Cash Bal:              Decl Amt:              
+                                                                                
+ Sel    Transaction ID      Date       Time     Type   A/D  STS      Amount     
+ ---   ----------------   --------  --------    ----   ---  ---   ------------  
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+           Type 'S' to View Authorization details from the list                 
+··············································································  
+ENTER=Continue  F3=Back  F7=Backward  F8=Forward                                
+

Drawn by Reframe from the BMS source, with no model. Underlined: input fields. Dots: fields the program fills. Hover a field for its name and attributes.

+

Function keys

KeyThe screen saysHandled in the program
ENTERContinueCOPAUS0C line 225: PERFORM PROCESS-ENTER-KEY
F3BackCOPAUS0C line 235: MOVE WS-PGM-MENU TO CDEMO-TO-PROGRAM
F7BackwardCOPAUS0C line 239: PERFORM PROCESS-PF7-KEY
COPAUS0C line 425: PERFORM REPOSITION-AUTHORIZATIONS
F8ForwardCOPAUS0C line 242: PERFORM PROCESS-PF8-KEY
+

Checks

  • None.
+

Fields

FieldKindLine, columnLengthAttributesColourInitial textBMS line
–label1, 15ASKIP, NORMBLUETran:29
TRNNAMEoutput1, 74ASKIP, FSET, NORMBLUE34
TITLE01output1, 2140ASKIP, FSET, NORMYELLOW38
–label1, 655ASKIP, NORMBLUEDate:42
CURDATEoutput1, 718ASKIP, FSET, NORMBLUEmm/dd/yy47
–label2, 15ASKIP, NORMBLUEProg:52
PGMNAMEoutput2, 78ASKIP, FSET, NORMBLUE57
TITLE02output2, 2140ASKIP, FSET, NORMYELLOW61
–label2, 655ASKIP, NORMBLUETime:65
CURTIMEoutput2, 718ASKIP, FSET, NORMBLUEhh:mm:ss70
–label3, 3019NEUTRALView Authorizations75
–label5, 315ASKIP, NORMTURQUOISESearch Acct Id:79
ACCTIDinput5, 1911FSET, NORM, UNPROTGREEN84
–label6, 36DEFAULTName: 92
CNAMEoutput6, 1025ASKIP, NORMBLUE96
–label6, 4413Customer Id: 100
CUSTIDoutput6, 589ASKIP, NORMBLUE103
ADDR001output7, 1025ASKIP, NORMBLUE107
–label7, 4413Acct Status: 111
ACCSTAToutput7, 581ASKIP, NORMBLUE114
ADDR002output8, 1025ASKIP, NORMBLUE118
–label9, 103PH:122
PHONE1output9, 1513ASKIP, NORMBLUE125
–label9, 4413Approval # : 129
APPRCNToutput9, 583ASKIP, NORMBLUE132
–label9, 6410Decline #:136
DECLCNToutput9, 763ASKIP, NORMBLUE139
–label11, 611DEFAULTCredit Lim:143
CREDLIMoutput11, 1912ASKIP, FSET, NORMBLUE 147
–label11, 359DEFAULTCash Lim:152
CASHLIMoutput11, 469ASKIP, FSET, NORMBLUE 156
–label11, 589DEFAULTAppr Amt:161
APPRAMToutput11, 6910ASKIP, FSET, NORMBLUE 165
–label12, 611DEFAULTCredit Bal:170
CREDBALoutput12, 1912ASKIP, FSET, NORMBLUE 174
–label12, 359DEFAULTCash Bal:179
CASHBALoutput12, 469ASKIP, FSET, NORMBLUE 183
–label12, 589DEFAULTDecl Amt:188
DECLAMToutput12, 6910ASKIP, FSET, NORMBLUE 192
–label14, 23ASKIP, NORMNEUTRALSel197
–label14, 816ASKIP, NORMNEUTRAL Transaction ID 202
–label14, 278ASKIP, NORMNEUTRAL Date 207
–label14, 388ASKIP, NORMNEUTRAL Time 212
–label14, 495ASKIP, NORMNEUTRALType 217
–label14, 563ASKIP, NORMNEUTRALA/D222
–label14, 613ASKIP, NORMNEUTRALSTS227
–label14, 6712ASKIP, NORMNEUTRAL Amount 232
–label15, 23ASKIP, NORMNEUTRAL---237
–label15, 816ASKIP, NORMNEUTRAL----------------242
–label15, 278ASKIP, NORMNEUTRAL--------247
–label15, 378ASKIP, NORMNEUTRAL--------252
–label15, 494ASKIP, NORMNEUTRAL----257
–label15, 563ASKIP, NORMNEUTRAL---262
–label15, 613ASKIP, NORMNEUTRAL---267
–label15, 6712ASKIP, NORMNEUTRAL------------272
SEL0001input16, 31FSET, NORM, UNPROTGREEN 277
TRNID01output16, 816ASKIP, FSET, NORMBLUE 286
PDATE01output16, 278ASKIP, FSET, NORMBLUE 291
PTIME01output16, 388ASKIP, FSET, NORMBLUE 296
PTYPE01output16, 494ASKIP, FSET, NORMBLUE 301
PAPRV01output16, 581ASKIP, FSET, NORMBLUE 306
PSTAT01output16, 631ASKIP, FSET, NORMBLUE 311
PAMT001output16, 6712ASKIP, FSET, NORMBLUE 316
SEL0002input17, 31FSET, NORM, UNPROTGREEN 321
TRNID02output17, 816ASKIP, FSET, NORMBLUE 330
PDATE02output17, 278ASKIP, FSET, NORMBLUE 335
PTIME02output17, 388ASKIP, FSET, NORMBLUE 340
PTYPE02output17, 494ASKIP, FSET, NORMBLUE 345
PAPRV02output17, 581ASKIP, FSET, NORMBLUE 350
PSTAT02output17, 631ASKIP, FSET, NORMBLUE 355
PAMT002output17, 6712ASKIP, FSET, NORMBLUE 360
SEL0003input18, 31FSET, NORM, UNPROTGREEN 365
TRNID03output18, 816ASKIP, FSET, NORMBLUE 374
PDATE03output18, 278ASKIP, FSET, NORMBLUE 379
PTIME03output18, 388ASKIP, FSET, NORMBLUE 384
PTYPE03output18, 494ASKIP, FSET, NORMBLUE 389
PAPRV03output18, 581ASKIP, FSET, NORMBLUE 394
PSTAT03output18, 631ASKIP, FSET, NORMBLUE 399
PAMT003output18, 6712ASKIP, FSET, NORMBLUE 404
SEL0004input19, 31FSET, NORM, UNPROTGREEN 409
TRNID04output19, 816ASKIP, FSET, NORMBLUE 418
PDATE04output19, 278ASKIP, FSET, NORMBLUE 423
PTIME04output19, 388ASKIP, FSET, NORMBLUE 428
PTYPE04output19, 494ASKIP, FSET, NORMBLUE 433
PAPRV04output19, 581ASKIP, FSET, NORMBLUE 438
PSTAT04output19, 631ASKIP, FSET, NORMBLUE 443
PAMT004output19, 6712ASKIP, FSET, NORMBLUE 448
TRNID05output20, 816ASKIP, FSET, NORMBLUE 453
PDATE05output20, 278ASKIP, FSET, NORMBLUE 458
PTIME05output20, 388ASKIP, FSET, NORMBLUE 463
PTYPE05output20, 494ASKIP, FSET, NORMBLUE 468
PAPRV05output20, 581ASKIP, FSET, NORMBLUE 473
PSTAT05output20, 631ASKIP, FSET, NORMBLUE 478
PAMT005output20, 6712ASKIP, FSET, NORMBLUE 483
SEL0005input20, 31FSET, NORM, UNPROTGREEN 488
–label22, 1252ASKIP, BRTNEUTRALType 'S' to View Authorization details from the list497
ERRMSGoutput23, 178ASKIP, BRT, FSETRED503
–label24, 148ASKIP, NORMYELLOWENTER=Continue F3=Back F7=Backward F8=Forward507
+
\ No newline at end of file diff --git a/reports/carddemo/design/legacy/COPAU1A.html b/reports/carddemo/design/legacy/COPAU1A.html new file mode 100644 index 00000000..4fce1e94 --- /dev/null +++ b/reports/carddemo/design/legacy/COPAU1A.html @@ -0,0 +1,50 @@ + +COPAU1A legacy screen
+

All legacy screens · aws-carddemo

+

View Authorization Details

+

Map COPAU1A in mapset COPAU01, app/app-authorization-ims-db2-mq/bms/COPAU01.bms line 26 · +24 × 80 · 0 input, 27 output, 27 label fields · used by COPAUS1C

+
Tran: ····          ········································    Date: mm/dd/yy  
+Prog: ········      ········································    Time: hh:mm:ss  
+                                                                                
+                          View Authorization Details                            
+                                                                                
+                                                                                
+ Card #:  ················    Auth Date:               Auth Time:               
+                                                                                
+ Auth Resp:      Resp Reason:                          Auth Code:               
+                                                                                
+ Amount:                    POS Entry Mode:            Source   :               
+                                                                                
+ MCC Code:              Card Exp. Date:            Auth Type:                   
+                                                                                
+ Tran Id:                     Match Status:        Fraud Status:                
+                                                                                
+ Merchant Details -----------------------------------------------------------   
+                                                                                
+ Name:                                  Merchant ID:                            
+                                                                                
+ City:                                  State:        Zip:                      
+                                                                                
+··············································································  
+ F3=Back  F5=Mark/Remove Fraud  F8=Next Auth                                    
+

Drawn by Reframe from the BMS source, with no model. Underlined: input fields. Dots: fields the program fills. Hover a field for its name and attributes.

+

Function keys

KeyThe screen saysHandled in the program
ENTER–COPAUS1C line 181: PERFORM PROCESS-ENTER-KEYhandled, not shown on the screen
F3BackCOPAUS1C line 184: MOVE WS-PGM-AUTH-SMRY TO CDEMO-TO-PROGRAM
F5Mark/Remove FraudCOPAUS1C line 187: PERFORM MARK-AUTH-FRAUD
F8Next AuthCOPAUS1C line 190: PERFORM PROCESS-PF8-KEY
+

Checks

  • TRNID at line 15, column 12 (BMS line 204) has its attribute byte on the data of the label 'Tran Id:' at line 15, column 2
+

Fields

FieldKindLine, columnLengthAttributesColourInitial textBMS line
–label1, 15ASKIP, NORMBLUETran:29
TRNNAMEoutput1, 74ASKIP, NORMBLUE34
TITLE01output1, 2140ASKIP, NORMYELLOW38
–label1, 655ASKIP, NORMBLUEDate:42
CURDATEoutput1, 718ASKIP, NORMBLUEmm/dd/yy47
–label2, 15ASKIP, NORMBLUEProg:52
PGMNAMEoutput2, 78ASKIP, NORMBLUE57
TITLE02output2, 2140ASKIP, NORMYELLOW61
–label2, 655ASKIP, NORMBLUETime:65
CURTIMEoutput2, 718ASKIP, NORMBLUEhh:mm:ss70
–label4, 2726ASKIP, BRTNEUTRALView Authorization Details75
–label7, 27ASKIP, NORMTURQUOISECard #:80
CARDNUMoutput7, 1116ASKIP, NORMPINK85
–label7, 3110ASKIP, NORMTURQUOISEAuth Date:89
AUTHDToutput7, 4310ASKIP, NORMPINK 94
–label7, 5610ASKIP, NORMTURQUOISEAuth Time:99
AUTHTMoutput7, 6810ASKIP, NORMPINK 104
–label9, 210ASKIP, NORMTURQUOISEAuth Resp:109
AUTHRSPoutput9, 141ASKIP, NORMPINK 114
–label9, 1812ASKIP, NORMTURQUOISEResp Reason:119
AUTHRSNoutput9, 3220ASKIP, NORMBLUE 124
–label9, 5610ASKIP, NORMTURQUOISEAuth Code:129
AUTHCDoutput9, 686ASKIP, NORMBLUE 134
–label11, 27ASKIP, NORMTURQUOISEAmount:139
AUTHAMToutput11, 1112ASKIP, NORMBLUE 144
–label11, 2915ASKIP, NORMTURQUOISEPOS Entry Mode:149
POSEMDoutput11, 464ASKIP, NORMBLUE 154
–label11, 5610ASKIP, NORMTURQUOISESource :159
AUTHSRCoutput11, 6810ASKIP, NORMBLUE 164
–label13, 29ASKIP, NORMTURQUOISEMCC Code:169
MCCCDoutput13, 134ASKIP, NORMBLUE 174
–label13, 2515ASKIP, NORMTURQUOISECard Exp. Date:179
CRDEXPoutput13, 425ASKIP, NORMBLUE 184
–label13, 5210ASKIP, NORMTURQUOISEAuth Type:189
AUTHTYPoutput13, 6414ASKIP, NORMBLUE 194
–label15, 218ASKIP, NORMTURQUOISETran Id:199
TRNIDoutput15, 1215ASKIP, NORMBLUE 204
–label15, 3113ASKIP, NORMTURQUOISEMatch Status:209
AUTHMTCoutput15, 461ASKIP, NORMRED 214
–label15, 5213ASKIP, NORMTURQUOISEFraud Status:219
AUTHFRDoutput15, 6710ASKIP, NORMRED 224
–label17, 276NEUTRALMerchant Details -----------------------------------------------------------229
–label19, 25ASKIP, NORMTURQUOISEName:234
MERNAMEoutput19, 925ASKIP, NORMBLUE 239
–label19, 4112ASKIP, NORMTURQUOISEMerchant ID:244
MERIDoutput19, 5515ASKIP, NORMBLUE 249
–label21, 25ASKIP, NORMTURQUOISECity:254
MERCITYoutput21, 925ASKIP, NORMBLUE 259
–label21, 416ASKIP, NORMTURQUOISEState:264
MERSToutput21, 492ASKIP, NORMBLUE 269
–label21, 554ASKIP, NORMTURQUOISEZip:274
MERZIPoutput21, 6110ASKIP, NORMBLUE 279
ERRMSGoutput23, 178ASKIP, BRT, FSETRED284
–label24, 145ASKIP, NORMYELLOW F3=Back F5=Mark/Remove Fraud F8=Next Auth288
+
\ No newline at end of file diff --git a/reports/carddemo/design/legacy/CORPT0A.html b/reports/carddemo/design/legacy/CORPT0A.html new file mode 100644 index 00000000..becdbb84 --- /dev/null +++ b/reports/carddemo/design/legacy/CORPT0A.html @@ -0,0 +1,50 @@ + +CORPT0A legacy screen
+

All legacy screens · aws-carddemo

+

Transaction Reports

+

Map CORPT0A in mapset CORPT00, app/bms/CORPT00.bms line 26 · +24 × 80 · 10 input, 7 output, 19 label fields · used by CORPT00C

+
Tran: ····          ········································    Date: mm/dd/yy  
+Prog: ········      ········································    Time: hh:mm:ss  
+                                                                                
+                             Transaction Reports                                
+                                                                                
+                                                                                
+              Monthly (Current Month)                                           
+                                                                                
+              Yearly (Current Year)                                             
+                                                                                
+              Custom (Date Range)                                               
+                                                                                
+              Start Date :     /    /        (MM/DD/YYYY)                       
+                End Date :     /    /        (MM/DD/YYYY)                       
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+     The Report will be submitted for printing. Please confirm:  _  (Y/N)       
+                                                                                
+                                                                                
+                                                                                
+··············································································  
+ENTER=Continue  F3=Back                                                         
+

Drawn by Reframe from the BMS source, with no model. Underlined: input fields. Dots: fields the program fills. Hover a field for its name and attributes.

+

Function keys

KeyThe screen saysHandled in the program
ENTERContinueCORPT00C line 185: PERFORM PROCESS-ENTER-KEY
F3BackCORPT00C line 187: MOVE 'COMEN01C' TO CDEMO-TO-PROGRAM
+

Checks

  • None.
+

Fields

FieldKindLine, columnLengthAttributesColourInitial textBMS line
–label1, 15ASKIP, NORMBLUETran:29
TRNNAMEoutput1, 74ASKIP, FSET, NORMBLUE34
TITLE01output1, 2140ASKIP, FSET, NORMYELLOW38
–label1, 655ASKIP, NORMBLUEDate:42
CURDATEoutput1, 718ASKIP, FSET, NORMBLUEmm/dd/yy47
–label2, 15ASKIP, NORMBLUEProg:52
PGMNAMEoutput2, 78ASKIP, FSET, NORMBLUE57
TITLE02output2, 2140ASKIP, FSET, NORMYELLOW61
–label2, 655ASKIP, NORMBLUETime:65
CURTIMEoutput2, 718ASKIP, FSET, NORMBLUEhh:mm:ss70
–label4, 3019ASKIP, BRTNEUTRALTransaction Reports75
MONTHLYinput7, 101FSET, IC, NORM, UNPROTGREEN 80
–label7, 1523ASKIP, BRTTURQUOISEMonthly (Current Month)89
YEARLYinput9, 101FSET, NORM, UNPROTGREEN 94
–label9, 1523ASKIP, BRTTURQUOISEYearly (Current Year)103
CUSTOMinput11, 101FSET, NORM, UNPROTGREEN 108
–label11, 1523ASKIP, BRTTURQUOISECustom (Date Range)117
–label13, 1512ASKIP, NORMTURQUOISEStart Date :122
SDTMMinput13, 292FSET, NORM, NUM, UNPROTGREEN 127
–label13, 321ASKIP, NORMBLUE/133
SDTDDinput13, 342FSET, NORM, NUM, UNPROTGREEN 138
–label13, 371ASKIP, NORMBLUE/144
SDTYYYYinput13, 394FSET, NORM, NUM, UNPROTGREEN 149
–label13, 4612BLUE(MM/DD/YYYY)157
–label14, 1512ASKIP, NORMTURQUOISE End Date :161
EDTMMinput14, 292FSET, NORM, NUM, UNPROTGREEN 166
–label14, 321ASKIP, NORMBLUE/172
EDTDDinput14, 342FSET, NORM, NUM, UNPROTGREEN 177
–label14, 371ASKIP, NORMBLUE/183
EDTYYYYinput14, 394FSET, NORM, NUM, UNPROTGREEN 188
–label14, 4612BLUE(MM/DD/YYYY)196
–label19, 659ASKIP, NORMTURQUOISEThe Report will be submitted for printing. Please confirm: 200
CONFIRMinput19, 661FSET, NORM, UNPROTGREEN206
–label19, 695ASKIP, NORMNEUTRAL(Y/N)213
ERRMSGoutput23, 178ASKIP, BRT, FSETRED218
–label24, 123ASKIP, NORMYELLOWENTER=Continue F3=Back222
+
\ No newline at end of file diff --git a/reports/carddemo/design/legacy/COSGN0A.html b/reports/carddemo/design/legacy/COSGN0A.html new file mode 100644 index 00000000..09addefe --- /dev/null +++ b/reports/carddemo/design/legacy/COSGN0A.html @@ -0,0 +1,50 @@ + +COSGN0A legacy screen
+

All legacy screens · aws-carddemo

+

Login Screen

+

Map COSGN0A in mapset COSGN00, app/bms/COSGN00.bms line 26 · +24 × 80 · 3 input, 9 output, 22 label fields · used by COSGN00C

+
Tran : ····         ········································   Date : mm/dd/yy  
+Prog : ········     ········································   Time : Ahh:mm:ss 
+AppID: ········                                                SysID:           
+                                                                                
+     This is a Credit Card Demo Application for Mainframe Modernization         
+                                                                                
+                    +========================================+                  
+                    |%%%%%%%  NATIONAL RESERVE NOTE  %%%%%%%%|                  
+                    |%(1)  THE UNITED STATES OF KICSLAND (1)%|                  
+                    |%$$              ___       ********  $$%|                  
+                    |%$    {x}       (o o)                 $%|                  
+                    |%$     ******  (  V  )      O N E     $%|                  
+                    |%(1)          ---m-m---             (1)%|                  
+                    |%%~~~~~~~~~~~ ONE DOLLAR ~~~~~~~~~~~~~%%|                  
+                    +========================================+                  
+                                                                                
+               Type your User ID and Password, then press ENTER:                
+                                                                                
+                            User ID     : ________ (8 Char)                     
+                            Password    : ________ (8 Char)                     
+                                                                                
+                                                                                
+··············································································  
+ENTER=Sign-on  F3=Exit                                                          
+

Drawn by Reframe from the BMS source, with no model. Underlined: input fields. Dots: fields the program fills. Hover a field for its name and attributes.

+

Function keys

KeyThe screen saysHandled in the program
ENTERSign-onCOSGN00C line 86: PERFORM PROCESS-ENTER-KEY
F3ExitCOSGN00C line 88: MOVE CCDA-MSG-THANK-YOU TO WS-MESSAGE
+

Checks

  • None.
+

Fields

FieldKindLine, columnLengthAttributesColourInitial textBMS line
–label1, 16ASKIP, NORMBLUETran :29
TRNNAMEoutput1, 84ASKIP, FSET, NORMBLUE34
TITLE01output1, 2140ASKIP, FSET, NORMYELLOW38
–label1, 646ASKIP, NORMBLUEDate :42
CURDATEoutput1, 718ASKIP, FSET, NORMBLUEmm/dd/yy47
–label2, 16ASKIP, NORMBLUEProg :52
PGMNAMEoutput2, 88FSET, NORM, PROTBLUE57
TITLE02output2, 2140ASKIP, FSET, NORMYELLOW61
–label2, 646ASKIP, NORMBLUETime :65
CURTIMEoutput2, 719FSET, NORM, PROTBLUEAhh:mm:ss70
–label3, 16FSET, NORM, PROTBLUEAppID:75
APPLIDoutput3, 88FSET, NORM, PROTBLUE80
–label3, 646ASKIP, NORMBLUESysID:84
SYSIDoutput3, 718FSET, NORM, PROTBLUE 89
–label5, 666ASKIP, NORMNEUTRALThis is a Credit Card Demo Application for Mainframe Modernization94
–label7, 2142ASKIP, NORMBLUE+========================================+100
–label8, 2142ASKIP, NORMBLUE|%%%%%%% NATIONAL RESERVE NOTE %%%%%%%%|105
–label9, 2142ASKIP, NORMBLUE|%(1) THE UNITED STATES OF KICSLAND (1)%|110
–label10, 2142ASKIP, NORMBLUE|%$$ ___ ******** $$%|115
–label11, 2142ASKIP, NORMBLUE|%$ {x} (o o) $%|120
–label12, 2142ASKIP, NORMBLUE|%$ ****** ( V ) O N E $%|125
–label13, 2142ASKIP, NORMBLUE|%(1) ---m-m--- (1)%|130
–label14, 2142ASKIP, NORMBLUE|%%~~~~~~~~~~~ ONE DOLLAR ~~~~~~~~~~~~~%%|135
–label15, 2142ASKIP, NORMBLUE+========================================+140
–label17, 1649ASKIP, NORMTURQUOISEType your User ID and Password, then press ENTER:145
–label19, 2913ASKIP, NORMTURQUOISEUser ID :151
USERIDinput19, 438FSET, IC, NORM, UNPROTGREEN156
–label19, 528ASKIP, NORMBLUE(8 Char)165
–label20, 2913ASKIP, NORMTURQUOISEPassword :170
PASSWDinput20, 438DRK, FSET, UNPROTGREEN________175
–label20, 528ASKIP, NORMBLUE(8 Char)185
–input20, 611DRK, UNPROT 190
ERRMSGoutput23, 178ASKIP, BRT, FSETRED197
–label24, 122ASKIP, NORMYELLOWENTER=Sign-on F3=Exit201
+
\ No newline at end of file diff --git a/reports/carddemo/design/legacy/COTRN0A.html b/reports/carddemo/design/legacy/COTRN0A.html new file mode 100644 index 00000000..1621e43a --- /dev/null +++ b/reports/carddemo/design/legacy/COTRN0A.html @@ -0,0 +1,50 @@ + +COTRN0A legacy screen
+

All legacy screens · aws-carddemo

+

List Transactions

+

Map COTRN0A in mapset COTRN00, app/bms/COTRN00.bms line 26 · +24 × 80 · 11 input, 48 output, 19 label fields · used by COTRN00C

+
Tran: ····          ········································    Date: mm/dd/yy  
+Prog: ········      ········································    Time: hh:mm:ss  
+                                                                                
+                             List Transactions                  Page:           
+                                                                                
+    Search Tran ID: ________________                                            
+                                                                                
+ Sel    Transaction ID      Date          Description                Amount     
+ ---   ----------------   --------   --------------------------   ------------  
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+           Type 'S' to View Transaction details from the list                   
+                                                                                
+··············································································  
+ENTER=Continue  F3=Back  F7=Backward  F8=Forward                                
+

Drawn by Reframe from the BMS source, with no model. Underlined: input fields. Dots: fields the program fills. Hover a field for its name and attributes.

+

Function keys

KeyThe screen saysHandled in the program
ENTERContinueCOTRN00C line 120: PERFORM PROCESS-ENTER-KEY
COTRN00C line 285: PERFORM READNEXT-TRANSACT-FILE
COTRN00C line 339: PERFORM READPREV-TRANSACT-FILE
F3BackCOTRN00C line 122: MOVE 'COMEN01C' TO CDEMO-TO-PROGRAM
COTRN00C line 285: PERFORM READNEXT-TRANSACT-FILE
F7BackwardCOTRN00C line 125: PERFORM PROCESS-PF7-KEY
COTRN00C line 285: PERFORM READNEXT-TRANSACT-FILE
F8ForwardCOTRN00C line 127: PERFORM PROCESS-PF8-KEY
COTRN00C line 339: PERFORM READPREV-TRANSACT-FILE
+

Checks

  • None.
+

Fields

FieldKindLine, columnLengthAttributesColourInitial textBMS line
–label1, 15ASKIP, NORMBLUETran:29
TRNNAMEoutput1, 74ASKIP, FSET, NORMBLUE34
TITLE01output1, 2140ASKIP, FSET, NORMYELLOW38
–label1, 655ASKIP, NORMBLUEDate:42
CURDATEoutput1, 718ASKIP, FSET, NORMBLUEmm/dd/yy47
–label2, 15ASKIP, NORMBLUEProg:52
PGMNAMEoutput2, 78ASKIP, FSET, NORMBLUE57
TITLE02output2, 2140ASKIP, FSET, NORMYELLOW61
–label2, 655ASKIP, NORMBLUETime:65
CURTIMEoutput2, 718ASKIP, FSET, NORMBLUEhh:mm:ss70
–label4, 3017ASKIP, BRTNEUTRALList Transactions75
–label4, 655ASKIP, BRTTURQUOISEPage:80
PAGENUMoutput4, 718ASKIP, FSET, NORMBLUE 85
–label6, 515ASKIP, NORMTURQUOISESearch Tran ID:90
TRNIDINinput6, 2116FSET, NORM, UNPROTGREEN95
–label8, 23ASKIP, NORMNEUTRALSel103
–label8, 816ASKIP, NORMNEUTRAL Transaction ID 108
–label8, 278ASKIP, NORMNEUTRAL Date 113
–label8, 3826ASKIP, NORMNEUTRAL Description 118
–label8, 6712ASKIP, NORMNEUTRAL Amount 123
–label9, 23ASKIP, NORMNEUTRAL---128
–label9, 816ASKIP, NORMNEUTRAL----------------133
–label9, 278ASKIP, NORMNEUTRAL--------138
–label9, 3826ASKIP, NORMNEUTRAL--------------------------143
–label9, 6712ASKIP, NORMNEUTRAL------------148
SEL0001input10, 31FSET, NORM, UNPROTGREEN 153
TRNID01output10, 816ASKIP, FSET, NORMBLUE 162
TDATE01output10, 278ASKIP, FSET, NORMBLUE 167
TDESC01output10, 3826ASKIP, FSET, NORMBLUE 172
TAMT001output10, 6712ASKIP, FSET, NORMBLUE 177
SEL0002input11, 31FSET, NORM, UNPROTGREEN 182
TRNID02output11, 816ASKIP, FSET, NORMBLUE 191
TDATE02output11, 278ASKIP, FSET, NORMBLUE 196
TDESC02output11, 3826ASKIP, FSET, NORMBLUE 201
TAMT002output11, 6712ASKIP, FSET, NORMBLUE 206
SEL0003input12, 31FSET, NORM, UNPROTGREEN 211
TRNID03output12, 816ASKIP, FSET, NORMBLUE 220
TDATE03output12, 278ASKIP, FSET, NORMBLUE 225
TDESC03output12, 3826ASKIP, FSET, NORMBLUE 230
TAMT003output12, 6712ASKIP, FSET, NORMBLUE 235
SEL0004input13, 31FSET, NORM, UNPROTGREEN 240
TRNID04output13, 816ASKIP, FSET, NORMBLUE 249
TDATE04output13, 278ASKIP, FSET, NORMBLUE 254
TDESC04output13, 3826ASKIP, FSET, NORMBLUE 259
TAMT004output13, 6712ASKIP, FSET, NORMBLUE 264
SEL0005input14, 31FSET, NORM, UNPROTGREEN 269
TRNID05output14, 816ASKIP, FSET, NORMBLUE 278
TDATE05output14, 278ASKIP, FSET, NORMBLUE 283
TDESC05output14, 3826ASKIP, FSET, NORMBLUE 288
TAMT005output14, 6712ASKIP, FSET, NORMBLUE 293
SEL0006input15, 31FSET, NORM, UNPROTGREEN 298
TRNID06output15, 816ASKIP, FSET, NORMBLUE 307
TDATE06output15, 278ASKIP, FSET, NORMBLUE 312
TDESC06output15, 3826ASKIP, FSET, NORMBLUE 317
TAMT006output15, 6712ASKIP, FSET, NORMBLUE 322
SEL0007input16, 31FSET, NORM, UNPROTGREEN 327
TRNID07output16, 816ASKIP, FSET, NORMBLUE 336
TDATE07output16, 278ASKIP, FSET, NORMBLUE 341
TDESC07output16, 3826ASKIP, FSET, NORMBLUE 346
TAMT007output16, 6712ASKIP, FSET, NORMBLUE 351
SEL0008input17, 31FSET, NORM, UNPROTGREEN 356
TRNID08output17, 816ASKIP, FSET, NORMBLUE 365
TDATE08output17, 278ASKIP, FSET, NORMBLUE 370
TDESC08output17, 3826ASKIP, FSET, NORMBLUE 375
TAMT008output17, 6712ASKIP, FSET, NORMBLUE 380
SEL0009input18, 31FSET, NORM, UNPROTGREEN 385
TRNID09output18, 816ASKIP, FSET, NORMBLUE 394
TDATE09output18, 278ASKIP, FSET, NORMBLUE 399
TDESC09output18, 3826ASKIP, FSET, NORMBLUE 404
TAMT009output18, 6712ASKIP, FSET, NORMBLUE 409
SEL0010input19, 31FSET, NORM, UNPROTGREEN 414
TRNID10output19, 816ASKIP, FSET, NORMBLUE 423
TDATE10output19, 278ASKIP, FSET, NORMBLUE 428
TDESC10output19, 3826ASKIP, FSET, NORMBLUE 433
TAMT010output19, 6712ASKIP, FSET, NORMBLUE 438
–label21, 1250ASKIP, BRTNEUTRALType 'S' to View Transaction details from the list444
ERRMSGoutput23, 178ASKIP, BRT, FSETRED450
–label24, 148ASKIP, NORMYELLOWENTER=Continue F3=Back F7=Backward F8=Forward454
+
\ No newline at end of file diff --git a/reports/carddemo/design/legacy/COTRN1A.html b/reports/carddemo/design/legacy/COTRN1A.html new file mode 100644 index 00000000..8d82620a --- /dev/null +++ b/reports/carddemo/design/legacy/COTRN1A.html @@ -0,0 +1,50 @@ + +COTRN1A legacy screen
+

All legacy screens · aws-carddemo

+

View Transaction

+

Map COTRN1A in mapset COTRN01, app/bms/COTRN01.bms line 26 · +24 × 80 · 1 input, 20 output, 21 label fields · used by COTRN01C

+
Tran: ····          ········································    Date: mm/dd/yy  
+Prog: ········      ········································    Time: hh:mm:ss  
+                                                                                
+                             View Transaction                                   
+                                                                                
+     Enter Tran ID:                                                             
+                                                                                
+     ----------------------------------------------------------------------     
+                                                                                
+     Transaction ID:                        Card Number:                        
+                                                                                
+     Type CD:         Category CD:           Source:                            
+                                                                                
+     Description:                                                               
+                                                                                
+     Amount:                  Orig Date:                Proc Date:              
+                                                                                
+     Merchant ID:               Merchant Name:                                  
+                                                                                
+     Merchant City:                                 Merchant Zip:               
+                                                                                
+                                                                                
+··············································································  
+ENTER=Fetch  F3=Back  F4=Clear  F5=Browse Tran.                                 
+

Drawn by Reframe from the BMS source, with no model. Underlined: input fields. Dots: fields the program fills. Hover a field for its name and attributes.

+

Function keys

KeyThe screen saysHandled in the program
ENTERFetchCOTRN01C line 113: PERFORM PROCESS-ENTER-KEY
F3BackCOTRN01C line 115: MOVE 'COMEN01C' TO CDEMO-TO-PROGRAM
F4ClearCOTRN01C line 123: PERFORM CLEAR-CURRENT-SCREEN
F5Browse TranCOTRN01C line 125: MOVE 'COTRN00C' TO CDEMO-TO-PROGRAM
+

Checks

  • None.
+

Fields

FieldKindLine, columnLengthAttributesColourInitial textBMS line
–label1, 15ASKIP, NORMBLUETran:29
TRNNAMEoutput1, 74ASKIP, FSET, NORMBLUE34
TITLE01output1, 2140ASKIP, FSET, NORMYELLOW38
–label1, 655ASKIP, NORMBLUEDate:42
CURDATEoutput1, 718ASKIP, FSET, NORMBLUEmm/dd/yy47
–label2, 15ASKIP, NORMBLUEProg:52
PGMNAMEoutput2, 78ASKIP, FSET, NORMBLUE57
TITLE02output2, 2140ASKIP, FSET, NORMYELLOW61
–label2, 655ASKIP, NORMBLUETime:65
CURTIMEoutput2, 718ASKIP, FSET, NORMBLUEhh:mm:ss70
–label4, 3016ASKIP, BRTNEUTRALView Transaction75
–label6, 614ASKIP, NORMTURQUOISEEnter Tran ID:80
TRNIDINinput6, 2116FSET, IC, NORM, UNPROTGREEN 85
–label8, 670ASKIP, NORMNEUTRAL----------------------------------------------------------------------94
–label10, 615ASKIP, NORMTURQUOISETransaction ID:100
TRNIDoutput10, 2216ASKIP, NORMBLUE 105
–label10, 4512ASKIP, NORMTURQUOISECard Number:113
CARDNUMoutput10, 5816ASKIP, NORMBLUE 118
–label12, 68ASKIP, NORMTURQUOISEType CD:127
TTYPCDoutput12, 152ASKIP, NORMBLUE 132
–label12, 2312ASKIP, NORMTURQUOISECategory CD:139
TCATCDoutput12, 364ASKIP, NORMBLUE 144
–label12, 467ASKIP, NORMTURQUOISESource:151
TRNSRCoutput12, 5410ASKIP, NORMBLUE 156
–label14, 612ASKIP, NORMTURQUOISEDescription:163
TDESCoutput14, 1960ASKIP, NORMBLUE 168
–label16, 67ASKIP, NORMTURQUOISEAmount:175
TRNAMToutput16, 1412ASKIP, NORMBLUE 180
–label16, 3110ASKIP, NORMTURQUOISEOrig Date:187
TORIGDToutput16, 4210ASKIP, NORMBLUE 192
–label16, 5710ASKIP, NORMTURQUOISEProc Date:199
TPROCDToutput16, 6810ASKIP, NORMBLUE 204
–label18, 612ASKIP, NORMTURQUOISEMerchant ID:211
MIDoutput18, 199ASKIP, NORMBLUE 216
–label18, 3314ASKIP, NORMTURQUOISEMerchant Name:223
MNAMEoutput18, 4830ASKIP, NORMBLUE 228
–label20, 614ASKIP, NORMTURQUOISEMerchant City:235
MCITYoutput20, 2125ASKIP, NORMBLUE 240
–label20, 5313ASKIP, NORMTURQUOISEMerchant Zip:247
MZIPoutput20, 6710ASKIP, NORMBLUE 252
ERRMSGoutput23, 178ASKIP, BRT, FSETRED259
–label24, 147ASKIP, NORMYELLOWENTER=Fetch F3=Back F4=Clear F5=Browse Tran.263
+
\ No newline at end of file diff --git a/reports/carddemo/design/legacy/COTRN2A.html b/reports/carddemo/design/legacy/COTRN2A.html new file mode 100644 index 00000000..92a3540f --- /dev/null +++ b/reports/carddemo/design/legacy/COTRN2A.html @@ -0,0 +1,50 @@ + +COTRN2A legacy screen
+

All legacy screens · aws-carddemo

+

Add Transaction

+

Map COTRN2A in mapset COTRN02, app/bms/COTRN02.bms line 26 · +24 × 80 · 14 input, 7 output, 26 label fields · used by COTRN02C

+
Tran: ····          ········································    Date: mm/dd/yy  
+Prog: ········      ········································    Time: hh:mm:ss  
+                                                                                
+                             Add Transaction                                    
+                                                                                
+     Enter Acct #:                  (or)     Card #:  ________________          
+                                                                                
+     ----------------------------------------------------------------------     
+                                                                                
+     Type CD:         Category CD:           Source:                            
+                                                                                
+     Description:                                                               
+                                                                                
+     Amount:                  Orig Date:                Proc Date:              
+            (-99999999.99)              (YYYY-MM-DD)              (YYYY-MM-DD)  
+     Merchant ID:               Merchant Name:                                  
+                                                                                
+     Merchant City:                                 Merchant Zip:               
+                                                                                
+                                                                                
+     You are about to add this transaction. Please confirm :  _  (Y/N)          
+                                                                                
+··············································································  
+ENTER=Continue  F3=Back  F4=Clear  F5=Copy Last Tran.                           
+

Drawn by Reframe from the BMS source, with no model. Underlined: input fields. Dots: fields the program fills. Hover a field for its name and attributes.

+

Function keys

KeyThe screen saysHandled in the program
ENTERContinueCOTRN02C line 134: PERFORM PROCESS-ENTER-KEY
F3BackCOTRN02C line 136: MOVE 'COMEN01C' TO CDEMO-TO-PROGRAM
F4ClearCOTRN02C line 144: PERFORM CLEAR-CURRENT-SCREEN
F5Copy Last TranCOTRN02C line 146: PERFORM COPY-LAST-TRAN-DATA
+

Checks

  • None.
+

Fields

FieldKindLine, columnLengthAttributesColourInitial textBMS line
–label1, 15ASKIP, NORMBLUETran:29
TRNNAMEoutput1, 74ASKIP, FSET, NORMBLUE34
TITLE01output1, 2140ASKIP, FSET, NORMYELLOW38
–label1, 655ASKIP, NORMBLUEDate:42
CURDATEoutput1, 718ASKIP, FSET, NORMBLUEmm/dd/yy47
–label2, 15ASKIP, NORMBLUEProg:52
PGMNAMEoutput2, 78ASKIP, FSET, NORMBLUE57
TITLE02output2, 2140ASKIP, FSET, NORMYELLOW61
–label2, 655ASKIP, NORMBLUETime:65
CURTIMEoutput2, 718ASKIP, FSET, NORMBLUEhh:mm:ss70
–label4, 3015ASKIP, BRTNEUTRALAdd Transaction75
–label6, 613ASKIP, NORMTURQUOISEEnter Acct #:80
ACTIDINinput6, 2111FSET, IC, NORM, UNPROTGREEN 85
–label6, 374ASKIP, NORMNEUTRAL(or)94
–label6, 467ASKIP, NORMTURQUOISECard #:99
CARDNINinput6, 5516FSET, NORM, UNPROTGREEN104
–label8, 670ASKIP, NORMNEUTRAL----------------------------------------------------------------------111
–label10, 68ASKIP, NORMTURQUOISEType CD:117
TTYPCDinput10, 152FSET, NORM, UNPROTGREEN 122
–label10, 2312ASKIP, NORMTURQUOISECategory CD:130
TCATCDinput10, 364FSET, NORM, UNPROTGREEN 135
–label10, 467ASKIP, NORMTURQUOISESource:143
TRNSRCinput10, 5410FSET, NORM, UNPROTGREEN 148
–label12, 612ASKIP, NORMTURQUOISEDescription:156
TDESCinput12, 1960FSET, NORM, UNPROTGREEN 161
–label14, 67ASKIP, NORMTURQUOISEAmount:169
TRNAMTinput14, 1412FSET, NORM, UNPROTGREEN 174
–label14, 3110ASKIP, NORMTURQUOISEOrig Date:182
TORIGDTinput14, 4210FSET, NORM, UNPROTGREEN 187
–label14, 5710ASKIP, NORMTURQUOISEProc Date:195
TPROCDTinput14, 6810FSET, NORM, UNPROTGREEN 200
–label15, 1314ASKIP, NORMBLUE(-99999999.99)208
–label15, 4112ASKIP, NORMBLUE(YYYY-MM-DD)213
–label15, 6712ASKIP, NORMBLUE(YYYY-MM-DD)218
–label16, 612ASKIP, NORMTURQUOISEMerchant ID:223
MIDinput16, 199FSET, NORM, UNPROTGREEN 228
–label16, 3314ASKIP, NORMTURQUOISEMerchant Name:236
MNAMEinput16, 4830FSET, NORM, UNPROTGREEN 241
–label18, 614ASKIP, NORMTURQUOISEMerchant City:249
MCITYinput18, 2125FSET, NORM, UNPROTGREEN 254
–label18, 5313ASKIP, NORMTURQUOISEMerchant Zip:262
MZIPinput18, 6710FSET, NORM, UNPROTGREEN 267
–label21, 655ASKIP, NORMTURQUOISEYou are about to add this transaction. Please confirm :275
CONFIRMinput21, 631FSET, NORM, UNPROTGREEN281
–label21, 665ASKIP, NORMNEUTRAL(Y/N)288
ERRMSGoutput23, 178ASKIP, BRT, FSETRED293
–label24, 153ASKIP, NORMYELLOWENTER=Continue F3=Back F4=Clear F5=Copy Last Tran.297
+
\ No newline at end of file diff --git a/reports/carddemo/design/legacy/COUSR0A.html b/reports/carddemo/design/legacy/COUSR0A.html new file mode 100644 index 00000000..f7783cff --- /dev/null +++ b/reports/carddemo/design/legacy/COUSR0A.html @@ -0,0 +1,50 @@ + +COUSR0A legacy screen
+

All legacy screens · aws-carddemo

+

List Users

+

Map COUSR0A in mapset COUSR00, app/bms/COUSR00.bms line 26 · +24 × 80 · 11 input, 48 output, 19 label fields · used by COUSR00C

+
Tran: ····          ········································    Date: mm/dd/yy  
+Prog: ········      ········································    Time: hh:mm:ss  
+                                                                                
+                                  List Users                    Page:           
+                                                                                
+    Search User ID: ________                                                    
+                                                                                
+    Sel    User ID          First Name              Last Name          Type     
+    ---    --------    --------------------    --------------------    ----     
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+           Type 'U' to Update or 'D' to Delete a User from the list             
+                                                                                
+··············································································  
+ENTER=Continue  F3=Back  F7=Backward  F8=Forward                                
+

Drawn by Reframe from the BMS source, with no model. Underlined: input fields. Dots: fields the program fills. Hover a field for its name and attributes.

+

Function keys

KeyThe screen saysHandled in the program
ENTERContinueCOUSR00C line 123: PERFORM PROCESS-ENTER-KEY
COUSR00C line 288: PERFORM READNEXT-USER-SEC-FILE
COUSR00C line 342: PERFORM READPREV-USER-SEC-FILE
F3BackCOUSR00C line 125: MOVE 'COADM01C' TO CDEMO-TO-PROGRAM
COUSR00C line 288: PERFORM READNEXT-USER-SEC-FILE
F7BackwardCOUSR00C line 128: PERFORM PROCESS-PF7-KEY
COUSR00C line 288: PERFORM READNEXT-USER-SEC-FILE
F8ForwardCOUSR00C line 130: PERFORM PROCESS-PF8-KEY
COUSR00C line 342: PERFORM READPREV-USER-SEC-FILE
+

Checks

  • None.
+

Fields

FieldKindLine, columnLengthAttributesColourInitial textBMS line
–label1, 15ASKIP, NORMBLUETran:29
TRNNAMEoutput1, 74ASKIP, FSET, NORMBLUE34
TITLE01output1, 2140ASKIP, FSET, NORMYELLOW38
–label1, 655ASKIP, NORMBLUEDate:42
CURDATEoutput1, 718ASKIP, FSET, NORMBLUEmm/dd/yy47
–label2, 15ASKIP, NORMBLUEProg:52
PGMNAMEoutput2, 78ASKIP, FSET, NORMBLUE57
TITLE02output2, 2140ASKIP, FSET, NORMYELLOW61
–label2, 655ASKIP, NORMBLUETime:65
CURTIMEoutput2, 718ASKIP, FSET, NORMBLUEhh:mm:ss70
–label4, 3510ASKIP, BRTNEUTRALList Users75
–label4, 655ASKIP, BRTTURQUOISEPage:80
PAGENUMoutput4, 718ASKIP, FSET, NORMBLUE 85
–label6, 515ASKIP, NORMTURQUOISESearch User ID:90
USRIDINinput6, 218FSET, NORM, UNPROTGREEN95
–label8, 53ASKIP, NORMNEUTRALSel103
–label8, 128ASKIP, NORMNEUTRALUser ID 108
–label8, 2420ASKIP, NORMNEUTRAL First Name 113
–label8, 4820ASKIP, NORMNEUTRAL Last Name 118
–label8, 724ASKIP, NORMNEUTRALType123
–label9, 53ASKIP, NORMNEUTRAL---128
–label9, 128ASKIP, NORMNEUTRAL--------133
–label9, 2420ASKIP, NORMNEUTRAL--------------------138
–label9, 4820ASKIP, NORMNEUTRAL--------------------143
–label9, 724ASKIP, NORMNEUTRAL----148
SEL0001input10, 61FSET, NORM, UNPROTGREEN 153
USRID01output10, 128ASKIP, FSET, NORMBLUE 162
FNAME01output10, 2420ASKIP, FSET, NORMBLUE 167
LNAME01output10, 4820ASKIP, FSET, NORMBLUE 172
UTYPE01output10, 731ASKIP, FSET, NORMBLUE 177
SEL0002input11, 61FSET, NORM, UNPROTGREEN 182
USRID02output11, 128ASKIP, FSET, NORMBLUE 191
FNAME02output11, 2420ASKIP, FSET, NORMBLUE 196
LNAME02output11, 4820ASKIP, FSET, NORMBLUE 201
UTYPE02output11, 731ASKIP, FSET, NORMBLUE 206
SEL0003input12, 61FSET, NORM, UNPROTGREEN 211
USRID03output12, 128ASKIP, FSET, NORMBLUE 220
FNAME03output12, 2420ASKIP, FSET, NORMBLUE 225
LNAME03output12, 4820ASKIP, FSET, NORMBLUE 230
UTYPE03output12, 731ASKIP, FSET, NORMBLUE 235
SEL0004input13, 61FSET, NORM, UNPROTGREEN 240
USRID04output13, 128ASKIP, FSET, NORMBLUE 249
FNAME04output13, 2420ASKIP, FSET, NORMBLUE 254
LNAME04output13, 4820ASKIP, FSET, NORMBLUE 259
UTYPE04output13, 731ASKIP, FSET, NORMBLUE 264
SEL0005input14, 61FSET, NORM, UNPROTGREEN 269
USRID05output14, 128ASKIP, FSET, NORMBLUE 278
FNAME05output14, 2420ASKIP, FSET, NORMBLUE 283
LNAME05output14, 4820ASKIP, FSET, NORMBLUE 288
UTYPE05output14, 731ASKIP, FSET, NORMBLUE 293
SEL0006input15, 61FSET, NORM, UNPROTGREEN 298
USRID06output15, 128ASKIP, FSET, NORMBLUE 307
FNAME06output15, 2420ASKIP, FSET, NORMBLUE 312
LNAME06output15, 4820ASKIP, FSET, NORMBLUE 317
UTYPE06output15, 731ASKIP, FSET, NORMBLUE 322
SEL0007input16, 61FSET, NORM, UNPROTGREEN 327
USRID07output16, 128ASKIP, FSET, NORMBLUE 336
FNAME07output16, 2420ASKIP, FSET, NORMBLUE 341
LNAME07output16, 4820ASKIP, FSET, NORMBLUE 346
UTYPE07output16, 731ASKIP, FSET, NORMBLUE 351
SEL0008input17, 61FSET, NORM, UNPROTGREEN 356
USRID08output17, 128ASKIP, FSET, NORMBLUE 365
FNAME08output17, 2420ASKIP, FSET, NORMBLUE 370
LNAME08output17, 4820ASKIP, FSET, NORMBLUE 375
UTYPE08output17, 731ASKIP, FSET, NORMBLUE 380
SEL0009input18, 61FSET, NORM, UNPROTGREEN 385
USRID09output18, 128ASKIP, FSET, NORMBLUE 394
FNAME09output18, 2420ASKIP, FSET, NORMBLUE 399
LNAME09output18, 4820ASKIP, FSET, NORMBLUE 404
UTYPE09output18, 731ASKIP, FSET, NORMBLUE 409
SEL0010input19, 61FSET, NORM, UNPROTGREEN 414
USRID10output19, 128ASKIP, FSET, NORMBLUE 423
FNAME10output19, 2420ASKIP, FSET, NORMBLUE 428
LNAME10output19, 4820ASKIP, FSET, NORMBLUE 433
UTYPE10output19, 731ASKIP, FSET, NORMBLUE 438
–label21, 1256ASKIP, BRTNEUTRALType 'U' to Update or 'D' to Delete a User from the list443
ERRMSGoutput23, 178ASKIP, BRT, FSETRED449
–label24, 148ASKIP, NORMYELLOWENTER=Continue F3=Back F7=Backward F8=Forward453
+
\ No newline at end of file diff --git a/reports/carddemo/design/legacy/COUSR1A.html b/reports/carddemo/design/legacy/COUSR1A.html new file mode 100644 index 00000000..f7aac897 --- /dev/null +++ b/reports/carddemo/design/legacy/COUSR1A.html @@ -0,0 +1,50 @@ + +COUSR1A legacy screen
+

All legacy screens · aws-carddemo

+

Add User

+

Map COUSR1A in mapset COUSR01, app/bms/COUSR01.bms line 26 · +24 × 80 · 5 input, 7 output, 14 label fields · used by COUSR01C

+
Tran: ····          ········································    Date: mm/dd/yy  
+Prog: ········      ········································    Time: hh:mm:ss  
+                                                                                
+                                  Add User                                      
+                                                                                
+                                                                                
+                                                                                
+     First Name: ____________________       Last Name: ____________________     
+                                                                                
+                                                                                
+     User ID: ________ (8 Char)             Password:          (8 Char)         
+                                                                                
+                                                                                
+     User Type: _ (A=Admin, U=User)                                             
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+··············································································  
+ENTER=Add User  F3=Back  F4=Clear  F12=Exit                                     
+

Drawn by Reframe from the BMS source, with no model. Underlined: input fields. Dots: fields the program fills. Hover a field for its name and attributes.

+

Function keys

KeyThe screen saysHandled in the program
ENTERAdd UserCOUSR01C line 91: PERFORM PROCESS-ENTER-KEY
F3BackCOUSR01C line 93: MOVE 'COADM01C' TO CDEMO-TO-PROGRAM
F4ClearCOUSR01C line 96: PERFORM CLEAR-CURRENT-SCREEN
F12Exit–shown, handling not found
+

Checks

  • USRTYPE at line 14, column 17 (BMS line 141) has its attribute byte on the data of the label 'User Type:' at line 14, column 6
+

Fields

FieldKindLine, columnLengthAttributesColourInitial textBMS line
–label1, 15ASKIP, NORMBLUETran:29
TRNNAMEoutput1, 74ASKIP, FSET, NORMBLUE34
TITLE01output1, 2140ASKIP, FSET, NORMYELLOW38
–label1, 655ASKIP, NORMBLUEDate:42
CURDATEoutput1, 718ASKIP, FSET, NORMBLUEmm/dd/yy47
–label2, 15ASKIP, NORMBLUEProg:52
PGMNAMEoutput2, 78ASKIP, FSET, NORMBLUE57
TITLE02output2, 2140ASKIP, FSET, NORMYELLOW61
–label2, 655ASKIP, NORMBLUETime:65
CURTIMEoutput2, 718ASKIP, FSET, NORMBLUEhh:mm:ss70
–label4, 359ASKIP, BRTNEUTRALAdd User75
–label8, 611TURQUOISEFirst Name:80
FNAMEinput8, 1820FSET, IC, NORM, UNPROTGREEN84
–label8, 4510ASKIP, NORMTURQUOISELast Name:92
LNAMEinput8, 5620FSET, NORM, UNPROTGREEN97
–label11, 68ASKIP, NORMTURQUOISEUser ID:106
USERIDinput11, 158FSET, NORM, UNPROTGREEN111
–label11, 248ASKIP, NORMBLUE(8 Char)116
–label11, 459ASKIP, NORMTURQUOISEPassword:121
PASSWDinput11, 558DRK, FSET, UNPROTGREEN126
–label11, 648ASKIP, NORMBLUE(8 Char)131
–label14, 611ASKIP, NORMTURQUOISEUser Type: 136
USRTYPEinput14, 171FSET, NORM, UNPROTGREEN141
–label14, 1917ASKIP, NORMBLUE(A=Admin, U=User)146
ERRMSGoutput23, 178ASKIP, BRT, FSETRED151
–label24, 143ASKIP, NORMYELLOWENTER=Add User F3=Back F4=Clear F12=Exit155
+
\ No newline at end of file diff --git a/reports/carddemo/design/legacy/COUSR2A.html b/reports/carddemo/design/legacy/COUSR2A.html new file mode 100644 index 00000000..6ca553cd --- /dev/null +++ b/reports/carddemo/design/legacy/COUSR2A.html @@ -0,0 +1,50 @@ + +COUSR2A legacy screen
+

All legacy screens · aws-carddemo

+

Update User

+

Map COUSR2A in mapset COUSR02, app/bms/COUSR02.bms line 26 · +24 × 80 · 5 input, 7 output, 14 label fields · used by COUSR02C

+
Tran: ····          ········································    Date: mm/dd/yy  
+Prog: ········      ········································    Time: hh:mm:ss  
+                                                                                
+                                  Update User                                   
+                                                                                
+     Enter User ID: ________                                                    
+                                                                                
+     **********************************************************************     
+                                                                                
+                                                                                
+     First Name: ____________________       Last Name: ____________________     
+                                                                                
+     Password:          (8 Char)                                                
+                                                                                
+     User Type: _ (A=Admin, U=User)                                             
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+··············································································  
+ENTER=Fetch  F3=Save&&Exit  F4=Clear  F5=Save  F12=Cancel                       
+

Drawn by Reframe from the BMS source, with no model. Underlined: input fields. Dots: fields the program fills. Hover a field for its name and attributes.

+

Function keys

KeyThe screen saysHandled in the program
ENTERFetchCOUSR02C line 109: PERFORM PROCESS-ENTER-KEY
F3Save&&ExitCOUSR02C line 111: PERFORM UPDATE-USER-INFO
F4ClearCOUSR02C line 120: PERFORM CLEAR-CURRENT-SCREEN
F5SaveCOUSR02C line 122: PERFORM UPDATE-USER-INFO
F12CancelCOUSR02C line 124: MOVE 'COADM01C' TO CDEMO-TO-PROGRAM
+

Checks

  • USRTYPE at line 15, column 17 (BMS line 145) has its attribute byte on the data of the label 'User Type:' at line 15, column 6
+

Fields

FieldKindLine, columnLengthAttributesColourInitial textBMS line
–label1, 15ASKIP, NORMBLUETran:29
TRNNAMEoutput1, 74ASKIP, FSET, NORMBLUE34
TITLE01output1, 2140ASKIP, FSET, NORMYELLOW38
–label1, 655ASKIP, NORMBLUEDate:42
CURDATEoutput1, 718ASKIP, FSET, NORMBLUEmm/dd/yy47
–label2, 15ASKIP, NORMBLUEProg:52
PGMNAMEoutput2, 78ASKIP, FSET, NORMBLUE57
TITLE02output2, 2140ASKIP, FSET, NORMYELLOW61
–label2, 655ASKIP, NORMBLUETime:65
CURTIMEoutput2, 718ASKIP, FSET, NORMBLUEhh:mm:ss70
–label4, 3511ASKIP, BRTNEUTRALUpdate User75
–label6, 614ASKIP, NORMGREENEnter User ID:80
USRIDINinput6, 218FSET, IC, NORM, UNPROTGREEN85
–label8, 670YELLOW**********************************************************************93
–label11, 611ASKIP, NORMTURQUOISEFirst Name:98
FNAMEinput11, 1820FSET, NORM, UNPROTGREEN103
–label11, 4510ASKIP, NORMTURQUOISELast Name:111
LNAMEinput11, 5620FSET, NORM, UNPROTGREEN116
–label13, 69ASKIP, NORMTURQUOISEPassword:125
PASSWDinput13, 168DRK, FSET, UNPROTGREEN130
–label13, 258ASKIP, NORMBLUE(8 Char)135
–label15, 611ASKIP, NORMTURQUOISEUser Type: 140
USRTYPEinput15, 171FSET, NORM, UNPROTGREEN145
–label15, 1917ASKIP, NORMBLUE(A=Admin, U=User)150
ERRMSGoutput23, 178ASKIP, BRT, FSETRED155
–label24, 158ASKIP, NORMYELLOWENTER=Fetch F3=Save&&Exit F4=Clear F5=Save F12=Cancel159
+
\ No newline at end of file diff --git a/reports/carddemo/design/legacy/COUSR3A.html b/reports/carddemo/design/legacy/COUSR3A.html new file mode 100644 index 00000000..e9e30541 --- /dev/null +++ b/reports/carddemo/design/legacy/COUSR3A.html @@ -0,0 +1,50 @@ + +COUSR3A legacy screen
+

All legacy screens · aws-carddemo

+

Delete User

+

Map COUSR3A in mapset COUSR03, app/bms/COUSR03.bms line 26 · +24 × 80 · 1 input, 10 output, 12 label fields · used by COUSR03C

+
Tran: ····          ········································    Date: mm/dd/yy  
+Prog: ········      ········································    Time: hh:mm:ss  
+                                                                                
+                                  Delete User                                   
+                                                                                
+     Enter User ID: ________                                                    
+                                                                                
+     **********************************************************************     
+                                                                                
+                                                                                
+     First Name: ····················                                           
+                                                                                
+     Last Name:  ····················                                           
+                                                                                
+     User Type: · (A=Admin, U=User)                                             
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+··············································································  
+ENTER=Fetch  F3=Back  F4=Clear  F5=Delete                                       
+

Drawn by Reframe from the BMS source, with no model. Underlined: input fields. Dots: fields the program fills. Hover a field for its name and attributes.

+

Function keys

KeyThe screen saysHandled in the program
ENTERFetchCOUSR03C line 109: PERFORM PROCESS-ENTER-KEY
F3BackCOUSR03C line 111: MOVE 'COADM01C' TO CDEMO-TO-PROGRAM
F4ClearCOUSR03C line 119: PERFORM CLEAR-CURRENT-SCREEN
F5DeleteCOUSR03C line 121: PERFORM DELETE-USER-INFO
F12–COUSR03C line 123: MOVE 'COADM01C' TO CDEMO-TO-PROGRAMhandled, not shown on the screen
+

Checks

  • USRTYPE at line 15, column 17 (BMS line 130) has its attribute byte on the data of the label 'User Type:' at line 15, column 6
+

Fields

FieldKindLine, columnLengthAttributesColourInitial textBMS line
–label1, 15ASKIP, NORMBLUETran:29
TRNNAMEoutput1, 74ASKIP, FSET, NORMBLUE34
TITLE01output1, 2140ASKIP, FSET, NORMYELLOW38
–label1, 655ASKIP, NORMBLUEDate:42
CURDATEoutput1, 718ASKIP, FSET, NORMBLUEmm/dd/yy47
–label2, 15ASKIP, NORMBLUEProg:52
PGMNAMEoutput2, 78ASKIP, FSET, NORMBLUE57
TITLE02output2, 2140ASKIP, FSET, NORMYELLOW61
–label2, 655ASKIP, NORMBLUETime:65
CURTIMEoutput2, 718ASKIP, FSET, NORMBLUEhh:mm:ss70
–label4, 3511ASKIP, BRTNEUTRALDelete User75
–label6, 614ASKIP, NORMGREENEnter User ID:80
USRIDINinput6, 218FSET, IC, NORM, UNPROTGREEN85
–label8, 670YELLOW**********************************************************************93
–label11, 611ASKIP, NORMTURQUOISEFirst Name:98
FNAMEoutput11, 1820ASKIP, FSET, NORMBLUE103
–label13, 610ASKIP, NORMTURQUOISELast Name:111
LNAMEoutput13, 1820ASKIP, FSET, NORMBLUE116
–label15, 611ASKIP, NORMTURQUOISEUser Type: 125
USRTYPEoutput15, 171ASKIP, FSET, NORMBLUE130
–label15, 1917ASKIP, NORMBLUE(A=Admin, U=User)135
ERRMSGoutput23, 178ASKIP, BRT, FSETRED140
–label24, 158ASKIP, NORMYELLOWENTER=Fetch F3=Back F4=Clear F5=Delete144
+
\ No newline at end of file diff --git a/reports/carddemo/design/legacy/CTRTLIA.html b/reports/carddemo/design/legacy/CTRTLIA.html new file mode 100644 index 00000000..e0e2a621 --- /dev/null +++ b/reports/carddemo/design/legacy/CTRTLIA.html @@ -0,0 +1,50 @@ + +CTRTLIA legacy screen
+

All legacy screens · aws-carddemo

+

Maintain Transaction Type

+

Map CTRTLIA in mapset COTRTLI, app/app-transaction-type-db2/bms/COTRTLI.bms line 25 · +24 × 80 · 9 input, 31 output, 14 label fields · used by COTRTLIC

+
Tran: ····          ········································    Date: mm/dd/yy  
+Prog: ········      ········································    Time: hh:mm:ss  
+                                                                                
+                           Maintain Transaction Type                 Page  ···  
+                                                                                
+                             Type Filter:  __                                   
+                                                                                
+   Description Filter:  __________________________________________________      
+                                                                                
+   Select      Type                      Description                            
+   ------     -----     --------------------------------------------------      
+     ·          ··      __________________________________________________      
+     ·          ··      __________________________________________________      
+     ·          ··      __________________________________________________      
+     ·          ··      __________________________________________________      
+     ·          ··      __________________________________________________      
+     ·          ··      __________________________________________________      
+     ·          ··      __________________________________________________      
+     ·          ··      ··················································      
+                                                                                
+                  ·············································                 
+                                                                                
+··············································································  
+F2=Add   F3=Exit  F7=Page Up   F8=Page Dn  F10=Save                             
+

Drawn by Reframe from the BMS source, with no model. Underlined: input fields. Dots: fields the program fills. Hover a field for its name and attributes.

+

Function keys

KeyThe screen saysHandled in the program
ENTER–COTRTLIC line 575:
COTRTLIC line 794: MOVE WS-CA-FIRST-TR-CODE
COTRTLIC line 838: MOVE WS-CA-FIRST-TR-CODE
COTRTLIC line 1514:
handled, not shown on the screen
F2AddCOTRTLIC line 630: MOVE LIT-THISTRANID TO CDEMO-FROM-TRANID
F3ExitCOTRTLIC line 546: INITIALIZE WS-THIS-PROGCOMMAREA
COTRTLIC line 591: MOVE LIT-ADMINTRANID TO CDEMO-TO-TRANID
COTRTLIC line 738: CDEMO-FROM-PROGRAM NOT EQUAL LIT-THISPGM
F7Page UpCOTRTLIC line 721:
COTRTLIC line 726: MOVE WS-CA-FIRST-TR-CODE
COTRTLIC line 780: MOVE WS-CA-FIRST-TR-CODE
COTRTLIC line 1491: CONTINUE
F8Page DnCOTRTLIC line 657: CONTINUE
COTRTLIC line 766: MOVE WS-CA-LAST-TR-CODE
COTRTLIC line 1492: CONTINUE
COTRTLIC line 1536: MOVE 'No more pages to display'
F10SaveCOTRTLIC line 666: CONTINUE
COTRTLIC line 810: 081300
COTRTLIC line 854: 085700
+

Checks

  • None.
+

Fields

FieldKindLine, columnLengthAttributesColourInitial textBMS line
–label1, 15ASKIP, NORMBLUETran:29
TRNNAMEoutput1, 74ASKIP, FSET, NORMBLUE34
TITLE01output1, 2140ASKIP, NORMYELLOW38
–label1, 655ASKIP, NORMBLUEDate:42
CURDATEoutput1, 718ASKIP, NORMBLUEmm/dd/yy47
–label2, 15ASKIP, NORMBLUEProg:52
PGMNAMEoutput2, 78ASKIP, NORMBLUE57
TITLE02output2, 2140ASKIP, NORMYELLOW61
–label2, 655ASKIP, NORMBLUETime:65
CURTIMEoutput2, 718ASKIP, NORMBLUEhh:mm:ss70
–label4, 2825NEUTRALMaintain Transaction Type75
–label4, 705Page 79
PAGENOoutput4, 76382
–label6, 3012ASKIP, NORMTURQUOISEType Filter:84
TRTYPEinput6, 442FSET, IC, NORM, UNPROTGREEN89
–label8, 419ASKIP, NORMTURQUOISEDescription Filter:96
TRDESCinput8, 2550FSET, NORM, UNPROTGREEN101
–label10, 410NEUTRALSelect 108
–label10, 164NEUTRALType112
–label10, 4211NEUTRALDescription116
–label11, 46NEUTRAL------120
–label11, 155NEUTRAL-----124
–label11, 2550NEUTRAL--------------------------------------------------128
TRTSEL1output12, 61FSET, NORM, PROTDEFAULT133
TRTTYP1output12, 172FSET, NORM, PROTDEFAULT140
TRTYPD1input12, 2550FSET, NORM, UNPROTDEFAULT147
TRTSEL2output13, 61FSET, NORM, PROTDEFAULT154
TRTTYP2output13, 172FSET, NORM, PROTDEFAULT161
TRTYPD2input13, 2550FSET, NORM, UNPROTDEFAULT168
TRTSEL3output14, 61FSET, NORM, PROTDEFAULT175
TRTTYP3output14, 172FSET, NORM, PROTDEFAULT182
TRTYPD3input14, 2550FSET, NORM, UNPROTDEFAULT189
TRTSEL4output15, 61FSET, NORM, PROTDEFAULT196
TRTTYP4output15, 172FSET, NORM, PROTDEFAULT203
TRTYPD4input15, 2550FSET, NORM, UNPROTDEFAULT210
TRTSEL5output16, 61FSET, NORM, PROTDEFAULT217
TRTTYP5output16, 172FSET, NORM, PROTDEFAULT224
TRTYPD5input16, 2550FSET, NORM, UNPROTDEFAULT231
TRTSEL6output17, 61FSET, NORM, PROTDEFAULT238
TRTTYP6output17, 172FSET, NORM, PROTDEFAULT245
TRTYPD6input17, 2550FSET, NORM, UNPROTDEFAULT252
TRTSEL7output18, 61FSET, NORM, PROTDEFAULT259
TRTTYP7output18, 172FSET, NORM, PROTDEFAULT266
TRTYPD7input18, 2550FSET, NORM, UNPROTDEFAULT273
TRTSELAoutput19, 61FSET, NORM, PROTDEFAULT280
TRTTYPAoutput19, 172FSET, NORM, PROTDEFAULT287
TRTDSCAoutput19, 2550FSET, NORM, PROTDEFAULT294
INFOMSGoutput21, 1945PROTNEUTRAL301
ERRMSGoutput23, 178ASKIP, BRT, FSETRED308
BUTNF02output24, 17ASKIP, NORMTURQUOISEF2=Add312
BUTNF03output24, 107ASKIP, NORMTURQUOISEF3=Exit317
BUTNF07output24, 1910ASKIP, NORMTURQUOISEF7=Page Up322
BUTNF08output24, 3210ASKIP, NORMTURQUOISEF8=Page Dn327
BUTNF10output24, 448ASKIP, NORMTURQUOISEF10=Save332
+
\ No newline at end of file diff --git a/reports/carddemo/design/legacy/CTRTUPA.html b/reports/carddemo/design/legacy/CTRTUPA.html new file mode 100644 index 00000000..6b3bea66 --- /dev/null +++ b/reports/carddemo/design/legacy/CTRTUPA.html @@ -0,0 +1,50 @@ + +CTRTUPA legacy screen
+

All legacy screens · aws-carddemo

+

Transaction Type Update Screen

+

Map CTRTUPA in mapset COTRTUP, app/app-transaction-type-db2/bms/COTRTUP.bms line 25 · +24 × 80 · 2 input, 13 output, 7 label fields · used by COTRTUPC

+
Tran: ····          ········································    Date: mm/dd/yy  
+Prog: ········      ········································    Time: hh:mm:ss  
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                           Maintain Transaction Type                            
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+   Transaction Type  :   __                                                     
+                                                                                
+   Description       :   __________________________________________________     
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                                                                                
+                      ·············································             
+··············································································  
+ENTER=Process F3=Exit F4=Delete F5=Save   F6=Add                    F12=Cancel  
+

Drawn by Reframe from the BMS source, with no model. Underlined: input fields. Dots: fields the program fills. Hover a field for its name and attributes.

+

Function keys

KeyThe screen saysHandled in the program
ENTERProcessCOTRTUPC line 583: )
F3ExitCOTRTUPC line 429: MOVE LIT-ADMINTRANID TO CDEMO-TO-TRANID
COTRTUPC line 582: )
F4DeleteCOTRTUPC line 482: SET TTUP-START-DELETE TO TRUE
COTRTUPC line 493: SET TTUP-CONFIRM-DELETE TO TRUE
COTRTUPC line 584: )
F5SaveCOTRTUPC line 503: SET TTUP-CREATE-NEW-RECORD TO TRUE
COTRTUPC line 514: PERFORM 9600-WRITE-PROCESSING
COTRTUPC line 588: TTUP-CHANGES-OK-NOT-CONFIRMED
COTRTUPC line 655: = TTUP-NEW-TTYP-TYPE
F6Add–shown, handling not found
F12CancelCOTRTUPC line 406:
COTRTUPC line 524: SET FOUND-TRANTYPE-IN-TABLE TO TRUE
COTRTUPC line 594: TTUP-CHANGES-OK-NOT-CONFIRMED
COTRTUPC line 988: SET WS-RETURN-MSG-OFF TO TRUE
+

Checks

  • None.
+

Fields

FieldKindLine, columnLengthAttributesColourInitial textBMS line
–label1, 15ASKIP, NORMBLUETran:29
TRNNAMEoutput1, 74ASKIP, FSET, NORMBLUE34
TITLE01output1, 2140ASKIP, NORMYELLOW38
–label1, 655ASKIP, NORMBLUEDate:42
CURDATEoutput1, 718ASKIP, NORMBLUEmm/dd/yy47
–label2, 15ASKIP, NORMBLUEProg:52
PGMNAMEoutput2, 78ASKIP, NORMBLUE57
TITLE02output2, 2140ASKIP, NORMYELLOW61
–label2, 655ASKIP, NORMBLUETime:65
CURTIMEoutput2, 718ASKIP, NORMBLUEhh:mm:ss70
–label7, 2825NEUTRALMaintain Transaction Type75
–label12, 419ASKIP, NORMTURQUOISETransaction Type :79
TRTYPCDinput12, 262IC, UNPROT84
–label14, 419TURQUOISEDescription :90
TRTYDSCinput14, 2650UNPROT94
INFOMSGoutput22, 2345ASKIPNEUTRAL100
ERRMSGoutput23, 178ASKIP, BRT, FSETRED107
FKEYSoutput24, 121ASKIP, NORMYELLOWENTER=Process F3=Exit111
FKEY04output24, 239ASKIP, DRKYELLOWF4=Delete116
FKEY05output24, 338ASKIP, DRKYELLOWF5=Save121
FKEY06output24, 436ASKIP, DRKYELLOWF6=Add126
FKEY12output24, 6910ASKIP, DRKYELLOWF12=Cancel131
+
\ No newline at end of file diff --git a/reports/carddemo/design/legacy/index.html b/reports/carddemo/design/legacy/index.html new file mode 100644 index 00000000..315ed375 --- /dev/null +++ b/reports/carddemo/design/legacy/index.html @@ -0,0 +1,22 @@ + +Legacy screens
+

Legacy screens

+

aws-carddemo · 21 maps in 21 mapsets, 1166 fields, read from the BMS source with no model. +8 check problem(s).

+
+
ScreenMapProgramsInputsOutputsKeys that differProblems
View AuthorizationsCOPAU0ACOPAUS0C656––
View Authorization DetailsCOPAU1ACOPAUS1C027ENTER handled, not shown1
Maintain Transaction TypeCTRTLIACOTRTLIC931ENTER handled, not shown–
Transaction Type Update ScreenCTRTUPACOTRTUPC213F6 shown, not handled–
Update AccountCACTUPACOACTUPC4311–1
View AccountCACTVWACOACTVWC136ENTER handled, not shown1
Admin MenuCOADM1ACOADM01C119––
Bill PaymentCOBIL0ACOBIL00C28––
List Credit CardsCCRDLIACOCRDLIC243ENTER handled, not shown–
View Credit Card DetailCCRDSLACOCRDSLC213–1
Update Credit Card DetailsCCRDUPACOCRDUPC512–1
Main MenuCOMEN1ACOMEN01C119––
Transaction ReportsCORPT0ACORPT00C107––
Login ScreenCOSGN0ACOSGN00C39––
List TransactionsCOTRN0ACOTRN00C1148––
View TransactionCOTRN1ACOTRN01C120––
Add TransactionCOTRN2ACOTRN02C147––
List UsersCOUSR0ACOUSR00C1148––
Add UserCOUSR1ACOUSR01C57F12 shown, not handled1
Update UserCOUSR2ACOUSR02C57–1
Delete UserCOUSR3ACOUSR03C110F12 handled, not shown1
\ No newline at end of file diff --git a/reports/carddemo/design/modern.html b/reports/carddemo/design/modern.html new file mode 100644 index 00000000..1ea58d43 --- /dev/null +++ b/reports/carddemo/design/modern.html @@ -0,0 +1,32 @@ + +Modern screens
+

Legacy screens · Screen flow · Journeys · aws-carddemo

+

Modern screens

+

22 modern screens designed by a Claude step per domain from Reframe's design system, and 683 legacy screens, fields and keys +mapped (93 kept, 512 merged, 16 split, 62 dropped). Reframe checked that every legacy field and key is mapped once and every validation rule is shown. Model output, for review.

+

Account S-ACCOUNT-VIEW

Look up an account by account number or card number and show its status, balances, limits and dates beside the customer profile on one screen, while the caller waits. Tab order: search, the cards, then Update account.
Customer Account Self-Service · journeys J01, J02, J03 · replaces View Account

Find account
**lookup field**Account or card number 11-digit account number or 16-digit card number (spaces and dashes ignored); a card number is resolved to its account through the card cross-reference checks: Blank: 'No input received' - enter an account number (11 digits) or a card number (16 digits). Not digits, wrong length or all zeros: 'Account Number if supplied must be a 11 digit Non-Zero Number' (or a 16-digit card number). Not in the card cross-reference: 'Account:<number> not found in Cross ref file.' - check the number with the caller. The error shows under the field.; key Focused on arrival and after every search; / focuses it; Enter searches; 19 rule(s)
Account
**status badge**Account status Active or Inactive, from the account status Y/N, always with the word 1 rule(s)
**summary card**Account Account number; Opened, Expiry and Reissue dates (26 Nov 2026); Credit limit, Cash credit limit, Current balance, Current cycle credit, Current cycle debit (right-aligned, two decimals); Account group 3 rule(s)
Customer
**summary card**Customer Customer ID; full name (first, middle, last); SSN masked as ***-**-1234 (full number on Update account only); Date of birth; FICO score; Government-issued ID; EFT account ID; Primary card holder Yes/No 3 rule(s)
**summary card**Address and phone Address lines 1 and 2, City, State, ZIP, Country; Phone 1 and Phone 2 as (aaa) bbb-cccc 1 rule(s)
Actions
**primary button**Update account Shown once an account is found; opens it for editing key Alt+U

Update account S-ACCOUNT-EDIT

Change an account's and its customer's details after confirming the caller. Each field is checked as it is left and again on save; every failing field shows its own message and a summary lists them all. Save asks for confirmation, listing each change from old to new value. Tab order: account and status, dates, amounts, customer identity, name and address, contact, then Save changes.
Customer Account Self-Service · journeys J02 · replaces Update Account

Account
**lookup field**Account number Pre-filled from the account in context; editable to fetch another account. Account number and customer ID are shown read-only once fetched checks: Blank: 'No input received' - enter an account number. Not 11 digits or all zeros: 'Account Number if supplied must be a 11 digit Non-Zero Number'. Not in the card cross-reference: 'Account:<account> not found in Cross ref file.' - check the number with the caller. Only the account number is checked until an account is fetched.; key Enter fetches; focused on arrival when no account is in context; 15 rule(s)
**summary card**Status and group Account status as a choice of Active or Inactive (stored Y/N); Account group (optional, up to 10 characters) checks: Status is required: 'Account Status must be supplied.' and must be Active or Inactive ('Account Status must be Y or N.'). The choice offers only those two values.; 4 rule(s)
**summary card**Account dates Opened, Expiry and Reissue dates, each as labelled Day, Month and Year inputs checks: For each date, in the rule's words: '<date> : Year must be supplied.', '<date> must be 4 digit number.', '<date> : Century is not valid.' (year must start 19 or 20), '<date> : Month must be supplied.', '<date>: Month must be a number between 1 and 12.', '<date> : Day must be supplied.', '<date>:day must be a number between 1 and 31.', '<date>:Cannot have 31 days in this month.', '<date>:Cannot have 30 days in this month.', '<date>:Not a leap year.Cannot have 29 days in this month.', and a final calendar check '<date> validation error'. The message sits under the part to fix.; 15 rule(s)
**summary card**Limits and balances Credit limit, Cash credit limit, Current balance, Current cycle credit, Current cycle debit; money inputs, right-aligned, two decimals, $ and commas accepted checks: Each amount is required: '<field> must be supplied.' (e.g. 'Credit Limit must be supplied.'), and must be a currency number: '<field> is not valid' - enter an amount such as 1,250.00. Negative values and zero are accepted.; 4 rule(s)
Customer
**summary card**Customer identity Customer ID (read-only); SSN as three labelled parts (3-2-4); Date of birth as Day, Month, Year; FICO score; Government-issued ID (optional) checks: SSN: 'SSN: First 3 chars must be supplied.', 'SSN: First 3 chars must be all numeric.', 'SSN: First 3 chars: should not be 000, 666, or between 900 and 999'; the 4th & 5th and last 4 characters must each be supplied, all numeric and non-zero. Date of birth: the date checks above, and 'Date of Birth:cannot be in the future '. FICO: 'FICO Score must be supplied.', 'FICO Score must be all numeric.', 'FICO Score must not be zero.', 'FICO Score: should be between 300 and 850'.; 21 rule(s)
**summary card**Name and address First name, Middle name (optional), Last name; Address line 1, Address line 2 (optional); City; State (a choice of US state codes); ZIP; Country checks: '<field> must be supplied.' for First Name, Last Name, City, State, Country and Address Line 1; '<field> can have alphabets only.' for names, city, state and country; 'Middle Name can have alphabets only.'; 'State: is not a valid state code'; ZIP: 'ZIP must be supplied.', must be all numeric, 5 digits and not zero; 'Invalid zip code for state' - check the state and ZIP together.; 10 rule(s)
**summary card**Phone and payments Phone 1 and Phone 2 (optional), each as labelled Area code, Prefix and Line number; EFT account ID; Primary card holder as a choice of Yes or No checks: A phone may be left wholly blank; otherwise '<Phone Number 1 or 2>: Area code must be supplied.', ': Area code must be A 3 digit number.', ': Area code cannot be zero', ': Not valid North America general purpose area code' (from the list of general-purpose codes), ': Prefix code must be supplied.', ': Prefix code must be A 3 digit number.', ': Prefix code cannot be zero', ': Line number code must be supplied.', ': Line number code must be A 4 digit number.', ': Line number code cannot be zero'. EFT account ID: 'EFT Account Id must be supplied.', all numeric, 10 digits, not zero. Primary card holder: 'Primary Card Holder must be supplied.' and must be Yes or No ('must be Y or N.').; 16 rule(s)
Messages
**summary card**Fix these before saving Shown after a save attempt with errors: each field in error with its message, each a link that moves focus to the field; focus moves to this summary. Replaces the legacy single message line, which showed only the first error; every invalid field is still flagged 11 rule(s)
Actions
**primary button**Save changes Runs every check; with no change shows 'No change detected with respect to values fetched.' and saves nothing; when all checks pass, a confirmation dialog lists each change (old to new) with Confirm and Cancel; success shows 'Changes committed to database' and the account returns to view checks: If no value differs: 'No change detected with respect to values fetched.' If the record was changed by someone else since it was fetched: 'Record changed by some one else. Please review' and the latest values are shown. If a lock or update fails: 'Changes unsuccessful. Please try again'; nothing is half-saved.; key Ctrl+S saves; in the dialog Enter confirms and Esc returns to editing; Esc on the form discards unsaved changes after a prompt, restoring the fetched values; 28 rule(s)

Pay balance S-BILL-PAY

Pay off the full balance owed on an account, recorded as a payment transaction. The account comes from the account in context or is looked up here; the balance shows before paying and the payment is confirmed in a dialog, not by typing Y or N. Tab order: account, balance, Pay balance.
Customer Account Self-Service · journeys J03 · replaces Bill Payment

Account
**lookup field**Account number 11-digit account number, pre-filled from the account in context checks: Blank: 'Acct ID can NOT be empty...' - enter the 11-digit account number. Not found: 'Account ID NOT found...' - check the number with the caller.; key Focused on arrival; Enter shows the balance; Esc clears the account and balance; 7 rule(s)
Payment
**summary card**Balance to pay Account number, Current balance (right-aligned, two decimals). The payment is the full current balance checks: When the balance is zero or less: 'You have nothing to pay...' and Pay balance is unavailable.; 3 rule(s)
Actions
**primary button**Pay balance Opens a confirmation dialog repeating what will change: 'Pay $<balance> on account <account>? The balance becomes $0.00.' with Pay and Cancel. Success shows the payment transaction ID and the new balance checks: The dialog offers only Pay or Cancel, so no other value can be entered (legacy: 'Invalid value. Valid values are (Y/N)...'). If the card linked to the account is not found, nothing is paid and the message says so. The payment and the balance change are saved together or not at all.; key Ctrl+Enter; in the dialog Enter pays and Esc cancels; 12 rule(s)

Transaction reports S-REPORT-REQUEST

Submit a monthly, yearly or custom-period transaction report for printing. The report type is a single choice, the custom dates appear only for Custom, and submission is confirmed in a dialog. Tab order: report type, start date, end date, Submit report.
Customer Account Self-Service · journeys J06 · replaces Transaction Reports

Report
**summary card**Report type One choice of Monthly (current month), Yearly (current year) or Custom (dates below); the derived period is shown beside Monthly and Yearly, e.g. 01 Nov 2026 to 30 Nov 2026 checks: None chosen: 'Select a report type to print report...' - choose Monthly, Yearly or Custom.; key Arrow keys move between the choices; focused on arrival; 4 rule(s)
**summary card**Custom period Start date and End date, each as labelled Month, Day and Year inputs; shown when Custom is chosen checks: Every part is required, checked start month, day, year then end month, day, year ('Start Date - Month can NOT be empty...' and so on). 'Start Date - Not a valid Month...' / 'End Date - Not a valid Month...' (1 to 12); 'Start Date - Not a valid Day...' / 'End Date - Not a valid Day...' (1 to 31); 'Start Date - Not a valid Year...' / 'End Date - Not a valid Year...'; 'Start Date - Not a valid date...' / 'End Date - Not a valid date...' for a date not on the calendar. The message sits under the part to fix.; 7 rule(s)
Actions
**primary button**Submit report Opens a confirmation dialog: 'The <Monthly/Yearly/Custom> report for <start> to <end> will be submitted for printing.' with Submit and Cancel; success shows '<report name> report submitted for printing ...' and clears the form checks: The dialog offers only Submit or Cancel, replacing the typed confirmation and its messages 'Please confirm to print the <report name> report...' and '"<value>" is not a valid value to confirm...'. If the job cannot be queued, the message says the report was not submitted and to try again.; key Ctrl+Enter; in the dialog Enter submits and Esc cancels; 11 rule(s)

Transactions S-TRANSACTION-LIST

Browse transactions in a sortable, paged table or jump to a transaction ID, and open one with Enter or a click instead of typing S beside it. Tab order: search, table, pager, Add transaction.
Customer Account Self-Service · journeys J04, J05 · replaces List Transactions

Find
**lookup field**Start from transaction ID Transaction ID (up to 16 digits); the table starts at that ID checks: Not all digits: 'Tran ID must be Numeric ...' - enter digits only. Higher than every ID on file: 'You are at the top of the page...'.; key / focuses; Enter searches; 5 rule(s)
Transactions
**data table**Transactions Columns Transaction ID, Date (26 Nov 2026), Description, Amount (right-aligned, two decimals), sortable; 20 rows a page with page number and next/previous; the row opens the transaction checks: Rows open on Enter or click, so there is no selection code to mistype (legacy: 'Invalid selection. Valid value is S'). At the first or last page the previous or next control is disabled and says 'You are already at the top of the page...' / 'You have reached the bottom of the page...'. Empty state: 'No transactions yet. Use Add transaction to record the first one.'; key Up/Down move between rows; Enter opens; PageDown next page, PageUp previous page; 23 rule(s)
Actions
**primary button**Add transaction key Alt+N

Transaction S-TRANSACTION-VIEW

Show one transaction in full with its merchant, opened from the list or by typing its ID. Tab order: transaction ID, details, merchant, Back to transactions.
Customer Account Self-Service · journeys J04 · replaces View Transaction

Find
**lookup field**Transaction ID Transaction ID, pre-filled when opened from the list checks: Blank: 'Tran ID can NOT be empty...' - enter a transaction ID. Not found: 'Transaction ID NOT found...' - check the ID or find it in Transactions.; key Enter fetches; Esc clears the ID and the details; 8 rule(s)
Transaction
**summary card**Transaction Transaction ID, Card number, Type code, Category code, Source, Description, Amount (signed, right-aligned, two decimals), Original date and Processed date (26 Nov 2026) 2 rule(s)
**summary card**Merchant Merchant ID, Name, City, ZIP 1 rule(s)
Actions
**primary button**Back to transactions key Alt+T; 3 rule(s)

Add transaction S-TRANSACTION-ADD

Record a new transaction against an account or card, every field checked before it is added. One field takes the account or the card number; the resolved account and card show at once. Tab order: account or card, transaction details, merchant, Add transaction.
Customer Account Self-Service · journeys J05 · replaces Add Transaction

Account
**lookup field**Account or card number 11-digit account number or 16-digit card number, pre-filled from the account in context; the resolved account and card number show beneath it checks: Blank: 'Account or Card Number must be entered...'. Not digits: 'Account ID must be Numeric...' / 'Card Number must be Numeric...'. Not in the card cross-reference: 'Account ID NOT found...' / 'Card Number NOT found...' - check the number with the caller.; key Focused on arrival; Enter resolves; 14 rule(s)
Transaction
**summary card**Transaction details Type code and Category code (choices from the transaction types), Source, Description (up to 60), Amount (money input, sign and two decimals), Original date and Processed date (date inputs). Hint under the heading: Alt+C copies the last transaction for this card; Alt+X clears the form checks: Each is required, in the rule's words: 'Type CD can NOT be empty...', 'Category CD can NOT be empty...', 'Source can NOT be empty...', 'Description can NOT be empty...', 'Amount can NOT be empty...', 'Orig Date can NOT be empty...', 'Proc Date can NOT be empty...'. 'Type CD must be Numeric...', 'Category CD must be Numeric...'. 'Amount should be in format -99999999.99'. 'Orig Date should be in format YYYY-MM-DD', 'Proc Date should be in format YYYY-MM-DD', and 'Orig Date - Not a valid date...' / 'Proc Date - Not a valid date...' for a date not on the calendar. Every failing field shows its message under it.; key Alt+C copies the last transaction; Alt+X clears the form; 19 rule(s)
**summary card**Merchant Merchant ID (9 digits), Merchant name, Merchant city, Merchant ZIP checks: 'Merchant ID can NOT be empty...', 'Merchant Name can NOT be empty...', 'Merchant City can NOT be empty...', 'Merchant Zip can NOT be empty...'; 'Merchant ID must be Numeric...'.; 5 rule(s)
Actions
**primary button**Add transaction Runs every check, then a confirmation dialog repeats the transaction (account, card, type, amount, dates, merchant) with Add and Cancel; success shows 'Transaction added successfully. Your Tran ID is <id>.' and clears the form checks: The dialog offers only Add or Cancel, replacing the typed confirmation and its messages 'Confirm to add this transaction...' and 'Invalid value. Valid values are (Y/N)...'. If the ID already exists: 'Tran ID already exist...'; other failures: 'Unable to Add Transaction...'.; key Ctrl+Enter; in the dialog Enter adds and Esc returns to editing; 12 rule(s)

Cards S-CARD-LIST

Find a caller's card by account number and/or card number and open it from its row, with the status as a badge. Row links replace typed S/U codes and the table pager replaces F7/F8.
Customer Data Setup · journeys J07, J08 · replaces List Credit Cards

Find a card
**lookup field**Account number Account number filter, 11 digits; blank or all zeros means no account filter checks: Must be an 11-digit number if entered: 'Account filter, if supplied, must be an 11 digit number. Enter the 11 digits or leave it blank.'; key Alt+A moves focus here; Enter searches; 3 rule(s)
**lookup field**Card number Card number filter, 16 digits; blank or all zeros means no card filter; with both filters a card must match both checks: Must be a 16-digit number if entered: 'Card ID filter, if supplied, must be a 16 digit number. Enter the 16 digits or leave it blank.'; key Enter searches; 2 rule(s)
Results
**data table**Cards found Account number, card number and status of each matching card, 20 rows a page; the row opens the card's details, where it can be viewed and changed. Empty state: 'No records found for this search condition. Check the account or card number.' checks: Each row is its own link and only one opens at a time, so no selection code is typed and 'PLEASE SELECT ONLY ONE RECORD TO VIEW OR UPDATE' and 'INVALID ACTION CODE' cannot occur; key Up/Down move between rows; Enter opens the card; Page Up/Page Down change page; 5 rule(s)
**status badge**Card status Active (green) or Inactive (grey) with the word, in each row 1 rule(s)

Card details S-CARD-DETAIL

View a card's embossed name, status and expiry and change them on the same screen, replacing the separate view and update screens. Opened from a card row with account and card filled in, or used alone by searching. Save checks and saves in one step and is refused if someone else changed the card meanwhile.
Customer Data Setup · journeys J07, J08 · replaces View Credit Card Detail, Update Credit Card Details

Find a card
**lookup field**Account number Account number, 11 digits; filled in and read-only when opened from the card list checks: Required, an 11-digit number other than zeros: 'Account number not provided. Enter the 11-digit account number.' or 'Account filter, if supplied, must be an 11 digit number. Enter digits only.' Both fields empty: 'No input received. Enter the account and card number.' Account is checked before card, and focus moves to the first field in error.; key Enter searches; 14 rule(s)
**lookup field**Card number Card number, 16 digits; filled in and read-only when opened from the card list; the card is found by its number checks: Required, a 16-digit number other than zeros: 'Card number not provided. Enter the 16-digit card number.' or 'Card ID filter, if supplied, must be a 16 digit number. Enter digits only.' No card with that number: 'Did not find cards for this search condition. Check the card number.'; key Enter searches; 9 rule(s)
Card details
**summary card**Card Account number and card number of the card found, with 'Displaying requested details' 2 rule(s)
**status badge**Current status The card's stored status, Active (green) or Inactive (grey), with the word 1 rule(s)
**summary card**Name on card Embossed name, up to 50 characters, editable checks: Required, letters and spaces only: 'Card name not provided. Enter the name as it should appear on the card.' or 'Card name can only contain alphabets and spaces. Remove digits and symbols.'; 2 rule(s)
**summary card**Card active Active or Inactive, chosen with two labelled radio buttons instead of typing Y or N checks: One must be chosen; 'Card Active Status must be Y or N' becomes 'Choose Active or Inactive.'; 2 rule(s)
**summary card**Expiry month Expiry month, chosen from the months January to December; the stored expiry day is kept checks: 'Card expiry month must be between 1 and 12. Choose the month printed on the card.'; 1 rule(s)
**summary card**Expiry year Four-digit expiry year checks: 'Invalid card expiry year. Enter a year from 1950 to 2099.'; 1 rule(s)
**primary button**Save card Checks name, status, expiry month and expiry year, shows each failing field's message beside it with a summary at the top, and saves when all pass; enabled once a card is found. Results: 'Changes committed to database'; 'Record changed by some one else. Please review' with the stored values reloaded; 'Could not lock record for update' or 'Update of record failed' with 'Changes unsuccessful. Please try again'. Esc discards unsaved edits. checks: Nothing differs from the stored values (ignoring case): 'No change detected with respect to values fetched.' Fields are checked in the order name, status, expiry month, expiry year.; key Ctrl+S saves; Esc discards unsaved edits; 15 rule(s)

Transaction types S-TRANTYPE-LIST

Browse and filter transaction types, correct a description in place, or delete an obsolete type, each confirmed in a dialog that repeats what will change; also where a type is found by code to change or delete it. Row actions replace U/D codes and F10; the pager replaces F7/F8.
Customer Data Setup · journeys J09, J10, J11 · replaces Maintain Transaction Type

Filter
**lookup field**Type code Two-digit type code; blank or 00 lists every code checks: 'Type code filter, if supplied, must be a 2 digit number. Enter two digits, for example 01, or leave it blank.' No type matches: 'No Records found for these filter conditions. Change or clear the filters.'; key Alt+F moves focus here; Enter applies the filters; 6 rule(s)
**lookup field**Description contains Text the description must contain; blank means no description filter checks: Checked against the data only when a filter holds a value: 'No Records found for these filter conditions. Change or clear the filters.'; key Enter applies the filters; 4 rule(s)
**primary button**Add transaction type Opens the add screen for a new code and description key Alt+N; 1 rule(s)
Results
**data table**Transaction types Type code and description in code order, 20 rows a page. Row actions: Edit description in place (a labelled field; Enter opens a dialog showing old and new description), Open (full edit screen) and Delete (a dialog naming the code and description). Changing a filter cancels an edit in progress. Outcomes: 'Highlighted row was updated', 'Highlighted row deleted', 'Please delete associated child records first'. Empty state: 'No records found for this search condition. Use Add transaction type to create the first one.' checks: In-place description: 'Transaction Desc must be supplied. Enter a description.' or 'Transaction Desc can have numbers or alphabets only. Remove other characters.'; unchanged: 'No change detected with respect to values fetched.' Row actions replace action codes, so 'Action code selected is invalid' and 'Please select only 1 action' cannot occur. If a filter or the row changes while a dialog is open, the dialog closes and nothing changes.; key Up/Down move between rows; E edits the description; O opens; Delete deletes after confirmation; Enter confirms a dialog, Esc cancels; Page Up/Page Down change page; 20 rule(s)

Add or change a transaction type S-TRANTYPE-EDIT

Add a new transaction type or change an existing one's description in one step: enter the code, see its description or start a new one if it is not on file, then save. Replaces the F5 create, Enter check and F5 confirm sequence; delete is the Delete row action on the list.
Customer Data Setup · journeys J10, J11 · replaces Transaction Type Update Screen

Transaction type
**lookup field**Transaction type code Two-digit code, stored with a leading zero (1 becomes 01). Search shows the existing description, or 'No record found for this key in database. Enter a description to add it.' and the form switches to adding. Read-only when opened from a list row. checks: 'Tran Type code must be supplied. Enter a two-digit code.'; 'Tran Type code must be numeric. Enter digits only.'; 'Tran Type code must not be zero. Enter a code from 01 to 99.' Only the first failing check is shown.; key Alt+C moves focus here; Enter searches; 12 rule(s)
**summary card**Description Description up to 50 characters, editable once the code has been searched checks: 'Transaction Desc must be supplied. Enter a description.' or 'Transaction Desc can have numbers or alphabets only. Remove other characters.'; 3 rule(s)
**primary button**Save transaction type Checks and saves in one step, adding the type if the code is new or changing its description, then returns to the list; enabled only after a code is searched and something changed, which replaces 'Invalid key pressed'. Results: 'Changes committed to database'; 'Could not lock record for update' with 'Changes unsuccessful'. Esc cancels and returns to the list. checks: Code and description match what is stored (ignoring case and surrounding spaces): 'No change detected with respect to values fetched.'; key Ctrl+S saves; Esc cancels; 10 rule(s)

Account authorizations S-ACCOUNT-AUTHORIZATIONS

Look up an account and see everything on one screen: the customer, limits and balances, pending authorization totals, the authorizations in a paged table, and the selected authorization's full details. Fraud can be reported or cleared without leaving the list.
Unclassified · journeys J12, J13 · replaces View Authorizations, View Authorization Details

Find account
**lookup field**Account ID Account ID, up to 11 digits. When the agent arrives with an account from another screen, it is filled in and searched straight away; otherwise the field is empty and has focus. checks: Blank: 'Please enter Acct Id' - type the account ID, then press Enter. Not all digits: 'Acct Id must be Numeric' - remove letters, spaces and symbols and use digits only. No card on file: 'Account <account> not found in XREF file' - check the account ID. No account record: 'Account <account> not found in ACCT file' - check the account ID. No customer record: 'Customer <customer> not found in CUST file' - report it to support. Any other read failure: 'System error while reading' with the file and code - try again, or report the code. On any error nothing is loaded, the field keeps the entry so it can be corrected, and focus returns to it.; key Alt+A focuses the field; Enter searches; 10 rule(s)
Account
**summary card**Customer Customer name (first name, middle initial, last name), customer ID, address (lines 1 and 2; line 3, state, ZIP), phone 3 rule(s)
**status badge**Account status Account status as Active (green) or Inactive (grey), always with the word
**summary card**Limits and balances Credit limit, credit balance, cash limit and cash balance, right-aligned with two decimals and a sign when negative. Balances show 0.00 when the account has no pending authorizations. 4 rule(s)
**summary card**Pending authorizations Approved count and amount, declined count and amount; zero when there are none checks: Summary unreadable: 'System error while reading AUTH Summary: Code <code>' - try again, and report the code if it repeats. The totals and the table stay empty.; 4 rule(s)
Authorizations
**data table**Authorizations Columns: transaction ID, date (26 Nov 2026), time (HH:MM:SS), type, an Approved/Declined badge (Approved when the response code is 00), status, fraud status, and amount right-aligned with sign and two decimals. Sortable, newest first, 20 rows a page with Previous page and Next page controls. Click a row or press Enter on it to open its details beside the table. Empty state: 'No pending authorizations for this account. They appear here once the card is used.' checks: Previous page is disabled on the first page, with 'You are already on the first page'. Next page is disabled on the last page, with 'You are already on the last page'. Next authorization on the last one says 'Already at the last authorization' and keeps the current one open. Rows open directly, so no selection code is typed and 'Invalid selection. Valid value is S' cannot arise. There are no unsupported keys to warn about.; key Up/Down move between rows; Enter opens the row; J and K open the next and previous authorization while details are open; Page Down/Page Up change page; Esc closes the details and returns focus to the row; 19 rule(s)
Authorization details
**status badge**Response Approved (green) when the response code is 00, otherwise Declined (red), always with the word 1 rule(s)
**summary card**Authorization Card number, date (26 Nov 2026), time (HH:MM:SS), amount right-aligned with two decimals and a leading '-' when negative, decline reason as '<code> - <description>' ('9999 - ERROR' when the code is unknown), authorization code, POS entry mode, source, merchant category code, card expiry (MM/YY), authorization type, transaction ID and match status. Read afresh each time a row opens. With no row selected the panel says 'Select an authorization to see its details.' checks: Not read: 'System error while reading Auth Summary: Code <code>' or 'System error while reading Auth Details: Code <code>' - reopen the authorization, and report the code if it repeats. The detail fields stay blank when the account ID is not numeric, no authorization is selected, or a read failed.; 13 rule(s)
**summary card**Merchant Merchant name, merchant ID, city, state, ZIP 1 rule(s)
**status badge**Fraud status Fraud reported (red) with the report date, Fraud removed (grey) with the date, or Not reported (grey), always with the word 1 rule(s)
**primary button**Report fraud / Remove fraud mark Reads 'Report fraud' when the authorization is not marked fraud and 'Remove fraud mark' when it is. It opens a confirmation dialog that repeats what will change: the authorization, amount and merchant, and 'Fraud status: Not reported -> Fraud reported, dated today' or the reverse. On success it shows 'Authorization marked as fraud' or 'Fraud mark removed' and redisplays the same authorization with its new fraud status and date. The authorization and the fraud register change together or not at all. checks: Fraud register update failed: the fraud program's message (for example 'SYSTEM ERROR DB2: CODE <code>') and 'Nothing was changed - try again, and report the code if it repeats.' Authorization save failed: 'System error while FRAUD Tagging, ROLLBACK <code>' and 'Nothing was changed - try again.' Fraud service did not respond: 'The fraud update did not complete. Nothing was changed - try again.'; key Alt+F opens the confirmation; Enter confirms, Esc cancels; 12 rule(s)

Sign in S-SIGN-IN

Sign in to CardDemo with a user ID and password. Administrators and regular users both land on Home, which shows the functions their role allows.
User Access Control · journeys J14, J15, J16, J17 · replaces Login Screen

Sign in
**summary card**You have signed out Shown only after Sign out: 'Thank you for using CardDemo application...' 1 rule(s)
**lookup field**User ID User ID, up to 8 characters, not case-sensitive. Focus starts here on a blank form. checks: Blank: 'Please enter User ID ...', with focus back on User ID. Not on file: 'User not found. Try again ...' Read failure: 'Unable to verify the User ...' Each message shows under User ID.; key Focused on open; Tab moves to Password; 5 rule(s)
**lookup field**Password Password, masked, up to 8 characters, not case-sensitive, with a Show password toggle. checks: Blank: 'Please enter Password ...' Wrong password: 'Wrong Password. Try again ...' Each message shows under Password, with focus on it. Failed attempts are logged; the owner decides the attempt limit and lockout (the legacy allows unlimited attempts).; key Tab from User ID; Enter signs in; 4 rule(s)
**primary button**Sign in Checks the User ID and Password and opens Home with the signed-in role: Administrator for type A, User for any other type. Only Enter and the button act; other keys do nothing, so the 'Invalid key pressed. Please see below...' message is no longer needed. checks: Checks User ID first, then Password, and reports the first problem under its field.; key Enter from any field; 7 rule(s)

Home S-HOME

Landing page after sign-in. It lists every function the signed-in role may use as links, and replaces the numbered Main Menu, the Admin Menu and the typed option number.
User Access Control · journeys J14, J15, J16, J17 · replaces Main Menu, Admin Menu

Functions
**data table**Functions One row per function, in the legacy order. Regular users see Account view, Account update, Credit card list, Credit card view, Credit card update, Transaction list, Transaction view, Transaction add, Transaction reports, Bill payment and Pending authorization view. Administrators see Users, Add user, Update user, Delete user, Transaction type list and Transaction type maintenance. Each row shows the name, a one-line description and its availability, and opens the function on Enter or click. checks: Only the functions the role may use are listed, so the 'Please enter a valid option number...' error cannot happen. If a regular user still reaches an administrator function, the server refuses it with 'No access - Admin Only option... '. A coming-soon row opens nothing and says 'This option <name> is coming soon ...'. A function that is not installed opens nothing and says 'This option <name> is not installed...'. Only Enter and click act on a row, so the 'Invalid key pressed. Please see below...' message is no longer needed.; key Up and Down move between rows and Enter opens one; typing the first letters of a name jumps to it.; 17 rule(s)
**status badge**Availability One badge per function: Active means available, Inactive means 'Coming soon' and Blocked means 'Not installed'. The word is always shown, never colour alone. 3 rule(s)

Users S-USER-LIST

Find a user and act on them. A searchable, paged table of all users has Edit and Delete actions on each row, plus Add user. It replaces the typed U and D selection codes and the F7 and F8 paging keys.
User Access Control · journeys J15, J17 · replaces List Users

Find a user
**lookup field**Start from user ID The user ID to start the list from; left blank, the list starts at the first user. Enter searches and returns to page 1. checks: If the users cannot be read, 'Unable to lookup User...' shows above the table with a Try again link.; key / focuses the search; Enter searches; 4 rule(s)
Users
**data table**Users Columns User ID, First name, Last name and User type (Admin or User), sorted by User ID. The table shows 20 rows a page, with Previous, Next and 'Page n'. Each row has an Edit action (opens Update user) and a Delete action (opens Delete user). Empty state: 'No users yet. Choose Add user to create the first one.' checks: Previous is disabled on page 1 and Next on the last page. The disabled buttons say 'You are already at the top of the page...' and 'You are already at the bottom of the page...', and the last page says 'You have reached the bottom of the page...'. The actions are buttons on each row, so the 'Invalid selection. Valid values are U and D' error cannot happen. If the users cannot be read while paging: 'Unable to lookup User...'.; key Up and Down move between rows; Enter edits the row; the Delete key deletes it; Page Up and Page Down change page.; 18 rule(s)
**primary button**Add user key Alt+N

Add user S-USER-ADD

Create a user profile so a new person can sign in. The form clears after each add, so several users can be added in a row.
User Access Control · journeys J16 · replaces Add User

Profile
**lookup field**First name First name, up to 20 characters. Focus starts here. checks: Blank: 'First Name can NOT be empty...'; key Tab order: First name, Last name, User ID, Password, User type, Add user; 2 rule(s)
**lookup field**Last name Last name, up to 20 characters. checks: Blank: 'Last Name can NOT be empty...'; 1 rule(s)
**primary button**Add user Adds the user and shows 'User <id> has been added ...'. The form then clears, with focus on First name for the next user and a link back to Users. Only the button and its shortcut act, so the 'Invalid key pressed. Please see below...' message is no longer needed. checks: Checks First name, Last name, User ID, Password and User type in that order. Every blank field is listed in an error summary at the top, each linked to its field, and nothing is added until all are filled. Any other failure: 'Unable to Add User...', with focus on First name.; key Ctrl+Enter from any field; Esc goes back without adding; 5 rule(s)
Sign-in details
**lookup field**User ID The new user ID, up to 8 characters, checked for availability when you leave the field. checks: Blank: 'User ID can NOT be empty...' Already used: 'User ID already exist...'; nothing is added and the existing user is not changed.; 2 rule(s)
**lookup field**Password Password, masked, up to 8 characters, with a Show password toggle. It is stored protected and never shown again (the legacy stored it as typed). checks: Blank: 'Password can NOT be empty...'; 2 rule(s)
**lookup field**User type A choice of Admin (A) or User (U), with no default. Only these two values can be saved; the legacy accepted any character, and every type other than A signed in as a regular user. checks: None chosen: 'User Type can NOT be empty...'; 3 rule(s)

Update user S-USER-EDIT

Correct a user's name, password or user type. It opens already filled in from the Users table; you can also type a user ID to look up another user.
User Access Control · journeys J15 · replaces Update User

Find a user
**lookup field**User ID The user ID. Opened from Users, it is filled in and the user is looked up straight away. Opened from the navigation, it is blank and has focus. Enter or Find loads the user into the form. checks: Blank: 'User ID can NOT be empty...' Not on file: 'User ID NOT found...', and the details stay blank. Read failure: 'Unable to lookup User...'.; key Enter finds; Tab moves to First name; 10 rule(s)
Profile
**lookup field**First name The stored first name, editable, up to 20 characters. checks: Blank: 'First Name can NOT be empty...'; 1 rule(s)
**lookup field**Last name The stored last name, editable, up to 20 characters. checks: Blank: 'Last Name can NOT be empty...'; 1 rule(s)
**primary button**Save changes Saves only the changed fields and shows 'User <user ID> has been updated ...'. You stay on the screen, with a link back to Users. Leaving with unsaved changes asks 'Discard your changes to <user ID>?'. This button replaces the legacy prompt 'Press PF5 key to save your updates ...'. checks: Checks User ID, First name, Last name, Password and User type in that order. Every blank field is listed in an error summary, each linked to its field, and nothing is saved; leaving the screen never hides these messages. Nothing changed: 'Please modify to update ...' User no longer on file: 'User ID NOT found...', and no save is tried. Any other failure: 'Unable to Update User...'.; key Ctrl+S saves; Esc cancels and goes back to Users without saving; 11 rule(s)
Sign-in details
**lookup field**Password The stored password is never shown. A masked field, up to 8 characters, with a Show password toggle: type a new password to change it, or leave the field as it is to keep the current one. checks: Cleared without a new password: 'Password can NOT be empty...'; 1 rule(s)
**lookup field**User type A choice of Admin (A) or User (U), set to the stored type. checks: None chosen: 'User Type can NOT be empty...'; 1 rule(s)

Delete user S-USER-DELETE

Remove a user who should no longer have access. The screen shows who will be deleted and asks for confirmation; the confirmation is new, because the legacy deleted on PF5 without asking.
User Access Control · journeys J17 · replaces Delete User

Find a user
**lookup field**User ID The user ID. Opened from Users, it is filled in and the user is looked up straight away. Opened from the navigation, it is blank and has focus. Enter or Find loads the user; changing the ID clears the details. checks: Blank: 'User ID can NOT be empty...' Not on file: 'User ID NOT found...' Read failure: 'Unable to lookup User...'.; key Enter finds; 6 rule(s)
User
**summary card**User to delete The user ID, first name, last name and user type (Admin or User) of the user found. The Delete user button replaces the legacy prompt 'Press PF5 key to delete this user ...'. 1 rule(s)
**primary button**Delete user Enabled only once a user is found. It opens a confirmation dialog: 'Delete user <id>, <first name> <last name> (<type>)? They will no longer be able to sign in.' Confirming deletes the user and returns to Users with 'User <id> has been deleted ...'. checks: No user found: 'User ID can NOT be empty...' or 'User ID NOT found...', and nothing is deleted or attempted. Delete failure: 'Unable to Update User...'.; key Ctrl+Delete opens the confirmation; in the dialog, focus starts on Cancel, Enter confirms and Esc cancels; 8 rule(s)

Application header and navigation S-APP-SHELL

New, shared by every screen: the header and navigation shown once, replacing the transaction, program, date, time and title lines every 3270 screen repeated and the numbered main-menu options. A sign-in is required; with no session the user is sent to sign-in. The navigation carries the account in context, so going from an account to Pay balance, Update account or Add transaction keeps it. Tab order: account search, navigation, then the page.
Shared · journeys J01, J02, J03, J04, J05, J06, J07, J08, J09, J10, J11 · replaces nothing (new)

Header
**summary card**CardDemo Application name and the current page title as the page heading 4 rule(s)
**summary card**Signed in as Signed-in user ID and name
**summary card**Today Current date as 26 Nov 2026 and the time
**lookup field**Find account (account or card number) 11-digit account number or 16-digit card number checks: Same checks as the account search on S-ACCOUNT-VIEW; an empty search says 'No input received' - enter an account number (11 digits) or a card number (16 digits).; key / focuses the search from any screen; Enter searches; 4 rule(s)
Navigation
**primary button**Account key Alt+A
**primary button**Update account Opens the account in context, if any key Alt+U
**primary button**Transactions key Alt+T
**primary button**Add transaction Opens with the account in context, if any key Alt+N
**primary button**Pay balance Opens with the account in context, if any key Alt+P
**primary button**Transaction reports key Alt+R
**data table**Cards Navigation entry for the card list; also the way back from card details key Alt+C; 3 rule(s)
**data table**Transaction types Navigation entry for the transaction type list, shown only to administrators; the server checks the administrator role on every list, add, update and delete instead of assuming it key Alt+T; 4 rule(s)

CardDemo header and navigation S-APP-HEADER

New, shared by every screen: shows the application and page title, the signed-in user, today's date and the time once, with the way back to the main menu. It replaces the transaction, program, date, time and title lines that every 3270 screen repeated.
Shared · journeys J12, J13, J14, J15, J16, J17 · replaces nothing (new)

Header
**summary card**CardDemo Application title, current page title, signed-in user, today's date (26 Nov 2026) and the time
**summary card**CardDemo Application name and the area you are in (for example 'User administration'), taken from the two legacy title lines.
**summary card**Today Current date, written as 26 Nov 2026, and the local time.
**summary card**Signed in as Signed-in user ID and role (Administrator or User), set at sign-in. 3 rule(s)
**primary button**Sign out Ends the session and returns to Sign in, which shows 'Thank you for using CardDemo application...'. key Alt+Q; 2 rule(s)
Navigation
**primary button**Main menu Returns to the main menu and keeps the session key Alt+M; 1 rule(s)
**data table**Navigation The functions the signed-in role may use, as one list of links grouped Account, Card, Transaction, Bill payment and Reports. Administrators also get User administration (Users, Add user) and Transaction types. The current screen is marked. Esc goes back one screen, to the screen that opened this one or to Home. checks: Every screen checks on the server that a session is signed in. With no session you are sent to Sign in with 'Please sign in to continue.' Administrator-only screens check the role on the server. A regular user who opens one sees 'No access - Admin Only option... ' and stays on Home.; key Alt+H opens Home; Esc goes back to the previous screen; the navigation comes before the page content in the tab order.; 7 rule(s)
+

Mapping

Legacy screenKindItemHowBecomesWhy
CACTUPAscreenCACTUPAkeptS-ACCOUNT-EDITKept as one edit screen grouped into account and customer sections, with confirmation in a dialog.
CACTUPAfieldAADDGRPmergedS-ACCOUNT-EDIT/acct-statusGrouped with status.
CACTUPAfieldACCTSIDkeptS-ACCOUNT-EDIT/account-lookupAccount to update, pre-filled from context.
CACTUPAfieldACRCYCRmergedS-ACCOUNT-EDIT/acct-moneyAmounts become money inputs in one group.
CACTUPAfieldACRCYDBmergedS-ACCOUNT-EDIT/acct-moneyAmounts become money inputs in one group.
CACTUPAfieldACRDLIMmergedS-ACCOUNT-EDIT/acct-moneyAmounts become money inputs in one group.
CACTUPAfieldACSADL1mergedS-ACCOUNT-EDIT/cust-name-addressName and address grouped; labels added to the unlabelled name fields; state is a choice.
CACTUPAfieldACSADL2mergedS-ACCOUNT-EDIT/cust-name-addressName and address grouped; labels added to the unlabelled name fields; state is a choice.
CACTUPAfieldACSCITYmergedS-ACCOUNT-EDIT/cust-name-addressName and address grouped; labels added to the unlabelled name fields; state is a choice.
CACTUPAfieldACSCTRYmergedS-ACCOUNT-EDIT/cust-name-addressName and address grouped; labels added to the unlabelled name fields; state is a choice.
CACTUPAfieldACSEFTCmergedS-ACCOUNT-EDIT/cust-contactPhone parts become labelled Area code, Prefix and Line number; grouped with EFT and holder flag.
CACTUPAfieldACSFNAMmergedS-ACCOUNT-EDIT/cust-name-addressName and address grouped; labels added to the unlabelled name fields; state is a choice.
CACTUPAfieldACSGOVTmergedS-ACCOUNT-EDIT/cust-identityCustomer identity fields grouped; SSN and date parts kept as labelled parts.
CACTUPAfieldACSHLIMmergedS-ACCOUNT-EDIT/acct-moneyAmounts become money inputs in one group.
CACTUPAfieldACSLNAMmergedS-ACCOUNT-EDIT/cust-name-addressName and address grouped; labels added to the unlabelled name fields; state is a choice.
CACTUPAfieldACSMNAMmergedS-ACCOUNT-EDIT/cust-name-addressName and address grouped; labels added to the unlabelled name fields; state is a choice.
CACTUPAfieldACSPFLGmergedS-ACCOUNT-EDIT/cust-contactTyped Y/N becomes a Yes/No choice.
CACTUPAfieldACSPH1AmergedS-ACCOUNT-EDIT/cust-contactPhone parts become labelled Area code, Prefix and Line number; grouped with EFT and holder flag.
CACTUPAfieldACSPH1BmergedS-ACCOUNT-EDIT/cust-contactPhone parts become labelled Area code, Prefix and Line number; grouped with EFT and holder flag.
CACTUPAfieldACSPH1CmergedS-ACCOUNT-EDIT/cust-contactPhone parts become labelled Area code, Prefix and Line number; grouped with EFT and holder flag.
CACTUPAfieldACSPH2AmergedS-ACCOUNT-EDIT/cust-contactPhone parts become labelled Area code, Prefix and Line number; grouped with EFT and holder flag.
CACTUPAfieldACSPH2BmergedS-ACCOUNT-EDIT/cust-contactPhone parts become labelled Area code, Prefix and Line number; grouped with EFT and holder flag.
CACTUPAfieldACSPH2CmergedS-ACCOUNT-EDIT/cust-contactPhone parts become labelled Area code, Prefix and Line number; grouped with EFT and holder flag.
CACTUPAfieldACSSTTEmergedS-ACCOUNT-EDIT/cust-name-addressName and address grouped; labels added to the unlabelled name fields; state is a choice.
CACTUPAfieldACSTFCOmergedS-ACCOUNT-EDIT/cust-identityCustomer identity fields grouped; SSN and date parts kept as labelled parts.
CACTUPAfieldACSTNUMmergedS-ACCOUNT-EDIT/cust-identityCustomer identity fields grouped; SSN and date parts kept as labelled parts.
CACTUPAfieldACSTTUSkeptS-ACCOUNT-EDIT/acct-statusTyped Y/N becomes an Active/Inactive choice.
CACTUPAfieldACSZIPCmergedS-ACCOUNT-EDIT/cust-name-addressName and address grouped; labels added to the unlabelled name fields; state is a choice.
CACTUPAfieldACTSSN1mergedS-ACCOUNT-EDIT/cust-identityCustomer identity fields grouped; SSN and date parts kept as labelled parts.
CACTUPAfieldACTSSN2mergedS-ACCOUNT-EDIT/cust-identityCustomer identity fields grouped; SSN and date parts kept as labelled parts.
CACTUPAfieldACTSSN3mergedS-ACCOUNT-EDIT/cust-identityCustomer identity fields grouped; SSN and date parts kept as labelled parts.
CACTUPAfieldACURBALmergedS-ACCOUNT-EDIT/acct-moneyAmounts become money inputs in one group.
CACTUPAfieldCURDATEmergedS-APP-SHELL/hdr-datetimeDate shown once in the shared header.
CACTUPAfieldCURTIMEmergedS-APP-SHELL/hdr-datetimeTime shown once in the shared header.
CACTUPAfieldDOBDAYmergedS-ACCOUNT-EDIT/cust-identityCustomer identity fields grouped; SSN and date parts kept as labelled parts.
CACTUPAfieldDOBMONmergedS-ACCOUNT-EDIT/cust-identityCustomer identity fields grouped; SSN and date parts kept as labelled parts.
CACTUPAfieldDOBYEARmergedS-ACCOUNT-EDIT/cust-identityCustomer identity fields grouped; SSN and date parts kept as labelled parts.
CACTUPAfieldERRMSGmergedS-ACCOUNT-EDIT/error-summaryErrors show under each field and together in the summary, not one at a time.
CACTUPAfieldEXPDAYmergedS-ACCOUNT-EDIT/acct-datesYear, month and day parts become one labelled date group per date.
CACTUPAfieldEXPMONmergedS-ACCOUNT-EDIT/acct-datesYear, month and day parts become one labelled date group per date.
CACTUPAfieldEXPYEARmergedS-ACCOUNT-EDIT/acct-datesYear, month and day parts become one labelled date group per date.
CACTUPAfieldFKEY05mergedS-ACCOUNT-EDIT/save-changesF5=Save prompt becomes the confirmation dialog.
CACTUPAfieldFKEY12mergedS-ACCOUNT-EDIT/save-changesF12=Cancel prompt becomes Cancel in the dialog and Esc to discard.
CACTUPAfieldFKEYSdropped–Key legend replaced by a labelled button with its shortcut shown.
CACTUPAfieldINFOMSGmergedS-ACCOUNT-EDIT/save-changesStage prompts become the save flow: checks, confirmation dialog and result.
CACTUPAfieldOPNDAYmergedS-ACCOUNT-EDIT/acct-datesYear, month and day parts become one labelled date group per date.
CACTUPAfieldOPNMONmergedS-ACCOUNT-EDIT/acct-datesYear, month and day parts become one labelled date group per date.
CACTUPAfieldOPNYEARmergedS-ACCOUNT-EDIT/acct-datesYear, month and day parts become one labelled date group per date.
CACTUPAfieldPGMNAMEdropped–Program name is technical; the page title identifies the screen.
CACTUPAfieldRISDAYmergedS-ACCOUNT-EDIT/acct-datesYear, month and day parts become one labelled date group per date.
CACTUPAfieldRISMONmergedS-ACCOUNT-EDIT/acct-datesYear, month and day parts become one labelled date group per date.
CACTUPAfieldRISYEARmergedS-ACCOUNT-EDIT/acct-datesYear, month and day parts become one labelled date group per date.
CACTUPAfieldTITLE01mergedS-APP-SHELL/app-headerApplication titles shown once in the shared header.
CACTUPAfieldTITLE02mergedS-APP-SHELL/app-headerApplication titles shown once in the shared header.
CACTUPAfieldTRNNAMEdropped–Transaction code is technical; the page title identifies the screen.
CACTUPAkeyENTERmergedS-ACCOUNT-EDIT/save-changesFields are checked as they are left and on save; Enter in the account field fetches.
CACTUPAkeyF12mergedS-ACCOUNT-EDIT/save-changesCancel is in the confirmation dialog; Esc discards unsaved changes.
CACTUPAkeyF3mergedS-APP-SHELL/nav-account-viewLeaving returns to the account through the navigation (Alt+A).
CACTUPAkeyF5mergedS-ACCOUNT-EDIT/save-changesSave is the primary button (Ctrl+S) with a confirmation dialog.
CACTVWAscreenCACTVWAkeptS-ACCOUNT-VIEWKept as the account screen; account and customer shown together, searchable by card number too.
CACTVWAfieldAADDGRPmergedS-ACCOUNT-VIEW/account-summaryAccount dates, limits, balances and group in the account card.
CACTVWAfieldACCTSIDkeptS-ACCOUNT-VIEW/account-searchAccount number search, now also accepting a card number (review P4-10).
CACTVWAfieldACRCYCRmergedS-ACCOUNT-VIEW/account-summaryAccount dates, limits, balances and group in the account card.
CACTVWAfieldACRCYDBmergedS-ACCOUNT-VIEW/account-summaryAccount dates, limits, balances and group in the account card.
CACTVWAfieldACRDLIMmergedS-ACCOUNT-VIEW/account-summaryAccount dates, limits, balances and group in the account card.
CACTVWAfieldACSADL1mergedS-ACCOUNT-VIEW/customer-contactAddress and phones grouped in one card.
CACTVWAfieldACSADL2mergedS-ACCOUNT-VIEW/customer-contactAddress and phones grouped in one card.
CACTVWAfieldACSCITYmergedS-ACCOUNT-VIEW/customer-contactAddress and phones grouped in one card.
CACTVWAfieldACSCTRYmergedS-ACCOUNT-VIEW/customer-contactAddress and phones grouped in one card.
CACTVWAfieldACSEFTCmergedS-ACCOUNT-VIEW/customer-summaryCustomer identity in the customer card; SSN masked.
CACTVWAfieldACSFNAMmergedS-ACCOUNT-VIEW/customer-summaryCustomer identity in the customer card; SSN masked.
CACTVWAfieldACSGOVTmergedS-ACCOUNT-VIEW/customer-summaryCustomer identity in the customer card; SSN masked.
CACTVWAfieldACSHLIMmergedS-ACCOUNT-VIEW/account-summaryAccount dates, limits, balances and group in the account card.
CACTVWAfieldACSLNAMmergedS-ACCOUNT-VIEW/customer-summaryCustomer identity in the customer card; SSN masked.
CACTVWAfieldACSMNAMmergedS-ACCOUNT-VIEW/customer-summaryCustomer identity in the customer card; SSN masked.
CACTVWAfieldACSPFLGmergedS-ACCOUNT-VIEW/customer-summaryCustomer identity in the customer card; SSN masked.
CACTVWAfieldACSPHN1mergedS-ACCOUNT-VIEW/customer-contactAddress and phones grouped in one card.
CACTVWAfieldACSPHN2mergedS-ACCOUNT-VIEW/customer-contactAddress and phones grouped in one card.
CACTVWAfieldACSSTTEmergedS-ACCOUNT-VIEW/customer-contactAddress and phones grouped in one card.
CACTVWAfieldACSTDOBmergedS-ACCOUNT-VIEW/customer-summaryCustomer identity in the customer card; SSN masked.
CACTVWAfieldACSTFCOmergedS-ACCOUNT-VIEW/customer-summaryCustomer identity in the customer card; SSN masked.
CACTVWAfieldACSTNUMmergedS-ACCOUNT-VIEW/customer-summaryCustomer identity in the customer card; SSN masked.
CACTVWAfieldACSTSSNmergedS-ACCOUNT-VIEW/customer-summaryCustomer identity in the customer card; SSN masked.
CACTVWAfieldACSTTUSkeptS-ACCOUNT-VIEW/account-statusY/N status shown as an Active/Inactive badge.
CACTVWAfieldACSZIPCmergedS-ACCOUNT-VIEW/customer-contactAddress and phones grouped in one card.
CACTVWAfieldACURBALmergedS-ACCOUNT-VIEW/account-summaryAccount dates, limits, balances and group in the account card.
CACTVWAfieldADTOPENmergedS-ACCOUNT-VIEW/account-summaryAccount dates, limits, balances and group in the account card.
CACTVWAfieldAEXPDTmergedS-ACCOUNT-VIEW/account-summaryAccount dates, limits, balances and group in the account card.
CACTVWAfieldAREISDTmergedS-ACCOUNT-VIEW/account-summaryAccount dates, limits, balances and group in the account card.
CACTVWAfieldCURDATEmergedS-APP-SHELL/hdr-datetimeDate shown once in the shared header.
CACTVWAfieldCURTIMEmergedS-APP-SHELL/hdr-datetimeTime shown once in the shared header.
CACTVWAfieldERRMSGmergedS-ACCOUNT-VIEW/account-searchThe error shows under the search field and names the fix.
CACTVWAfieldINFOMSGmergedS-ACCOUNT-VIEW/account-searchThe prompt becomes the field label and hint.
CACTVWAfieldPGMNAMEdropped–Program name is technical; the page title identifies the screen.
CACTVWAfieldTITLE01mergedS-APP-SHELL/app-headerApplication titles shown once in the shared header.
CACTVWAfieldTITLE02mergedS-APP-SHELL/app-headerApplication titles shown once in the shared header.
CACTVWAfieldTRNNAMEdropped–Transaction code is technical; the page title identifies the screen.
CACTVWAkeyENTERkeptS-ACCOUNT-VIEW/account-searchEnter searches.
CACTVWAkeyF3dropped–Navigation is always in the header with shortcuts; there is no menu to return to.
COBIL0AscreenCOBIL0AkeptS-BILL-PAYKept; the typed Y/N confirmation becomes a dialog.
COBIL0AfieldACTIDINkeptS-BILL-PAY/account-lookupAccount to pay, pre-filled from context.
COBIL0AfieldCONFIRMmergedS-BILL-PAY/pay-balanceTyped Y/N becomes the confirmation dialog of Pay balance.
COBIL0AfieldCURBALkeptS-BILL-PAY/balance-summaryBalance shown before paying.
COBIL0AfieldCURDATEmergedS-APP-SHELL/hdr-datetimeDate shown once in the shared header.
COBIL0AfieldCURTIMEmergedS-APP-SHELL/hdr-datetimeTime shown once in the shared header.
COBIL0AfieldERRMSGmergedS-BILL-PAY/account-lookupErrors show under the field they concern.
COBIL0AfieldPGMNAMEdropped–Program name is technical; the page title identifies the screen.
COBIL0AfieldTITLE01mergedS-APP-SHELL/app-headerApplication titles shown once in the shared header.
COBIL0AfieldTITLE02mergedS-APP-SHELL/app-headerApplication titles shown once in the shared header.
COBIL0AfieldTRNNAMEdropped–Transaction code is technical; the page title identifies the screen.
COBIL0AkeyENTERmergedS-BILL-PAY/account-lookupEnter shows the balance; paying is the button.
COBIL0AkeyF3dropped–Navigation is always in the header with shortcuts; there is no menu to return to.
COBIL0AkeyF4mergedS-BILL-PAY/account-lookupEsc clears the account and balance.
CORPT0AscreenCORPT0AkeptS-REPORT-REQUESTKept; typed selection marks become one choice and the confirmation a dialog.
CORPT0AfieldCONFIRMmergedS-REPORT-REQUEST/submit-reportTyped Y/N becomes the confirmation dialog.
CORPT0AfieldCURDATEmergedS-APP-SHELL/hdr-datetimeDate shown once in the shared header.
CORPT0AfieldCURTIMEmergedS-APP-SHELL/hdr-datetimeTime shown once in the shared header.
CORPT0AfieldCUSTOMmergedS-REPORT-REQUEST/report-typeThree typed marks become one choice.
CORPT0AfieldEDTDDmergedS-REPORT-REQUEST/report-datesDate parts kept as labelled Month, Day, Year inputs, shown for Custom.
CORPT0AfieldEDTMMmergedS-REPORT-REQUEST/report-datesDate parts kept as labelled Month, Day, Year inputs, shown for Custom.
CORPT0AfieldEDTYYYYmergedS-REPORT-REQUEST/report-datesDate parts kept as labelled Month, Day, Year inputs, shown for Custom.
CORPT0AfieldERRMSGmergedS-REPORT-REQUEST/report-datesErrors show under the part to fix.
CORPT0AfieldMONTHLYmergedS-REPORT-REQUEST/report-typeThree typed marks become one choice.
CORPT0AfieldPGMNAMEdropped–Program name is technical; the page title identifies the screen.
CORPT0AfieldSDTDDmergedS-REPORT-REQUEST/report-datesDate parts kept as labelled Month, Day, Year inputs, shown for Custom.
CORPT0AfieldSDTMMmergedS-REPORT-REQUEST/report-datesDate parts kept as labelled Month, Day, Year inputs, shown for Custom.
CORPT0AfieldSDTYYYYmergedS-REPORT-REQUEST/report-datesDate parts kept as labelled Month, Day, Year inputs, shown for Custom.
CORPT0AfieldTITLE01mergedS-APP-SHELL/app-headerApplication titles shown once in the shared header.
CORPT0AfieldTITLE02mergedS-APP-SHELL/app-headerApplication titles shown once in the shared header.
CORPT0AfieldTRNNAMEdropped–Transaction code is technical; the page title identifies the screen.
CORPT0AfieldYEARLYmergedS-REPORT-REQUEST/report-typeThree typed marks become one choice.
CORPT0AkeyENTERmergedS-REPORT-REQUEST/submit-reportSubmitting is the button (Ctrl+Enter) with a dialog.
CORPT0AkeyF3dropped–Navigation is always in the header with shortcuts; there is no menu to return to.
COTRN0AscreenCOTRN0AkeptS-TRANSACTION-LISTKept as a sortable paged table whose rows open.
COTRN0AfieldCURDATEmergedS-APP-SHELL/hdr-datetimeDate shown once in the shared header.
COTRN0AfieldCURTIMEmergedS-APP-SHELL/hdr-datetimeTime shown once in the shared header.
COTRN0AfieldERRMSGmergedS-TRANSACTION-LIST/tran-searchErrors show under the search field; paging limits show at the pager.
COTRN0AfieldPAGENUMmergedS-TRANSACTION-LIST/transactions-tablePage number shown by the table pager.
COTRN0AfieldPGMNAMEdropped–Program name is technical; the page title identifies the screen.
COTRN0AfieldSEL0001mergedS-TRANSACTION-LIST/transactions-tableSelection letter replaced by opening the row with Enter or click.
COTRN0AfieldSEL0002mergedS-TRANSACTION-LIST/transactions-tableSelection letter replaced by opening the row with Enter or click.
COTRN0AfieldSEL0003mergedS-TRANSACTION-LIST/transactions-tableSelection letter replaced by opening the row with Enter or click.
COTRN0AfieldSEL0004mergedS-TRANSACTION-LIST/transactions-tableSelection letter replaced by opening the row with Enter or click.
COTRN0AfieldSEL0005mergedS-TRANSACTION-LIST/transactions-tableSelection letter replaced by opening the row with Enter or click.
COTRN0AfieldSEL0006mergedS-TRANSACTION-LIST/transactions-tableSelection letter replaced by opening the row with Enter or click.
COTRN0AfieldSEL0007mergedS-TRANSACTION-LIST/transactions-tableSelection letter replaced by opening the row with Enter or click.
COTRN0AfieldSEL0008mergedS-TRANSACTION-LIST/transactions-tableSelection letter replaced by opening the row with Enter or click.
COTRN0AfieldSEL0009mergedS-TRANSACTION-LIST/transactions-tableSelection letter replaced by opening the row with Enter or click.
COTRN0AfieldSEL0010mergedS-TRANSACTION-LIST/transactions-tableSelection letter replaced by opening the row with Enter or click.
COTRN0AfieldTAMT001mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTAMT002mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTAMT003mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTAMT004mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTAMT005mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTAMT006mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTAMT007mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTAMT008mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTAMT009mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTAMT010mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTDATE01mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTDATE02mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTDATE03mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTDATE04mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTDATE05mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTDATE06mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTDATE07mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTDATE08mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTDATE09mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTDATE10mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTDESC01mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTDESC02mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTDESC03mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTDESC04mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTDESC05mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTDESC06mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTDESC07mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTDESC08mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTDESC09mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTDESC10mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTITLE01mergedS-APP-SHELL/app-headerApplication titles shown once in the shared header.
COTRN0AfieldTITLE02mergedS-APP-SHELL/app-headerApplication titles shown once in the shared header.
COTRN0AfieldTRNID01mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTRNID02mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTRNID03mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTRNID04mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTRNID05mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTRNID06mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTRNID07mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTRNID08mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTRNID09mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTRNID10mergedS-TRANSACTION-LIST/transactions-tableTen fixed rows become sortable, paged table rows.
COTRN0AfieldTRNIDINkeptS-TRANSACTION-LIST/tran-searchStart-from transaction ID search.
COTRN0AfieldTRNNAMEdropped–Transaction code is technical; the page title identifies the screen.
COTRN0AkeyENTERmergedS-TRANSACTION-LIST/transactions-tableEnter on a row opens it; Enter in the search searches.
COTRN0AkeyF3dropped–Navigation is always in the header with shortcuts; there is no menu to return to.
COTRN0AkeyF7mergedS-TRANSACTION-LIST/transactions-tableTable pager, previous page (PageUp).
COTRN0AkeyF8mergedS-TRANSACTION-LIST/transactions-tableTable pager, next page (PageDown).
COTRN1AscreenCOTRN1AkeptS-TRANSACTION-VIEWKept as the transaction detail screen.
COTRN1AfieldCARDNUMmergedS-TRANSACTION-VIEW/transaction-summaryTransaction details in one card.
COTRN1AfieldCURDATEmergedS-APP-SHELL/hdr-datetimeDate shown once in the shared header.
COTRN1AfieldCURTIMEmergedS-APP-SHELL/hdr-datetimeTime shown once in the shared header.
COTRN1AfieldERRMSGmergedS-TRANSACTION-VIEW/tran-lookupErrors show under the field.
COTRN1AfieldMCITYmergedS-TRANSACTION-VIEW/merchant-summaryMerchant details in their own card.
COTRN1AfieldMIDmergedS-TRANSACTION-VIEW/merchant-summaryMerchant details in their own card.
COTRN1AfieldMNAMEmergedS-TRANSACTION-VIEW/merchant-summaryMerchant details in their own card.
COTRN1AfieldMZIPmergedS-TRANSACTION-VIEW/merchant-summaryMerchant details in their own card.
COTRN1AfieldPGMNAMEdropped–Program name is technical; the page title identifies the screen.
COTRN1AfieldTCATCDmergedS-TRANSACTION-VIEW/transaction-summaryTransaction details in one card.
COTRN1AfieldTDESCmergedS-TRANSACTION-VIEW/transaction-summaryTransaction details in one card.
COTRN1AfieldTITLE01mergedS-APP-SHELL/app-headerApplication titles shown once in the shared header.
COTRN1AfieldTITLE02mergedS-APP-SHELL/app-headerApplication titles shown once in the shared header.
COTRN1AfieldTORIGDTmergedS-TRANSACTION-VIEW/transaction-summaryTransaction details in one card.
COTRN1AfieldTPROCDTmergedS-TRANSACTION-VIEW/transaction-summaryTransaction details in one card.
COTRN1AfieldTRNAMTmergedS-TRANSACTION-VIEW/transaction-summaryTransaction details in one card.
COTRN1AfieldTRNIDmergedS-TRANSACTION-VIEW/transaction-summaryTransaction details in one card.
COTRN1AfieldTRNIDINkeptS-TRANSACTION-VIEW/tran-lookupTransaction ID to fetch.
COTRN1AfieldTRNNAMEdropped–Transaction code is technical; the page title identifies the screen.
COTRN1AfieldTRNSRCmergedS-TRANSACTION-VIEW/transaction-summaryTransaction details in one card.
COTRN1AfieldTTYPCDmergedS-TRANSACTION-VIEW/transaction-summaryTransaction details in one card.
COTRN1AkeyENTERkeptS-TRANSACTION-VIEW/tran-lookupEnter fetches.
COTRN1AkeyF3mergedS-APP-SHELL/nav-transactionsReturns to the list through the navigation.
COTRN1AkeyF4mergedS-TRANSACTION-VIEW/tran-lookupEsc clears the ID and details.
COTRN1AkeyF5mergedS-TRANSACTION-VIEW/back-to-listBack to transactions button (Alt+T).
COTRN2AscreenCOTRN2AkeptS-TRANSACTION-ADDKept; one account-or-card field, every field checked, and a confirmation dialog.
COTRN2AfieldACTIDINmergedS-TRANSACTION-ADD/source-lookupAccount and card number fields become one account-or-card field.
COTRN2AfieldCARDNINmergedS-TRANSACTION-ADD/source-lookupAccount and card number fields become one account-or-card field.
COTRN2AfieldCONFIRMmergedS-TRANSACTION-ADD/add-transactionTyped Y/N becomes the confirmation dialog.
COTRN2AfieldCURDATEmergedS-APP-SHELL/hdr-datetimeDate shown once in the shared header.
COTRN2AfieldCURTIMEmergedS-APP-SHELL/hdr-datetimeTime shown once in the shared header.
COTRN2AfieldERRMSGmergedS-TRANSACTION-ADD/transaction-detailsEvery failing field shows its own message.
COTRN2AfieldMCITYmergedS-TRANSACTION-ADD/merchant-detailsMerchant fields grouped.
COTRN2AfieldMIDmergedS-TRANSACTION-ADD/merchant-detailsMerchant fields grouped.
COTRN2AfieldMNAMEmergedS-TRANSACTION-ADD/merchant-detailsMerchant fields grouped.
COTRN2AfieldMZIPmergedS-TRANSACTION-ADD/merchant-detailsMerchant fields grouped.
COTRN2AfieldPGMNAMEdropped–Program name is technical; the page title identifies the screen.
COTRN2AfieldTCATCDmergedS-TRANSACTION-ADD/transaction-detailsTransaction fields grouped; codes become choices, amount a money input, dates date inputs.
COTRN2AfieldTDESCmergedS-TRANSACTION-ADD/transaction-detailsTransaction fields grouped; codes become choices, amount a money input, dates date inputs.
COTRN2AfieldTITLE01mergedS-APP-SHELL/app-headerApplication titles shown once in the shared header.
COTRN2AfieldTITLE02mergedS-APP-SHELL/app-headerApplication titles shown once in the shared header.
COTRN2AfieldTORIGDTmergedS-TRANSACTION-ADD/transaction-detailsTransaction fields grouped; codes become choices, amount a money input, dates date inputs.
COTRN2AfieldTPROCDTmergedS-TRANSACTION-ADD/transaction-detailsTransaction fields grouped; codes become choices, amount a money input, dates date inputs.
COTRN2AfieldTRNAMTmergedS-TRANSACTION-ADD/transaction-detailsTransaction fields grouped; codes become choices, amount a money input, dates date inputs.
COTRN2AfieldTRNNAMEdropped–Transaction code is technical; the page title identifies the screen.
COTRN2AfieldTRNSRCmergedS-TRANSACTION-ADD/transaction-detailsTransaction fields grouped; codes become choices, amount a money input, dates date inputs.
COTRN2AfieldTTYPCDmergedS-TRANSACTION-ADD/transaction-detailsTransaction fields grouped; codes become choices, amount a money input, dates date inputs.
COTRN2AkeyENTERmergedS-TRANSACTION-ADD/add-transactionAdding is the button (Ctrl+Enter) with a dialog.
COTRN2AkeyF3dropped–Navigation is always in the header with shortcuts; there is no menu to return to.
COTRN2AkeyF4mergedS-TRANSACTION-ADD/transaction-detailsAlt+X clears the form.
COTRN2AkeyF5mergedS-TRANSACTION-ADD/transaction-detailsAlt+C copies the last transaction.
CCRDLIAscreenCCRDLIAkeptS-CARD-LISTThe card list stays, with a clickable row instead of S/U codes
CCRDLIAfieldACCTNO1mergedS-CARD-LIST/cards-tableAccount number column
CCRDLIAfieldACCTNO2mergedS-CARD-LIST/cards-tableAccount number column
CCRDLIAfieldACCTNO3mergedS-CARD-LIST/cards-tableAccount number column
CCRDLIAfieldACCTNO4mergedS-CARD-LIST/cards-tableAccount number column
CCRDLIAfieldACCTNO5mergedS-CARD-LIST/cards-tableAccount number column
CCRDLIAfieldACCTNO6mergedS-CARD-LIST/cards-tableAccount number column
CCRDLIAfieldACCTNO7mergedS-CARD-LIST/cards-tableAccount number column
CCRDLIAfieldACCTSIDkeptS-CARD-LIST/account-filterAccount filter
CCRDLIAfieldCARDSIDkeptS-CARD-LIST/card-filterCard number filter
CCRDLIAfieldCRDNUM1mergedS-CARD-LIST/cards-tableCard number column
CCRDLIAfieldCRDNUM2mergedS-CARD-LIST/cards-tableCard number column
CCRDLIAfieldCRDNUM3mergedS-CARD-LIST/cards-tableCard number column
CCRDLIAfieldCRDNUM4mergedS-CARD-LIST/cards-tableCard number column
CCRDLIAfieldCRDNUM5mergedS-CARD-LIST/cards-tableCard number column
CCRDLIAfieldCRDNUM6mergedS-CARD-LIST/cards-tableCard number column
CCRDLIAfieldCRDNUM7mergedS-CARD-LIST/cards-tableCard number column
CCRDLIAfieldCRDSEL1mergedS-CARD-LIST/cards-tableTyped S/U code becomes opening the row
CCRDLIAfieldCRDSEL2mergedS-CARD-LIST/cards-tableTyped S/U code becomes opening the row
CCRDLIAfieldCRDSEL3mergedS-CARD-LIST/cards-tableTyped S/U code becomes opening the row
CCRDLIAfieldCRDSEL4mergedS-CARD-LIST/cards-tableTyped S/U code becomes opening the row
CCRDLIAfieldCRDSEL5mergedS-CARD-LIST/cards-tableTyped S/U code becomes opening the row
CCRDLIAfieldCRDSEL6mergedS-CARD-LIST/cards-tableTyped S/U code becomes opening the row
CCRDLIAfieldCRDSEL7mergedS-CARD-LIST/cards-tableTyped S/U code becomes opening the row
CCRDLIAfieldCRDSTP2dropped–Hidden attribute field for the selection code, which no longer exists
CCRDLIAfieldCRDSTP3dropped–Hidden attribute field for the selection code, which no longer exists
CCRDLIAfieldCRDSTP4dropped–Hidden attribute field for the selection code, which no longer exists
CCRDLIAfieldCRDSTP5dropped–Hidden attribute field for the selection code, which no longer exists
CCRDLIAfieldCRDSTP6dropped–Hidden attribute field for the selection code, which no longer exists
CCRDLIAfieldCRDSTP7dropped–Hidden attribute field for the selection code, which no longer exists
CCRDLIAfieldCRDSTS1mergedS-CARD-LIST/status-badgeY/N status shown as a badge with the word
CCRDLIAfieldCRDSTS2mergedS-CARD-LIST/status-badgeY/N status shown as a badge with the word
CCRDLIAfieldCRDSTS3mergedS-CARD-LIST/status-badgeY/N status shown as a badge with the word
CCRDLIAfieldCRDSTS4mergedS-CARD-LIST/status-badgeY/N status shown as a badge with the word
CCRDLIAfieldCRDSTS5mergedS-CARD-LIST/status-badgeY/N status shown as a badge with the word
CCRDLIAfieldCRDSTS6mergedS-CARD-LIST/status-badgeY/N status shown as a badge with the word
CCRDLIAfieldCRDSTS7mergedS-CARD-LIST/status-badgeY/N status shown as a badge with the word
CCRDLIAfieldCURDATEmergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CCRDLIAfieldCURTIMEmergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CCRDLIAfieldERRMSGsplitS-CARD-LIST/account-filterErrors show under the filter they concern
CCRDLIAfieldINFOMSGmergedS-CARD-LIST/cards-tablePaging prompts are replaced by the pager; the empty state explains no results
CCRDLIAfieldPAGENOmergedS-CARD-LIST/cards-tableThe table pager shows the page
CCRDLIAfieldPGMNAMEmergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CCRDLIAfieldTITLE01mergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CCRDLIAfieldTITLE02mergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CCRDLIAfieldTRNNAMEmergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CCRDLIAkeyENTERmergedS-CARD-LIST/cards-tableEnter opens the focused row; in a filter it searches
CCRDLIAkeyF3mergedS-APP-SHELL/app-headerExit is the header navigation
CCRDLIAkeyF7mergedS-CARD-LIST/cards-tableTable pager, Page Up
CCRDLIAkeyF8mergedS-CARD-LIST/cards-tableTable pager, Page Down
CCRDSLAscreenCCRDSLAmergedS-CARD-DETAILViewing and changing a card are one screen
CCRDSLAfieldACCTSIDkeptS-CARD-DETAIL/account-searchAccount number search, read-only when opened from the list
CCRDSLAfieldCARDSIDkeptS-CARD-DETAIL/card-searchCard number search
CCRDSLAfieldCRDNAMEmergedS-CARD-DETAIL/name-on-cardName on card, viewed and changed in one place
CCRDSLAfieldCRDSTCDmergedS-CARD-DETAIL/status-badgeStatus shown as a badge with the word
CCRDSLAfieldCURDATEmergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CCRDSLAfieldCURTIMEmergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CCRDSLAfieldERRMSGsplitS-CARD-DETAIL/card-searchErrors show under the search field they concern
CCRDSLAfieldEXPMONmergedS-CARD-DETAIL/expiry-monthExpiry month
CCRDSLAfieldEXPYEARmergedS-CARD-DETAIL/expiry-yearExpiry year
CCRDSLAfieldFKEYSdropped–The function key legend is not needed; actions are buttons with shortcuts
CCRDSLAfieldINFOMSGmergedS-CARD-DETAIL/card-summaryPrompts show as a status message
CCRDSLAfieldPGMNAMEmergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CCRDSLAfieldTITLE01mergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CCRDSLAfieldTITLE02mergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CCRDSLAfieldTRNNAMEmergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CCRDSLAkeyENTERmergedS-CARD-DETAIL/card-searchEnter searches
CCRDSLAkeyF3mergedS-APP-SHELL/nav-cardsBack to the card list through the navigation
CCRDUPAscreenCCRDUPAmergedS-CARD-DETAILViewing and changing a card are one screen
CCRDUPAfieldACCTSIDmergedS-CARD-DETAIL/account-searchAccount number, read-only when opened from the list
CCRDUPAfieldCARDSIDmergedS-CARD-DETAIL/card-searchCard number search
CCRDUPAfieldCRDNAMEkeptS-CARD-DETAIL/name-on-cardName on card
CCRDUPAfieldCRDSTCDkeptS-CARD-DETAIL/card-statusActive status chosen with labelled options instead of typing Y/N
CCRDUPAfieldCURDATEmergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CCRDUPAfieldCURTIMEmergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CCRDUPAfieldERRMSGsplitS-CARD-DETAIL/save-cardErrors show beside the field in error with a summary at the top
CCRDUPAfieldEXPDAYmergedS-CARD-DETAIL/expiry-monthHidden expiry day is kept unchanged with month and year
CCRDUPAfieldEXPMONkeptS-CARD-DETAIL/expiry-monthExpiry month
CCRDUPAfieldEXPYEARkeptS-CARD-DETAIL/expiry-yearExpiry year
CCRDUPAfieldFKEYSdropped–The function key legend is not needed; actions are buttons with shortcuts
CCRDUPAfieldFKEYSCmergedS-CARD-DETAIL/save-cardThe F5 Save / F12 Cancel legend becomes Save and its Esc shortcut
CCRDUPAfieldINFOMSGmergedS-CARD-DETAIL/save-cardPrompts and outcomes show as a status message by Save
CCRDUPAfieldPGMNAMEmergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CCRDUPAfieldTITLE01mergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CCRDUPAfieldTITLE02mergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CCRDUPAfieldTRNNAMEmergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CCRDUPAkeyENTERmergedS-CARD-DETAIL/save-cardThe separate check step is part of Save
CCRDUPAkeyF12mergedS-CARD-DETAIL/save-cardCancel is Esc beside Save
CCRDUPAkeyF3mergedS-APP-SHELL/nav-cardsBack to the card list through the navigation
CCRDUPAkeyF5keptS-CARD-DETAIL/save-cardSave, Ctrl+S
CTRTLIAscreenCTRTLIAkeptS-TRANTYPE-LISTThe list stays, with filters and row actions instead of action codes
CTRTLIAfieldBUTNF02mergedS-TRANTYPE-LIST/add-typeThe F2 Add label becomes the Add button
CTRTLIAfieldBUTNF03mergedS-APP-SHELL/app-headerExit is the header navigation
CTRTLIAfieldBUTNF07mergedS-TRANTYPE-LIST/types-tablePage key label becomes the table pager
CTRTLIAfieldBUTNF08mergedS-TRANTYPE-LIST/types-tablePage key label becomes the table pager
CTRTLIAfieldBUTNF10mergedS-TRANTYPE-LIST/types-tableF10 Save becomes the row action's confirmation dialog
CTRTLIAfieldCURDATEmergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CTRTLIAfieldCURTIMEmergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CTRTLIAfieldERRMSGsplitS-TRANTYPE-LIST/type-filterErrors show under the field they concern: the filters or the in-place description
CTRTLIAfieldINFOMSGmergedS-TRANTYPE-LIST/types-tablePrompts and outcomes show as a status message above the table and in the dialogs
CTRTLIAfieldPAGENOmergedS-TRANTYPE-LIST/types-tableThe table pager shows the page
CTRTLIAfieldPGMNAMEmergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CTRTLIAfieldTITLE01mergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CTRTLIAfieldTITLE02mergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CTRTLIAfieldTRDESCkeptS-TRANTYPE-LIST/desc-filterDescription filter
CTRTLIAfieldTRNNAMEmergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CTRTLIAfieldTRTDSCAmergedS-TRANTYPE-LIST/types-tableDescription column
CTRTLIAfieldTRTSEL1mergedS-TRANTYPE-LIST/types-tableTyped U/D action code becomes the row's Edit and Delete actions
CTRTLIAfieldTRTSEL2mergedS-TRANTYPE-LIST/types-tableTyped U/D action code becomes the row's Edit and Delete actions
CTRTLIAfieldTRTSEL3mergedS-TRANTYPE-LIST/types-tableTyped U/D action code becomes the row's Edit and Delete actions
CTRTLIAfieldTRTSEL4mergedS-TRANTYPE-LIST/types-tableTyped U/D action code becomes the row's Edit and Delete actions
CTRTLIAfieldTRTSEL5mergedS-TRANTYPE-LIST/types-tableTyped U/D action code becomes the row's Edit and Delete actions
CTRTLIAfieldTRTSEL6mergedS-TRANTYPE-LIST/types-tableTyped U/D action code becomes the row's Edit and Delete actions
CTRTLIAfieldTRTSEL7mergedS-TRANTYPE-LIST/types-tableTyped U/D action code becomes the row's Edit and Delete actions
CTRTLIAfieldTRTSELAmergedS-TRANTYPE-LIST/types-tableTyped U/D action code becomes the row's Edit and Delete actions
CTRTLIAfieldTRTTYP1mergedS-TRANTYPE-LIST/types-tableType code column
CTRTLIAfieldTRTTYP2mergedS-TRANTYPE-LIST/types-tableType code column
CTRTLIAfieldTRTTYP3mergedS-TRANTYPE-LIST/types-tableType code column
CTRTLIAfieldTRTTYP4mergedS-TRANTYPE-LIST/types-tableType code column
CTRTLIAfieldTRTTYP5mergedS-TRANTYPE-LIST/types-tableType code column
CTRTLIAfieldTRTTYP6mergedS-TRANTYPE-LIST/types-tableType code column
CTRTLIAfieldTRTTYP7mergedS-TRANTYPE-LIST/types-tableType code column
CTRTLIAfieldTRTTYPAmergedS-TRANTYPE-LIST/types-tableType code column
CTRTLIAfieldTRTYPD1mergedS-TRANTYPE-LIST/types-tableDescription column, editable in place with the Edit row action
CTRTLIAfieldTRTYPD2mergedS-TRANTYPE-LIST/types-tableDescription column, editable in place with the Edit row action
CTRTLIAfieldTRTYPD3mergedS-TRANTYPE-LIST/types-tableDescription column, editable in place with the Edit row action
CTRTLIAfieldTRTYPD4mergedS-TRANTYPE-LIST/types-tableDescription column, editable in place with the Edit row action
CTRTLIAfieldTRTYPD5mergedS-TRANTYPE-LIST/types-tableDescription column, editable in place with the Edit row action
CTRTLIAfieldTRTYPD6mergedS-TRANTYPE-LIST/types-tableDescription column, editable in place with the Edit row action
CTRTLIAfieldTRTYPD7mergedS-TRANTYPE-LIST/types-tableDescription column, editable in place with the Edit row action
CTRTLIAfieldTRTYPEkeptS-TRANTYPE-LIST/type-filterType code filter
CTRTLIAkeyENTERmergedS-TRANTYPE-LIST/type-filterEnter applies the filters
CTRTLIAkeyF10mergedS-TRANTYPE-LIST/types-tableConfirm becomes the row action's confirmation dialog
CTRTLIAkeyF2keptS-TRANTYPE-LIST/add-typeAdd button, Alt+N
CTRTLIAkeyF3mergedS-APP-SHELL/app-headerExit is the header navigation
CTRTLIAkeyF7mergedS-TRANTYPE-LIST/types-tableTable pager, Page Up
CTRTLIAkeyF8mergedS-TRANTYPE-LIST/types-tableTable pager, Page Down
CTRTUPAscreenCTRTUPAkeptS-TRANTYPE-EDITAdd and change by code keep their own screen; delete moves to the list's row action
CTRTUPAfieldCURDATEmergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CTRTUPAfieldCURTIMEmergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CTRTUPAfieldERRMSGsplitS-TRANTYPE-EDIT/type-codeErrors show under the field they concern: code or description
CTRTUPAfieldFKEY04mergedS-TRANTYPE-LIST/types-tableDelete becomes the list's row action with one confirmation
CTRTUPAfieldFKEY05mergedS-TRANTYPE-EDIT/save-typeSave and Add are one Save button
CTRTUPAfieldFKEY06mergedS-TRANTYPE-EDIT/save-typeSave and Add are one Save button
CTRTUPAfieldFKEY12mergedS-TRANTYPE-EDIT/save-typeCancel is Esc beside Save
CTRTUPAfieldFKEYSdropped–The function key legend is not needed; actions are buttons with shortcuts
CTRTUPAfieldINFOMSGmergedS-TRANTYPE-EDIT/save-typePrompts and outcomes show as a status message by Save
CTRTUPAfieldPGMNAMEmergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CTRTUPAfieldTITLE01mergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CTRTUPAfieldTITLE02mergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CTRTUPAfieldTRNNAMEmergedS-APP-SHELL/app-headerRepeated header field becomes the application header shown once
CTRTUPAfieldTRTYDSCkeptS-TRANTYPE-EDIT/descriptionDescription
CTRTUPAfieldTRTYPCDkeptS-TRANTYPE-EDIT/type-codeType code, searched with its button
CTRTUPAkeyENTERmergedS-TRANTYPE-EDIT/type-codeEnter searches the code
CTRTUPAkeyF12mergedS-TRANTYPE-EDIT/save-typeCancel is Esc beside Save
CTRTUPAkeyF3mergedS-APP-SHELL/nav-trantypesBack through the navigation
CTRTUPAkeyF4mergedS-TRANTYPE-LIST/types-tableDelete is the list's row action, confirmed once in a dialog instead of F4 twice
CTRTUPAkeyF5mergedS-TRANTYPE-EDIT/save-typeSave checks and saves in one step
CTRTUPAkeyF6mergedS-TRANTYPE-EDIT/save-typeAdding is saving a code that was not found
COPAU0AscreenCOPAU0AmergedS-ACCOUNT-AUTHORIZATIONSThe account lookup, account summary and authorization list join the authorization details on one screen.
COPAU0AfieldACCSTATkeptS-ACCOUNT-AUTHORIZATIONS/acct-statusThe one-letter status becomes a worded badge.
COPAU0AfieldACCTIDkeptS-ACCOUNT-AUTHORIZATIONS/acct-lookupAccount ID search, with its errors shown under the field.
COPAU0AfieldADDR001mergedS-ACCOUNT-AUTHORIZATIONS/customer-cardBoth address lines show together as one address.
COPAU0AfieldADDR002mergedS-ACCOUNT-AUTHORIZATIONS/customer-cardBoth address lines show together as one address.
COPAU0AfieldAPPRAMTkeptS-ACCOUNT-AUTHORIZATIONS/auth-totalsApproved amount.
COPAU0AfieldAPPRCNTkeptS-ACCOUNT-AUTHORIZATIONS/auth-totalsApproved count.
COPAU0AfieldCASHBALkeptS-ACCOUNT-AUTHORIZATIONS/limits-cardThe cash balance sits beside its limit.
COPAU0AfieldCASHLIMkeptS-ACCOUNT-AUTHORIZATIONS/limits-cardThe cash limit sits beside its balance.
COPAU0AfieldCNAMEkeptS-ACCOUNT-AUTHORIZATIONS/customer-cardCustomer name.
COPAU0AfieldCREDBALkeptS-ACCOUNT-AUTHORIZATIONS/limits-cardThe credit balance sits beside its limit.
COPAU0AfieldCREDLIMkeptS-ACCOUNT-AUTHORIZATIONS/limits-cardThe credit limit sits beside its balance.
COPAU0AfieldCURDATEmergedS-APP-HEADER/app-headerToday's date appears once, in the shared header.
COPAU0AfieldCURTIMEmergedS-APP-HEADER/app-headerThe time appears once, in the shared header.
COPAU0AfieldCUSTIDkeptS-ACCOUNT-AUTHORIZATIONS/customer-cardCustomer ID.
COPAU0AfieldDECLAMTkeptS-ACCOUNT-AUTHORIZATIONS/auth-totalsDeclined amount.
COPAU0AfieldDECLCNTkeptS-ACCOUNT-AUTHORIZATIONS/auth-totalsDeclined count.
COPAU0AfieldERRMSGsplitS-ACCOUNT-AUTHORIZATIONS/acct-lookupThe single message line splits so each error shows where it is fixed: under Account ID (lookup errors), on the totals card (summary read errors) and on the table's paging controls (first/last page).
COPAU0AfieldPAMT001mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableAmount column, right-aligned with two decimals.
COPAU0AfieldPAMT002mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableAmount column, right-aligned with two decimals.
COPAU0AfieldPAMT003mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableAmount column, right-aligned with two decimals.
COPAU0AfieldPAMT004mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableAmount column, right-aligned with two decimals.
COPAU0AfieldPAMT005mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableAmount column, right-aligned with two decimals.
COPAU0AfieldPAPRV01mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableThe A/D letter becomes an Approved/Declined badge column.
COPAU0AfieldPAPRV02mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableThe A/D letter becomes an Approved/Declined badge column.
COPAU0AfieldPAPRV03mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableThe A/D letter becomes an Approved/Declined badge column.
COPAU0AfieldPAPRV04mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableThe A/D letter becomes an Approved/Declined badge column.
COPAU0AfieldPAPRV05mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableThe A/D letter becomes an Approved/Declined badge column.
COPAU0AfieldPDATE01mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableDate column of the table.
COPAU0AfieldPDATE02mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableDate column of the table.
COPAU0AfieldPDATE03mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableDate column of the table.
COPAU0AfieldPDATE04mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableDate column of the table.
COPAU0AfieldPDATE05mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableDate column of the table.
COPAU0AfieldPGMNAMEdropped–The program name is a technical identifier that users do not need.
COPAU0AfieldPHONE1keptS-ACCOUNT-AUTHORIZATIONS/customer-cardPhone number.
COPAU0AfieldPSTAT01mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableStatus column of the table.
COPAU0AfieldPSTAT02mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableStatus column of the table.
COPAU0AfieldPSTAT03mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableStatus column of the table.
COPAU0AfieldPSTAT04mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableStatus column of the table.
COPAU0AfieldPSTAT05mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableStatus column of the table.
COPAU0AfieldPTIME01mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableTime column of the table.
COPAU0AfieldPTIME02mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableTime column of the table.
COPAU0AfieldPTIME03mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableTime column of the table.
COPAU0AfieldPTIME04mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableTime column of the table.
COPAU0AfieldPTIME05mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableTime column of the table.
COPAU0AfieldPTYPE01mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableType column of the table.
COPAU0AfieldPTYPE02mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableType column of the table.
COPAU0AfieldPTYPE03mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableType column of the table.
COPAU0AfieldPTYPE04mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableType column of the table.
COPAU0AfieldPTYPE05mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableType column of the table.
COPAU0AfieldSEL0001mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableThe typed S selection code is replaced by clicking a row or pressing Enter on it.
COPAU0AfieldSEL0002mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableThe typed S selection code is replaced by clicking a row or pressing Enter on it.
COPAU0AfieldSEL0003mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableThe typed S selection code is replaced by clicking a row or pressing Enter on it.
COPAU0AfieldSEL0004mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableThe typed S selection code is replaced by clicking a row or pressing Enter on it.
COPAU0AfieldSEL0005mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableThe typed S selection code is replaced by clicking a row or pressing Enter on it.
COPAU0AfieldTITLE01mergedS-APP-HEADER/app-headerThe application title appears once, in the shared header.
COPAU0AfieldTITLE02mergedS-APP-HEADER/app-headerThe page title appears once, in the shared header.
COPAU0AfieldTRNID01mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableTransaction ID column; the five fixed rows become a table with 20 rows a page.
COPAU0AfieldTRNID02mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableTransaction ID column of the table.
COPAU0AfieldTRNID03mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableTransaction ID column of the table.
COPAU0AfieldTRNID04mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableTransaction ID column of the table.
COPAU0AfieldTRNID05mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableTransaction ID column of the table.
COPAU0AfieldTRNNAMEdropped–The transaction code is a CICS internal that users do not need.
COPAU0AkeyENTERsplitS-ACCOUNT-AUTHORIZATIONS/acct-lookupEnter in the Account ID field searches; an authorization opens with Enter or a click on its row in the table.
COPAU0AkeyF3mergedS-APP-HEADER/nav-main-menuBack to the main menu is the shared header's Main menu button (Alt+M).
COPAU0AkeyF7mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableThe table pages itself (Previous page, Page Up).
COPAU0AkeyF8mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableThe table pages itself (Next page, Page Down).
COPAU1AscreenCOPAU1AmergedS-ACCOUNT-AUTHORIZATIONSThe details open beside the list, so the agent keeps the account in view while the caller waits.
COPAU1AfieldAUTHAMTkeptS-ACCOUNT-AUTHORIZATIONS/auth-detail-cardAmount, right-aligned with two decimals.
COPAU1AfieldAUTHCDkeptS-ACCOUNT-AUTHORIZATIONS/auth-detail-cardAuthorization code.
COPAU1AfieldAUTHDTkeptS-ACCOUNT-AUTHORIZATIONS/auth-detail-cardAuthorization date, shown as 26 Nov 2026.
COPAU1AfieldAUTHFRDkeptS-ACCOUNT-AUTHORIZATIONS/fraud-statusThe fraud flag and report date become a worded fraud status badge.
COPAU1AfieldAUTHMTCkeptS-ACCOUNT-AUTHORIZATIONS/auth-detail-cardMatch status.
COPAU1AfieldAUTHRSNkeptS-ACCOUNT-AUTHORIZATIONS/auth-detail-cardThe decline reason shows as code and description.
COPAU1AfieldAUTHRSPkeptS-ACCOUNT-AUTHORIZATIONS/auth-responseThe A/D letter becomes a worded Approved/Declined badge instead of colour alone.
COPAU1AfieldAUTHSRCkeptS-ACCOUNT-AUTHORIZATIONS/auth-detail-cardMessage source.
COPAU1AfieldAUTHTMkeptS-ACCOUNT-AUTHORIZATIONS/auth-detail-cardAuthorization time.
COPAU1AfieldAUTHTYPkeptS-ACCOUNT-AUTHORIZATIONS/auth-detail-cardAuthorization type.
COPAU1AfieldCARDNUMkeptS-ACCOUNT-AUTHORIZATIONS/auth-detail-cardCard number.
COPAU1AfieldCRDEXPkeptS-ACCOUNT-AUTHORIZATIONS/auth-detail-cardCard expiry, shown as MM/YY.
COPAU1AfieldCURDATEmergedS-APP-HEADER/app-headerToday's date appears once, in the shared header.
COPAU1AfieldCURTIMEmergedS-APP-HEADER/app-headerThe time appears once, in the shared header.
COPAU1AfieldERRMSGsplitS-ACCOUNT-AUTHORIZATIONS/fraud-toggleMessages show where they apply: fraud outcomes on the fraud action, read errors on the details card, and the last-authorization notice on the table.
COPAU1AfieldMCCCDkeptS-ACCOUNT-AUTHORIZATIONS/auth-detail-cardMerchant category code.
COPAU1AfieldMERCITYkeptS-ACCOUNT-AUTHORIZATIONS/merchant-cardMerchant city.
COPAU1AfieldMERIDkeptS-ACCOUNT-AUTHORIZATIONS/merchant-cardMerchant ID.
COPAU1AfieldMERNAMEkeptS-ACCOUNT-AUTHORIZATIONS/merchant-cardMerchant name.
COPAU1AfieldMERSTkeptS-ACCOUNT-AUTHORIZATIONS/merchant-cardMerchant state.
COPAU1AfieldMERZIPkeptS-ACCOUNT-AUTHORIZATIONS/merchant-cardMerchant ZIP.
COPAU1AfieldPGMNAMEdropped–The program name is a technical identifier that users do not need.
COPAU1AfieldPOSEMDkeptS-ACCOUNT-AUTHORIZATIONS/auth-detail-cardPOS entry mode.
COPAU1AfieldTITLE01mergedS-APP-HEADER/app-headerThe application title appears once, in the shared header.
COPAU1AfieldTITLE02mergedS-APP-HEADER/app-headerThe page title appears once, in the shared header.
COPAU1AfieldTRNIDkeptS-ACCOUNT-AUTHORIZATIONS/auth-detail-cardTransaction ID.
COPAU1AfieldTRNNAMEdropped–The transaction code is a CICS internal that users do not need.
COPAU1AkeyENTERmergedS-ACCOUNT-AUTHORIZATIONS/auth-detail-cardThe details are read afresh each time an authorization opens, so no refresh key is needed.
COPAU1AkeyF3mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableEsc closes the details and returns focus to the row; the list stays on screen throughout.
COPAU1AkeyF5keptS-ACCOUNT-AUTHORIZATIONS/fraud-toggleThe Report fraud / Remove fraud mark button, with a confirmation (Alt+F).
COPAU1AkeyF8mergedS-ACCOUNT-AUTHORIZATIONS/auth-tableNext authorization is J, or the next row of the table.
COADM1AscreenCOADM1AmergedS-HOMEThe Admin Menu and the Main Menu become one Home, whose functions depend on the role.
COADM1AfieldCURDATEmergedS-APP-HEADER/todayThe date is shown once, in the shared header.
COADM1AfieldCURTIMEmergedS-APP-HEADER/todayThe time is shown once, in the shared header.
COADM1AfieldERRMSGsplitS-HOME/functionsThe coming-soon and not-installed messages show on the row; access errors show through the navigation.
COADM1AfieldOPTIONdropped–No option number is typed: a row is chosen with a click or Enter.
COADM1AfieldOPTN001mergedS-HOME/functionsThe numbered option line becomes a row of the Functions table.
COADM1AfieldOPTN002mergedS-HOME/functionsThe numbered option line becomes a row of the Functions table.
COADM1AfieldOPTN003mergedS-HOME/functionsThe numbered option line becomes a row of the Functions table.
COADM1AfieldOPTN004mergedS-HOME/functionsThe numbered option line becomes a row of the Functions table.
COADM1AfieldOPTN005mergedS-HOME/functionsThe numbered option line becomes a row of the Functions table.
COADM1AfieldOPTN006mergedS-HOME/functionsThe numbered option line becomes a row of the Functions table.
COADM1AfieldOPTN007mergedS-HOME/functionsThis is an unused option slot; the table has only real rows.
COADM1AfieldOPTN008mergedS-HOME/functionsThis is an unused option slot; the table has only real rows.
COADM1AfieldOPTN009mergedS-HOME/functionsThis is an unused option slot; the table has only real rows.
COADM1AfieldOPTN010mergedS-HOME/functionsThis is an unused option slot; the table has only real rows.
COADM1AfieldOPTN011mergedS-HOME/functionsThis is an unused option slot; the table has only real rows.
COADM1AfieldOPTN012mergedS-HOME/functionsThis is an unused option slot; the table has only real rows.
COADM1AfieldPGMNAMEdropped–The program name is technical; it stays in the logs.
COADM1AfieldTITLE01mergedS-APP-HEADER/app-titleThe title is shown once, in the shared header.
COADM1AfieldTITLE02mergedS-APP-HEADER/app-titleThe title is shown once, in the shared header.
COADM1AfieldTRNNAMEdropped–The transaction code means nothing to users; the title and navigation show where you are.
COADM1AkeyENTERmergedS-HOME/functionsEnter on a row opens that function.
COADM1AkeyF3mergedS-APP-HEADER/sign-outSign out is in the shared header on every screen.
COMEN1AscreenCOMEN1AmergedS-HOMEThe Main Menu and the Admin Menu become one Home, whose functions depend on the role.
COMEN1AfieldCURDATEmergedS-APP-HEADER/todayThe date is shown once, in the shared header.
COMEN1AfieldCURTIMEmergedS-APP-HEADER/todayThe time is shown once, in the shared header.
COMEN1AfieldERRMSGsplitS-HOME/functionsThe coming-soon and not-installed messages show on the row; access errors show through the navigation.
COMEN1AfieldOPTIONdropped–No option number is typed: a row is chosen with a click or Enter.
COMEN1AfieldOPTN001mergedS-HOME/functionsThe numbered option line becomes a row of the Functions table.
COMEN1AfieldOPTN002mergedS-HOME/functionsThe numbered option line becomes a row of the Functions table.
COMEN1AfieldOPTN003mergedS-HOME/functionsThe numbered option line becomes a row of the Functions table.
COMEN1AfieldOPTN004mergedS-HOME/functionsThe numbered option line becomes a row of the Functions table.
COMEN1AfieldOPTN005mergedS-HOME/functionsThe numbered option line becomes a row of the Functions table.
COMEN1AfieldOPTN006mergedS-HOME/functionsThe numbered option line becomes a row of the Functions table.
COMEN1AfieldOPTN007mergedS-HOME/functionsThe numbered option line becomes a row of the Functions table.
COMEN1AfieldOPTN008mergedS-HOME/functionsThe numbered option line becomes a row of the Functions table.
COMEN1AfieldOPTN009mergedS-HOME/functionsThe numbered option line becomes a row of the Functions table.
COMEN1AfieldOPTN010mergedS-HOME/functionsThe numbered option line becomes a row of the Functions table.
COMEN1AfieldOPTN011mergedS-HOME/functionsThe numbered option line becomes a row of the Functions table.
COMEN1AfieldOPTN012mergedS-HOME/functionsThis is an unused option slot; the table has only real rows.
COMEN1AfieldPGMNAMEdropped–The program name is technical; it stays in the logs.
COMEN1AfieldTITLE01mergedS-APP-HEADER/app-titleThe title is shown once, in the shared header.
COMEN1AfieldTITLE02mergedS-APP-HEADER/app-titleThe title is shown once, in the shared header.
COMEN1AfieldTRNNAMEdropped–The transaction code means nothing to users; the title and navigation show where you are.
COMEN1AkeyENTERmergedS-HOME/functionsEnter on a row opens that function.
COMEN1AkeyF3mergedS-APP-HEADER/sign-outSign out is in the shared header on every screen.
COSGN0AscreenCOSGN0AkeptS-SIGN-INSign in stays a screen of its own.
COSGN0AfieldAPPLIDdropped–The CICS application ID is technical; it belongs in support logs.
COSGN0AfieldCURDATEmergedS-APP-HEADER/todayThe date is shown once, in the shared header.
COSGN0AfieldCURTIMEmergedS-APP-HEADER/todayThe time is shown once, in the shared header.
COSGN0AfieldERRMSGsplitS-SIGN-IN/sign-inEach error shows under the field it concerns: User ID or Password.
COSGN0AfieldPASSWDkeptS-SIGN-IN/passwordA masked password with a visible label.
COSGN0AfieldPGMNAMEdropped–The program name is technical; it stays in the logs.
COSGN0AfieldSYSIDdropped–The CICS system ID is technical; it belongs in support logs.
COSGN0AfieldTITLE01mergedS-APP-HEADER/app-titleThe application title is shown once, in the shared header.
COSGN0AfieldTITLE02mergedS-APP-HEADER/app-titleThe application title is shown once, in the shared header.
COSGN0AfieldTRNNAMEdropped–The transaction code means nothing to users.
COSGN0AfieldUSERIDkeptS-SIGN-IN/user-idThe same entry, now with a visible label.
COSGN0AkeyENTERkeptS-SIGN-IN/sign-inEnter or the Sign in button signs in.
COSGN0AkeyF3dropped–There is no terminal session to end before signing in; closing the browser tab does that.
COUSR0AscreenCOUSR0AkeptS-USER-LISTThe user list stays, with row actions and a paged table.
COUSR0AfieldCURDATEmergedS-APP-HEADER/todayThe date is shown once, in the shared header.
COUSR0AfieldCURTIMEmergedS-APP-HEADER/todayThe time is shown once, in the shared header.
COUSR0AfieldERRMSGsplitS-USER-LIST/usersPaging messages show on the pager, and read failures show above the table.
COUSR0AfieldFNAME01mergedS-USER-LIST/usersBecomes the First name column.
COUSR0AfieldFNAME02mergedS-USER-LIST/usersBecomes the First name column.
COUSR0AfieldFNAME03mergedS-USER-LIST/usersBecomes the First name column.
COUSR0AfieldFNAME04mergedS-USER-LIST/usersBecomes the First name column.
COUSR0AfieldFNAME05mergedS-USER-LIST/usersBecomes the First name column.
COUSR0AfieldFNAME06mergedS-USER-LIST/usersBecomes the First name column.
COUSR0AfieldFNAME07mergedS-USER-LIST/usersBecomes the First name column.
COUSR0AfieldFNAME08mergedS-USER-LIST/usersBecomes the First name column.
COUSR0AfieldFNAME09mergedS-USER-LIST/usersBecomes the First name column.
COUSR0AfieldFNAME10mergedS-USER-LIST/usersBecomes the First name column.
COUSR0AfieldLNAME01mergedS-USER-LIST/usersBecomes the Last name column.
COUSR0AfieldLNAME02mergedS-USER-LIST/usersBecomes the Last name column.
COUSR0AfieldLNAME03mergedS-USER-LIST/usersBecomes the Last name column.
COUSR0AfieldLNAME04mergedS-USER-LIST/usersBecomes the Last name column.
COUSR0AfieldLNAME05mergedS-USER-LIST/usersBecomes the Last name column.
COUSR0AfieldLNAME06mergedS-USER-LIST/usersBecomes the Last name column.
COUSR0AfieldLNAME07mergedS-USER-LIST/usersBecomes the Last name column.
COUSR0AfieldLNAME08mergedS-USER-LIST/usersBecomes the Last name column.
COUSR0AfieldLNAME09mergedS-USER-LIST/usersBecomes the Last name column.
COUSR0AfieldLNAME10mergedS-USER-LIST/usersBecomes the Last name column.
COUSR0AfieldPAGENUMmergedS-USER-LIST/usersThe page number is part of the table's pager.
COUSR0AfieldPGMNAMEdropped–The program name is technical.
COUSR0AfieldSEL0001dropped–Typed U and D codes are replaced by the Edit and Delete actions on each row.
COUSR0AfieldSEL0002dropped–Typed U and D codes are replaced by the Edit and Delete actions on each row.
COUSR0AfieldSEL0003dropped–Typed U and D codes are replaced by the Edit and Delete actions on each row.
COUSR0AfieldSEL0004dropped–Typed U and D codes are replaced by the Edit and Delete actions on each row.
COUSR0AfieldSEL0005dropped–Typed U and D codes are replaced by the Edit and Delete actions on each row.
COUSR0AfieldSEL0006dropped–Typed U and D codes are replaced by the Edit and Delete actions on each row.
COUSR0AfieldSEL0007dropped–Typed U and D codes are replaced by the Edit and Delete actions on each row.
COUSR0AfieldSEL0008dropped–Typed U and D codes are replaced by the Edit and Delete actions on each row.
COUSR0AfieldSEL0009dropped–Typed U and D codes are replaced by the Edit and Delete actions on each row.
COUSR0AfieldSEL0010dropped–Typed U and D codes are replaced by the Edit and Delete actions on each row.
COUSR0AfieldTITLE01mergedS-APP-HEADER/app-titleThe title is shown once, in the shared header.
COUSR0AfieldTITLE02mergedS-APP-HEADER/app-titleThe title is shown once, in the shared header.
COUSR0AfieldTRNNAMEdropped–The transaction code means nothing to users.
COUSR0AfieldUSRID01mergedS-USER-LIST/usersBecomes the User ID column.
COUSR0AfieldUSRID02mergedS-USER-LIST/usersBecomes the User ID column.
COUSR0AfieldUSRID03mergedS-USER-LIST/usersBecomes the User ID column.
COUSR0AfieldUSRID04mergedS-USER-LIST/usersBecomes the User ID column.
COUSR0AfieldUSRID05mergedS-USER-LIST/usersBecomes the User ID column.
COUSR0AfieldUSRID06mergedS-USER-LIST/usersBecomes the User ID column.
COUSR0AfieldUSRID07mergedS-USER-LIST/usersBecomes the User ID column.
COUSR0AfieldUSRID08mergedS-USER-LIST/usersBecomes the User ID column.
COUSR0AfieldUSRID09mergedS-USER-LIST/usersBecomes the User ID column.
COUSR0AfieldUSRID10mergedS-USER-LIST/usersBecomes the User ID column.
COUSR0AfieldUSRIDINkeptS-USER-LIST/searchThe start-from search stays.
COUSR0AfieldUTYPE01mergedS-USER-LIST/usersBecomes the User type column, shown as Admin or User.
COUSR0AfieldUTYPE02mergedS-USER-LIST/usersBecomes the User type column, shown as Admin or User.
COUSR0AfieldUTYPE03mergedS-USER-LIST/usersBecomes the User type column, shown as Admin or User.
COUSR0AfieldUTYPE04mergedS-USER-LIST/usersBecomes the User type column, shown as Admin or User.
COUSR0AfieldUTYPE05mergedS-USER-LIST/usersBecomes the User type column, shown as Admin or User.
COUSR0AfieldUTYPE06mergedS-USER-LIST/usersBecomes the User type column, shown as Admin or User.
COUSR0AfieldUTYPE07mergedS-USER-LIST/usersBecomes the User type column, shown as Admin or User.
COUSR0AfieldUTYPE08mergedS-USER-LIST/usersBecomes the User type column, shown as Admin or User.
COUSR0AfieldUTYPE09mergedS-USER-LIST/usersBecomes the User type column, shown as Admin or User.
COUSR0AfieldUTYPE10mergedS-USER-LIST/usersBecomes the User type column, shown as Admin or User.
COUSR0AkeyENTERsplitS-USER-LIST/usersEnter searches when in the search field and opens Edit when on a row; Delete has its own row action.
COUSR0AkeyF3mergedS-APP-HEADER/navEsc and the navigation go back.
COUSR0AkeyF7mergedS-USER-LIST/usersBecomes the table's Previous button (Page Up).
COUSR0AkeyF8mergedS-USER-LIST/usersBecomes the table's Next button (Page Down).
COUSR1AscreenCOUSR1AkeptS-USER-ADDAdd user stays a form.
COUSR1AfieldCURDATEmergedS-APP-HEADER/todayThe date is shown once, in the shared header.
COUSR1AfieldCURTIMEmergedS-APP-HEADER/todayThe time is shown once, in the shared header.
COUSR1AfieldERRMSGsplitS-USER-ADD/addField errors show under their field and in the error summary; the result message shows by the button.
COUSR1AfieldFNAMEkeptS-USER-ADD/first-nameThe same entry, now with a visible label.
COUSR1AfieldLNAMEkeptS-USER-ADD/last-nameThe same entry, now with a visible label.
COUSR1AfieldPASSWDkeptS-USER-ADD/passwordA masked password with a visible label.
COUSR1AfieldPGMNAMEdropped–The program name is technical.
COUSR1AfieldTITLE01mergedS-APP-HEADER/app-titleThe title is shown once, in the shared header.
COUSR1AfieldTITLE02mergedS-APP-HEADER/app-titleThe title is shown once, in the shared header.
COUSR1AfieldTRNNAMEdropped–The transaction code means nothing to users.
COUSR1AfieldUSERIDkeptS-USER-ADD/user-idThe same entry, now checked for duplicates when you leave the field.
COUSR1AfieldUSRTYPEkeptS-USER-ADD/user-typeBecomes a choice of Admin or User instead of a typed letter.
COUSR1AkeyENTERkeptS-USER-ADD/addThe Add user button, or Ctrl+Enter.
COUSR1AkeyF12mergedS-APP-HEADER/navEsc and the navigation leave without adding.
COUSR1AkeyF3mergedS-APP-HEADER/navEsc and the navigation go back.
COUSR1AkeyF4mergedS-USER-ADD/addThe form clears itself after each successful add.
COUSR2AscreenCOUSR2AkeptS-USER-EDITUpdate user stays a form and now opens from the Users table.
COUSR2AfieldCURDATEmergedS-APP-HEADER/todayThe date is shown once, in the shared header.
COUSR2AfieldCURTIMEmergedS-APP-HEADER/todayThe time is shown once, in the shared header.
COUSR2AfieldERRMSGsplitS-USER-EDIT/saveField errors show under their field; save results show by the button.
COUSR2AfieldFNAMEkeptS-USER-EDIT/first-nameThe same entry, now with a visible label.
COUSR2AfieldLNAMEkeptS-USER-EDIT/last-nameThe same entry, now with a visible label.
COUSR2AfieldPASSWDkeptS-USER-EDIT/passwordA masked password; the stored password is no longer shown.
COUSR2AfieldPGMNAMEdropped–The program name is technical.
COUSR2AfieldTITLE01mergedS-APP-HEADER/app-titleThe title is shown once, in the shared header.
COUSR2AfieldTITLE02mergedS-APP-HEADER/app-titleThe title is shown once, in the shared header.
COUSR2AfieldTRNNAMEdropped–The transaction code means nothing to users.
COUSR2AfieldUSRIDINkeptS-USER-EDIT/user-idThe user ID lookup stays, filled in from the list.
COUSR2AfieldUSRTYPEkeptS-USER-EDIT/user-typeBecomes a choice of Admin or User instead of a typed letter.
COUSR2AkeyENTERkeptS-USER-EDIT/user-idEnter in the User ID field finds the user.
COUSR2AkeyF12mergedS-APP-HEADER/navEsc cancels and goes back without saving.
COUSR2AkeyF3mergedS-USER-EDIT/saveSave and exit becomes Save changes followed by the link back to Users, so a validation message is never hidden by leaving.
COUSR2AkeyF4mergedS-USER-EDIT/user-idTyping another user ID and choosing Find replaces the form.
COUSR2AkeyF5keptS-USER-EDIT/saveThe Save changes button, or Ctrl+S.
COUSR3AscreenCOUSR3AkeptS-USER-DELETEDelete user stays, and now asks for confirmation.
COUSR3AfieldCURDATEmergedS-APP-HEADER/todayThe date is shown once, in the shared header.
COUSR3AfieldCURTIMEmergedS-APP-HEADER/todayThe time is shown once, in the shared header.
COUSR3AfieldERRMSGsplitS-USER-DELETE/deleteLookup errors show under the User ID field; delete results show by the button.
COUSR3AfieldFNAMEmergedS-USER-DELETE/user-detailsShown read-only on the user's summary card.
COUSR3AfieldLNAMEmergedS-USER-DELETE/user-detailsShown read-only on the user's summary card.
COUSR3AfieldPGMNAMEdropped–The program name is technical.
COUSR3AfieldTITLE01mergedS-APP-HEADER/app-titleThe title is shown once, in the shared header.
COUSR3AfieldTITLE02mergedS-APP-HEADER/app-titleThe title is shown once, in the shared header.
COUSR3AfieldTRNNAMEdropped–The transaction code means nothing to users.
COUSR3AfieldUSRIDINkeptS-USER-DELETE/user-idThe user ID lookup stays, filled in from the list.
COUSR3AfieldUSRTYPEmergedS-USER-DELETE/user-detailsShown read-only on the user's summary card, as Admin or User.
COUSR3AkeyENTERkeptS-USER-DELETE/user-idEnter in the User ID field finds the user.
COUSR3AkeyF12mergedS-APP-HEADER/navEsc goes back without deleting.
COUSR3AkeyF3mergedS-APP-HEADER/navEsc and the navigation go back.
COUSR3AkeyF4mergedS-USER-DELETE/user-idChanging the user ID clears the details.
COUSR3AkeyF5keptS-USER-DELETE/deleteThe Delete user button, now with a confirmation dialog.
+

What the checks still found

  • None.
+
\ No newline at end of file diff --git a/reports/carddemo/design/package/CHANGES.md b/reports/carddemo/design/package/CHANGES.md new file mode 100644 index 00000000..0f9fd651 --- /dev/null +++ b/reports/carddemo/design/package/CHANGES.md @@ -0,0 +1,154 @@ +# Changes in v2 + +Since v1. + +- DTPR-C15 Extract transactions for a reporting period: screens, contracts, notes or questions changed. +- DTPR-C16 Run the transaction report job: screens, contracts, notes or questions changed. +- OATM-C01 Find the account to update: criteria removed: OATM-C01-AC-15; criteria changed: OATM-C01-AC-09, OATM-C01-AC-10, OATM-C01-AC-11, OATM-C01-AC-12, OATM-C01-AC-13, OATM-C01-AC-14. +- OATM-C02 View account and customer details for update: screens, contracts, notes or questions changed. +- OATM-C03 Capture entered changes: screens, contracts, notes or questions changed. +- OATM-C04 Validate changed account and customer fields: criteria changed: OATM-C04-AC-15, OATM-C04-AC-16, OATM-C04-AC-17, OATM-C04-AC-18. +- OATM-C05 Validate account and customer dates: criteria removed: OATM-C05-AC-16, OATM-C05-AC-17, OATM-C05-AC-18; criteria changed: OATM-C05-AC-08, OATM-C05-AC-09, OATM-C05-AC-10, OATM-C05-AC-11, OATM-C05-AC-12, OATM-C05-AC-13, OATM-C05-AC-14, OATM-C05-AC-15. +- OATM-C06 Confirm and save the account update: criteria changed: OATM-C06-AC-07. +- OATM-C07 Select an account to update: criteria changed: OATM-C07-AC-10, OATM-C07-AC-11. +- OATM-C08 Detect changes before validating: screens, contracts, notes or questions changed. +- OATM-C09 Validate customer name and address: criteria changed: OATM-C09-AC-12, OATM-C09-AC-13, OATM-C09-AC-14, OATM-C09-AC-15, OATM-C09-AC-16. +- OATM-C10 Validate customer phone numbers: criteria changed: OATM-C10-AC-07, OATM-C10-AC-08, OATM-C10-AC-09, OATM-C10-AC-10, OATM-C10-AC-11, OATM-C10-AC-12, OATM-C10-AC-13. +- OATM-C11 Validate identity and credit details: criteria removed: OATM-C11-AC-13; criteria changed: OATM-C11-AC-06, OATM-C11-AC-07, OATM-C11-AC-08, OATM-C11-AC-09, OATM-C11-AC-10, OATM-C11-AC-11, OATM-C11-AC-12. +- OATM-C12 Validate account flags and EFT account: screens, contracts, notes or questions changed. +- OATM-C13 Save confirmed account and customer changes: criteria changed: OATM-C13-AC-07, OATM-C13-AC-08. +- OATM-C14 Navigate the account update screen: screens, contracts, notes or questions changed. +- OATM-C15 Update account details with validation and confirmation: screens, contracts, notes or questions changed. +- OATM-C16 Validate and look up an account for viewing: criteria added: OATM-C16-AC-17, OATM-C16-AC-18; criteria changed: OATM-C16-AC-12, OATM-C16-AC-13, OATM-C16-AC-14, OATM-C16-AC-15, OATM-C16-AC-16. +- OATM-C17 Display account and customer details: screens, contracts, notes or questions changed. +- OATM-C18 Navigate the account view screen: screens, contracts, notes or questions changed. +- OATM-C19 Request a bill payment: screens, contracts, notes or questions changed. +- OATM-C20 Post a full-balance bill payment: criteria changed: OATM-C20-AC-15. +- OATM-C21 Set report period for transaction reports: screens, contracts, notes or questions changed. +- OATM-C22 Reach and move around the transaction report screen: screens, contracts, notes or questions changed. +- OATM-C23 Choose a report type and a valid custom period: screens, contracts, notes or questions changed. +- OATM-C24 Confirm and submit a transaction report for printing: criteria changed: OATM-C24-AC-05, OATM-C24-AC-06, OATM-C24-AC-07, OATM-C24-AC-08, OATM-C24-AC-09. +- OATM-C25 Browse and page through the transaction list: criteria added: OATM-C25-AC-32; criteria changed: OATM-C25-AC-31. +- OATM-C26 Select a transaction from the list to view its details: screens, contracts, notes or questions changed. +- OATM-C27 Transaction list access and session handling: screens, contracts, notes or questions changed. +- OATM-C28 Look up a single transaction: screens, contracts, notes or questions changed. +- OATM-C29 View a single transaction: criteria changed: OATM-C29-AC-12, OATM-C29-AC-13. +- OATM-C30 Open and navigate the Add Transaction screen: screens, contracts, notes or questions changed. +- OATM-C31 Identify the account and card for a new transaction: screens, contracts, notes or questions changed. +- OATM-C32 Validate new transaction details: screens, contracts, notes or questions changed. +- OATM-C33 Record a confirmed new transaction: criteria changed: OATM-C33-AC-09. +- OATM-C34 Confirm a transaction before it is added: screens, contracts, notes or questions changed. +- OATM-C35 Validate a date against a format mask: criteria changed: OATM-C35-AC-12, OATM-C35-AC-13, OATM-C35-AC-14. +- CCLDV-C01 Browse and page the card list: criteria changed: CCLDV-C01-AC-28. +- CCLDV-C02 Filter the card list by account and card number: screens, contracts, notes or questions changed. +- CCLDV-C03 Select a card to view or update: screens, contracts, notes or questions changed. +- CCLDV-C04 Search and view card details: criteria changed: CCLDV-C04-AC-33. +- CCLDV-C05 Enter and leave the card detail screen: screens, contracts, notes or questions changed. +- CCLDV-C06 Detect unchanged card details on update: screens, contracts, notes or questions changed. +- CCLDV-C07 Find and show a card for update: criteria changed: CCLDV-C07-AC-33, CCLDV-C07-AC-34. +- CCLDV-C08 Edit and validate card details: criteria changed: CCLDV-C08-AC-33. +- CCLDV-C09 Confirm and save card changes: screens, contracts, notes or questions changed. +- CCLDV-C10 Leave or restart card update: screens, contracts, notes or questions changed. +- CCLDV-C11 Save card changes: criteria changed: CCLDV-C11-AC-02. +- TTRDM-C01 Batch maintenance of transaction types: criteria changed: TTRDM-C01-AC-11, TTRDM-C01-AC-12, TTRDM-C01-AC-13, TTRDM-C01-AC-14, TTRDM-C01-AC-15, TTRDM-C01-AC-16. +- TTRDM-C02 Enter and leave the transaction type list: screens, contracts, notes or questions changed. +- TTRDM-C03 Page through transaction types: screens, contracts, notes or questions changed. +- TTRDM-C04 Filter the transaction type list: criteria changed: TTRDM-C04-AC-12. +- TTRDM-C05 Update transaction type descriptions from the list: criteria changed: TTRDM-C05-AC-12, TTRDM-C05-AC-13. +- TTRDM-C06 Access to transaction type maintenance: screens, contracts, notes or questions changed. +- TTRDM-C07 Filter the transaction type list: criteria changed: TTRDM-C07-AC-04. +- TTRDM-C08 Mark a list row for update or delete: screens, contracts, notes or questions changed. +- TTRDM-C09 Confirm and apply a list update or delete: screens, contracts, notes or questions changed. +- TTRDM-C10 Navigate from the transaction type list: screens, contracts, notes or questions changed. +- TTRDM-C11 Look up a transaction type to maintain: criteria changed: TTRDM-C11-AC-08, TTRDM-C11-AC-09, TTRDM-C11-AC-10, TTRDM-C11-AC-11. +- TTRDM-C12 Show maintenance screen values and messages: criteria changed: TTRDM-C12-AC-12. +- TTRDM-C13 Detect changes to a fetched transaction type: screens, contracts, notes or questions changed. +- TTRDM-C14 Cancel a pending maintenance change: screens, contracts, notes or questions changed. +- TTRDM-C15 Exit the maintenance screen: screens, contracts, notes or questions changed. +- TTRDM-C16 Find a transaction type to maintain: criteria changed: TTRDM-C16-AC-09, TTRDM-C16-AC-10, TTRDM-C16-AC-11, TTRDM-C16-AC-12. +- TTRDM-C17 Change a transaction type description: criteria changed: TTRDM-C17-AC-12, TTRDM-C17-AC-13, TTRDM-C17-AC-14. +- TTRDM-C18 Add a new transaction type: criteria changed: TTRDM-C18-AC-02, TTRDM-C18-AC-03. +- TTRDM-C19 Delete a transaction type: criteria changed: TTRDM-C19-AC-06, TTRDM-C19-AC-07. +- TTRDM-C20 Control maintenance screen keys and flow: screens, contracts, notes or questions changed. +- TTRDM-C21 Maintain transaction types in batch: criteria changed: TTRDM-C21-AC-02. +- TTRDM-C22 Set up reference data backups: screens, contracts, notes or questions changed. +- TTRDM-C23 Extract transaction types and categories to files: criteria changed: TTRDM-C23-AC-10, TTRDM-C23-AC-11. +- TTRDM-C24 Load reference data into keyed files: screens, contracts, notes or questions changed. +- CAFM-C01 Purge expired pending authorizations: criteria changed: CAFM-C01-AC-18. +- CAFM-C02 Answer account inquiry requests from the queue: criteria changed: CAFM-C02-AC-18, CAFM-C02-AC-19, CAFM-C02-AC-20. +- CAFM-C03 Answer system date requests from the queue: screens, contracts, notes or questions changed. +- CAFM-C04 Receive and prepare card authorization requests: criteria changed: CAFM-C04-AC-15. +- CAFM-C05 Decide and reply to card authorization requests: criteria changed: CAFM-C05-AC-09. +- CAFM-C06 Decide a card authorization request: screens, contracts, notes or questions changed. +- CAFM-C07 Record pending authorization summary and detail: screens, contracts, notes or questions changed. +- CAFM-C08 Log errors and stop on critical failures: screens, contracts, notes or questions changed. +- CAFM-C09 Inquire on an account's pending authorizations: criteria changed: CAFM-C09-AC-19, CAFM-C09-AC-20, CAFM-C09-AC-21, CAFM-C09-AC-22, CAFM-C09-AC-23, CAFM-C09-AC-24. +- CAFM-C10 Page through an account's pending authorizations: criteria changed: CAFM-C10-AC-13. +- CAFM-C11 Select an authorization for detail: screens, contracts, notes or questions changed. +- CAFM-C12 View authorization detail and mark fraud: criteria changed: CAFM-C12-AC-06. +- CAFM-C13 View pending authorization details: criteria changed: CAFM-C13-AC-10, CAFM-C13-AC-11, CAFM-C13-AC-12, CAFM-C13-AC-13, CAFM-C13-AC-14, CAFM-C13-AC-15. +- CAFM-C14 Navigate the authorization detail screen: criteria changed: CAFM-C14-AC-08. +- CAFM-C15 Mark or unmark an authorization as fraud: criteria changed: CAFM-C15-AC-15, CAFM-C15-AC-16, CAFM-C15-AC-17. +- CAFM-C16 Record fraud action in the fraud register: criteria changed: CAFM-C16-AC-01, CAFM-C16-AC-02, CAFM-C16-AC-03, CAFM-C16-AC-04, CAFM-C16-AC-05. +- CAFM-C17 Unload the pending authorization database: criteria changed: CAFM-C17-AC-06, CAFM-C17-AC-07, CAFM-C17-AC-08, CAFM-C17-AC-09, CAFM-C17-AC-10. +- CAFM-C18 Load pending authorizations into the database: criteria changed: CAFM-C18-AC-12. +- CAFM-C19 Load pending authorization summaries: criteria changed: CAFM-C19-AC-03. +- CAFM-C20 Unload all pending authorizations: criteria changed: CAFM-C20-AC-08, CAFM-C20-AC-09, CAFM-C20-AC-10. +- CAFM-C21 Run the unload jobs and manage unload files: criteria changed: CAFM-C21-AC-09, CAFM-C21-AC-10. +- SOM-C01 Register online CardDemo programs and transactions: screens, contracts, notes or questions changed. +- SOM-C02 Navigate the Admin Menu: criteria changed: SOM-C02-AC-14, SOM-C02-AC-15. +- SOM-C03 Navigate the Main Menu with access control: criteria changed: SOM-C03-AC-22, SOM-C03-AC-23. +- SOM-C04 Send the CardDemo test file by FTP: screens, contracts, notes or questions changed. +- SOM-C05 Back up and distribute the FTP test file: screens, contracts, notes or questions changed. +- SOM-C06 Authorize online transaction under the card security profile: screens, contracts, notes or questions changed. +- USPM-C01 Sign on to CardDemo: criteria changed: USPM-C01-AC-19. +- USPM-C02 Browse the user list: screens, contracts, notes or questions changed. +- USPM-C03 Select a user to update or delete: screens, contracts, notes or questions changed. +- USPM-C04 Add a new user: criteria changed: USPM-C04-AC-11, USPM-C04-AC-12, USPM-C04-AC-13. +- USPM-C05 Look up and update a user: screens, contracts, notes or questions changed. +- USPM-C06 Open the User Update screen and look up a user: screens, contracts, notes or questions changed. +- USPM-C07 Save changes to a user profile: criteria changed: USPM-C07-AC-13. +- USPM-C08 Delete a user: criteria changed: USPM-C08-AC-13, USPM-C08-AC-14, USPM-C08-AC-15, USPM-C08-AC-16. +- USPM-C09 Seed and load the user security file: screens, contracts, notes or questions changed. + +## The design round + +2026-11-26. Context folder: inputs/design. + +## The context + +- Added README.md +- Added design-system/components.md +- Added design-system/tokens.json +- Added personas.md +- Added prototype-review-p410.json + +## Journeys + +- Redone: customeraccountselfservice, because an input changed (the earlier round did not record which). +- Redone: customerdatasetup, because an input changed (the earlier round did not record which). +- Redone: unclassified, because an input changed (the earlier round did not record which). +- Redone: useraccesscontrol, because an input changed (the earlier round did not record which). +- Kept: 0. + +## Modern screens + +- Redone: customeraccountselfservice, because an input changed (the earlier round did not record which). +- Redone: customerdatasetup, because an input changed (the earlier round did not record which). +- Redone: unclassified, because an input changed (the earlier round did not record which). +- Redone: useraccesscontrol, because an input changed (the earlier round did not record which). +- Kept: 0. + +## Final specifications + +- Redone: CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#1, because an input changed (the earlier round did not record which). +- Redone: CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#2, because an input changed (the earlier round did not record which). +- Redone: CustomerAccountSelf-Service/OnlineAccountandTransactionManagement#3, because an input changed (the earlier round did not record which). +- Redone: CustomerDataSetup/CreditCardListDetailViewandUpdate, because an input changed (the earlier round did not record which). +- Redone: CustomerDataSetup/TransactionTypeReferenceDataMaintenance#1, because an input changed (the earlier round did not record which). +- Redone: CustomerDataSetup/TransactionTypeReferenceDataMaintenance#2, because an input changed (the earlier round did not record which). +- Redone: No domain/CardAuthorizationandFraudManagement#1, because an input changed (the earlier round did not record which). +- Redone: No domain/CardAuthorizationandFraudManagement#2, because an input changed (the earlier round did not record which). +- Redone: UserAccessControl/SystemOperationsandMaintenance, because an input changed (the earlier round did not record which). +- Redone: UserAccessControl/UserSecurityProfileManagement, because an input changed (the earlier round did not record which). +- Kept: 6 (CustomerAccountSelf-Service/AccountStatementGenerationandDelivery, CustomerAccountSelf-Service/DailyTransactionProcessingandReporting#1, CustomerAccountSelf-Service/DailyTransactionProcessingandReporting#2, CustomerDataSetup/CustomerProfileBranchMigration, CustomerDataSetup/MasterDataFileInitialization, Unassigned-Programs). diff --git a/reports/carddemo/design/package/START-HERE.md b/reports/carddemo/design/package/START-HERE.md new file mode 100644 index 00000000..8822cdb7 --- /dev/null +++ b/reports/carddemo/design/package/START-HERE.md @@ -0,0 +1,77 @@ +# Start here + +This package was written by Reframe from aws-carddemo's legacy source, its reconciled requirements and rules, and the reviewers' sign-offs. It holds what +those settle. What only your team can give is marked `[FILL IN: ...]`. These steps make it ready for forward engineering. + +**kiro** + +- Specifications: `.kiro/specs//` (requirements.md, design.md, tasks.md). +- Stack and house conventions: `.kiro/steering/tech.md` and `house-conventions.md`. + +**claude-code** + +- Specifications: `specs/`; tasks: `tasks.md`; the UI to build to: `ui-reference/index.html`. +- Stack and house conventions: `CLAUDE.md`. Skills: `.claude/skills/`. + +**spec-kit** + +- Specifications: `specs//` (spec.md, plan.md, tasks.md). +- Stack, technical context and house conventions: `.specify/memory/constitution.md`. Roles: `.claude/agents/`; skills: `.claude/skills/`. + +- Every form: `data-contracts.md` (the copybooks as typed records) and `traceability.md` (every ID back to the legacy source). + +## 1. Copy the package + +`reframe design --package --form kiro|claude-code|spec-kit|all` (today: `python -m reframe.design.package --out `). +Work in the copy. Reframe will not copy over files you have filled in: when the design changes, copy the new version into a new folder and +carry your filled-in files across; `CHANGES.md` says what changed, by ID. + +## 2. Give the target stack + +The stack is not given yet. Give or change it with +`reframe design --stack "; ; "` (today: `python -m reframe.design.specs --stack ...`, then write the package again). +Reframe adds the stack's code and column types to the data contracts, with no model step. It never chooses a stack for you. + +## 3. Fill in the placeholders + +- **Target architecture:** versions, build, testing, hosting, security, integration and non-functional needs. Put them in `target-architecture.md` + in the design context folder and write the package again with `--context `, or fill them where they are. +- **House conventions:** coding standards, naming, error handling and logging, style reference, review rules, definition of done. +- **Skills** (`.claude/skills/`): the build and test commands, frameworks and libraries each skill uses. +- **Roles** (`.claude/agents/`): the *On this stack* section of each role. + +`personas.md` and `decisions.md` in the context folder are added to the product description the same way. + +## 4. Settle what is still open + +- **Draft capabilities:** 102 of 154 are draft because their function is not signed off. Sign off + each function on the reconciliation page, read the review download with `reframe reconcile --context `, and write the design again. + - Account Statement Generation and Delivery: 8 draft + - Card Authorization and Fraud Management: 21 draft + - Credit Card List Detail View and Update: 11 draft + - Customer Profile Branch Migration: 8 draft + - Master Data File Initialization: 4 draft + - System Operations and Maintenance: 6 draft + - Transaction Type Reference Data Maintenance: 24 draft + - Unassigned-Programs: 11 draft + - User Security Profile Management: 9 draft +- **SME questions:** 485 open. Answer them in `reconcile/questions.csv` and run `reframe reconcile --context `. +- **Decision table gaps:** 82 combinations no rule covers, listed in each design. Decide each with the owner. +- **Historical artifacts:** rules to keep or drop with the owner before anyone builds them: CAFM-BR-017, CAFM-BR-070, CPBM-BR-030, CPBM-BR-031, DTPR-BR-006, DTPR-BR-035, DTPR-BR-051, OATM-BR-003, SOM-BR-012, TTRDM-BR-092, TTRDM-BR-102, TTRDM-BR-118, UP-BR-005, UP-BR-014, UP-BR-025, UP-BR-040. + +## 5. Check what is left + +`python -m reframe.design.package --check ` lists every `[FILL IN: ...]` still there and the draft capabilities. It is ready when no +placeholder is left and the capabilities you are building are final. + +## 6. Prove it: build Sign in + +In a scratch repository, with the Claude Code form and the stack filled in, ask Claude Code to build the sign-in slice: + - USPM-C01 Sign on to CardDemo (19 acceptance criteria; draft: confirm it with the owner first, or sign off its function) + +Use the `build-capability` and `write-acceptance-tests` skills. Record whether it builds and which acceptance criteria pass, by ID. A failure +here is a gap in the package or the placeholders: fix it before the full build. + +## 7. Build + +Final capabilities first; each task names its role and the requirement, rule and criterion IDs it implements. Keep every ID in code and tests. diff --git a/reports/carddemo/design/package/claude-code/.claude/skills/build-capability/SKILL.md b/reports/carddemo/design/package/claude-code/.claude/skills/build-capability/SKILL.md new file mode 100644 index 00000000..6e7501e0 --- /dev/null +++ b/reports/carddemo/design/package/claude-code/.claude/skills/build-capability/SKILL.md @@ -0,0 +1,16 @@ +--- +name: build-capability +description: Build one capability of the modernized application from its specification and tasks, keeping every ID. +--- + +# build-capability + +Build one capability of the modernized application from its specification and tasks, keeping every ID. + +## Steps + +1. Read the capability's specification (specs/.md) and its tasks (tasks.md). Check its status: a draft is confirmed with the owner first. +2. Do the tasks in order, each by its role (the role files are in .claude/agents/ in the Spec Kit form; the guardrails are in the conventions). +3. Name each requirement and rule ID where it is implemented, and each acceptance criterion's ID in its test. +4. Build: `[FILL IN: the build command]`. Run the tests: `[FILL IN: the test command]`. +5. Report the IDs implemented, the criteria that pass, and anything that could not be done and why. diff --git a/reports/carddemo/design/package/claude-code/.claude/skills/build-screen/SKILL.md b/reports/carddemo/design/package/claude-code/.claude/skills/build-screen/SKILL.md new file mode 100644 index 00000000..ee473767 --- /dev/null +++ b/reports/carddemo/design/package/claude-code/.claude/skills/build-screen/SKILL.md @@ -0,0 +1,15 @@ +--- +name: build-screen +description: Build a modern screen to the prototype in ui-reference/ and its screen specification. +--- + +# build-screen + +Build a modern screen to the prototype in ui-reference/ and its screen specification. + +## Steps + +1. Open ui-reference/index.html#/ and the screen's components in its capability's specification. +2. Build each component with [FILL IN: UI framework and component library]; every validation shows the rule's own message; meet WCAG 2.2 AA. +3. Routing: [FILL IN: router]. Design tokens: [FILL IN: where the design tokens come from]. +4. The screen calls the services its capability's API task builds; name the requirement IDs each component serves. diff --git a/reports/carddemo/design/package/claude-code/.claude/skills/model-data-contract/SKILL.md b/reports/carddemo/design/package/claude-code/.claude/skills/model-data-contract/SKILL.md new file mode 100644 index 00000000..82162aa9 --- /dev/null +++ b/reports/carddemo/design/package/claude-code/.claude/skills/model-data-contract/SKILL.md @@ -0,0 +1,15 @@ +--- +name: model-data-contract +description: Turn a data contract (a copybook record) into the target stack's entity and table. +--- + +# model-data-contract + +Turn a data contract (a copybook record) into the target stack's entity and table. + +## Steps + +1. Read the record in data-contracts.md: each field's type, digits, scale, OCCURS, REDEFINES and 88-level values. +2. Keep the precision: a decimal stays an exact decimal; text keeps its length; an OCCURS becomes a child table or a list; 88-level values become an enumeration. +3. Persistence: [FILL IN: ORM or data access library]. Migrations: [FILL IN: migration tool]. Naming: [FILL IN: table and column naming]. +4. Keep the copybook and field names in a comment or mapping for data migration. diff --git a/reports/carddemo/design/package/claude-code/.claude/skills/write-acceptance-tests/SKILL.md b/reports/carddemo/design/package/claude-code/.claude/skills/write-acceptance-tests/SKILL.md new file mode 100644 index 00000000..e057f1a4 --- /dev/null +++ b/reports/carddemo/design/package/claude-code/.claude/skills/write-acceptance-tests/SKILL.md @@ -0,0 +1,15 @@ +--- +name: write-acceptance-tests +description: Write an automated test for each acceptance criterion of a capability, named by its ID. +--- + +# write-acceptance-tests + +Write an automated test for each acceptance criterion of a capability, named by its ID. + +## Steps + +1. For each criterion (GIVEN, WHEN, THEN, with its ID), write one test named by the ID, using the values the criterion gives. +2. Assert the THEN exactly; messages word for word. +3. Test framework: [FILL IN: test frameworks]. Tests live in: [FILL IN: test folders]. Run them with `[FILL IN: the test command]`. +4. A criterion that cannot be tested as written is reported, not changed. diff --git a/reports/carddemo/design/package/claude-code/CLAUDE.md b/reports/carddemo/design/package/claude-code/CLAUDE.md new file mode 100644 index 00000000..9929867b --- /dev/null +++ b/reports/carddemo/design/package/claude-code/CLAUDE.md @@ -0,0 +1,202 @@ +# aws-carddemo, modernized + +Build the modernized application from the specifications here. Each capability's specification is in `specs/`; the build tasks, each for a role, are in `tasks.md`; the prototype in `ui-reference/index.html` is the UI to build to; the data contracts are in `data-contracts.md`; `traceability.md` takes every ID back to the legacy source. + +## Target stack + +- Front end: [FILL IN: front end, for example React with TypeScript] +- Back end: [FILL IN: back end, for example Java 21 with Spring Boot] +- Data: [FILL IN: data store, for example PostgreSQL] + +**Not given yet.** Give it with `reframe design --stack "; ; "` and write the package again, so the data contracts get the stack's types; Reframe never chooses a stack. Until then, build nothing that depends on it. + +### Target architecture + +- Versions: [FILL IN: language, framework and runtime versions] +- Build and dependencies: [FILL IN: build tool, package manager, repository layout] +- Testing: [FILL IN: unit, integration and end-to-end test frameworks, and the command that runs them] +- Hosting and deployment: [FILL IN: where it runs, environments, CI/CD] +- Security: [FILL IN: authentication, authorization, secrets handling] +- Integration: [FILL IN: the systems it calls or is called by, messaging, file transfers] +- Non-functional needs: [FILL IN: response times, volumes, availability, batch windows, retention] + +Or put these in `target-architecture.md` in the design context folder and write the package again with `--context`. + +## Conventions + +- Keep every ID: name the requirement and rule IDs in a comment where they are implemented, and each acceptance criterion's ID in its test. +- A business rule is kept exactly; formatting may be restyled; error handling keeps its messages word for word; ask before carrying a historical artifact. +- The legacy source is read-only and only for reference. Use synthetic data only, never production or personal data. +- Build a draft capability only after the owner confirms it; build final ones first. +- Money is an exact decimal, never a float; keep each field's precision from the data contracts. +- The screens follow the prototype in the Claude Code form's ui-reference/ and the screen specifications; meet WCAG 2.2 AA. + +## House conventions + +- Coding standards: [FILL IN: style guide, linters and formatters] +- Naming: [FILL IN: packages, modules, classes, endpoints, tables] +- Error handling and logging: [FILL IN: exception policy, log format, what is never logged (card numbers, personal data)] +- Style reference: [FILL IN: path or link to the house's example screens and code, or its design system] +- Branching and review: [FILL IN: branch naming, pull request rules, who reviews] +- Definition of done: [FILL IN: the checks a task must pass: tests, coverage, review, security scan] + +## Skills + +In `.claude/skills/`: `build-capability`, `write-acceptance-tests`, `model-data-contract`, `build-screen`. Fill in their placeholders first; START-HERE.md says how. + +## Capabilities + +- [ASGD-C01 Re-sequence transactions by card number](specs/asgd-01-re-sequence-transactions-by-card-number.md): draft, scheduled job +- [ASGD-C02 Load and group card-ordered transactions](specs/asgd-02-load-and-group-card-ordered-transactions.md): draft, scheduled job +- [ASGD-C03 Produce one statement per card](specs/asgd-03-produce-one-statement-per-card.md): draft, scheduled job +- [ASGD-C04 Show statement header and holder details](specs/asgd-04-show-statement-header-and-holder-details.md): draft, scheduled job +- [ASGD-C05 List card transactions and total](specs/asgd-05-list-card-transactions-and-total.md): draft, scheduled job +- [ASGD-C06 Stop the statement run on file errors](specs/asgd-06-stop-the-statement-run-on-file-errors.md): draft, scheduled job +- [ASGD-C07 Read-only statement data access](specs/asgd-07-read-only-statement-data-access.md): draft, scheduled job +- [ASGD-C08 Publish statements as PDF](specs/asgd-08-publish-statements-as-pdf.md): draft, scheduled job +- [DTPR-C01 Extract account data to output files](specs/dtpr-01-extract-account-data-to-output-files.md): final, scheduled job +- [DTPR-C02 Validate daily transactions](specs/dtpr-02-validate-daily-transactions.md): final, scheduled job +- [DTPR-C03 Post validated transactions](specs/dtpr-03-post-validated-transactions.md): final, scheduled job +- [DTPR-C04 Run daily posting and handle rejects](specs/dtpr-04-run-daily-posting-and-handle-rejects.md): final, scheduled job +- [DTPR-C05 Calculate and post monthly interest](specs/dtpr-05-calculate-and-post-monthly-interest.md): final, scheduled job +- [DTPR-C06 Produce daily transaction report](specs/dtpr-06-produce-daily-transaction-report.md): final, online and scheduled job +- [DTPR-C07 Post daily transactions and record rejects](specs/dtpr-07-post-daily-transactions-and-record-rejects.md): final, scheduled job +- [DTPR-C08 Calculate monthly interest as system transactions](specs/dtpr-08-calculate-monthly-interest-as-system-transactions.md): final, scheduled job +- [DTPR-C09 Consolidate transactions into the transaction master](specs/dtpr-09-consolidate-transactions-into-the-transaction-mast.md): final, scheduled job +- [DTPR-C10 Back up the transaction master](specs/dtpr-10-back-up-the-transaction-master.md): final, scheduled job +- [DTPR-C11 Set up the transaction master and its timestamp index](specs/dtpr-11-set-up-the-transaction-master-and-its-timestamp-in.md): final, scheduled job +- [DTPR-C12 Load disclosure group and category balance masters](specs/dtpr-12-load-disclosure-group-and-category-balance-masters.md): final, scheduled job +- [DTPR-C13 Print the transaction category balance report](specs/dtpr-13-print-the-transaction-category-balance-report.md): final, scheduled job +- [DTPR-C14 Produce account extracts from the account master](specs/dtpr-14-produce-account-extracts-from-the-account-master.md): final, scheduled job +- [DTPR-C15 Extract transactions for a reporting period](specs/dtpr-15-extract-transactions-for-a-reporting-period.md): final, scheduled job +- [DTPR-C16 Run the transaction report job](specs/dtpr-16-run-the-transaction-report-job.md): final, scheduled job +- [DTPR-C17 Print the daily transaction report with totals](specs/dtpr-17-print-the-daily-transaction-report-with-totals.md): final, scheduled job +- [OATM-C01 Find the account to update](specs/oatm-01-find-the-account-to-update.md): final, online +- [OATM-C02 View account and customer details for update](specs/oatm-02-view-account-and-customer-details-for-update.md): final, online +- [OATM-C03 Capture entered changes](specs/oatm-03-capture-entered-changes.md): final, online +- [OATM-C04 Validate changed account and customer fields](specs/oatm-04-validate-changed-account-and-customer-fields.md): final, online +- [OATM-C05 Validate account and customer dates](specs/oatm-05-validate-account-and-customer-dates.md): final, online +- [OATM-C06 Confirm and save the account update](specs/oatm-06-confirm-and-save-the-account-update.md): final, online +- [OATM-C07 Select an account to update](specs/oatm-07-select-an-account-to-update.md): final, online +- [OATM-C08 Detect changes before validating](specs/oatm-08-detect-changes-before-validating.md): final, online +- [OATM-C09 Validate customer name and address](specs/oatm-09-validate-customer-name-and-address.md): final, online +- [OATM-C10 Validate customer phone numbers](specs/oatm-10-validate-customer-phone-numbers.md): final, online +- [OATM-C11 Validate identity and credit details](specs/oatm-11-validate-identity-and-credit-details.md): final, online +- [OATM-C12 Validate account flags and EFT account](specs/oatm-12-validate-account-flags-and-eft-account.md): final, online +- [OATM-C13 Save confirmed account and customer changes](specs/oatm-13-save-confirmed-account-and-customer-changes.md): final, online +- [OATM-C14 Navigate the account update screen](specs/oatm-14-navigate-the-account-update-screen.md): final, online +- [OATM-C15 Update account details with validation and confirmation](specs/oatm-15-update-account-details-with-validation-and-confirm.md): final, online +- [OATM-C16 Validate and look up an account for viewing](specs/oatm-16-validate-and-look-up-an-account-for-viewing.md): final, online +- [OATM-C17 Display account and customer details](specs/oatm-17-display-account-and-customer-details.md): final, online +- [OATM-C18 Navigate the account view screen](specs/oatm-18-navigate-the-account-view-screen.md): final, online +- [OATM-C19 Request a bill payment](specs/oatm-19-request-a-bill-payment.md): final, online +- [OATM-C20 Post a full-balance bill payment](specs/oatm-20-post-a-full-balance-bill-payment.md): final, online +- [OATM-C21 Set report period for transaction reports](specs/oatm-21-set-report-period-for-transaction-reports.md): final, online +- [OATM-C22 Reach and move around the transaction report screen](specs/oatm-22-reach-and-move-around-the-transaction-report-scree.md): final, online +- [OATM-C23 Choose a report type and a valid custom period](specs/oatm-23-choose-a-report-type-and-a-valid-custom-period.md): final, online +- [OATM-C24 Confirm and submit a transaction report for printing](specs/oatm-24-confirm-and-submit-a-transaction-report-for-printi.md): final, online +- [OATM-C25 Browse and page through the transaction list](specs/oatm-25-browse-and-page-through-the-transaction-list.md): final, online +- [OATM-C26 Select a transaction from the list to view its details](specs/oatm-26-select-a-transaction-from-the-list-to-view-its-det.md): final, online +- [OATM-C27 Transaction list access and session handling](specs/oatm-27-transaction-list-access-and-session-handling.md): final, online +- [OATM-C28 Look up a single transaction](specs/oatm-28-look-up-a-single-transaction.md): final, online +- [OATM-C29 View a single transaction](specs/oatm-29-view-a-single-transaction.md): final, online +- [OATM-C30 Open and navigate the Add Transaction screen](specs/oatm-30-open-and-navigate-the-add-transaction-screen.md): final, online +- [OATM-C31 Identify the account and card for a new transaction](specs/oatm-31-identify-the-account-and-card-for-a-new-transactio.md): final, online +- [OATM-C32 Validate new transaction details](specs/oatm-32-validate-new-transaction-details.md): final, online +- [OATM-C33 Record a confirmed new transaction](specs/oatm-33-record-a-confirmed-new-transaction.md): final, online +- [OATM-C34 Confirm a transaction before it is added](specs/oatm-34-confirm-a-transaction-before-it-is-added.md): final, online +- [OATM-C35 Validate a date against a format mask](specs/oatm-35-validate-a-date-against-a-format-mask.md): final, service +- [CCLDV-C01 Browse and page the card list](specs/ccldv-01-browse-and-page-the-card-list.md): draft, online +- [CCLDV-C02 Filter the card list by account and card number](specs/ccldv-02-filter-the-card-list-by-account-and-card-number.md): draft, online +- [CCLDV-C03 Select a card to view or update](specs/ccldv-03-select-a-card-to-view-or-update.md): draft, online +- [CCLDV-C04 Search and view card details](specs/ccldv-04-search-and-view-card-details.md): draft, online +- [CCLDV-C05 Enter and leave the card detail screen](specs/ccldv-05-enter-and-leave-the-card-detail-screen.md): draft, online +- [CCLDV-C06 Detect unchanged card details on update](specs/ccldv-06-detect-unchanged-card-details-on-update.md): draft, online +- [CCLDV-C07 Find and show a card for update](specs/ccldv-07-find-and-show-a-card-for-update.md): draft, online +- [CCLDV-C08 Edit and validate card details](specs/ccldv-08-edit-and-validate-card-details.md): draft, online +- [CCLDV-C09 Confirm and save card changes](specs/ccldv-09-confirm-and-save-card-changes.md): draft, online +- [CCLDV-C10 Leave or restart card update](specs/ccldv-10-leave-or-restart-card-update.md): draft, online +- [CCLDV-C11 Save card changes](specs/ccldv-11-save-card-changes.md): draft, online +- [CPBM-C01 Export complete customer profiles for branch migration](specs/cpbm-01-export-complete-customer-profiles-for-branch-migra.md): draft, scheduled job +- [CPBM-C02 Carry sensitive customer and card data in the export](specs/cpbm-02-carry-sensitive-customer-and-card-data-in-the-expo.md): draft, scheduled job +- [CPBM-C03 Report export reconciliation counts](specs/cpbm-03-report-export-reconciliation-counts.md): draft, service +- [CPBM-C04 Stop the export on any file error](specs/cpbm-04-stop-the-export-on-any-file-error.md): draft, scheduled job +- [CPBM-C05 Import and split the migration file into target files](specs/cpbm-05-import-and-split-the-migration-file-into-target-fi.md): draft, scheduled job +- [CPBM-C06 Log unknown record types during import](specs/cpbm-06-log-unknown-record-types-during-import.md): draft, scheduled job +- [CPBM-C07 Report import run statistics](specs/cpbm-07-report-import-run-statistics.md): draft, scheduled job +- [CPBM-C08 Abort the import on any file failure](specs/cpbm-08-abort-the-import-on-any-file-failure.md): draft, scheduled job +- [MDFI-C01 Load account master](specs/mdfi-01-load-account-master.md): draft, scheduled job +- [MDFI-C02 Load card master and its account index](specs/mdfi-02-load-card-master-and-its-account-index.md): draft, scheduled job +- [MDFI-C03 Refresh customer master](specs/mdfi-03-refresh-customer-master.md): draft, scheduled job +- [MDFI-C04 Load card cross-reference master and its account index](specs/mdfi-04-load-card-cross-reference-master-and-its-account-i.md): draft, scheduled job +- [TTRDM-C01 Batch maintenance of transaction types](specs/ttrdm-01-batch-maintenance-of-transaction-types.md): draft, scheduled job +- [TTRDM-C02 Enter and leave the transaction type list](specs/ttrdm-02-enter-and-leave-the-transaction-type-list.md): draft, online +- [TTRDM-C03 Page through transaction types](specs/ttrdm-03-page-through-transaction-types.md): draft, online +- [TTRDM-C04 Filter the transaction type list](specs/ttrdm-04-filter-the-transaction-type-list.md): draft, online +- [TTRDM-C05 Update transaction type descriptions from the list](specs/ttrdm-05-update-transaction-type-descriptions-from-the-list.md): draft, online +- [TTRDM-C06 Access to transaction type maintenance](specs/ttrdm-06-access-to-transaction-type-maintenance.md): draft, online +- [TTRDM-C07 Filter the transaction type list](specs/ttrdm-07-filter-the-transaction-type-list.md): draft, online +- [TTRDM-C08 Mark a list row for update or delete](specs/ttrdm-08-mark-a-list-row-for-update-or-delete.md): draft, online +- [TTRDM-C09 Confirm and apply a list update or delete](specs/ttrdm-09-confirm-and-apply-a-list-update-or-delete.md): draft, online +- [TTRDM-C10 Navigate from the transaction type list](specs/ttrdm-10-navigate-from-the-transaction-type-list.md): draft, online +- [TTRDM-C11 Look up a transaction type to maintain](specs/ttrdm-11-look-up-a-transaction-type-to-maintain.md): draft, online +- [TTRDM-C12 Show maintenance screen values and messages](specs/ttrdm-12-show-maintenance-screen-values-and-messages.md): draft, online +- [TTRDM-C13 Detect changes to a fetched transaction type](specs/ttrdm-13-detect-changes-to-a-fetched-transaction-type.md): draft, online +- [TTRDM-C14 Cancel a pending maintenance change](specs/ttrdm-14-cancel-a-pending-maintenance-change.md): draft, online +- [TTRDM-C15 Exit the maintenance screen](specs/ttrdm-15-exit-the-maintenance-screen.md): draft, online +- [TTRDM-C16 Find a transaction type to maintain](specs/ttrdm-16-find-a-transaction-type-to-maintain.md): draft, online +- [TTRDM-C17 Change a transaction type description](specs/ttrdm-17-change-a-transaction-type-description.md): draft, online +- [TTRDM-C18 Add a new transaction type](specs/ttrdm-18-add-a-new-transaction-type.md): draft, online +- [TTRDM-C19 Delete a transaction type](specs/ttrdm-19-delete-a-transaction-type.md): draft, online +- [TTRDM-C20 Control maintenance screen keys and flow](specs/ttrdm-20-control-maintenance-screen-keys-and-flow.md): draft, online +- [TTRDM-C21 Maintain transaction types in batch](specs/ttrdm-21-maintain-transaction-types-in-batch.md): draft, scheduled job +- [TTRDM-C22 Set up reference data backups](specs/ttrdm-22-set-up-reference-data-backups.md): draft, scheduled job +- [TTRDM-C23 Extract transaction types and categories to files](specs/ttrdm-23-extract-transaction-types-and-categories-to-files.md): draft, scheduled job +- [TTRDM-C24 Load reference data into keyed files](specs/ttrdm-24-load-reference-data-into-keyed-files.md): draft, scheduled job +- [UP-C01 Build screen map copybooks](specs/up-01-build-screen-map-copybooks.md): draft, scheduled job +- [UP-C02 List card master records](specs/up-02-list-card-master-records.md): draft, scheduled job +- [UP-C03 List card cross-reference records](specs/up-03-list-card-cross-reference-records.md): draft, scheduled job +- [UP-C04 List customer records](specs/up-04-list-customer-records.md): draft, scheduled job +- [UP-C05 Verify daily transaction cards and accounts](specs/up-05-verify-daily-transaction-cards-and-accounts.md): draft, service +- [UP-C06 Build and deploy online programs](specs/up-06-build-and-deploy-online-programs.md): draft, scheduled job +- [UP-C07 Convert date formats](specs/up-07-convert-date-formats.md): draft, scheduled job +- [UP-C08 Pause a batch job](specs/up-08-pause-a-batch-job.md): draft, scheduled job +- [UP-C09 Retain dataset generations](specs/up-09-retain-dataset-generations.md): draft, scheduled job +- [UP-C10 List the CardDemo dataset catalog](specs/up-10-list-the-carddemo-dataset-catalog.md): draft, scheduled job +- [UP-C11 Read transactions by processed timestamp](specs/up-11-read-transactions-by-processed-timestamp.md): draft, scheduled job +- [CAFM-C01 Purge expired pending authorizations](specs/cafm-01-purge-expired-pending-authorizations.md): draft, scheduled job +- [CAFM-C02 Answer account inquiry requests from the queue](specs/cafm-02-answer-account-inquiry-requests-from-the-queue.md): draft, online +- [CAFM-C03 Answer system date requests from the queue](specs/cafm-03-answer-system-date-requests-from-the-queue.md): draft, online +- [CAFM-C04 Receive and prepare card authorization requests](specs/cafm-04-receive-and-prepare-card-authorization-requests.md): draft, online +- [CAFM-C05 Decide and reply to card authorization requests](specs/cafm-05-decide-and-reply-to-card-authorization-requests.md): draft, online +- [CAFM-C06 Decide a card authorization request](specs/cafm-06-decide-a-card-authorization-request.md): draft, online +- [CAFM-C07 Record pending authorization summary and detail](specs/cafm-07-record-pending-authorization-summary-and-detail.md): draft, online +- [CAFM-C08 Log errors and stop on critical failures](specs/cafm-08-log-errors-and-stop-on-critical-failures.md): draft, online +- [CAFM-C09 Inquire on an account's pending authorizations](specs/cafm-09-inquire-on-an-account-s-pending-authorizations.md): draft, online +- [CAFM-C10 Page through an account's pending authorizations](specs/cafm-10-page-through-an-account-s-pending-authorizations.md): draft, online +- [CAFM-C11 Select an authorization for detail](specs/cafm-11-select-an-authorization-for-detail.md): draft, online +- [CAFM-C12 View authorization detail and mark fraud](specs/cafm-12-view-authorization-detail-and-mark-fraud.md): draft, online +- [CAFM-C13 View pending authorization details](specs/cafm-13-view-pending-authorization-details.md): draft, online +- [CAFM-C14 Navigate the authorization detail screen](specs/cafm-14-navigate-the-authorization-detail-screen.md): draft, online +- [CAFM-C15 Mark or unmark an authorization as fraud](specs/cafm-15-mark-or-unmark-an-authorization-as-fraud.md): draft, online +- [CAFM-C16 Record fraud action in the fraud register](specs/cafm-16-record-fraud-action-in-the-fraud-register.md): draft, online +- [CAFM-C17 Unload the pending authorization database](specs/cafm-17-unload-the-pending-authorization-database.md): draft, scheduled job +- [CAFM-C18 Load pending authorizations into the database](specs/cafm-18-load-pending-authorizations-into-the-database.md): draft, scheduled job +- [CAFM-C19 Load pending authorization summaries](specs/cafm-19-load-pending-authorization-summaries.md): draft, scheduled job +- [CAFM-C20 Unload all pending authorizations](specs/cafm-20-unload-all-pending-authorizations.md): draft, scheduled job +- [CAFM-C21 Run the unload jobs and manage unload files](specs/cafm-21-run-the-unload-jobs-and-manage-unload-files.md): draft, scheduled job +- [SOM-C01 Register online CardDemo programs and transactions](specs/som-01-register-online-carddemo-programs-and-transactions.md): draft, scheduled job +- [SOM-C02 Navigate the Admin Menu](specs/som-02-navigate-the-admin-menu.md): draft, online +- [SOM-C03 Navigate the Main Menu with access control](specs/som-03-navigate-the-main-menu-with-access-control.md): draft, online +- [SOM-C04 Send the CardDemo test file by FTP](specs/som-04-send-the-carddemo-test-file-by-ftp.md): draft, scheduled job +- [SOM-C05 Back up and distribute the FTP test file](specs/som-05-back-up-and-distribute-the-ftp-test-file.md): draft, scheduled job +- [SOM-C06 Authorize online transaction under the card security profile](specs/som-06-authorize-online-transaction-under-the-card-securi.md): draft, scheduled job +- [USPM-C01 Sign on to CardDemo](specs/uspm-01-sign-on-to-carddemo.md): draft, online +- [USPM-C02 Browse the user list](specs/uspm-02-browse-the-user-list.md): draft, online +- [USPM-C03 Select a user to update or delete](specs/uspm-03-select-a-user-to-update-or-delete.md): draft, online +- [USPM-C04 Add a new user](specs/uspm-04-add-a-new-user.md): draft, online +- [USPM-C05 Look up and update a user](specs/uspm-05-look-up-and-update-a-user.md): draft, online +- [USPM-C06 Open the User Update screen and look up a user](specs/uspm-06-open-the-user-update-screen-and-look-up-a-user.md): draft, online +- [USPM-C07 Save changes to a user profile](specs/uspm-07-save-changes-to-a-user-profile.md): draft, online +- [USPM-C08 Delete a user](specs/uspm-08-delete-a-user.md): draft, online +- [USPM-C09 Seed and load the user security file](specs/uspm-09-seed-and-load-the-user-security-file.md): draft, scheduled job diff --git a/reports/carddemo/design/package/claude-code/START-HERE.md b/reports/carddemo/design/package/claude-code/START-HERE.md new file mode 100644 index 00000000..0d014e3c --- /dev/null +++ b/reports/carddemo/design/package/claude-code/START-HERE.md @@ -0,0 +1,64 @@ +# Start here + +This package was written by Reframe from aws-carddemo's legacy source, its reconciled requirements and rules, and the reviewers' sign-offs. It holds what +those settle. What only your team can give is marked `[FILL IN: ...]`. These steps make it ready for forward engineering. + +- Specifications: `specs/`; tasks: `tasks.md`; the UI to build to: `ui-reference/index.html`. +- Stack and house conventions: `CLAUDE.md`. Skills: `.claude/skills/`. +- Every form: `data-contracts.md` (the copybooks as typed records) and `traceability.md` (every ID back to the legacy source). + +## 1. Copy the package + +`reframe design --package --form kiro|claude-code|spec-kit|all` (today: `python -m reframe.design.package --out `). +Work in the copy. Reframe will not copy over files you have filled in: when the design changes, copy the new version into a new folder and +carry your filled-in files across; `CHANGES.md` says what changed, by ID. + +## 2. Give the target stack + +The stack is not given yet. Give or change it with +`reframe design --stack "; ; "` (today: `python -m reframe.design.specs --stack ...`, then write the package again). +Reframe adds the stack's code and column types to the data contracts, with no model step. It never chooses a stack for you. + +## 3. Fill in the placeholders + +- **Target architecture:** versions, build, testing, hosting, security, integration and non-functional needs. Put them in `target-architecture.md` + in the design context folder and write the package again with `--context `, or fill them where they are. +- **House conventions:** coding standards, naming, error handling and logging, style reference, review rules, definition of done. +- **Skills** (`.claude/skills/`): the build and test commands, frameworks and libraries each skill uses. +- **Roles** (`.claude/agents/`): the *On this stack* section of each role. + +`personas.md` and `decisions.md` in the context folder are added to the product description the same way. + +## 4. Settle what is still open + +- **Draft capabilities:** 102 of 154 are draft because their function is not signed off. Sign off + each function on the reconciliation page, read the review download with `reframe reconcile --context `, and write the design again. + - Account Statement Generation and Delivery: 8 draft + - Card Authorization and Fraud Management: 21 draft + - Credit Card List Detail View and Update: 11 draft + - Customer Profile Branch Migration: 8 draft + - Master Data File Initialization: 4 draft + - System Operations and Maintenance: 6 draft + - Transaction Type Reference Data Maintenance: 24 draft + - Unassigned-Programs: 11 draft + - User Security Profile Management: 9 draft +- **SME questions:** 485 open. Answer them in `reconcile/questions.csv` and run `reframe reconcile --context `. +- **Decision table gaps:** 82 combinations no rule covers, listed in each design. Decide each with the owner. +- **Historical artifacts:** rules to keep or drop with the owner before anyone builds them: CAFM-BR-017, CAFM-BR-070, CPBM-BR-030, CPBM-BR-031, DTPR-BR-006, DTPR-BR-035, DTPR-BR-051, OATM-BR-003, SOM-BR-012, TTRDM-BR-092, TTRDM-BR-102, TTRDM-BR-118, UP-BR-005, UP-BR-014, UP-BR-025, UP-BR-040. + +## 5. Check what is left + +`python -m reframe.design.package --check ` lists every `[FILL IN: ...]` still there and the draft capabilities. It is ready when no +placeholder is left and the capabilities you are building are final. + +## 6. Prove it: build Sign in + +In a scratch repository, with the Claude Code form and the stack filled in, ask Claude Code to build the sign-in slice: + - USPM-C01 Sign on to CardDemo (19 acceptance criteria; draft: confirm it with the owner first, or sign off its function) + +Use the `build-capability` and `write-acceptance-tests` skills. Record whether it builds and which acceptance criteria pass, by ID. A failure +here is a gap in the package or the placeholders: fix it before the full build. + +## 7. Build + +Final capabilities first; each task names its role and the requirement, rule and criterion IDs it implements. Keep every ID in code and tests. diff --git a/reports/carddemo/design/package/claude-code/data-contracts.md b/reports/carddemo/design/package/claude-code/data-contracts.md new file mode 100644 index 00000000..71613c86 --- /dev/null +++ b/reports/carddemo/design/package/claude-code/data-contracts.md @@ -0,0 +1,1321 @@ +# Data contracts + +The copybooks the capabilities' programs copy, as typed records, read from the legacy source. + +#### CCPAUERY + +Source: `app/app-authorization-ims-db2-mq/cpy/CCPAUERY.cpy`. + +Record `ERROR-LOG-RECORD`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| ERR-DATE | | X(06) | text, 6 characters | | | | +| ERR-TIME | | X(06) | text, 6 characters | | | | +| ERR-APPLICATION | | X(08) | text, 8 characters | | | | +| ERR-PROGRAM | | X(08) | text, 8 characters | | | | +| ERR-LOCATION | | X(04) | text, 4 characters | | | | +| ERR-LEVEL | | X(01) | text, 1 character | | | ERR-LOG = L; ERR-INFO = I; ERR-WARNING = W; ERR-CRITICAL = C | +| ERR-SUBSYSTEM | | X(01) | text, 1 character | | | ERR-APP = A; ERR-CICS = C; ERR-IMS = I; ERR-DB2 = D; ERR-MQ = M; ERR-FILE = F | +| ERR-CODE-1 | | X(09) | text, 9 characters | | | | +| ERR-CODE-2 | | X(09) | text, 9 characters | | | | +| ERR-MESSAGE | | X(50) | text, 50 characters | | | | +| ERR-EVENT-KEY | | X(20) | text, 20 characters | | | | + +#### CCPAURLY + +Source: `app/app-authorization-ims-db2-mq/cpy/CCPAURLY.cpy`. + +Record `PA-RL-CARD-NUM`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-RL-CARD-NUM | | X(16) | text, 16 characters | | | | + +Record `PA-RL-TRANSACTION-ID`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-RL-TRANSACTION-ID | | X(15) | text, 15 characters | | | | + +Record `PA-RL-AUTH-ID-CODE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-RL-AUTH-ID-CODE | | X(06) | text, 6 characters | | | | + +Record `PA-RL-AUTH-RESP-CODE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-RL-AUTH-RESP-CODE | | X(02) | text, 2 characters | | | | + +Record `PA-RL-AUTH-RESP-REASON`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-RL-AUTH-RESP-REASON | | X(04) | text, 4 characters | | | | + +Record `PA-RL-APPROVED-AMT`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-RL-APPROVED-AMT | | +9(10).99 | formatted text, 14 characters (a number shown with 12 digits) | | | | + +#### CCPAURQY + +Source: `app/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy`. + +Record `PA-RQ-AUTH-DATE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-RQ-AUTH-DATE | | X(06) | text, 6 characters | | | | + +Record `PA-RQ-AUTH-TIME`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-RQ-AUTH-TIME | | X(06) | text, 6 characters | | | | + +Record `PA-RQ-CARD-NUM`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-RQ-CARD-NUM | | X(16) | text, 16 characters | | | | + +Record `PA-RQ-AUTH-TYPE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-RQ-AUTH-TYPE | | X(04) | text, 4 characters | | | | + +Record `PA-RQ-CARD-EXPIRY-DATE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-RQ-CARD-EXPIRY-DATE | | X(04) | text, 4 characters | | | | + +Record `PA-RQ-MESSAGE-TYPE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-RQ-MESSAGE-TYPE | | X(06) | text, 6 characters | | | | + +Record `PA-RQ-MESSAGE-SOURCE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-RQ-MESSAGE-SOURCE | | X(06) | text, 6 characters | | | | + +Record `PA-RQ-PROCESSING-CODE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-RQ-PROCESSING-CODE | | 9(06) | unsigned integer, 6 digits (zoned decimal) | | | | + +Record `PA-RQ-TRANSACTION-AMT`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-RQ-TRANSACTION-AMT | | +9(10).99 | formatted text, 14 characters (a number shown with 12 digits) | | | | + +Record `PA-RQ-MERCHANT-CATAGORY-CODE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-RQ-MERCHANT-CATAGORY-CODE | | X(04) | text, 4 characters | | | | + +Record `PA-RQ-ACQR-COUNTRY-CODE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-RQ-ACQR-COUNTRY-CODE | | X(03) | text, 3 characters | | | | + +Record `PA-RQ-POS-ENTRY-MODE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-RQ-POS-ENTRY-MODE | | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | + +Record `PA-RQ-MERCHANT-ID`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-RQ-MERCHANT-ID | | X(15) | text, 15 characters | | | | + +Record `PA-RQ-MERCHANT-NAME`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-RQ-MERCHANT-NAME | | X(22) | text, 22 characters | | | | + +Record `PA-RQ-MERCHANT-CITY`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-RQ-MERCHANT-CITY | | X(13) | text, 13 characters | | | | + +Record `PA-RQ-MERCHANT-STATE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-RQ-MERCHANT-STATE | | X(02) | text, 2 characters | | | | + +Record `PA-RQ-MERCHANT-ZIP`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-RQ-MERCHANT-ZIP | | X(09) | text, 9 characters | | | | + +Record `PA-RQ-TRANSACTION-ID`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-RQ-TRANSACTION-ID | | X(15) | text, 15 characters | | | | + +#### CIPAUDTY + +Source: `app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy`. + +Record `PA-AUTHORIZATION-KEY`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-AUTH-DATE-9C | | S9(05) COMP-3 | signed integer, 5 digits (packed decimal) | | | | +| PA-AUTH-TIME-9C | | S9(09) COMP-3 | signed integer, 9 digits (packed decimal) | | | | + +Record `PA-AUTH-ORIG-DATE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-AUTH-ORIG-DATE | | X(06) | text, 6 characters | | | | + +Record `PA-AUTH-ORIG-TIME`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-AUTH-ORIG-TIME | | X(06) | text, 6 characters | | | | + +Record `PA-CARD-NUM`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-CARD-NUM | | X(16) | text, 16 characters | | | | + +Record `PA-AUTH-TYPE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-AUTH-TYPE | | X(04) | text, 4 characters | | | | + +Record `PA-CARD-EXPIRY-DATE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-CARD-EXPIRY-DATE | | X(04) | text, 4 characters | | | | + +Record `PA-MESSAGE-TYPE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-MESSAGE-TYPE | | X(06) | text, 6 characters | | | | + +Record `PA-MESSAGE-SOURCE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-MESSAGE-SOURCE | | X(06) | text, 6 characters | | | | + +Record `PA-AUTH-ID-CODE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-AUTH-ID-CODE | | X(06) | text, 6 characters | | | | + +Record `PA-AUTH-RESP-CODE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-AUTH-RESP-CODE | | X(02) | text, 2 characters | | | PA-AUTH-APPROVED = 00 | + +Record `PA-AUTH-RESP-REASON`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-AUTH-RESP-REASON | | X(04) | text, 4 characters | | | | + +Record `PA-PROCESSING-CODE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-PROCESSING-CODE | | 9(06) | unsigned integer, 6 digits (zoned decimal) | | | | + +Record `PA-TRANSACTION-AMT`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-TRANSACTION-AMT | | S9(10)V99 COMP-3 | signed decimal, 10 integer and 2 fraction digits (packed decimal) | | | | + +Record `PA-APPROVED-AMT`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-APPROVED-AMT | | S9(10)V99 COMP-3 | signed decimal, 10 integer and 2 fraction digits (packed decimal) | | | | + +Record `PA-MERCHANT-CATAGORY-CODE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-MERCHANT-CATAGORY-CODE | | X(04) | text, 4 characters | | | | + +Record `PA-ACQR-COUNTRY-CODE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-ACQR-COUNTRY-CODE | | X(03) | text, 3 characters | | | | + +Record `PA-POS-ENTRY-MODE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-POS-ENTRY-MODE | | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | + +Record `PA-MERCHANT-ID`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-MERCHANT-ID | | X(15) | text, 15 characters | | | | + +Record `PA-MERCHANT-NAME`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-MERCHANT-NAME | | X(22) | text, 22 characters | | | | + +Record `PA-MERCHANT-CITY`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-MERCHANT-CITY | | X(13) | text, 13 characters | | | | + +Record `PA-MERCHANT-STATE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-MERCHANT-STATE | | X(02) | text, 2 characters | | | | + +Record `PA-MERCHANT-ZIP`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-MERCHANT-ZIP | | X(09) | text, 9 characters | | | | + +Record `PA-TRANSACTION-ID`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-TRANSACTION-ID | | X(15) | text, 15 characters | | | | + +Record `PA-MATCH-STATUS`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-MATCH-STATUS | | X(01) | text, 1 character | | | PA-MATCH-PENDING = P; PA-MATCH-AUTH-DECLINED = D; PA-MATCH-PENDING-EXPIRED = E; PA-MATCHED-WITH-TRAN = M | + +Record `PA-AUTH-FRAUD`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-AUTH-FRAUD | | X(01) | text, 1 character | | | PA-FRAUD-CONFIRMED = F; PA-FRAUD-REMOVED = R | + +Record `PA-FRAUD-RPT-DATE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-FRAUD-RPT-DATE | | X(08) | text, 8 characters | | | | + +Record `FILLER`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| FILLER | | X(17) | text, 17 characters | | | | + +#### CIPAUSMY + +Source: `app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy`. + +Record `PA-ACCT-ID`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-ACCT-ID | | S9(11) COMP-3 | signed integer, 11 digits (packed decimal) | | | | + +Record `PA-CUST-ID`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-CUST-ID | | 9(09) | unsigned integer, 9 digits (zoned decimal) | | | | + +Record `PA-AUTH-STATUS`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-AUTH-STATUS | | X(01) | text, 1 character | | | | + +Record `PA-ACCOUNT-STATUS`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-ACCOUNT-STATUS | | X(02) | text, 2 characters | | | occurs 5 | + +Record `PA-CREDIT-LIMIT`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-CREDIT-LIMIT | | S9(09)V99 COMP-3 | signed decimal, 9 integer and 2 fraction digits (packed decimal) | | | | + +Record `PA-CASH-LIMIT`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-CASH-LIMIT | | S9(09)V99 COMP-3 | signed decimal, 9 integer and 2 fraction digits (packed decimal) | | | | + +Record `PA-CREDIT-BALANCE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-CREDIT-BALANCE | | S9(09)V99 COMP-3 | signed decimal, 9 integer and 2 fraction digits (packed decimal) | | | | + +Record `PA-CASH-BALANCE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-CASH-BALANCE | | S9(09)V99 COMP-3 | signed decimal, 9 integer and 2 fraction digits (packed decimal) | | | | + +Record `PA-APPROVED-AUTH-CNT`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-APPROVED-AUTH-CNT | | S9(04) COMP | signed integer, 4 digits (binary) | | | | + +Record `PA-DECLINED-AUTH-CNT`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-DECLINED-AUTH-CNT | | S9(04) COMP | signed integer, 4 digits (binary) | | | | + +Record `PA-APPROVED-AUTH-AMT`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-APPROVED-AUTH-AMT | | S9(09)V99 COMP-3 | signed decimal, 9 integer and 2 fraction digits (packed decimal) | | | | + +Record `PA-DECLINED-AUTH-AMT`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-DECLINED-AUTH-AMT | | S9(09)V99 COMP-3 | signed decimal, 9 integer and 2 fraction digits (packed decimal) | | | | + +Record `FILLER`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| FILLER | | X(34) | text, 34 characters | | | | + +#### COADM02Y + +Source: `app/cpy/COADM02Y.cpy`. + +Record `CARDDEMO-ADMIN-MENU-OPTIONS`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| CDEMO-ADMIN-OPT-COUNT | | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| CDEMO-ADMIN-OPTIONS-DATA | | | group | | | | +| FILLER | CDEMO-ADMIN-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | CDEMO-ADMIN-OPTIONS-DATA | X(35) | text, 35 characters | | | | +| FILLER | CDEMO-ADMIN-OPTIONS-DATA | X(08) | text, 8 characters | | | | +| FILLER | CDEMO-ADMIN-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | CDEMO-ADMIN-OPTIONS-DATA | X(35) | text, 35 characters | | | | +| FILLER | CDEMO-ADMIN-OPTIONS-DATA | X(08) | text, 8 characters | | | | +| FILLER | CDEMO-ADMIN-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | CDEMO-ADMIN-OPTIONS-DATA | X(35) | text, 35 characters | | | | +| FILLER | CDEMO-ADMIN-OPTIONS-DATA | X(08) | text, 8 characters | | | | +| FILLER | CDEMO-ADMIN-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | CDEMO-ADMIN-OPTIONS-DATA | X(35) | text, 35 characters | | | | +| FILLER | CDEMO-ADMIN-OPTIONS-DATA | X(08) | text, 8 characters | | | | +| FILLER | CDEMO-ADMIN-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | CDEMO-ADMIN-OPTIONS-DATA | X(35) | text, 35 characters | | | | +| FILLER | CDEMO-ADMIN-OPTIONS-DATA | X(08) | text, 8 characters | | | | +| FILLER | CDEMO-ADMIN-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | CDEMO-ADMIN-OPTIONS-DATA | X(35) | text, 35 characters | | | | +| FILLER | CDEMO-ADMIN-OPTIONS-DATA | X(08) | text, 8 characters | | | | +| CDEMO-ADMIN-OPTIONS | | | group | | | redefines CDEMO-ADMIN-OPTIONS-DATA | +| CDEMO-ADMIN-OPT | CDEMO-ADMIN-OPTIONS | | group | | | occurs 9 | +| CDEMO-ADMIN-OPT-NUM | CDEMO-ADMIN-OPTIONS/CDEMO-ADMIN-OPT | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| CDEMO-ADMIN-OPT-NAME | CDEMO-ADMIN-OPTIONS/CDEMO-ADMIN-OPT | X(35) | text, 35 characters | | | | +| CDEMO-ADMIN-OPT-PGMNAME | CDEMO-ADMIN-OPTIONS/CDEMO-ADMIN-OPT | X(08) | text, 8 characters | | | | + +#### COCOM01Y + +Source: `app/cpy/COCOM01Y.cpy`. + +Record `CARDDEMO-COMMAREA`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| CDEMO-GENERAL-INFO | | | group | | | | +| CDEMO-FROM-TRANID | CDEMO-GENERAL-INFO | X(04) | text, 4 characters | | | | +| CDEMO-FROM-PROGRAM | CDEMO-GENERAL-INFO | X(08) | text, 8 characters | | | | +| CDEMO-TO-TRANID | CDEMO-GENERAL-INFO | X(04) | text, 4 characters | | | | +| CDEMO-TO-PROGRAM | CDEMO-GENERAL-INFO | X(08) | text, 8 characters | | | | +| CDEMO-USER-ID | CDEMO-GENERAL-INFO | X(08) | text, 8 characters | | | | +| CDEMO-USER-TYPE | CDEMO-GENERAL-INFO | X(01) | text, 1 character | | | CDEMO-USRTYP-ADMIN = A; CDEMO-USRTYP-USER = U | +| CDEMO-PGM-CONTEXT | CDEMO-GENERAL-INFO | 9(01) | unsigned integer, 1 digit (zoned decimal) | | | CDEMO-PGM-ENTER = 0; CDEMO-PGM-REENTER = 1 | +| CDEMO-CUSTOMER-INFO | | | group | | | | +| CDEMO-CUST-ID | CDEMO-CUSTOMER-INFO | 9(09) | unsigned integer, 9 digits (zoned decimal) | | | | +| CDEMO-CUST-FNAME | CDEMO-CUSTOMER-INFO | X(25) | text, 25 characters | | | | +| CDEMO-CUST-MNAME | CDEMO-CUSTOMER-INFO | X(25) | text, 25 characters | | | | +| CDEMO-CUST-LNAME | CDEMO-CUSTOMER-INFO | X(25) | text, 25 characters | | | | +| CDEMO-ACCOUNT-INFO | | | group | | | | +| CDEMO-ACCT-ID | CDEMO-ACCOUNT-INFO | 9(11) | unsigned integer, 11 digits (zoned decimal) | | | | +| CDEMO-ACCT-STATUS | CDEMO-ACCOUNT-INFO | X(01) | text, 1 character | | | | +| CDEMO-CARD-INFO | | | group | | | | +| CDEMO-CARD-NUM | CDEMO-CARD-INFO | 9(16) | unsigned integer, 16 digits (zoned decimal) | | | | +| CDEMO-MORE-INFO | | | group | | | | +| CDEMO-LAST-MAP | CDEMO-MORE-INFO | X(7) | text, 7 characters | | | | +| CDEMO-LAST-MAPSET | CDEMO-MORE-INFO | X(7) | text, 7 characters | | | | + +#### CODATECN + +Source: `app/cpy/CODATECN.cpy`. + +Record `CODATECN-REC`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| CODATECN-IN-REC | | | group | | | | +| CODATECN-TYPE | CODATECN-IN-REC | X | text, 1 character | | | YYYYMMDD-IN = 1; YYYY-MM-DD-IN = 2 | +| CODATECN-INP-DATE | CODATECN-IN-REC | X(20) | text, 20 characters | | | | +| CODATECN-1INP | CODATECN-IN-REC | | group | | | redefines CODATECN-INP-DATE | +| CODATECN-1YYYY | CODATECN-IN-REC/CODATECN-1INP | XXXX | text, 4 characters | | | | +| CODATECN-1MM | CODATECN-IN-REC/CODATECN-1INP | XX | text, 2 characters | | | | +| CODATECN-1DD | CODATECN-IN-REC/CODATECN-1INP | XX | text, 2 characters | | | | +| CODATECN-1FIL | CODATECN-IN-REC/CODATECN-1INP | X(12) | text, 12 characters | | | | +| CODATECN-2INP | CODATECN-IN-REC | | group | | | redefines CODATECN-INP-DATE | +| CODATECN-1O-YYYY | CODATECN-IN-REC/CODATECN-2INP | XXXX | text, 4 characters | | | | +| CODATECN-1I-S1 | CODATECN-IN-REC/CODATECN-2INP | X | text, 1 character | | | | +| CODATECN-1MM | CODATECN-IN-REC/CODATECN-2INP | XX | text, 2 characters | | | | +| CODATECN-1I-S2 | CODATECN-IN-REC/CODATECN-2INP | X | text, 1 character | | | | +| CODATECN-2YY | CODATECN-IN-REC/CODATECN-2INP | XX | text, 2 characters | | | | +| CODATECN-2FIL | CODATECN-IN-REC/CODATECN-2INP | X(10) | text, 10 characters | | | | +| CODATECN-OUT-REC | | | group | | | | +| CODATECN-OUTTYPE | CODATECN-OUT-REC | X | text, 1 character | | | YYYY-MM-DD-OP = 1; YYYYMMDD-OP = 2 | +| CODATECN-0UT-DATE | CODATECN-OUT-REC | X(20) | text, 20 characters | | | | +| CODATECN-1OUT | CODATECN-OUT-REC | | group | | | redefines CODATECN-0UT-DATE | +| CODATECN-1O-YYYY | CODATECN-OUT-REC/CODATECN-1OUT | XXXX | text, 4 characters | | | | +| CODATECN-1O-S1 | CODATECN-OUT-REC/CODATECN-1OUT | X | text, 1 character | | | | +| CODATECN-1O-MM | CODATECN-OUT-REC/CODATECN-1OUT | XX | text, 2 characters | | | | +| CODATECN-1O-S2 | CODATECN-OUT-REC/CODATECN-1OUT | X | text, 1 character | | | | +| CODATECN-1O-DD | CODATECN-OUT-REC/CODATECN-1OUT | XX | text, 2 characters | | | | +| CODATECN-1OFIL | CODATECN-OUT-REC/CODATECN-1OUT | X(10) | text, 10 characters | | | | +| CODATECN-2OUT | CODATECN-OUT-REC | | group | | | redefines CODATECN-0UT-DATE | +| CODATECN-2O-YYYY | CODATECN-OUT-REC/CODATECN-2OUT | XXXX | text, 4 characters | | | | +| CODATECN-2O-MM | CODATECN-OUT-REC/CODATECN-2OUT | XX | text, 2 characters | | | | +| CODATECN-2O-DD | CODATECN-OUT-REC/CODATECN-2OUT | XX | text, 2 characters | | | | +| CODATECN-2OFIL | CODATECN-OUT-REC/CODATECN-2OUT | X(12) | text, 12 characters | | | | +| CODATECN-ERROR-MSG | | X(38) | text, 38 characters | | | | + +#### COMEN02Y + +Source: `app/cpy/COMEN02Y.cpy`. + +Record `CARDDEMO-MAIN-MENU-OPTIONS`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| CDEMO-MENU-OPT-COUNT | | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| CDEMO-MENU-OPTIONS-DATA | | | group | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(35) | text, 35 characters | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(08) | text, 8 characters | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(01) | text, 1 character | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(35) | text, 35 characters | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(08) | text, 8 characters | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(01) | text, 1 character | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(35) | text, 35 characters | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(08) | text, 8 characters | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(01) | text, 1 character | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(35) | text, 35 characters | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(08) | text, 8 characters | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(01) | text, 1 character | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(35) | text, 35 characters | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(08) | text, 8 characters | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(01) | text, 1 character | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(35) | text, 35 characters | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(08) | text, 8 characters | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(01) | text, 1 character | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(35) | text, 35 characters | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(08) | text, 8 characters | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(01) | text, 1 character | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(35) | text, 35 characters | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(08) | text, 8 characters | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(01) | text, 1 character | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(35) | text, 35 characters | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(08) | text, 8 characters | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(01) | text, 1 character | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(35) | text, 35 characters | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(08) | text, 8 characters | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(01) | text, 1 character | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(35) | text, 35 characters | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(08) | text, 8 characters | | | | +| FILLER | CDEMO-MENU-OPTIONS-DATA | X(01) | text, 1 character | | | | +| CDEMO-MENU-OPTIONS | | | group | | | redefines CDEMO-MENU-OPTIONS-DATA | +| CDEMO-MENU-OPT | CDEMO-MENU-OPTIONS | | group | | | occurs 12 | +| CDEMO-MENU-OPT-NUM | CDEMO-MENU-OPTIONS/CDEMO-MENU-OPT | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| CDEMO-MENU-OPT-NAME | CDEMO-MENU-OPTIONS/CDEMO-MENU-OPT | X(35) | text, 35 characters | | | | +| CDEMO-MENU-OPT-PGMNAME | CDEMO-MENU-OPTIONS/CDEMO-MENU-OPT | X(08) | text, 8 characters | | | | +| CDEMO-MENU-OPT-USRTYPE | CDEMO-MENU-OPTIONS/CDEMO-MENU-OPT | X(01) | text, 1 character | | | | + +#### COSTM01 + +Source: `app/cpy/COSTM01.CPY`. + +Record `TRNX-RECORD`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| TRNX-KEY | | | group | | | | +| TRNX-CARD-NUM | TRNX-KEY | X(16) | text, 16 characters | | | | +| TRNX-ID | TRNX-KEY | X(16) | text, 16 characters | | | | +| TRNX-REST | | | group | | | | +| TRNX-TYPE-CD | TRNX-REST | X(02) | text, 2 characters | | | | +| TRNX-CAT-CD | TRNX-REST | 9(04) | unsigned integer, 4 digits (zoned decimal) | | | | +| TRNX-SOURCE | TRNX-REST | X(10) | text, 10 characters | | | | +| TRNX-DESC | TRNX-REST | X(100) | text, 100 characters | | | | +| TRNX-AMT | TRNX-REST | S9(09)V99 | signed decimal, 9 integer and 2 fraction digits (zoned decimal) | | | | +| TRNX-MERCHANT-ID | TRNX-REST | 9(09) | unsigned integer, 9 digits (zoned decimal) | | | | +| TRNX-MERCHANT-NAME | TRNX-REST | X(50) | text, 50 characters | | | | +| TRNX-MERCHANT-CITY | TRNX-REST | X(50) | text, 50 characters | | | | +| TRNX-MERCHANT-ZIP | TRNX-REST | X(10) | text, 10 characters | | | | +| TRNX-ORIG-TS | TRNX-REST | X(26) | text, 26 characters | | | | +| TRNX-PROC-TS | TRNX-REST | X(26) | text, 26 characters | | | | +| FILLER | TRNX-REST | X(20) | text, 20 characters | | | | + +#### COTTL01Y + +Source: `app/cpy/COTTL01Y.cpy`. + +Record `CCDA-SCREEN-TITLE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| CCDA-TITLE01 | | X(40) | text, 40 characters | | | | +| CCDA-TITLE02 | | X(40) | text, 40 characters | | | | +| CCDA-THANK-YOU | | X(40) | text, 40 characters | | | | + +#### CSDAT01Y + +Source: `app/cpy/CSDAT01Y.cpy`. + +Record `WS-DATE-TIME`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| WS-CURDATE-DATA | | | group | | | | +| WS-CURDATE | WS-CURDATE-DATA | | group | | | | +| WS-CURDATE-YEAR | WS-CURDATE-DATA/WS-CURDATE | 9(04) | unsigned integer, 4 digits (zoned decimal) | | | | +| WS-CURDATE-MONTH | WS-CURDATE-DATA/WS-CURDATE | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| WS-CURDATE-DAY | WS-CURDATE-DATA/WS-CURDATE | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| WS-CURDATE-N | WS-CURDATE-DATA | 9(08) | unsigned integer, 8 digits (zoned decimal) | | | redefines WS-CURDATE | +| WS-CURTIME | WS-CURDATE-DATA | | group | | | | +| WS-CURTIME-HOURS | WS-CURDATE-DATA/WS-CURTIME | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| WS-CURTIME-MINUTE | WS-CURDATE-DATA/WS-CURTIME | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| WS-CURTIME-SECOND | WS-CURDATE-DATA/WS-CURTIME | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| WS-CURTIME-MILSEC | WS-CURDATE-DATA/WS-CURTIME | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| WS-CURTIME-N | WS-CURDATE-DATA | 9(08) | unsigned integer, 8 digits (zoned decimal) | | | redefines WS-CURTIME | +| WS-CURDATE-MM-DD-YY | | | group | | | | +| WS-CURDATE-MM | WS-CURDATE-MM-DD-YY | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | WS-CURDATE-MM-DD-YY | X(01) | text, 1 character | | | | +| WS-CURDATE-DD | WS-CURDATE-MM-DD-YY | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | WS-CURDATE-MM-DD-YY | X(01) | text, 1 character | | | | +| WS-CURDATE-YY | WS-CURDATE-MM-DD-YY | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| WS-CURTIME-HH-MM-SS | | | group | | | | +| WS-CURTIME-HH | WS-CURTIME-HH-MM-SS | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | WS-CURTIME-HH-MM-SS | X(01) | text, 1 character | | | | +| WS-CURTIME-MM | WS-CURTIME-HH-MM-SS | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | WS-CURTIME-HH-MM-SS | X(01) | text, 1 character | | | | +| WS-CURTIME-SS | WS-CURTIME-HH-MM-SS | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| WS-TIMESTAMP | | | group | | | | +| WS-TIMESTAMP-DT-YYYY | WS-TIMESTAMP | 9(04) | unsigned integer, 4 digits (zoned decimal) | | | | +| FILLER | WS-TIMESTAMP | X(01) | text, 1 character | | | | +| WS-TIMESTAMP-DT-MM | WS-TIMESTAMP | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | WS-TIMESTAMP | X(01) | text, 1 character | | | | +| WS-TIMESTAMP-DT-DD | WS-TIMESTAMP | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | WS-TIMESTAMP | X(01) | text, 1 character | | | | +| WS-TIMESTAMP-TM-HH | WS-TIMESTAMP | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | WS-TIMESTAMP | X(01) | text, 1 character | | | | +| WS-TIMESTAMP-TM-MM | WS-TIMESTAMP | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | WS-TIMESTAMP | X(01) | text, 1 character | | | | +| WS-TIMESTAMP-TM-SS | WS-TIMESTAMP | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | | +| FILLER | WS-TIMESTAMP | X(01) | text, 1 character | | | | +| WS-TIMESTAMP-TM-MS6 | WS-TIMESTAMP | 9(06) | unsigned integer, 6 digits (zoned decimal) | | | | + +#### CSDB2RPY + +Source: `app/app-transaction-type-db2/cpy/CSDB2RPY.cpy`. + +#### CSDB2RWY + +Source: `app/app-transaction-type-db2/cpy/CSDB2RWY.cpy`. + +Record `WS-DB2-COMMON-VARS`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| WS-DISP-SQLCODE | | ----9 | formatted text, 5 characters (a number shown with 1 digit) | | | | +| WS-DUMMY-DB2-INT | | S9(4) COMP-3 | signed integer, 4 digits (packed decimal) | | | | +| WS-DB2-PROCESSING-FLAG | | X(1) | text, 1 character | | | WS-DB2-OK = 0; WS-DB2-ERROR = 1 | +| WS-DB2-CURRENT-ACTION | | X(72) | text, 72 characters | | | | + +Record `WS-DSNTIAC-FORMATTED`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| WS-DSNTIAC-MESG-LEN | | S9(4) COMP | signed integer, 4 digits (binary) | | | | +| WS-DSNTIAC-FMTD-TEXT | | | group | | | | +| WS-DSNTIAC-FMTD-TEXT-LINE | WS-DSNTIAC-FMTD-TEXT | X(72) | text, 72 characters | | | occurs 10 | + +Record `WS-DSNTIAC-LRECL`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| WS-DSNTIAC-LRECL | | S9(4) COMP | signed integer, 4 digits (binary) | | | | + +Record `WS-DSNTIAC-ERROR`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| WS-DSNTIAC-ERR-MSG | | X(10) | text, 10 characters | | | | +| WS-DSNTIAC-ERR-CD-X | | X(02) | text, 2 characters | | | | +| WS-DSNTIAC-ERR-CD | | 9(02) | unsigned integer, 2 digits (zoned decimal) | | | redefines WS-DSNTIAC-ERR-CD-X | + +#### CSLKPCDY + +Source: `app/cpy/CSLKPCDY.cpy`. + +Record `WS-US-PHONE-AREA-CODE-TO-EDIT`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| WS-US-PHONE-AREA-CODE-TO-EDIT | | XXX | text, 3 characters | | | VALID-PHONE-AREA-CODE = 201; VALID-GENERAL-PURP-CODE = 201; VALID-EASY-RECOG-AREA-CODE = 200 | + +Record `US-STATE-CODE-TO-EDIT`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| US-STATE-CODE-TO-EDIT | | X(2) | text, 2 characters | | | VALID-US-STATE-CODE = AL | + +Record `US-STATE-ZIPCODE-TO-EDIT`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| US-STATE-AND-FIRST-ZIP2 | | X(4) | text, 4 characters | | | VALID-US-STATE-ZIP-CD2-COMBO = AA34 | +| LAST-3-OF-ZIP | | X(3) | text, 3 characters | | | | + +#### CSMSG01Y + +Source: `app/cpy/CSMSG01Y.cpy`. + +Record `CCDA-COMMON-MESSAGES`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| CCDA-MSG-THANK-YOU | | X(50) | text, 50 characters | | | | +| CCDA-MSG-INVALID-KEY | | X(50) | text, 50 characters | | | | + +#### CSMSG02Y + +Source: `app/cpy/CSMSG02Y.cpy`. + +Record `ABEND-DATA`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| ABEND-CODE | | X(4) | text, 4 characters | | | | +| ABEND-CULPRIT | | X(8) | text, 8 characters | | | | +| ABEND-REASON | | X(50) | text, 50 characters | | | | +| ABEND-MSG | | X(72) | text, 72 characters | | | | + +#### CSSETATY + +Source: `app/cpy/CSSETATY.cpy`. + +#### CSSTRPFY + +Source: `app/cpy/CSSTRPFY.cpy`. + +#### CSUSR01Y + +Source: `app/cpy/CSUSR01Y.cpy`. + +Record `SEC-USER-DATA`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| SEC-USR-ID | | X(08) | text, 8 characters | | | | +| SEC-USR-FNAME | | X(20) | text, 20 characters | | | | +| SEC-USR-LNAME | | X(20) | text, 20 characters | | | | +| SEC-USR-PWD | | X(08) | text, 8 characters | | | | +| SEC-USR-TYPE | | X(01) | text, 1 character | | | | +| SEC-USR-FILLER | | X(23) | text, 23 characters | | | | + +#### CSUTLDPY + +Source: `app/cpy/CSUTLDPY.cpy`. + +#### CSUTLDWY + +Source: `app/cpy/CSUTLDWY.cpy`. + +Record `WS-EDIT-DATE-CCYYMMDD`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| WS-EDIT-DATE-CCYY | | | group | | | | +| WS-EDIT-DATE-CC | WS-EDIT-DATE-CCYY | X(2) | text, 2 characters | | | | +| WS-EDIT-DATE-CC-N | WS-EDIT-DATE-CCYY | 9(2) | unsigned integer, 2 digits (zoned decimal) | | | redefines WS-EDIT-DATE-CC; THIS-CENTURY = 20; LAST-CENTURY = 19 | +| WS-EDIT-DATE-YY | WS-EDIT-DATE-CCYY | X(2) | text, 2 characters | | | | +| WS-EDIT-DATE-YY-N | WS-EDIT-DATE-CCYY | 9(2) | unsigned integer, 2 digits (zoned decimal) | | | redefines WS-EDIT-DATE-YY | +| WS-EDIT-DATE-CCYY-N | | 9(4) | unsigned integer, 4 digits (zoned decimal) | | | redefines WS-EDIT-DATE-CCYY | +| WS-EDIT-DATE-MM | | X(2) | text, 2 characters | | | | +| WS-EDIT-DATE-MM-N | | 9(2) | unsigned integer, 2 digits (zoned decimal) | | | redefines WS-EDIT-DATE-MM; WS-VALID-MONTH = 1; WS-31-DAY-MONTH = 1; WS-FEBRUARY = 2 | +| WS-EDIT-DATE-DD | | X(2) | text, 2 characters | | | | +| WS-EDIT-DATE-DD-N | | 9(2) | unsigned integer, 2 digits (zoned decimal) | | | redefines WS-EDIT-DATE-DD; WS-VALID-DAY = 1; WS-DAY-31 = 31; WS-DAY-30 = 30; WS-DAY-29 = 29; WS-VALID-FEB-DAY = 1 | + +Record `WS-EDIT-DATE-CCYYMMDD-N`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| WS-EDIT-DATE-CCYYMMDD-N | | 9(8) | unsigned integer, 8 digits (zoned decimal) | | | redefines WS-EDIT-DATE-CCYYMMDD | + +Record `WS-EDIT-DATE-BINARY`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| WS-EDIT-DATE-BINARY | | S9(9) BINARY | signed integer, 9 digits (binary) | | | | + +Record `WS-CURRENT-DATE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| WS-CURRENT-DATE-YYYYMMDD | | X(8) | text, 8 characters | | | | +| WS-CURRENT-DATE-YYYYMMDD-N | | 9(8) | unsigned integer, 8 digits (zoned decimal) | | | redefines WS-CURRENT-DATE-YYYYMMDD | +| WS-CURRENT-DATE-BINARY | | S9(9) BINARY | signed integer, 9 digits (binary) | | | | + +Record `WS-EDIT-DATE-FLGS`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| WS-EDIT-YEAR-FLG | | X(01) | text, 1 character | | | FLG-YEAR-ISVALID = ; FLG-YEAR-NOT-OK = 0; FLG-YEAR-BLANK = B | +| WS-EDIT-MONTH | | X(01) | text, 1 character | | | FLG-MONTH-ISVALID = ; FLG-MONTH-NOT-OK = 0; FLG-MONTH-BLANK = B | +| WS-EDIT-DAY | | X(01) | text, 1 character | | | FLG-DAY-ISVALID = ; FLG-DAY-NOT-OK = 0; FLG-DAY-BLANK = B | + +Record `WS-DATE-FORMAT`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| WS-DATE-FORMAT | | X(08) | text, 8 characters | | | | + +Record `WS-DATE-VALIDATION-RESULT`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| WS-SEVERITY | | X(04) | text, 4 characters | | | | +| WS-SEVERITY-N | | 9(4) | unsigned integer, 4 digits (zoned decimal) | | | redefines WS-SEVERITY | +| FILLER | | X(11) | text, 11 characters | | | | +| WS-MSG-NO | | X(04) | text, 4 characters | | | | +| WS-MSG-NO-N | | 9(4) | unsigned integer, 4 digits (zoned decimal) | | | redefines WS-MSG-NO | +| FILLER | | X(01) | text, 1 character | | | | +| WS-RESULT | | X(15) | text, 15 characters | | | | +| FILLER | | X(01) | text, 1 character | | | | +| FILLER | | X(09) | text, 9 characters | | | | +| WS-DATE | | X(10) | text, 10 characters | | | | +| FILLER | | X(01) | text, 1 character | | | | +| FILLER | | X(10) | text, 10 characters | | | | +| WS-DATE-FMT | | X(10) | text, 10 characters | | | | +| FILLER | | X(01) | text, 1 character | | | | +| FILLER | | X(03) | text, 3 characters | | | | + +#### CUSTREC + +Source: `app/cpy/CUSTREC.cpy`. + +Record `CUSTOMER-RECORD`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| CUST-ID | | 9(09) | unsigned integer, 9 digits (zoned decimal) | | | | +| CUST-FIRST-NAME | | X(25) | text, 25 characters | | | | +| CUST-MIDDLE-NAME | | X(25) | text, 25 characters | | | | +| CUST-LAST-NAME | | X(25) | text, 25 characters | | | | +| CUST-ADDR-LINE-1 | | X(50) | text, 50 characters | | | | +| CUST-ADDR-LINE-2 | | X(50) | text, 50 characters | | | | +| CUST-ADDR-LINE-3 | | X(50) | text, 50 characters | | | | +| CUST-ADDR-STATE-CD | | X(02) | text, 2 characters | | | | +| CUST-ADDR-COUNTRY-CD | | X(03) | text, 3 characters | | | | +| CUST-ADDR-ZIP | | X(10) | text, 10 characters | | | | +| CUST-PHONE-NUM-1 | | X(15) | text, 15 characters | | | | +| CUST-PHONE-NUM-2 | | X(15) | text, 15 characters | | | | +| CUST-SSN | | 9(09) | unsigned integer, 9 digits (zoned decimal) | | | | +| CUST-GOVT-ISSUED-ID | | X(20) | text, 20 characters | | | | +| CUST-DOB-YYYYMMDD | | X(10) | text, 10 characters | | | | +| CUST-EFT-ACCOUNT-ID | | X(10) | text, 10 characters | | | | +| CUST-PRI-CARD-HOLDER-IND | | X(01) | text, 1 character | | | | +| CUST-FICO-CREDIT-SCORE | | 9(03) | unsigned integer, 3 digits (zoned decimal) | | | | +| FILLER | | X(168) | text, 168 characters | | | | + +#### CVACT01Y + +Source: `app/cpy/CVACT01Y.cpy`. + +Record `ACCOUNT-RECORD`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| ACCT-ID | | 9(11) | unsigned integer, 11 digits (zoned decimal) | | | | +| ACCT-ACTIVE-STATUS | | X(01) | text, 1 character | | | | +| ACCT-CURR-BAL | | S9(10)V99 | signed decimal, 10 integer and 2 fraction digits (zoned decimal) | | | | +| ACCT-CREDIT-LIMIT | | S9(10)V99 | signed decimal, 10 integer and 2 fraction digits (zoned decimal) | | | | +| ACCT-CASH-CREDIT-LIMIT | | S9(10)V99 | signed decimal, 10 integer and 2 fraction digits (zoned decimal) | | | | +| ACCT-OPEN-DATE | | X(10) | text, 10 characters | | | | +| ACCT-EXPIRAION-DATE | | X(10) | text, 10 characters | | | | +| ACCT-REISSUE-DATE | | X(10) | text, 10 characters | | | | +| ACCT-CURR-CYC-CREDIT | | S9(10)V99 | signed decimal, 10 integer and 2 fraction digits (zoned decimal) | | | | +| ACCT-CURR-CYC-DEBIT | | S9(10)V99 | signed decimal, 10 integer and 2 fraction digits (zoned decimal) | | | | +| ACCT-ADDR-ZIP | | X(10) | text, 10 characters | | | | +| ACCT-GROUP-ID | | X(10) | text, 10 characters | | | | +| FILLER | | X(178) | text, 178 characters | | | | + +#### CVACT02Y + +Source: `app/cpy/CVACT02Y.cpy`. + +Record `CARD-RECORD`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| CARD-NUM | | X(16) | text, 16 characters | | | | +| CARD-ACCT-ID | | 9(11) | unsigned integer, 11 digits (zoned decimal) | | | | +| CARD-CVV-CD | | 9(03) | unsigned integer, 3 digits (zoned decimal) | | | | +| CARD-EMBOSSED-NAME | | X(50) | text, 50 characters | | | | +| CARD-EXPIRAION-DATE | | X(10) | text, 10 characters | | | | +| CARD-ACTIVE-STATUS | | X(01) | text, 1 character | | | | +| FILLER | | X(59) | text, 59 characters | | | | + +#### CVACT03Y + +Source: `app/cpy/CVACT03Y.cpy`. + +Record `CARD-XREF-RECORD`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| XREF-CARD-NUM | | X(16) | text, 16 characters | | | | +| XREF-CUST-ID | | 9(09) | unsigned integer, 9 digits (zoned decimal) | | | | +| XREF-ACCT-ID | | 9(11) | unsigned integer, 11 digits (zoned decimal) | | | | +| FILLER | | X(14) | text, 14 characters | | | | + +#### CVCRD01Y + +Source: `app/cpy/CVCRD01Y.cpy`. + +Record `CC-WORK-AREAS`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| CC-WORK-AREA | | | group | | | | +| CCARD-AID | CC-WORK-AREA | X(5) | text, 5 characters | | | CCARD-AID-ENTER = ENTER; CCARD-AID-CLEAR = CLEAR; CCARD-AID-PA1 = PA1 ; CCARD-AID-PA2 = PA2 ; CCARD-AID-PFK01 = PFK01; CCARD-AID-PFK02 = PFK02; CCARD-AID-PFK03 = PFK03; CCARD-AID-PFK04 = PFK04; CCARD-AID-PFK05 = PFK05; CCARD-AID-PFK06 = PFK06; CCARD-AID-PFK07 = PFK07; CCARD-AID-PFK08 = PFK08; CCARD-AID-PFK09 = PFK09; CCARD-AID-PFK10 = PFK10; CCARD-AID-PFK11 = PFK11; CCARD-AID-PFK12 = PFK12 | +| CCARD-NEXT-PROG | CC-WORK-AREA | X(8) | text, 8 characters | | | | +| CCARD-NEXT-MAPSET | CC-WORK-AREA | X(7) | text, 7 characters | | | | +| CCARD-NEXT-MAP | CC-WORK-AREA | X(7) | text, 7 characters | | | | +| CCARD-ERROR-MSG | CC-WORK-AREA | X(75) | text, 75 characters | | | | +| CCARD-RETURN-MSG | CC-WORK-AREA | X(75) | text, 75 characters | | | CCARD-RETURN-MSG-OFF = | +| CC-ACCT-ID | CC-WORK-AREA | X(11) | text, 11 characters | | | | +| CC-ACCT-ID-N | CC-WORK-AREA | 9(11) | unsigned integer, 11 digits (zoned decimal) | | | redefines CC-ACCT-ID | +| CC-CARD-NUM | CC-WORK-AREA | X(16) | text, 16 characters | | | | +| CC-CARD-NUM-N | CC-WORK-AREA | 9(16) | unsigned integer, 16 digits (zoned decimal) | | | redefines CC-CARD-NUM | +| CC-CUST-ID | CC-WORK-AREA | X(09) | text, 9 characters | | | | +| CC-CUST-ID-N | CC-WORK-AREA | 9(9) | unsigned integer, 9 digits (zoned decimal) | | | redefines CC-CUST-ID | + +#### CVCUS01Y + +Source: `app/cpy/CVCUS01Y.cpy`. + +Record `CUSTOMER-RECORD`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| CUST-ID | | 9(09) | unsigned integer, 9 digits (zoned decimal) | | | | +| CUST-FIRST-NAME | | X(25) | text, 25 characters | | | | +| CUST-MIDDLE-NAME | | X(25) | text, 25 characters | | | | +| CUST-LAST-NAME | | X(25) | text, 25 characters | | | | +| CUST-ADDR-LINE-1 | | X(50) | text, 50 characters | | | | +| CUST-ADDR-LINE-2 | | X(50) | text, 50 characters | | | | +| CUST-ADDR-LINE-3 | | X(50) | text, 50 characters | | | | +| CUST-ADDR-STATE-CD | | X(02) | text, 2 characters | | | | +| CUST-ADDR-COUNTRY-CD | | X(03) | text, 3 characters | | | | +| CUST-ADDR-ZIP | | X(10) | text, 10 characters | | | | +| CUST-PHONE-NUM-1 | | X(15) | text, 15 characters | | | | +| CUST-PHONE-NUM-2 | | X(15) | text, 15 characters | | | | +| CUST-SSN | | 9(09) | unsigned integer, 9 digits (zoned decimal) | | | | +| CUST-GOVT-ISSUED-ID | | X(20) | text, 20 characters | | | | +| CUST-DOB-YYYY-MM-DD | | X(10) | text, 10 characters | | | | +| CUST-EFT-ACCOUNT-ID | | X(10) | text, 10 characters | | | | +| CUST-PRI-CARD-HOLDER-IND | | X(01) | text, 1 character | | | | +| CUST-FICO-CREDIT-SCORE | | 9(03) | unsigned integer, 3 digits (zoned decimal) | | | | +| FILLER | | X(168) | text, 168 characters | | | | + +#### CVEXPORT + +Source: `app/cpy/CVEXPORT.cpy`. + +Record `EXPORT-RECORD`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| EXPORT-REC-TYPE | | X(1) | text, 1 character | | | | +| EXPORT-TIMESTAMP | | X(26) | text, 26 characters | | | | +| EXPORT-TIMESTAMP-R | | | group | | | redefines EXPORT-TIMESTAMP | +| EXPORT-DATE | EXPORT-TIMESTAMP-R | X(10) | text, 10 characters | | | | +| EXPORT-DATE-TIME-SEP | EXPORT-TIMESTAMP-R | X(1) | text, 1 character | | | | +| EXPORT-TIME | EXPORT-TIMESTAMP-R | X(15) | text, 15 characters | | | | +| EXPORT-SEQUENCE-NUM | | 9(9) COMP | unsigned integer, 9 digits (binary) | | | | +| EXPORT-BRANCH-ID | | X(4) | text, 4 characters | | | | +| EXPORT-REGION-CODE | | X(5) | text, 5 characters | | | | +| EXPORT-RECORD-DATA | | X(460) | text, 460 characters | | | | +| EXPORT-CUSTOMER-DATA | | | group | | | redefines EXPORT-RECORD-DATA | +| EXP-CUST-ID | EXPORT-CUSTOMER-DATA | 9(09) COMP | unsigned integer, 9 digits (binary) | | | | +| EXP-CUST-FIRST-NAME | EXPORT-CUSTOMER-DATA | X(25) | text, 25 characters | | | | +| EXP-CUST-MIDDLE-NAME | EXPORT-CUSTOMER-DATA | X(25) | text, 25 characters | | | | +| EXP-CUST-LAST-NAME | EXPORT-CUSTOMER-DATA | X(25) | text, 25 characters | | | | +| EXP-CUST-ADDR-LINES | EXPORT-CUSTOMER-DATA | | group | | | occurs 3 | +| EXP-CUST-ADDR-LINE | EXPORT-CUSTOMER-DATA/EXP-CUST-ADDR-LINES | X(50) | text, 50 characters | | | | +| EXP-CUST-ADDR-STATE-CD | EXPORT-CUSTOMER-DATA | X(02) | text, 2 characters | | | | +| EXP-CUST-ADDR-COUNTRY-CD | EXPORT-CUSTOMER-DATA | X(03) | text, 3 characters | | | | +| EXP-CUST-ADDR-ZIP | EXPORT-CUSTOMER-DATA | X(10) | text, 10 characters | | | | +| EXP-CUST-PHONE-NUMS | EXPORT-CUSTOMER-DATA | | group | | | occurs 2 | +| EXP-CUST-PHONE-NUM | EXPORT-CUSTOMER-DATA/EXP-CUST-PHONE-NUMS | X(15) | text, 15 characters | | | | +| EXP-CUST-SSN | EXPORT-CUSTOMER-DATA | 9(09) | unsigned integer, 9 digits (zoned decimal) | | | | +| EXP-CUST-GOVT-ISSUED-ID | EXPORT-CUSTOMER-DATA | X(20) | text, 20 characters | | | | +| EXP-CUST-DOB-YYYY-MM-DD | EXPORT-CUSTOMER-DATA | X(10) | text, 10 characters | | | | +| EXP-CUST-EFT-ACCOUNT-ID | EXPORT-CUSTOMER-DATA | X(10) | text, 10 characters | | | | +| EXP-CUST-PRI-CARD-HOLDER-IND | EXPORT-CUSTOMER-DATA | X(01) | text, 1 character | | | | +| EXP-CUST-FICO-CREDIT-SCORE | EXPORT-CUSTOMER-DATA | 9(03) COMP-3 | unsigned integer, 3 digits (packed decimal) | | | | +| FILLER | EXPORT-CUSTOMER-DATA | X(134) | text, 134 characters | | | | +| EXPORT-ACCOUNT-DATA | | | group | | | redefines EXPORT-RECORD-DATA | +| EXP-ACCT-ID | EXPORT-ACCOUNT-DATA | 9(11) | unsigned integer, 11 digits (zoned decimal) | | | | +| EXP-ACCT-ACTIVE-STATUS | EXPORT-ACCOUNT-DATA | X(01) | text, 1 character | | | | +| EXP-ACCT-CURR-BAL | EXPORT-ACCOUNT-DATA | S9(10)V99 COMP-3 | signed decimal, 10 integer and 2 fraction digits (packed decimal) | | | | +| EXP-ACCT-CREDIT-LIMIT | EXPORT-ACCOUNT-DATA | S9(10)V99 | signed decimal, 10 integer and 2 fraction digits (zoned decimal) | | | | +| EXP-ACCT-CASH-CREDIT-LIMIT | EXPORT-ACCOUNT-DATA | S9(10)V99 COMP-3 | signed decimal, 10 integer and 2 fraction digits (packed decimal) | | | | +| EXP-ACCT-OPEN-DATE | EXPORT-ACCOUNT-DATA | X(10) | text, 10 characters | | | | +| EXP-ACCT-EXPIRAION-DATE | EXPORT-ACCOUNT-DATA | X(10) | text, 10 characters | | | | +| EXP-ACCT-REISSUE-DATE | EXPORT-ACCOUNT-DATA | X(10) | text, 10 characters | | | | +| EXP-ACCT-CURR-CYC-CREDIT | EXPORT-ACCOUNT-DATA | S9(10)V99 | signed decimal, 10 integer and 2 fraction digits (zoned decimal) | | | | +| EXP-ACCT-CURR-CYC-DEBIT | EXPORT-ACCOUNT-DATA | S9(10)V99 COMP | signed decimal, 10 integer and 2 fraction digits (binary) | | | | +| EXP-ACCT-ADDR-ZIP | EXPORT-ACCOUNT-DATA | X(10) | text, 10 characters | | | | +| EXP-ACCT-GROUP-ID | EXPORT-ACCOUNT-DATA | X(10) | text, 10 characters | | | | +| FILLER | EXPORT-ACCOUNT-DATA | X(352) | text, 352 characters | | | | +| EXPORT-TRANSACTION-DATA | | | group | | | redefines EXPORT-RECORD-DATA | +| EXP-TRAN-ID | EXPORT-TRANSACTION-DATA | X(16) | text, 16 characters | | | | +| EXP-TRAN-TYPE-CD | EXPORT-TRANSACTION-DATA | X(02) | text, 2 characters | | | | +| EXP-TRAN-CAT-CD | EXPORT-TRANSACTION-DATA | 9(04) | unsigned integer, 4 digits (zoned decimal) | | | | +| EXP-TRAN-SOURCE | EXPORT-TRANSACTION-DATA | X(10) | text, 10 characters | | | | +| EXP-TRAN-DESC | EXPORT-TRANSACTION-DATA | X(100) | text, 100 characters | | | | +| EXP-TRAN-AMT | EXPORT-TRANSACTION-DATA | S9(09)V99 COMP-3 | signed decimal, 9 integer and 2 fraction digits (packed decimal) | | | | +| EXP-TRAN-MERCHANT-ID | EXPORT-TRANSACTION-DATA | 9(09) COMP | unsigned integer, 9 digits (binary) | | | | +| EXP-TRAN-MERCHANT-NAME | EXPORT-TRANSACTION-DATA | X(50) | text, 50 characters | | | | +| EXP-TRAN-MERCHANT-CITY | EXPORT-TRANSACTION-DATA | X(50) | text, 50 characters | | | | +| EXP-TRAN-MERCHANT-ZIP | EXPORT-TRANSACTION-DATA | X(10) | text, 10 characters | | | | +| EXP-TRAN-CARD-NUM | EXPORT-TRANSACTION-DATA | X(16) | text, 16 characters | | | | +| EXP-TRAN-ORIG-TS | EXPORT-TRANSACTION-DATA | X(26) | text, 26 characters | | | | +| EXP-TRAN-PROC-TS | EXPORT-TRANSACTION-DATA | X(26) | text, 26 characters | | | | +| FILLER | EXPORT-TRANSACTION-DATA | X(140) | text, 140 characters | | | | +| EXPORT-CARD-XREF-DATA | | | group | | | redefines EXPORT-RECORD-DATA | +| EXP-XREF-CARD-NUM | EXPORT-CARD-XREF-DATA | X(16) | text, 16 characters | | | | +| EXP-XREF-CUST-ID | EXPORT-CARD-XREF-DATA | 9(09) | unsigned integer, 9 digits (zoned decimal) | | | | +| EXP-XREF-ACCT-ID | EXPORT-CARD-XREF-DATA | 9(11) COMP | unsigned integer, 11 digits (binary) | | | | +| FILLER | EXPORT-CARD-XREF-DATA | X(427) | text, 427 characters | | | | +| EXPORT-CARD-DATA | | | group | | | redefines EXPORT-RECORD-DATA | +| EXP-CARD-NUM | EXPORT-CARD-DATA | X(16) | text, 16 characters | | | | +| EXP-CARD-ACCT-ID | EXPORT-CARD-DATA | 9(11) COMP | unsigned integer, 11 digits (binary) | | | | +| EXP-CARD-CVV-CD | EXPORT-CARD-DATA | 9(03) COMP | unsigned integer, 3 digits (binary) | | | | +| EXP-CARD-EMBOSSED-NAME | EXPORT-CARD-DATA | X(50) | text, 50 characters | | | | +| EXP-CARD-EXPIRAION-DATE | EXPORT-CARD-DATA | X(10) | text, 10 characters | | | | +| EXP-CARD-ACTIVE-STATUS | EXPORT-CARD-DATA | X(01) | text, 1 character | | | | +| FILLER | EXPORT-CARD-DATA | X(373) | text, 373 characters | | | | + +#### CVTRA01Y + +Source: `app/cpy/CVTRA01Y.cpy`. + +Record `TRAN-CAT-BAL-RECORD`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| TRAN-CAT-KEY | | | group | | | | +| TRANCAT-ACCT-ID | TRAN-CAT-KEY | 9(11) | unsigned integer, 11 digits (zoned decimal) | | | | +| TRANCAT-TYPE-CD | TRAN-CAT-KEY | X(02) | text, 2 characters | | | | +| TRANCAT-CD | TRAN-CAT-KEY | 9(04) | unsigned integer, 4 digits (zoned decimal) | | | | +| TRAN-CAT-BAL | | S9(09)V99 | signed decimal, 9 integer and 2 fraction digits (zoned decimal) | | | | +| FILLER | | X(22) | text, 22 characters | | | | + +#### CVTRA02Y + +Source: `app/cpy/CVTRA02Y.cpy`. + +Record `DIS-GROUP-RECORD`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| DIS-GROUP-KEY | | | group | | | | +| DIS-ACCT-GROUP-ID | DIS-GROUP-KEY | X(10) | text, 10 characters | | | | +| DIS-TRAN-TYPE-CD | DIS-GROUP-KEY | X(02) | text, 2 characters | | | | +| DIS-TRAN-CAT-CD | DIS-GROUP-KEY | 9(04) | unsigned integer, 4 digits (zoned decimal) | | | | +| DIS-INT-RATE | | S9(04)V99 | signed decimal, 4 integer and 2 fraction digits (zoned decimal) | | | | +| FILLER | | X(28) | text, 28 characters | | | | + +#### CVTRA03Y + +Source: `app/cpy/CVTRA03Y.cpy`. + +Record `TRAN-TYPE-RECORD`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| TRAN-TYPE | | X(02) | text, 2 characters | | | | +| TRAN-TYPE-DESC | | X(50) | text, 50 characters | | | | +| FILLER | | X(08) | text, 8 characters | | | | + +#### CVTRA04Y + +Source: `app/cpy/CVTRA04Y.cpy`. + +Record `TRAN-CAT-RECORD`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| TRAN-CAT-KEY | | | group | | | | +| TRAN-TYPE-CD | TRAN-CAT-KEY | X(02) | text, 2 characters | | | | +| TRAN-CAT-CD | TRAN-CAT-KEY | 9(04) | unsigned integer, 4 digits (zoned decimal) | | | | +| TRAN-CAT-TYPE-DESC | | X(50) | text, 50 characters | | | | +| FILLER | | X(04) | text, 4 characters | | | | + +#### CVTRA05Y + +Source: `app/cpy/CVTRA05Y.cpy`. + +Record `TRAN-RECORD`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| TRAN-ID | | X(16) | text, 16 characters | | | | +| TRAN-TYPE-CD | | X(02) | text, 2 characters | | | | +| TRAN-CAT-CD | | 9(04) | unsigned integer, 4 digits (zoned decimal) | | | | +| TRAN-SOURCE | | X(10) | text, 10 characters | | | | +| TRAN-DESC | | X(100) | text, 100 characters | | | | +| TRAN-AMT | | S9(09)V99 | signed decimal, 9 integer and 2 fraction digits (zoned decimal) | | | | +| TRAN-MERCHANT-ID | | 9(09) | unsigned integer, 9 digits (zoned decimal) | | | | +| TRAN-MERCHANT-NAME | | X(50) | text, 50 characters | | | | +| TRAN-MERCHANT-CITY | | X(50) | text, 50 characters | | | | +| TRAN-MERCHANT-ZIP | | X(10) | text, 10 characters | | | | +| TRAN-CARD-NUM | | X(16) | text, 16 characters | | | | +| TRAN-ORIG-TS | | X(26) | text, 26 characters | | | | +| TRAN-PROC-TS | | X(26) | text, 26 characters | | | | +| FILLER | | X(20) | text, 20 characters | | | | + +#### CVTRA06Y + +Source: `app/cpy/CVTRA06Y.cpy`. + +Record `DALYTRAN-RECORD`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| DALYTRAN-ID | | X(16) | text, 16 characters | | | | +| DALYTRAN-TYPE-CD | | X(02) | text, 2 characters | | | | +| DALYTRAN-CAT-CD | | 9(04) | unsigned integer, 4 digits (zoned decimal) | | | | +| DALYTRAN-SOURCE | | X(10) | text, 10 characters | | | | +| DALYTRAN-DESC | | X(100) | text, 100 characters | | | | +| DALYTRAN-AMT | | S9(09)V99 | signed decimal, 9 integer and 2 fraction digits (zoned decimal) | | | | +| DALYTRAN-MERCHANT-ID | | 9(09) | unsigned integer, 9 digits (zoned decimal) | | | | +| DALYTRAN-MERCHANT-NAME | | X(50) | text, 50 characters | | | | +| DALYTRAN-MERCHANT-CITY | | X(50) | text, 50 characters | | | | +| DALYTRAN-MERCHANT-ZIP | | X(10) | text, 10 characters | | | | +| DALYTRAN-CARD-NUM | | X(16) | text, 16 characters | | | | +| DALYTRAN-ORIG-TS | | X(26) | text, 26 characters | | | | +| DALYTRAN-PROC-TS | | X(26) | text, 26 characters | | | | +| FILLER | | X(20) | text, 20 characters | | | | + +#### CVTRA07Y + +Source: `app/cpy/CVTRA07Y.cpy`. + +Record `REPORT-NAME-HEADER`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| REPT-SHORT-NAME | | X(38) | text, 38 characters | | | | +| REPT-LONG-NAME | | X(41) | text, 41 characters | | | | +| REPT-DATE-HEADER | | X(12) | text, 12 characters | | | | +| REPT-START-DATE | | X(10) | text, 10 characters | | | | +| FILLER | | X(04) | text, 4 characters | | | | +| REPT-END-DATE | | X(10) | text, 10 characters | | | | + +Record `TRANSACTION-DETAIL-REPORT`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| TRAN-REPORT-TRANS-ID | | X(16) | text, 16 characters | | | | +| FILLER | | X(01) | text, 1 character | | | | +| TRAN-REPORT-ACCOUNT-ID | | X(11) | text, 11 characters | | | | +| FILLER | | X(01) | text, 1 character | | | | +| TRAN-REPORT-TYPE-CD | | X(02) | text, 2 characters | | | | +| FILLER | | X(01) | text, 1 character | | | | +| TRAN-REPORT-TYPE-DESC | | X(15) | text, 15 characters | | | | +| FILLER | | X(01) | text, 1 character | | | | +| TRAN-REPORT-CAT-CD | | 9(04) | unsigned integer, 4 digits (zoned decimal) | | | | +| FILLER | | X(01) | text, 1 character | | | | +| TRAN-REPORT-CAT-DESC | | X(29) | text, 29 characters | | | | +| FILLER | | X(01) | text, 1 character | | | | +| TRAN-REPORT-SOURCE | | X(10) | text, 10 characters | | | | +| FILLER | | X(04) | text, 4 characters | | | | +| TRAN-REPORT-AMT | | -ZZZ,ZZZ,ZZZ.ZZ | formatted text, 15 characters (a number shown with 11 digits) | | | | +| FILLER | | X(02) | text, 2 characters | | | | + +Record `TRANSACTION-HEADER-1`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| FILLER | | X(17) | text, 17 characters | | | | +| FILLER | | X(12) | text, 12 characters | | | | +| FILLER | | X(19) | text, 19 characters | | | | +| FILLER | | X(35) | text, 35 characters | | | | +| FILLER | | X(14) | text, 14 characters | | | | +| FILLER | | X | text, 1 character | | | | +| FILLER | | X(16) | text, 16 characters | | | | + +Record `TRANSACTION-HEADER-2`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| TRANSACTION-HEADER-2 | | X(133) | text, 133 characters | | | | + +Record `REPORT-PAGE-TOTALS`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| FILLER | | X(11) | text, 11 characters | | | | +| FILLER | | X(86) | text, 86 characters | | | | +| REPT-PAGE-TOTAL | | +ZZZ,ZZZ,ZZZ.ZZ | formatted text, 15 characters (a number shown with 11 digits) | | | | + +Record `REPORT-ACCOUNT-TOTALS`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| FILLER | | X(13) | text, 13 characters | | | | +| FILLER | | X(84) | text, 84 characters | | | | +| REPT-ACCOUNT-TOTAL | | +ZZZ,ZZZ,ZZZ.ZZ | formatted text, 15 characters (a number shown with 11 digits) | | | | + +Record `REPORT-GRAND-TOTALS`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| FILLER | | X(11) | text, 11 characters | | | | +| FILLER | | X(86) | text, 86 characters | | | | +| REPT-GRAND-TOTAL | | +ZZZ,ZZZ,ZZZ.ZZ | formatted text, 15 characters (a number shown with 11 digits) | | | | + +#### IMSFUNCS + +Source: `app/app-authorization-ims-db2-mq/cpy/IMSFUNCS.cpy`. + +Record `FUNC-CODES`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| FUNC-GU | | X(04) | text, 4 characters | | | | +| FUNC-GHU | | X(04) | text, 4 characters | | | | +| FUNC-GN | | X(04) | text, 4 characters | | | | +| FUNC-GHN | | X(04) | text, 4 characters | | | | +| FUNC-GNP | | X(04) | text, 4 characters | | | | +| FUNC-GHNP | | X(04) | text, 4 characters | | | | +| FUNC-REPL | | X(04) | text, 4 characters | | | | +| FUNC-ISRT | | X(04) | text, 4 characters | | | | +| FUNC-DLET | | X(04) | text, 4 characters | | | | +| PARMCOUNT | | S9(05) COMP-5 | signed integer, 5 digits (native binary) | | | | + +#### PADFLPCB + +Source: `app/app-authorization-ims-db2-mq/cpy/PADFLPCB.CPY`. + +Record `PADFLPCB`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PADFL-DBDNAME | | X(08) | text, 8 characters | | | | +| PADFL-SEG-LEVEL | | X(02) | text, 2 characters | | | | +| PADFL-PCB-STATUS | | X(02) | text, 2 characters | | | | +| PADFL-PCB-PROCOPT | | X(04) | text, 4 characters | | | | +| FILLER | | S9(05) COMP | signed integer, 5 digits (binary) | | | | +| PADFL-SEG-NAME | | X(08) | text, 8 characters | | | | +| PADFL-KEYFB-NAME | | S9(05) COMP | signed integer, 5 digits (binary) | | | | +| PADFL-NUM-SENSEGS | | S9(05) COMP | signed integer, 5 digits (binary) | | | | +| PADFL-KEYFB | | X(255) | text, 255 characters | | | | + +#### PASFLPCB + +Source: `app/app-authorization-ims-db2-mq/cpy/PASFLPCB.CPY`. + +Record `PASFLPCB`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PASFL-DBDNAME | | X(08) | text, 8 characters | | | | +| PASFL-SEG-LEVEL | | X(02) | text, 2 characters | | | | +| PASFL-PCB-STATUS | | X(02) | text, 2 characters | | | | +| PASFL-PCB-PROCOPT | | X(04) | text, 4 characters | | | | +| FILLER | | S9(05) COMP | signed integer, 5 digits (binary) | | | | +| PASFL-SEG-NAME | | X(08) | text, 8 characters | | | | +| PASFL-KEYFB-NAME | | S9(05) COMP | signed integer, 5 digits (binary) | | | | +| PASFL-NUM-SENSEGS | | S9(05) COMP | signed integer, 5 digits (binary) | | | | +| PASFL-KEYFB | | X(100) | text, 100 characters | | | | + +#### PAUTBPCB + +Source: `app/app-authorization-ims-db2-mq/cpy/PAUTBPCB.CPY`. + +Record `PAUTBPCB`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PAUT-DBDNAME | | X(08) | text, 8 characters | | | | +| PAUT-SEG-LEVEL | | X(02) | text, 2 characters | | | | +| PAUT-PCB-STATUS | | X(02) | text, 2 characters | | | | +| PAUT-PCB-PROCOPT | | X(04) | text, 4 characters | | | | +| FILLER | | S9(05) COMP | signed integer, 5 digits (binary) | | | | +| PAUT-SEG-NAME | | X(08) | text, 8 characters | | | | +| PAUT-KEYFB-NAME | | S9(05) COMP | signed integer, 5 digits (binary) | | | | +| PAUT-NUM-SENSEGS | | S9(05) COMP | signed integer, 5 digits (binary) | | | | +| PAUT-KEYFB | | X(255) | text, 255 characters | | | | diff --git a/reports/carddemo/design/package/claude-code/specs/asgd-01-re-sequence-transactions-by-card-number.md b/reports/carddemo/design/package/claude-code/specs/asgd-01-re-sequence-transactions-by-card-number.md new file mode 100644 index 00000000..0351d6a6 --- /dev/null +++ b/reports/carddemo/design/package/claude-code/specs/asgd-01-re-sequence-transactions-by-card-number.md @@ -0,0 +1,75 @@ +# Re-sequence transactions by card number (ASGD-C01) + +**Status: DRAFT**: the function is not signed off yet. Confirm with the owner before building to it. + +Customer Account Self-Service · Account Statement Generation and Delivery · runs as scheduled job · risk high + +## Introduction + +A scheduled step that puts every transaction in order by card number, then by transaction ID, so statements can be built one card at a time. The statement operations team runs it before statements are produced. It must never lose, duplicate or reorder transactions, and if the step fails it must not leave a partial work copy behind. + +**User story:** As a statement operations team, I want the transaction master re-sorted by card number and transaction ID into a work copy, so that statements can be built card by card. + +## Requirements + +### Requirement 1: ASGD-REQ-F-001 (design note) + +#### Acceptance criteria + +1. The system shall sort the transaction master (AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS) ascending by card number and then by transaction ID, moving the 16-byte card number to the front of each record, and write a new card-ordered work copy (AWS.M2.CARDDEMO.TRXFL.SEQ) of fixed 350-byte records. (rules ASGD-BR-001) +2. GIVEN transaction 0000000000000002 card: 4111111111111111; transaction 0000000000000001 card: 4222222222222222 WHEN Card Statement Production runs THEN The work copy lists card 4111111111111111's transaction first, each record starting with its card number. (ASGD-C01-AC-01; ASGD-BR-001) + +### Requirement 2: ASGD-REQ-F-002 (error handling) + +#### Acceptance criteria + +1. When the sort step ends normally, the system shall keep the card-ordered work copy. (rules ASGD-BR-002) +2. GIVEN sort step outcome: abend WHEN the sort step ends normally THEN AWS.M2.CARDDEMO.TRXFL.SEQ is not kept. (ASGD-C01-AC-02; ASGD-BR-002) + +### Requirement 3: ASGD-REQ-F-003 (error handling) + +#### Acceptance criteria + +1. If the sort step ends abnormally, then the system shall discard the card-ordered work copy, with no message for this case defined in the rules. (rules ASGD-BR-002) +2. GIVEN sort step outcome: abend WHEN the sort step ends normally THEN AWS.M2.CARDDEMO.TRXFL.SEQ is not kept. (ASGD-C01-AC-02; ASGD-BR-002) + +## Screens and components + +No screens: it runs as scheduled job. + +## Data models + +None found in the source. + +## Business rules + +Classes: a *business rule* is kept exactly; *formatting* may be restyled; *error handling* keeps its messages; a *side effect* is kept; a *historical artifact* is carried only after asking the owner; a *design note* is for the build, below. + +| ID | Name | Class | Rule | Confidence | Evidence | +|---|---|---|---|---|---| +| ASGD-BR-001 | Re-sequence transactions by card number | design note | THE Card Statement Production SHALL sort the transaction master (AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS) ascending by card number and then by transaction ID, moving the 16-byte card number to the front of each record, and write a new card-ordered work copy (AWS.M2.CARDDEMO.TRXFL.SEQ) of fixed 350-byte records. | medium | app/jcl/CREASTMT.JCL:44-55, app/cpy/CVTRA05Y.cpy:4-18 | +| ASGD-BR-002 | Re-sequence transactions by card number | error handling | WHEN the sort step ends normally, THE Card Statement Production SHALL keep the work copy, and WHEN it ends abnormally, SHALL discard it. | medium | app/jcl/CREASTMT.JCL:44-55, app/cpy/CVTRA05Y.cpy:4-18 | + +### Worked examples + +- ASGD-BR-001: transaction 0000000000000002 card = 4111111111111111; transaction 0000000000000001 card = 4222222222222222 → The work copy lists card 4111111111111111's transaction first, each record starting with its card number. +- ASGD-BR-002: sort step outcome = abend → AWS.M2.CARDDEMO.TRXFL.SEQ is not kept. + +## Decision tables + +None. + +## Design notes + +- ASGD-BR-001: Produce a card-ordered extract of all transactions, sorted ascending by card number (16 characters) and then by transaction ID. Store it as a staging data set or a query or view that later steps read in that order. The new application does not have to copy the card number to the front of each record or use 350-byte fixed records. What matters is the sort order and that every transaction is included. + +## Open questions + +- SME-030: When producing statements, if the customer or account for a card cannot be found, should that statement be skipped, the run stopped, or an exception recorded? (Statement operations business owner) On ASGD-BR-002. +- SME-031: On statements, should address line 3, state, country and ZIP each be cut off at their first space, even when the value has more than one word? (Statement operations business owner) On ASGD-BR-002. +- SME-032: Statement production assumes card cross-references are processed in ascending card number order, matching the sorted transactions. Must the new system guarantee that order? (Data architecture team) On ASGD-BR-002. +- DEF-101: Is this intended? The reformatting copies only 50 bytes from position 279 of the transaction record, while the two timestamps there take 52 bytes, so the last 2 bytes of the processed timestamp are dropped from the work copy. (Subject-matter expert) On ASGD-BR-002. + +## Testing + +Every acceptance criterion in requirements.md is a test named by its ID (2 in all). diff --git a/reports/carddemo/design/package/claude-code/specs/asgd-02-load-and-group-card-ordered-transactions.md b/reports/carddemo/design/package/claude-code/specs/asgd-02-load-and-group-card-ordered-transactions.md new file mode 100644 index 00000000..85be1a97 --- /dev/null +++ b/reports/carddemo/design/package/claude-code/specs/asgd-02-load-and-group-card-ordered-transactions.md @@ -0,0 +1,86 @@ +# Load and group card-ordered transactions (ASGD-C02) + +**Status: DRAFT**: the function is not signed off yet. Confirm with the owner before building to it. + +Customer Account Self-Service · Account Statement Generation and Delivery · runs as scheduled job · risk high + +## Introduction + +Loads the card-ordered transactions into a store keyed by card number and transaction ID, and groups them by card. This lets each statement list only that card's transactions, in transaction-ID order. It must never put a transaction under the wrong card, and it must not silently drop transactions when the legacy limits (51 cards, 10 transactions per card) are exceeded. + +**User story:** As a statement operations team, I want the card-ordered transactions loaded into a keyed file and grouped by card, so that each card's statement lists exactly that card's transactions in transaction-ID order. + +## Requirements + +### Requirement 1: ASGD-REQ-F-004 (design note) + +#### Acceptance criteria + +1. When every earlier step of the statement job ended with return code 0, the system shall copy every record of the card-ordered work copy (AWS.M2.CARDDEMO.TRXFL.SEQ) into the keyed transaction file (AWS.M2.CARDDEMO.TRXFL.VSAM.KSDS), keyed on card number followed by transaction ID. (rules ASGD-BR-003) +2. GIVEN return code of the sort step: 0; records in work copy: 250 WHEN every earlier step of the statement job ended with return code 0 THEN All 250 records are loaded into the keyed transaction file. (ASGD-C02-AC-01; ASGD-BR-003) +3. GIVEN return code of the sort step: 16 WHEN every earlier step of the statement job ended with return code 0 THEN The copy is skipped. (ASGD-C02-AC-02; ASGD-BR-003) + +### Requirement 2: ASGD-REQ-F-005 (design note) + +#### Acceptance criteria + +1. While loading the card-and-transaction-ID-sorted transaction extract, the system shall add each transaction to the current card's slot while the card number is unchanged, and on a new card number shall close the previous card's transaction count and open a new card slot with a count of 1. (rules ASGD-BR-004) +2. GIVEN extract rows: 3 rows for card 4111000000000001, then 2 rows for card 4111000000000002 WHEN the statement run loads the card-and-transaction-ID-sorted transaction extract THEN Slot 1 holds card 4111000000000001 with count 3; slot 2 holds card 4111000000000002 with count 2 (ASGD-C02-AC-03; ASGD-BR-004) + +### Requirement 3: ASGD-REQ-N-001 (design note) + +#### Acceptance criteria + +1. The system shall hold at most 51 distinct cards for the whole transaction file and at most 10 transactions per card in memory, with no check when either limit is exceeded. (rules ASGD-BR-005) +2. GIVEN transactions for one card: 12 WHEN statement batch runs THEN Transactions 11 and 12 are stored outside the table; the statement may show wrong data or the job may abend (ASGD-C02-AC-04; ASGD-BR-005) +3. GIVEN distinct cards in the transaction file: 52 WHEN statement batch runs THEN The 52nd card is stored outside the table; statements may be wrong or the job may abend (ASGD-C02-AC-05; ASGD-BR-005) + +## Screens and components + +No screens: it runs as scheduled job. + +## Data models + +- COSTM01 (working storage of CBSTM03A): see data-contracts.md. +- CUSTREC (working storage of CBSTM03A): see data-contracts.md. +- CVACT01Y (working storage of CBSTM03A): see data-contracts.md. +- CVACT03Y (working storage of CBSTM03A): see data-contracts.md. + +## Business rules + +Classes: a *business rule* is kept exactly; *formatting* may be restyled; *error handling* keeps its messages; a *side effect* is kept; a *historical artifact* is carried only after asking the owner; a *design note* is for the build, below. + +| ID | Name | Class | Rule | Confidence | Evidence | +|---|---|---|---|---|---| +| ASGD-BR-003 | Load card-ordered transactions into keyed file | design note | WHEN every earlier step of the statement job ended with return code 0, THE Card Statement Production SHALL copy every record of the card-ordered work copy (AWS.M2.CARDDEMO.TRXFL.SEQ) into the keyed transaction file (AWS.M2.CARDDEMO.TRXFL.VSAM.KSDS), keyed on card number followed by transaction ID. | medium | app/jcl/CREASTMT.JCL:29-30, app/jcl/CREASTMT.JCL:56-61 | +| ASGD-BR-004 | Group transactions by card in table | design note | WHEN the statement run loads the card-and-transaction-ID-sorted transaction extract, THE statement batch SHALL add each transaction to the current card's slot while the card number is unchanged, and on a new card number SHALL close the previous card's transaction count and open a new card slot with a count of 1. | high | app/cbl/CBSTM03A.CBL:756-760, app/cbl/CBSTM03A.CBL:818-853, app/cbl/CBSTM03A.CBL:416-432, app/jcl/CREASTMT.JCL:44-61 | +| ASGD-BR-005 | In-memory capacity limit of 51 cards x 10 transactions per card | design note | THE statement batch SHALL hold at most 51 distinct cards for the whole transaction file and at most 10 transactions per card in memory, with no check when either limit is exceeded. | medium | app/cbl/CBSTM03A.CBL:225-233, app/cbl/CBSTM03A.CBL:818-830 | + +### Worked examples + +- ASGD-BR-003: return code of the sort step = 0; records in work copy = 250 → All 250 records are loaded into the keyed transaction file. +- ASGD-BR-003: return code of the sort step = 16 → The copy is skipped. +- ASGD-BR-004: extract rows = 3 rows for card 4111000000000001, then 2 rows for card 4111000000000002 → Slot 1 holds card 4111000000000001 with count 3; slot 2 holds card 4111000000000002 with count 2 +- ASGD-BR-005: transactions for one card = 12 → Transactions 11 and 12 are stored outside the table; the statement may show wrong data or the job may abend +- ASGD-BR-005: distinct cards in the transaction file = 52 → The 52nd card is stored outside the table; statements may be wrong or the job may abend + +## Decision tables + +None. + +## Design notes + +- ASGD-BR-003: Make card-ordered transactions available by the composite key (card number, transaction ID). An indexed table or a keyed staging store works. Load it only after every earlier step of the statement job has succeeded. Copy every record, and run the load as a gated step in the scheduled job. +- ASGD-BR-004: Group the sorted transactions by card number: a control break opens a new group with a count of 1 when the card number changes and adds to the current group while it stays the same. In the new application this is a group-by on card number that keeps transaction-ID order within each card. +- ASGD-BR-005: The legacy program holds at most 51 cards and 10 transactions per card in memory and does not check either limit. The new application should not have these fixed limits. It can stream or query per card, or size its collections dynamically. If a limit has to stay, exceeding it must be reported, not ignored. The business has to confirm whether to keep the legacy truncation. + +## Open questions + +- SME-030: When producing statements, if the customer or account for a card cannot be found, should that statement be skipped, the run stopped, or an exception recorded? (Statement operations business owner) On ASGD-BR-003, ASGD-BR-004. +- SME-031: On statements, should address line 3, state, country and ZIP each be cut off at their first space, even when the value has more than one word? (Statement operations business owner) On ASGD-BR-003, ASGD-BR-004. +- SME-032: Statement production assumes card cross-references are processed in ascending card number order, matching the sorted transactions. Must the new system guarantee that order? (Data architecture team) On ASGD-BR-003, ASGD-BR-004. +- DEF-174: Is this intended? Loading never checks the 51-card or 10-transaction limit, so larger files overrun the table instead of being rejected or handled. (Subject-matter expert) On ASGD-BR-005. + +## Testing + +Every acceptance criterion in requirements.md is a test named by its ID (5 in all). diff --git a/reports/carddemo/design/package/claude-code/specs/asgd-03-produce-one-statement-per-card.md b/reports/carddemo/design/package/claude-code/specs/asgd-03-produce-one-statement-per-card.md new file mode 100644 index 00000000..931e0935 --- /dev/null +++ b/reports/carddemo/design/package/claude-code/specs/asgd-03-produce-one-statement-per-card.md @@ -0,0 +1,118 @@ +# Produce one statement per card (ASGD-C03) + +**Status: DRAFT**: the function is not signed off yet. Confirm with the owner before building to it. + +Customer Account Self-Service · Account Statement Generation and Delivery · runs as scheduled job · risk high + +## Introduction + +The scheduled statement run produces one statement for every card in the card cross-reference, in plain text and in HTML. Each statement combines the cardholder's customer and account details with that card's transactions. It must produce exactly one statement per card, and if the run fails it must keep no statements from that run. + +**User story:** As a cardholder, I want a monthly statement in plain text and HTML for each of my cards, so that I can see my account details and transactions. + +## Requirements + +### Requirement 1: ASGD-REQ-F-006 (design note) + +#### Acceptance criteria + +1. When every earlier step of the statement job ended with return code 0, the system shall run the statement program (CBSTM03A) over the card-ordered transactions, card cross-reference, account master and customer master, writing a new plain-text statement report (AWS.M2.CARDDEMO.STATEMNT.PS, 80-byte lines) and a new HTML statement report (AWS.M2.CARDDEMO.STATEMNT.HTML, 100-byte lines). (rules ASGD-BR-006) +2. GIVEN return code of earlier steps: 0 WHEN every earlier step of the statement job ended with return code 0 THEN The statement program runs and both the text and HTML statement reports are created. (ASGD-C03-AC-01; ASGD-BR-006) +3. GIVEN return code of the re-sequencing step: 16 WHEN every earlier step of the statement job ended with return code 0 THEN The statement step is skipped and no statement reports are produced. (ASGD-C03-AC-02; ASGD-BR-006) + +### Requirement 2: ASGD-REQ-F-007 (design note) + +#### Acceptance criteria + +1. The system shall open both statement output files, load the whole transaction file into memory, open the cross-reference, customer and account files, build one statement per cross-reference card, then close the transaction, cross-reference, customer and account files and the two output files, in that order. (rules ASGD-BR-007, ASGD-BR-008) +2. GIVEN cross-reference cards: 3; transaction records: 8 WHEN statement batch runs THEN All 8 transactions are loaded first, then 3 statements are written, then all files are closed (ASGD-C03-AC-03; ASGD-BR-007) +3. GIVEN File: 'ACCTFILE' WHEN statement program (CBSTM03A) runs THEN It is opened, read by key for each card, and closed at the end. (ASGD-C03-AC-04; ASGD-BR-008) + +### Requirement 3: ASGD-REQ-F-008 (business rule) + +#### Acceptance criteria + +1. The system shall read the card cross-reference file in card-number order and produce one statement per cross-reference record until the file ends. (rules ASGD-BR-009) +2. GIVEN Account: 00000000011; Cards on cross-reference: 2 WHEN statement job runs THEN Two statements are produced, each with the same account balance and FICO score but only its own card's transactions (ASGD-C03-AC-05; ASGD-BR-009) +3. GIVEN Card on cross-reference: 4111000099990000; Transactions for card: none WHEN statement job runs THEN A statement is still produced, with no transaction lines and a total of 0.00 (ASGD-C03-AC-06; ASGD-BR-009) + +### Requirement 4: ASGD-REQ-F-009 (design note) + +#### Acceptance criteria + +1. The system shall, for each cross-reference record, look up the customer by the record's customer ID and the account by the record's account ID, then write the statement header and details, then the card's transactions, total and footer. (rules ASGD-BR-010) +2. GIVEN Cross-reference customer ID: 000000001; Cross-reference account ID: 00000000011 WHEN Produce one statement per card applies THEN Name and address come from customer 000000001; balance comes from account 00000000011 (ASGD-C03-AC-07; ASGD-BR-010) + +### Requirement 5: ASGD-REQ-F-010 (error handling) + +#### Acceptance criteria + +1. When the statement step ends normally, the system shall keep both statement reports. (rules ASGD-BR-011) +2. GIVEN statement step outcome: abend WHEN the statement step ends normally THEN Neither AWS.M2.CARDDEMO.STATEMNT.PS nor AWS.M2.CARDDEMO.STATEMNT.HTML is kept. (ASGD-C03-AC-08; ASGD-BR-011) + +### Requirement 6: ASGD-REQ-F-011 (error handling) + +#### Acceptance criteria + +1. If the statement step ends abnormally, then the system shall delete the text and HTML statement files, so no statements from that run are kept. (rules ASGD-BR-011, ASGD-BR-012) +2. GIVEN statement step outcome: abend WHEN the statement step ends normally THEN Neither AWS.M2.CARDDEMO.STATEMNT.PS nor AWS.M2.CARDDEMO.STATEMNT.HTML is kept. (ASGD-C03-AC-08; ASGD-BR-011) +3. GIVEN statements written before failure: 40 WHEN the statement step abends THEN Both statement files are deleted at abnormal end (ASGD-C03-AC-09; ASGD-BR-012) + +## Screens and components + +No screens: it runs as scheduled job. + +## Data models + +- COSTM01 (working storage of CBSTM03A): see data-contracts.md. +- CUSTREC (working storage of CBSTM03A): see data-contracts.md. +- CVACT01Y (working storage of CBSTM03A): see data-contracts.md. +- CVACT03Y (working storage of CBSTM03A): see data-contracts.md. + +## Business rules + +Classes: a *business rule* is kept exactly; *formatting* may be restyled; *error handling* keeps its messages; a *side effect* is kept; a *historical artifact* is carried only after asking the owner; a *design note* is for the build, below. + +| ID | Name | Class | Rule | Confidence | Evidence | +|---|---|---|---|---|---| +| ASGD-BR-006 | Produce text and HTML card statements | design note | WHEN every earlier step of the statement job ended with return code 0, THE Card Statement Production SHALL run the statement program (CBSTM03A) over the card-ordered transactions, card cross-reference, account master and customer master, writing a new plain-text statement report (AWS.M2.CARDDEMO.STATEMNT.PS, 80-byte lines) and a new HTML statement report (AWS.M2.CARDDEMO.STATEMNT.HTML, 100-byte lines). | medium | app/jcl/CREASTMT.JCL:79-96, app/cbl/CBSTM03A.CBL:39-47, app/scheduler/CardDemo.ca7:468-471 | +| ASGD-BR-007 | Fixed processing sequence: load transactions, open masters, then produce statements | design note | THE statement batch SHALL open both statement output files, load the whole transaction file into memory, open the cross-reference, customer and account files, build one statement per cross-reference card, then close the transaction, cross-reference, customer and account files and the two output files, in that order. | medium | app/cbl/CBSTM03A.CBL:293-314, app/cbl/CBSTM03A.CBL:730-853, app/cbl/CBSTM03A.CBL:316-339 | +| ASGD-BR-008 | File status passed back to the caller as the outcome code | design note | THE statement program (CBSTM03A) SHALL drive each file through the routine in the order open, read one or more times, then close. | medium | app/cbl/CBSTM03B.CBL:151-152, app/cbl/CBSTM03B.CBL:175-176, app/cbl/CBSTM03B.CBL:200-201, app/cbl/CBSTM03B.CBL:225-226 | +| ASGD-BR-009 | Produce one statement per card | business rule | THE statement job SHALL read the card cross-reference file in card-number order and produce one statement per cross-reference record until the file ends. | high | app/cbl/CBSTM03A.CBL:316-329, app/cbl/CBSTM03A.CBL:345-414, app/cbl/CBSTM03A.CBL:921-923, app/cbl/CBSTM03B.CBL:37-52 | +| ASGD-BR-010 | Produce one statement per card | design note | FOR each cross-reference record, THE statement job SHALL look up the customer by the record's customer ID and the account by the record's account ID, then write the statement header and details, then the card's transactions, total and footer. | high | app/cbl/CBSTM03A.CBL:316-329, app/cbl/CBSTM03A.CBL:345-414, app/cbl/CBSTM03A.CBL:921-923, app/cbl/CBSTM03B.CBL:37-52 | +| ASGD-BR-011 | Produce text and HTML card statements | error handling | WHEN the statement step ends normally, THE Card Statement Production SHALL keep both statement reports, and WHEN it ends abnormally, SHALL discard them. | medium | app/jcl/CREASTMT.JCL:79-96, app/cbl/CBSTM03A.CBL:39-47, app/scheduler/CardDemo.ca7:468-471 | +| ASGD-BR-012 | Customer and account master records must exist for every card or the run aborts | error handling | WHEN the statement step abends, THE job SHALL delete the text and HTML statement files, so no statements from that run are kept. | medium | app/cbl/CBSTM03A.CBL:345-414, app/cbl/CBSTM03A.CBL:921-923, app/jcl/CREASTMT.JCL:87-96 | + +### Worked examples + +- ASGD-BR-006: return code of earlier steps = 0 → The statement program runs and both the text and HTML statement reports are created. +- ASGD-BR-006: return code of the re-sequencing step = 16 → The statement step is skipped and no statement reports are produced. +- ASGD-BR-007: cross-reference cards = 3; transaction records = 8 → All 8 transactions are loaded first, then 3 statements are written, then all files are closed +- ASGD-BR-008: File = 'ACCTFILE' → It is opened, read by key for each card, and closed at the end. +- ASGD-BR-009: Account = 00000000011; Cards on cross-reference = 2 → Two statements are produced, each with the same account balance and FICO score but only its own card's transactions +- ASGD-BR-009: Card on cross-reference = 4111000099990000; Transactions for card = none → A statement is still produced, with no transaction lines and a total of 0.00 +- ASGD-BR-010: Cross-reference customer ID = 000000001; Cross-reference account ID = 00000000011 → Name and address come from customer 000000001; balance comes from account 00000000011 +- ASGD-BR-011: statement step outcome = abend → Neither AWS.M2.CARDDEMO.STATEMNT.PS nor AWS.M2.CARDDEMO.STATEMNT.HTML is kept. +- ASGD-BR-012: statements written before failure = 40 → Both statement files are deleted at abnormal end + +## Decision tables + +None. + +## Design notes + +- ASGD-BR-006: A scheduled statement job that runs only after the earlier steps succeed. It reads card-ordered transactions, the card cross-reference, accounts and customers, and writes two new outputs per run: a plain-text statement report and an HTML statement report. The 80- and 100-character line widths only matter if the text output must match the legacy layout exactly. +- ASGD-BR-007: Fixed order for the run: open both outputs, load the card transactions, open the cross-reference, customer and account sources, build every statement, then release all inputs and close the outputs. In the new application, make the transactions available before statement building starts, and finalise the outputs only after every statement is built. +- ASGD-BR-008: Every data source has the lifecycle open, read one or more times, close. The new application can do this with scoped resources such as connections or readers that are always released, including on failure. +- ASGD-BR-010: For each cross-reference record, look up the customer by its customer ID and the account by its account ID, then write the header and details, the transactions, the total and the footer. Both lookups use the primary key of their record. + +## Open questions + +- SME-030: When producing statements, if the customer or account for a card cannot be found, should that statement be skipped, the run stopped, or an exception recorded? (Statement operations business owner) On ASGD-BR-011, ASGD-BR-010. +- SME-031: On statements, should address line 3, state, country and ZIP each be cut off at their first space, even when the value has more than one word? (Statement operations business owner) On ASGD-BR-011, ASGD-BR-010. +- SME-032: Statement production assumes card cross-references are processed in ascending card number order, matching the sorted transactions. Must the new system guarantee that order? (Data architecture team) On ASGD-BR-011, ASGD-BR-010. +- SME-033: Should there be one statement per card, or one per account covering all its cards? (Card servicing business owner) On ASGD-BR-010. + +## Testing + +Every acceptance criterion in requirements.md is a test named by its ID (9 in all). diff --git a/reports/carddemo/design/package/claude-code/specs/asgd-04-show-statement-header-and-holder-details.md b/reports/carddemo/design/package/claude-code/specs/asgd-04-show-statement-header-and-holder-details.md new file mode 100644 index 00000000..fff69046 --- /dev/null +++ b/reports/carddemo/design/package/claude-code/specs/asgd-04-show-statement-header-and-holder-details.md @@ -0,0 +1,110 @@ +# Show statement header and holder details (ASGD-C04) + +**Status: DRAFT**: the function is not signed off yet. Confirm with the owner before building to it. + +Customer Account Self-Service · Account Statement Generation and Delivery · runs as scheduled job · risk high + +## Introduction + +The top of each statement tells the cardholder whose account it covers: the cardholder's name and address, the account ID, current balance and FICO score. The HTML version also shows the issuer, Bank of XYZ. Names, addresses and the balance must come from the right customer and account records, formatted exactly as specified, with negative balances clearly marked. + +**User story:** As a cardholder, I want my statement to show the issuer, my name, address and basic account details, so that I know whose account the statement covers and its current position. + +## Requirements + +### Requirement 1: ASGD-REQ-F-012 (formatting) + +#### Acceptance criteria + +1. When a statement is produced for a card, the system shall write to the text statement, in order: the '*START OF STATEMENT*' banner, the holder name, three address lines, a dashed line, the 'Basic Details' heading, the Account ID, Current Balance and FICO Score lines, the 'TRANSACTION SUMMARY ' heading and the 'Tran ID', 'Tran Details', 'Tran Amount' column headings. (rules ASGD-BR-013) +2. GIVEN A cross-reference card whose customer and account records both exist WHEN The statement run produces the text statement for that card THEN The text statement starts with these lines in this order: '*START OF STATEMENT*', the holder name, address line 1, address line 2, address line 3, a dashed line, 'Basic Details', the Account ID line, the Current Balance line, the FICO Score line, 'TRANSACTION SUMMARY ', and the column headings 'Tran ID', 'Tran Details', 'Tran Amount' (ASGD-C04-AC-02; ASGD-BR-013) + +### Requirement 2: ASGD-REQ-F-013 (formatting) + +#### Acceptance criteria + +1. The system shall form the holder name from the customer's first, middle and last name, keeping each name only up to its first space and joining them with single spaces. (rules ASGD-BR-014) +2. GIVEN A customer with first name 'MARY', middle name 'ANN' and last name 'SMITH JONES' WHEN The statement holder name is formed THEN The holder name is 'MARY ANN SMITH': each name is kept only up to its first space, and the parts are joined with single spaces (ASGD-C04-AC-03; ASGD-BR-014) + +### Requirement 3: ASGD-REQ-F-014 (formatting) + +#### Acceptance criteria + +1. The system shall print address lines 1 and 2 as held on the customer record, and shall form address line 3 from address line 3, state code, country code and ZIP, each kept only up to its first space and joined with single spaces. (rules ASGD-BR-015) +2. GIVEN A customer with address line 1 '12 MAIN ST', address line 2 'APT 4', address line 3 'SEATTLE', state 'WA', country 'USA' and ZIP '98109' WHEN The statement address is written THEN Address lines 1 and 2 are printed as '12 MAIN ST' and 'APT 4', exactly as held, and address line 3 is 'SEATTLE WA USA 98109'. Each of the four parts is kept only up to its first space, so a value of 'NEW YORK' in address line 3 becomes 'NEW'. (ASGD-C04-AC-04; ASGD-BR-015) + +### Requirement 4: ASGD-REQ-F-015 (formatting) + +#### Acceptance criteria + +1. The system shall show the account ID and current balance from the account record and the FICO score from the customer record, with the balance printed as nine whole digits and two decimals with a trailing minus sign when negative. (rules ASGD-BR-016) +2. GIVEN An account with ID 00000000001 and current balance -1234.56, whose customer has a FICO score of 750 WHEN The basic details are written THEN The Account ID line shows 00000000001 from the account record. The Current Balance line shows 000001234.56- (nine whole digits, two decimals, trailing minus). The FICO Score line shows 750 from the customer record. A balance of 1500.00 is shown as 000001500.00 with no minus sign. (ASGD-C04-AC-05; ASGD-BR-016) + +### Requirement 5: ASGD-REQ-F-016 (formatting) + +#### Acceptance criteria + +1. When a statement is produced for a card, the system shall start the HTML statement with a page header holding the heading 'Statement for Account Number: ' with the account ID and the bank block 'Bank of XYZ', '410 Terry Ave N', 'Seattle WA 99999'. (rules ASGD-BR-017, ASGD-BR-018) +2. GIVEN account: 00000000001 WHEN HTML statement runs THEN The HTML statement header shows 'Bank of XYZ', '410 Terry Ave N', 'Seattle WA 99999' (ASGD-C04-AC-01; ASGD-BR-018) + +### Requirement 6: ASGD-REQ-F-017 (formatting) + +#### Acceptance criteria + +1. The system shall show the fixed issuer heading 'Bank of XYZ', '410 Terry Ave N', 'Seattle WA 99999' on every HTML statement and no issuer block on the text statement. (rules ASGD-BR-018) +2. GIVEN account: 00000000001 WHEN HTML statement runs THEN The HTML statement header shows 'Bank of XYZ', '410 Terry Ave N', 'Seattle WA 99999' (ASGD-C04-AC-01; ASGD-BR-018) + +### Requirement 7: ASGD-REQ-F-018 (formatting) + +#### Acceptance criteria + +1. The system shall then write to the HTML statement the holder name (at most 50 characters, cut at the first double space), the three address lines, the 'Basic Details' heading, the Account ID, Current Balance and FICO Score lines, the 'Transaction Summary' heading and the 'Tran ID', 'Tran Details', 'Amount' column headings. (rules ASGD-BR-019) +2. GIVEN A statement being produced for a card, after the HTML page header WHEN The HTML holder and details section is written THEN The HTML statement contains, in this order: the holder name (no more than 50 characters and cut at the first double space), the three address lines, 'Basic Details', the Account ID, Current Balance and FICO Score lines, 'Transaction Summary', and the column headings 'Tran ID', 'Tran Details', 'Amount' (ASGD-C04-AC-06; ASGD-BR-019) + +## Screens and components + +No screens: it runs as scheduled job. + +## Data models + +- COSTM01 (working storage of CBSTM03A): see data-contracts.md. +- CUSTREC (working storage of CBSTM03A): see data-contracts.md. +- CVACT01Y (working storage of CBSTM03A): see data-contracts.md. +- CVACT03Y (working storage of CBSTM03A): see data-contracts.md. + +## Business rules + +Classes: a *business rule* is kept exactly; *formatting* may be restyled; *error handling* keeps its messages; a *side effect* is kept; a *historical artifact* is carried only after asking the owner; a *design note* is for the build, below. + +| ID | Name | Class | Rule | Confidence | Evidence | +|---|---|---|---|---|---| +| ASGD-BR-013 | Write statement header and account details | formatting | WHEN a statement is produced for a card, THE statement job SHALL write to the text statement, in order: the '*START OF STATEMENT*' banner, the holder name, three address lines, a dashed line, the 'Basic Details' heading, the Account ID, Current Balance and FICO Score lines, the 'TRANSACTION SUMMARY ' heading and the 'Tran ID', 'Tran Details', 'Tran Amount' column headings. | high | app/cbl/CBSTM03A.CBL:85-146, app/cbl/CBSTM03A.CBL:148-223, app/cbl/CBSTM03A.CBL:458-504, app/cbl/CBSTM03A.CBL:506-555 | +| ASGD-BR-014 | Assemble statement holder details | formatting | THE statement job SHALL form the holder name from the customer's first, middle and last name, keeping each name only up to its first space and joining them with single spaces. | high | app/cbl/CBSTM03A.CBL:85-146, app/cbl/CBSTM03A.CBL:148-223, app/cbl/CBSTM03A.CBL:458-504, app/cbl/CBSTM03A.CBL:506-555 | +| ASGD-BR-015 | Assemble statement holder details | formatting | THE statement job SHALL print address lines 1 and 2 as held on the customer record, and SHALL form address line 3 from address line 3, state code, country code and ZIP, each kept only up to its first space and joined with single spaces. | high | app/cbl/CBSTM03A.CBL:85-146, app/cbl/CBSTM03A.CBL:148-223, app/cbl/CBSTM03A.CBL:458-504, app/cbl/CBSTM03A.CBL:506-555 | +| ASGD-BR-016 | Write statement header and account details | formatting | THE statement job SHALL show the account ID and current balance from the account record and the FICO score from the customer record, with the balance printed as nine whole digits and two decimals with a trailing minus sign when negative. | high | app/cbl/CBSTM03A.CBL:85-146, app/cbl/CBSTM03A.CBL:148-223, app/cbl/CBSTM03A.CBL:458-504, app/cbl/CBSTM03A.CBL:506-555 | +| ASGD-BR-017 | Assemble statement holder details | formatting | WHEN a statement is produced for a card, THE statement job SHALL start the HTML statement with a page header holding the heading 'Statement for Account Number: ' with the account ID and the bank block 'Bank of XYZ', '410 Terry Ave N', 'Seattle WA 99999'. | high | app/cbl/CBSTM03A.CBL:85-146, app/cbl/CBSTM03A.CBL:148-223, app/cbl/CBSTM03A.CBL:458-504, app/cbl/CBSTM03A.CBL:506-555 | +| ASGD-BR-018 | Issuer branding and address hardcoded on HTML statements | formatting | THE HTML statement SHALL show the fixed issuer heading 'Bank of XYZ', '410 Terry Ave N', 'Seattle WA 99999' on every statement; the text statement shows no issuer block. | medium | app/cbl/CBSTM03A.CBL:167-172, app/cbl/CBSTM03A.CBL:537-544, app/cbl/CBSTM03A.CBL:458-503 | +| ASGD-BR-019 | Write holder name, address and basic details | formatting | THE statement job SHALL then write to the HTML statement the holder name (at most 50 characters, cut at the first double space), the three address lines, the 'Basic Details' heading, the Account ID, Current Balance and FICO Score lines, the 'Transaction Summary' heading and the 'Tran ID', 'Tran Details', 'Amount' column headings. | high | app/cbl/CBSTM03A.CBL:85-146, app/cbl/CBSTM03A.CBL:148-223, app/cbl/CBSTM03A.CBL:458-504, app/cbl/CBSTM03A.CBL:506-555 | + +### Worked examples + +- ASGD-BR-018: account = 00000000001 → The HTML statement header shows 'Bank of XYZ', '410 Terry Ave N', 'Seattle WA 99999' + +## Decision tables + +None. + +## Design notes + +None. + +## Open questions + +- SME-030: When producing statements, if the customer or account for a card cannot be found, should that statement be skipped, the run stopped, or an exception recorded? (Statement operations business owner) On ASGD-BR-016, ASGD-BR-017, ASGD-BR-019. +- SME-031: On statements, should address line 3, state, country and ZIP each be cut off at their first space, even when the value has more than one word? (Statement operations business owner) On ASGD-BR-016, ASGD-BR-017, ASGD-BR-019. +- SME-032: Statement production assumes card cross-references are processed in ascending card number order, matching the sorted transactions. Must the new system guarantee that order? (Data architecture team) On ASGD-BR-016, ASGD-BR-017, ASGD-BR-019. +- DEF-090: Is this intended? Each name and address part is cut at its first space, so multi-word names and cities are shortened. When the middle name is blank, the text name has a double space, and the HTML name (cut at the first double space) shows only the first name. The balance field holds nine whole digits while the account balance holds ten, so the leading digit is lost on balances of 1,000,000,000 or more. (Subject-matter expert) On ASGD-BR-016, ASGD-BR-017, ASGD-BR-019. + +## Testing + +Every acceptance criterion in requirements.md is a test named by its ID (6 in all). diff --git a/reports/carddemo/design/package/claude-code/specs/asgd-05-list-card-transactions-and-total.md b/reports/carddemo/design/package/claude-code/specs/asgd-05-list-card-transactions-and-total.md new file mode 100644 index 00000000..ffe372d8 --- /dev/null +++ b/reports/carddemo/design/package/claude-code/specs/asgd-05-list-card-transactions-and-total.md @@ -0,0 +1,118 @@ +# List card transactions and total (ASGD-C05) + +**Status: DRAFT**: the function is not signed off yet. Confirm with the owner before building to it. + +Customer Account Self-Service · Account Statement Generation and Delivery · runs as scheduled job · risk high + +## Introduction + +Each statement lists every transaction on that card, in transaction-ID order, with its ID, description and amount. The text statement ends with a total of the amounts. The statement must never miss one of the card's transactions or include another card's, and the total must be the exact signed sum of the listed amounts. + +**User story:** As a cardholder, I want my statement to list each transaction on my card with a total, so that I can check what was charged to my account. + +## Requirements + +### Requirement 1: ASGD-REQ-F-019 (business rule) + +#### Acceptance criteria + +1. When a statement is built for a cross-reference card, the system shall list exactly the transactions loaded for the slot whose card number equals that card, in loaded (transaction-ID) order, and shall stop looking once it reaches a slot with a higher card number or passes the last loaded card. (rules ASGD-BR-020, ASGD-BR-021) +2. GIVEN statement card: 4111000000000002; loaded transactions for that card: IDs 0000000000000007 and 0000000000000009 WHEN a statement is built for a cross-reference card THEN The statement lists the two transactions 0000000000000007 then 0000000000000009 and no others (ASGD-C05-AC-01; ASGD-BR-020) +3. GIVEN statement card: 4111000000000005; loaded transactions for that card: none WHEN a statement is built for a cross-reference card THEN The statement has no transaction rows and a total of $0.00 (ASGD-C05-AC-02; ASGD-BR-020) + +### Requirement 2: ASGD-REQ-F-020 (formatting) + +#### Acceptance criteria + +1. When a statement is produced for a card, the system shall list every transaction held for that card number on both the text and HTML statements, one line each showing transaction ID, description (first 49 characters) and amount with a trailing minus sign for negative amounts. (rules ASGD-BR-021) +2. GIVEN Card 4111111111111111 has three transactions loaded, with IDs T1, T2 and T3, and one amount of -25.00 WHEN The statement for that card is produced THEN The text and HTML statements each list exactly three transaction lines, in the order T1, T2, T3. Each line shows the transaction ID, the first 49 characters of the description and the amount. The -25.00 amount is shown with a trailing minus sign. (ASGD-C05-AC-06; ASGD-BR-021) + +### Requirement 3: ASGD-REQ-F-021 (formatting) + +#### Acceptance criteria + +1. When a transaction belongs to the card being stated, the system shall write one detail line to the text statement file showing the transaction ID, the first 49 characters of the transaction description, and the transaction amount after a '$' sign with two decimals and a trailing minus for negative amounts. (rules ASGD-BR-022) +2. GIVEN A transaction on the stated card with an amount of -42.50 and a 60-character description WHEN Its line is written to the text statement THEN One detail line shows the transaction ID, the first 49 characters of the description only, and '$' followed by the amount 42.50 with two decimals and a trailing minus (ASGD-C05-AC-07; ASGD-BR-022) + +### Requirement 4: ASGD-REQ-F-022 (formatting) + +#### Acceptance criteria + +1. When a transaction of the statement's card is listed, the system shall write an HTML table row of three cells: transaction ID, description (first 49 characters) and edited amount, right-aligned. (rules ASGD-BR-023) +2. GIVEN A transaction on the stated card WHEN Its row is written to the HTML statement THEN Exactly one table row is written with three cells: the transaction ID, the description cut to its first 49 characters, and the edited amount, right-aligned (ASGD-C05-AC-08; ASGD-BR-023) + +### Requirement 5: ASGD-REQ-F-023 (business rule) + +#### Acceptance criteria + +1. The system shall set the statement total to zero for each card and add each listed transaction's signed amount to it. (rules ASGD-BR-024) +2. GIVEN Transactions: 120.50, 45.25, -20.00 WHEN statement job runs THEN Total is 145.75 (ASGD-C05-AC-03; ASGD-BR-024) +3. GIVEN Previous card's total: 300.00; Next card's transactions: none WHEN statement job runs THEN Next card's total is 0.00 (ASGD-C05-AC-04; ASGD-BR-024) + +### Requirement 6: ASGD-REQ-F-024 (formatting) + +#### Acceptance criteria + +1. When the transactions are listed, the system shall write to the text statement a dashed line, the line 'Total EXP:' with '$' and the total (trailing minus if negative), and the '*END OF STATEMENT*' banner. (rules ASGD-BR-025) +2. GIVEN A card whose listed transactions are 100.00 and -30.00 WHEN The transactions have been listed on the text statement THEN The next lines are a dashed line, a line 'Total EXP:' with '$' and 70.00, and then '*END OF STATEMENT*'. If the listed amounts sum to a negative value, the total has a trailing minus. (ASGD-C05-AC-09; ASGD-BR-025) + +### Requirement 7: ASGD-REQ-F-025 (formatting) + +#### Acceptance criteria + +1. When the transactions are listed, the system shall close the HTML statement with an 'End of Statement' heading and the closing page tags, without a total line. (rules ASGD-BR-026) +2. GIVEN Statement total: 145.75 WHEN Write total expenses and statement end applies THEN HTML statement ends with 'End of Statement'; the 145.75 total does not appear in the HTML (ASGD-C05-AC-05; ASGD-BR-026) + +## Screens and components + +No screens: it runs as scheduled job. + +## Data models + +- COSTM01 (working storage of CBSTM03A): see data-contracts.md. +- CUSTREC (working storage of CBSTM03A): see data-contracts.md. +- CVACT01Y (working storage of CBSTM03A): see data-contracts.md. +- CVACT03Y (working storage of CBSTM03A): see data-contracts.md. + +## Business rules + +Classes: a *business rule* is kept exactly; *formatting* may be restyled; *error handling* keeps its messages; a *side effect* is kept; a *historical artifact* is carried only after asking the owner; a *design note* is for the build, below. + +| ID | Name | Class | Rule | Confidence | Evidence | +|---|---|---|---|---|---| +| ASGD-BR-020 | List card transactions on statement | business rule | WHEN a statement is built for a cross-reference card, THE statement batch SHALL list exactly the transactions loaded for the slot whose card number equals that card, in loaded (transaction-ID) order, and SHALL stop looking once it reaches a slot with a higher card number or passes the last loaded card. | high | app/cbl/CBSTM03A.CBL:756-760, app/cbl/CBSTM03A.CBL:818-853, app/cbl/CBSTM03A.CBL:416-432, app/jcl/CREASTMT.JCL:44-61 | +| ASGD-BR-021 | List card transactions and accumulate total | formatting | WHEN a statement is produced for a card, THE statement job SHALL list every transaction held for that card number, in card-then-transaction-ID order, one line each showing transaction ID, description (first 49 characters) and amount with a trailing minus sign for negative amounts, on both the text and HTML statements. | high | app/cbl/CBSTM03A.CBL:324-326, app/cbl/CBSTM03A.CBL:416-456, app/cbl/CBSTM03A.CBL:132-146, app/cbl/CBSTM03A.CBL:675-723 | +| ASGD-BR-022 | Write transaction detail line | formatting | WHEN a transaction on file belongs to the card being stated, THE statement program SHALL write one detail line to the text statement file showing the transaction ID, the first 49 characters of the transaction description, and the transaction amount after a '$' sign with two decimals and a trailing minus for negative amounts (ST-LINE14). | medium | app/cbl/CBSTM03A.CBL:416-430, app/cbl/CBSTM03A.CBL:674-679, app/cbl/CBSTM03A.CBL:132-137, app/cpy/COSTM01.cpy:20-29 | +| ASGD-BR-023 | Write one transaction row | formatting | WHEN a transaction of the statement's card is listed, THE HTML statement SHALL write a table row of three cells: transaction ID, description (first 49 characters) and edited amount, right-aligned. | medium | app/cbl/CBSTM03A.CBL:675-721, app/cbl/CBSTM03A.CBL:198-206 | +| ASGD-BR-024 | List card transactions and accumulate total | business rule | THE statement job SHALL set the statement total to zero for each card and add each listed transaction's signed amount to it. | high | app/cbl/CBSTM03A.CBL:324-326, app/cbl/CBSTM03A.CBL:416-456, app/cbl/CBSTM03A.CBL:132-146, app/cbl/CBSTM03A.CBL:675-723 | +| ASGD-BR-025 | Write total expenses and statement end | formatting | AFTER the transactions are listed, THE statement job SHALL write to the text statement a dashed line, the line 'Total EXP:' with '$' and the total (trailing minus if negative), and the '*END OF STATEMENT*' banner. | high | app/cbl/CBSTM03A.CBL:324-326, app/cbl/CBSTM03A.CBL:416-456, app/cbl/CBSTM03A.CBL:132-146, app/cbl/CBSTM03A.CBL:675-723 | +| ASGD-BR-026 | Write total expenses and statement end | formatting | AFTER the transactions are listed, THE statement job SHALL close the HTML statement with an 'End of Statement' heading and the closing page tags, without a total line. | high | app/cbl/CBSTM03A.CBL:324-326, app/cbl/CBSTM03A.CBL:416-456, app/cbl/CBSTM03A.CBL:132-146, app/cbl/CBSTM03A.CBL:675-723 | + +### Worked examples + +- ASGD-BR-020: statement card = 4111000000000002; loaded transactions for that card = IDs 0000000000000007 and 0000000000000009 → The statement lists the two transactions 0000000000000007 then 0000000000000009 and no others +- ASGD-BR-020: statement card = 4111000000000005; loaded transactions for that card = none → The statement has no transaction rows and a total of $0.00 +- ASGD-BR-024: Transactions = 120.50, 45.25, -20.00 → Total is 145.75 +- ASGD-BR-024: Previous card's total = 300.00; Next card's transactions = none → Next card's total is 0.00 +- ASGD-BR-026: Statement total = 145.75 → HTML statement ends with 'End of Statement'; the 145.75 total does not appear in the HTML + +## Decision tables + +None. + +## Design notes + +None. + +## Open questions + +- SME-030: When producing statements, if the customer or account for a card cannot be found, should that statement be skipped, the run stopped, or an exception recorded? (Statement operations business owner) On ASGD-BR-022, ASGD-BR-023, ASGD-BR-024, ASGD-BR-026, ASGD-BR-020. +- SME-031: On statements, should address line 3, state, country and ZIP each be cut off at their first space, even when the value has more than one word? (Statement operations business owner) On ASGD-BR-022, ASGD-BR-023, ASGD-BR-024, ASGD-BR-026, ASGD-BR-020. +- SME-032: Statement production assumes card cross-references are processed in ascending card number order, matching the sorted transactions. Must the new system guarantee that order? (Data architecture team) On ASGD-BR-022, ASGD-BR-023, ASGD-BR-024, ASGD-BR-026, ASGD-BR-020. +- SME-034: How important is the rule that a statement total is the signed sum of the card's transaction amounts, starting from zero for each statement? Is it core to the system, or a rule that would be costly to get wrong? (Finance / statements business owner) On ASGD-BR-026. +- DEF-008: Is this intended? The HTML statement lists the transactions but never shows the total that the text statement prints. In-memory storage also holds only 10 transactions per card and 51 cards, with no check when this is exceeded. (Subject-matter expert) On ASGD-BR-024, ASGD-BR-026. +- DEF-100: Confirm this is deliberate: The transaction description is 100 characters on the transaction record but the statement line holds only 49, so longer descriptions are cut off without any notice. (Subject-matter expert) On ASGD-BR-022. + +## Testing + +Every acceptance criterion in requirements.md is a test named by its ID (9 in all). diff --git a/reports/carddemo/design/package/claude-code/specs/asgd-06-stop-the-statement-run-on-file-errors.md b/reports/carddemo/design/package/claude-code/specs/asgd-06-stop-the-statement-run-on-file-errors.md new file mode 100644 index 00000000..ad4a1c90 --- /dev/null +++ b/reports/carddemo/design/package/claude-code/specs/asgd-06-stop-the-statement-run-on-file-errors.md @@ -0,0 +1,123 @@ +# Stop the statement run on file errors (ASGD-C06) + +**Status: DRAFT**: the function is not signed off yet. Confirm with the owner before building to it. + +Customer Account Self-Service · Account Statement Generation and Delivery · runs as scheduled job · risk high + +## Introduction + +If any statement data cannot be opened, read or closed, the run stops with a clear message naming the file and the return code, and no statements from that run are issued. Its main audience is the statement operations team. It must never issue a statement built from missing customer or account data, and it must never carry on after a file error. + +**User story:** As a statement operations team, I want the statement run to stop with a clear message when a file cannot be opened, read or closed, so that no incomplete statements are issued. + +## Requirements + +### Requirement 1: ASGD-REQ-F-026 (error handling) + +#### Acceptance criteria + +1. If the customer record for a cross-reference card cannot be read (any result other than '00'), then the system shall display 'ERROR READING CUSTFILE' with the return code and abend, producing no further statements. (rules ASGD-BR-027, ASGD-BR-028) +2. GIVEN A cross-reference card whose customer ID has no customer record, so the read returns '23' WHEN The statement run processes that card THEN The run displays 'ERROR READING CUSTFILE' with return code 23, then 'ABENDING PROGRAM', and abends. No statement is produced for that card or any card after it. (ASGD-C06-AC-02; ASGD-BR-027, ASGD-BR-028) + +### Requirement 2: ASGD-REQ-F-027 (error handling) + +#### Acceptance criteria + +1. If the account record for a cross-reference card cannot be read (any result other than '00'), then the system shall display 'ERROR READING ACCTFILE' with the return code and abend. (rules ASGD-BR-029, ASGD-BR-028) +2. GIVEN A cross-reference card whose account ID has no account record, so the read returns '23' WHEN The statement run looks up the account THEN The run displays 'ERROR READING ACCTFILE' with return code 23, then 'ABENDING PROGRAM', and abends (ASGD-C06-AC-03; ASGD-BR-029, ASGD-BR-028) + +### Requirement 3: ASGD-REQ-F-028 (error handling) + +#### Acceptance criteria + +1. If reading the next cross-reference record returns anything other than '00' or end of file '10', then the system shall display 'ERROR READING XREFFILE' with the return code and abend. (rules ASGD-BR-030, ASGD-BR-028) +2. GIVEN Reading the next cross-reference record returns a status other than '00' or '10' WHEN The statement run reads the cross-reference THEN The run displays 'ERROR READING XREFFILE' with that return code, then 'ABENDING PROGRAM', and abends. A status of '10' (end of file) ends the run normally, with no error. (ASGD-C06-AC-04; ASGD-BR-030, ASGD-BR-028) + +### Requirement 4: ASGD-REQ-F-029 (error handling) + +#### Acceptance criteria + +1. If reading the cross-reference, customer or account file fails, then the system shall display the read error message with the return code, then 'ABENDING PROGRAM', and abend. (rules ASGD-BR-028) +2. GIVEN A read of the cross-reference, customer or account file fails WHEN The failure is detected THEN The matching message ('ERROR READING XREFFILE', 'ERROR READING CUSTFILE' or 'ERROR READING ACCTFILE') is displayed with the return code, followed by 'ABENDING PROGRAM', and the run abends (ASGD-C06-AC-05; ASGD-BR-028) + +### Requirement 5: ASGD-REQ-F-030 (error handling) + +#### Acceptance criteria + +1. If opening, closing or making the first read of the transaction file, or opening or closing the cross-reference, customer or account file, returns anything other than '00' or '04', then the system shall display 'ERROR OPENING ', 'ERROR READING TRNXFILE' or 'ERROR CLOSING ' with the return code and abend. (rules ASGD-BR-031) +2. GIVEN Opening the account file returns a status other than '00' or '04'. Separately, the first read of the transaction file returns such a status, or closing the customer file does. WHEN The statement run performs that operation THEN The run displays 'ERROR OPENING ', 'ERROR READING TRNXFILE' or 'ERROR CLOSING ' respectively, with the return code, and abends. A status of '00' or '04' lets the run continue. (ASGD-C06-AC-06; ASGD-BR-031) + +### Requirement 6: ASGD-REQ-F-031 (error handling) + +#### Acceptance criteria + +1. If a later read of the transaction file during loading returns anything other than '00' or end of file '10', then the system shall display 'ERROR READING TRNXFILE' with the return code and abend. (rules ASGD-BR-032) +2. GIVEN While the transactions are loading, a read after the first one returns a status other than '00' or '10' WHEN The statement run reads that transaction THEN The run displays 'ERROR READING TRNXFILE' with the return code and abends. A status of '10' ends loading normally. (ASGD-C06-AC-07; ASGD-BR-032) + +### Requirement 7: ASGD-REQ-F-032 (error handling) + +#### Acceptance criteria + +1. If the statement step abends, then the system shall delete the text and HTML statement files, so no statements from that run are kept. (rules ASGD-BR-012) +2. GIVEN statements written before failure: 40 WHEN the statement step abends THEN Both statement files are deleted at abnormal end (ASGD-C06-AC-01; ASGD-BR-012) + +## Screens and components + +No screens: it runs as scheduled job. + +## Data models + +- COSTM01 (working storage of CBSTM03A): see data-contracts.md. +- CUSTREC (working storage of CBSTM03A): see data-contracts.md. +- CVACT01Y (working storage of CBSTM03A): see data-contracts.md. +- CVACT03Y (working storage of CBSTM03A): see data-contracts.md. + +## Business rules + +Classes: a *business rule* is kept exactly; *formatting* may be restyled; *error handling* keeps its messages; a *side effect* is kept; a *historical artifact* is carried only after asking the owner; a *design note* is for the build, below. + +| ID | Name | Class | Rule | Confidence | Evidence | +|---|---|---|---|---|---| +| ASGD-BR-027 | Customer and account master records must exist for every card or the run aborts | error handling | WHEN the customer record for a cross-reference card cannot be read (any result other than '00'), THE statement batch SHALL display 'ERROR READING CUSTFILE' with the return code and abend, producing no further statements. | medium | app/cbl/CBSTM03A.CBL:345-414, app/cbl/CBSTM03A.CBL:921-923, app/jcl/CREASTMT.JCL:87-96 | +| ASGD-BR-028 | Produce one statement per card | error handling | WHEN reading the cross-reference, customer or account file fails (anything other than success, or end of file for the cross-reference), THE statement job SHALL display 'ERROR READING XREFFILE', 'ERROR READING CUSTFILE' or 'ERROR READING ACCTFILE' with the return code, then 'ABENDING PROGRAM', and abend. | high | app/cbl/CBSTM03A.CBL:316-329, app/cbl/CBSTM03A.CBL:345-414, app/cbl/CBSTM03A.CBL:921-923, app/cbl/CBSTM03B.CBL:37-52 | +| ASGD-BR-029 | Customer and account master records must exist for every card or the run aborts | error handling | WHEN the account record for a cross-reference card cannot be read (any result other than '00'), THE statement batch SHALL display 'ERROR READING ACCTFILE' with the return code and abend. | medium | app/cbl/CBSTM03A.CBL:345-414, app/cbl/CBSTM03A.CBL:921-923, app/jcl/CREASTMT.JCL:87-96 | +| ASGD-BR-030 | Customer and account master records must exist for every card or the run aborts | error handling | WHEN reading the next cross-reference record returns anything other than '00' or end of file '10', THE statement batch SHALL display 'ERROR READING XREFFILE' with the return code and abend. | medium | app/cbl/CBSTM03A.CBL:345-414, app/cbl/CBSTM03A.CBL:921-923, app/jcl/CREASTMT.JCL:87-96 | +| ASGD-BR-031 | File open/read/close outcome acceptance policy | error handling | WHEN opening, closing or making the first read of the transaction file, or opening or closing the cross-reference, customer or account file, returns anything other than '00' or '04', THE statement batch SHALL display 'ERROR OPENING ', 'ERROR READING TRNXFILE' or 'ERROR CLOSING ' with the return code and abend. | medium | app/cbl/CBSTM03A.CBL:730-754, app/cbl/CBSTM03A.CBL:765-815, app/cbl/CBSTM03A.CBL:837-847, app/cbl/CBSTM03A.CBL:856-919 | +| ASGD-BR-032 | File open/read/close outcome acceptance policy | error handling | WHEN a later read of the transaction file during loading returns anything other than '00' or end of file '10', THE statement batch SHALL display 'ERROR READING TRNXFILE' with the return code and abend. | medium | app/cbl/CBSTM03A.CBL:730-754, app/cbl/CBSTM03A.CBL:765-815, app/cbl/CBSTM03A.CBL:837-847, app/cbl/CBSTM03A.CBL:856-919 | +| ASGD-BR-012 | Customer and account master records must exist for every card or the run aborts | error handling | WHEN the statement step abends, THE job SHALL delete the text and HTML statement files, so no statements from that run are kept. | medium | app/cbl/CBSTM03A.CBL:345-414, app/cbl/CBSTM03A.CBL:921-923, app/jcl/CREASTMT.JCL:87-96 | + +### Worked examples + +- ASGD-BR-012: statements written before failure = 40 → Both statement files are deleted at abnormal end + +## Decision tables + +#### Statement run file outcome handling + +| File | Operation | Result code | Message and run outcome | Rule | +|---|---|---|---|---| +| CUSTFILE | Keyed read | Other than '00' | Display 'ERROR READING CUSTFILE' with return code; abend | ASGD-BR-027 | +| ACCTFILE | Keyed read | Other than '00' | Display 'ERROR READING ACCTFILE' with return code; abend | ASGD-BR-029 | +| XREFFILE | Next read | Other than '00' or '10' | Display 'ERROR READING XREFFILE' with return code; abend | ASGD-BR-030 | +| XREFFILE, CUSTFILE or ACCTFILE | Read | Failure | Display read error with return code, then 'ABENDING PROGRAM'; abend | ASGD-BR-028 | +| Any statement file | Open or close | Other than '00' or '04' | Display 'ERROR OPENING ' or 'ERROR CLOSING ' with return code; abend | ASGD-BR-031 | +| TRNXFILE | First read | Other than '00' or '04' | Display 'ERROR READING TRNXFILE' with return code; abend | ASGD-BR-031 | +| TRNXFILE | Later read during loading | Other than '00' or '10' | Display 'ERROR READING TRNXFILE' with return code; abend | ASGD-BR-032 | +| Any statement file | Open, close or first transaction read | '04' | **Gap:** '04' is accepted and the run continues; no rule says what '04' means or whether the statement is still complete. | | +| TRNXFILE | First read | '10' (empty transaction file) | **Gap:** Empty transaction file abends under R7; confirm whether that is intended or statements without transactions should be produced. | | + + +## Design notes + +None. + +## Open questions + +- SME-030: When producing statements, if the customer or account for a card cannot be found, should that statement be skipped, the run stopped, or an exception recorded? (Statement operations business owner) On ASGD-BR-028. +- SME-031: On statements, should address line 3, state, country and ZIP each be cut off at their first space, even when the value has more than one word? (Statement operations business owner) On ASGD-BR-028. +- SME-032: Statement production assumes card cross-references are processed in ascending card number order, matching the sorted transactions. Must the new system guarantee that order? (Data architecture team) On ASGD-BR-028. +- DEF-162: Is this intended? An empty transaction extract makes the whole run abend instead of producing statements with no transactions, and a '04' result is accepted on the first transaction read but causes an abend on later reads. (Subject-matter expert) On ASGD-BR-032. + +## Testing + +Every acceptance criterion in requirements.md is a test named by its ID (7 in all). diff --git a/reports/carddemo/design/package/claude-code/specs/asgd-07-read-only-statement-data-access.md b/reports/carddemo/design/package/claude-code/specs/asgd-07-read-only-statement-data-access.md new file mode 100644 index 00000000..cc76b14f --- /dev/null +++ b/reports/carddemo/design/package/claude-code/specs/asgd-07-read-only-statement-data-access.md @@ -0,0 +1,115 @@ +# Read-only statement data access (ASGD-C07) + +**Status: DRAFT**: the function is not signed off yet. Confirm with the owner before building to it. + +Customer Account Self-Service · Account Statement Generation and Delivery · runs as scheduled job · risk high + +## Introduction + +Statement data is read only through a data-access layer that reads files and reports each outcome. Producing statements therefore never changes customer, account, card or transaction records. The layer must never write, change or delete data, and it must report not-found and end-of-data outcomes accurately so the run can stop or continue correctly. + +**User story:** As a statement operations team, I want statement data read through a routine that only reads files and returns each file outcome, so that producing statements never changes customer, account, card or transaction records. + +## Requirements + +### Requirement 1: ASGD-REQ-F-033 (design note) + +#### Acceptance criteria + +1. When the statement program asks for a customer record by key, the system shall take the given number of key characters as the customer id and read that customer directly, returning the record and status '00' when found and status '23' when not found. (rules ASGD-BR-033) +2. GIVEN A customer record exists for the given customer ID, and no record exists for a second ID WHEN The statement program asks for each customer by key THEN The first lookup returns that customer's record with status '00', and the second returns status '23' (ASGD-C07-AC-06; ASGD-BR-033) + +### Requirement 2: ASGD-REQ-F-034 (design note) + +#### Acceptance criteria + +1. When the statement program asks for an account record by key, the system shall take the given number of key characters as the 11-digit account id and read that account directly, returning the record and status '00' when found and status '23' when not found. (rules ASGD-BR-034) +2. GIVEN An account record exists for the 11-digit account ID 00000000001, and no record exists for 00000000099 WHEN The statement program asks for each account by key THEN The lookup for 00000000001 returns the account record with status '00', and the lookup for 00000000099 returns status '23' (ASGD-C07-AC-07; ASGD-BR-034) + +### Requirement 3: ASGD-REQ-F-035 (error handling) + +#### Acceptance criteria + +1. The system shall return the file status of every open, read or close to the calling program as the outcome code, for example '00' for success, '10' for end of file on a sequential read and '23' for a key not found. (rules ASGD-BR-035) +2. GIVEN File: 'TRNXFILE'; Operation: 'R'; Transactions left: none WHEN statement file routine (CBSTM03B) runs THEN Outcome code '10' is returned. (ASGD-C07-AC-01; ASGD-BR-035) +3. GIVEN File: 'XREFFILE'; Operation: 'O' WHEN statement file routine (CBSTM03B) runs THEN Outcome code '00' is returned when the file opens. (ASGD-C07-AC-02; ASGD-BR-035) + +### Requirement 4: ASGD-REQ-F-036 (design note) + +#### Acceptance criteria + +1. The system shall drive each statement file in the order open, read one or more times, then close. (rules ASGD-BR-008) +2. GIVEN File: 'ACCTFILE' WHEN statement program (CBSTM03A) runs THEN It is opened, read by key for each card, and closed at the end. (ASGD-C07-AC-03; ASGD-BR-008) + +### Requirement 5: ASGD-REQ-F-037 (design note) + +#### Acceptance criteria + +1. The system shall let the transaction file (TRNXFILE) and card cross-reference file (XREFFILE) be opened, read in key order (card number and transaction id for transactions, card number for the cross-reference) and closed. (rules ASGD-BR-036) +2. GIVEN File: 'TRNXFILE'; Operation: 'R' WHEN statement file routine (CBSTM03B) runs THEN The next transaction in card number and transaction id order is returned in the 1000-byte data area. (ASGD-C07-AC-04; ASGD-BR-036) + +### Requirement 6: ASGD-REQ-F-038 (design note) + +#### Acceptance criteria + +1. The system shall let the customer file (CUSTFILE) and account file (ACCTFILE) be opened, read by key and closed. (rules ASGD-BR-037) +2. GIVEN The customer file and the account file WHEN The statement program opens each one, reads by key and closes it THEN Each operation is allowed and returns its file status. Reading by key is the only read the statement program uses on these files. (ASGD-C07-AC-08; ASGD-BR-037) + +### Requirement 7: ASGD-REQ-N-002 (design note) + +#### Acceptance criteria + +1. The system shall open all four statement files for input only, so it never adds, changes or deletes records, even though write ('W') and rewrite ('Z') operation codes are defined. (rules ASGD-BR-038) +2. GIVEN File: 'CUSTFILE'; Operation: 'W' WHEN statement file routine (CBSTM03B) runs THEN Nothing is written; the customer file is unchanged. (ASGD-C07-AC-05; ASGD-BR-038) + +## Screens and components + +No screens: it runs as scheduled job. + +## Data models + +None found in the source. + +## Business rules + +Classes: a *business rule* is kept exactly; *formatting* may be restyled; *error handling* keeps its messages; a *side effect* is kept; a *historical artifact* is carried only after asking the owner; a *design note* is for the build, below. + +| ID | Name | Class | Rule | Confidence | Evidence | +|---|---|---|---|---|---| +| ASGD-BR-033 | Keyed customer/account lookup uses caller-supplied key length | design note | WHEN the statement program asks for a customer record by key, THE statement file routine (CBSTM03B) SHALL take the given number of key characters as the customer id and read that customer directly, returning the record and status '00' when found and status '23' when not found. | medium | app/cbl/CBSTM03B.CBL:43-53, app/cbl/CBSTM03B.CBL:188-201, app/cbl/CBSTM03B.CBL:213-226, app/cbl/CBSTM03A.CBL:366-382 | +| ASGD-BR-034 | Keyed customer/account lookup uses caller-supplied key length | design note | WHEN the statement program asks for an account record by key, THE statement file routine (CBSTM03B) SHALL take the given number of key characters as the 11-digit account id and read that account directly, returning the record and status '00' when found and status '23' when not found. | medium | app/cbl/CBSTM03B.CBL:43-53, app/cbl/CBSTM03B.CBL:188-201, app/cbl/CBSTM03B.CBL:213-226, app/cbl/CBSTM03A.CBL:366-382 | +| ASGD-BR-035 | File status passed back to the caller as the outcome code | error handling | THE statement file routine (CBSTM03B) SHALL return the file status of every open, read or close it performs to the calling program as the outcome code, for example '00' for success, '10' for end of file on a sequential read and '23' for a key not found. | medium | app/cbl/CBSTM03B.CBL:151-152, app/cbl/CBSTM03B.CBL:175-176, app/cbl/CBSTM03B.CBL:200-201, app/cbl/CBSTM03B.CBL:225-226 | +| ASGD-BR-008 | File status passed back to the caller as the outcome code | design note | THE statement program (CBSTM03A) SHALL drive each file through the routine in the order open, read one or more times, then close. | medium | app/cbl/CBSTM03B.CBL:151-152, app/cbl/CBSTM03B.CBL:175-176, app/cbl/CBSTM03B.CBL:200-201, app/cbl/CBSTM03B.CBL:225-226 | +| ASGD-BR-036 | Statement data access: allowed operations per file | design note | THE statement file routine (CBSTM03B) SHALL let the transaction file (TRNXFILE) and card cross-reference file (XREFFILE) be opened, read in key order (card number and transaction id for transactions, card number for the cross-reference) and closed. | medium | app/cbl/CBSTM03B.CBL:31-53, app/cbl/CBSTM03B.CBL:100-112, app/cbl/CBSTM03B.CBL:114-229 | +| ASGD-BR-037 | Statement data access: allowed operations per file | design note | THE statement file routine (CBSTM03B) SHALL let the customer file (CUSTFILE) and account file (ACCTFILE) be opened, read by key and closed. | medium | app/cbl/CBSTM03B.CBL:31-53, app/cbl/CBSTM03B.CBL:100-112, app/cbl/CBSTM03B.CBL:114-229 | +| ASGD-BR-038 | Statement data access: allowed operations per file | design note | THE statement file routine (CBSTM03B) SHALL open all four files for input only, so it never adds, changes or deletes records, even though write ('W') and rewrite ('Z') operation codes are defined. | medium | app/cbl/CBSTM03B.CBL:31-53, app/cbl/CBSTM03B.CBL:100-112, app/cbl/CBSTM03B.CBL:114-229 | + +### Worked examples + +- ASGD-BR-035: File = 'TRNXFILE'; Operation = 'R'; Transactions left = none → Outcome code '10' is returned. +- ASGD-BR-035: File = 'XREFFILE'; Operation = 'O' → Outcome code '00' is returned when the file opens. +- ASGD-BR-008: File = 'ACCTFILE' → It is opened, read by key for each card, and closed at the end. +- ASGD-BR-036: File = 'TRNXFILE'; Operation = 'R' → The next transaction in card number and transaction id order is returned in the 1000-byte data area. +- ASGD-BR-038: File = 'CUSTFILE'; Operation = 'W' → Nothing is written; the customer file is unchanged. + +## Decision tables + +None. + +## Design notes + +- ASGD-BR-033: Look up a customer directly by primary key (customer ID) and return the record, or a 'not found' result that the caller can tell apart from other failures. The legacy program passes the key length in from the caller. The new application should use a typed customer ID instead. +- ASGD-BR-034: Look up an account directly by its 11-digit account ID (primary key) and return the record or a clear 'not found' result. Validate the ID as 11 digits rather than relying on a key length the caller supplies. +- ASGD-BR-008: Every data source the statement job uses follows the lifecycle open, read one or more times, close. Use scoped resources that are always released, including when the run fails. +- ASGD-BR-036: Transactions must be readable in order of (card number, transaction ID), and the card cross-reference in card-number order. These are ordered sequential reads, such as streams or cursors over a sorted query, with a clear end-of-data signal. +- ASGD-BR-037: Customers and accounts are needed only for keyed point lookups. No scans or ordered reads are needed for them. +- ASGD-BR-038: The statement job's data access must be read-only. Use read-only connections or a read replica with credentials that cannot write. Expose no write or update operations, even though the legacy routine defines 'W' and 'Z' operation codes. + +## Open questions + +- SME-035: Does the caller always pass a key length of 9 for customer lookups and 11 for account lookups? Should the new system check the key length, and check that the account key is numeric, before looking it up? (Application architect) On ASGD-BR-034. +- DEF-175: Is this intended? An operation a file does not support (for example 'R' on CUSTFILE, or 'W' or 'Z' on any file) does nothing but still returns that file's last status, often '00', so the caller would take it as success; an unknown file name returns without setting any outcome code. (Subject-matter expert) On ASGD-BR-038. + +## Testing + +Every acceptance criterion in requirements.md is a test named by its ID (8 in all). diff --git a/reports/carddemo/design/package/claude-code/specs/asgd-08-publish-statements-as-pdf.md b/reports/carddemo/design/package/claude-code/specs/asgd-08-publish-statements-as-pdf.md new file mode 100644 index 00000000..0dc587e2 --- /dev/null +++ b/reports/carddemo/design/package/claude-code/specs/asgd-08-publish-statements-as-pdf.md @@ -0,0 +1,60 @@ +# Publish statements as PDF (ASGD-C08) + +**Status: DRAFT**: the function is not signed off yet. Confirm with the owner before building to it. + +Customer Account Self-Service · Account Statement Generation and Delivery · runs as scheduled job · risk high + +## Introduction + +Once statements have been created, the text statements are converted to PDF so cardholders can view and keep them in a standard format. The PDF must contain exactly the statements from the completed run, and it must never be published from a failed or partial run. + +**User story:** As a cardholder, I want my account statement delivered as a PDF, so that I can view and keep it in a standard format. + +## Requirements + +### Requirement 1: ASGD-REQ-F-039 (design note) + +#### Acceptance criteria + +1. When the statement creation job (CREASTMT) completes, the system shall run the text-to-PDF conversion (TXT2PDF, with BROWSE Y) on the account statement text file AWS.M2.CARDDEMO.STATEMNT.PS and write the statements as the PDF data set 'AWS.M2.CARDDEMO.STATEMNT.PS.PDF'. (rules ASGD-BR-039) +2. GIVEN statement text file: statements for 50 accounts produced by CREASTMT WHEN the statement creation job (CREASTMT) completes THEN The job converts the text file and writes 'AWS.M2.CARDDEMO.STATEMNT.PS.PDF' containing those statements. (ASGD-C08-AC-01; ASGD-BR-039) + +## Screens and components + +No screens: it runs as scheduled job. + +## Data models + +None found in the source. + +## Business rules + +Classes: a *business rule* is kept exactly; *formatting* may be restyled; *error handling* keeps its messages; a *side effect* is kept; a *historical artifact* is carried only after asking the owner; a *design note* is for the build, below. + +| ID | Name | Class | Rule | Confidence | Evidence | +|---|---|---|---|---|---| +| ASGD-BR-039 | Convert account statements to PDF | design note | WHEN the statement creation job (CREASTMT) completes, THE Account Statement PDF Publication SHALL run the text-to-PDF conversion (TXT2PDF, with BROWSE Y) on the account statement text file AWS.M2.CARDDEMO.STATEMNT.PS and write the statements as the PDF data set 'AWS.M2.CARDDEMO.STATEMNT.PS.PDF'. | medium | app/jcl/TXT2PDF1.JCL:24-40, app/scheduler/CardDemo.ca7:470-495, app/jcl/CREASTMT.JCL:75 | + +### Worked examples + +- ASGD-BR-039: statement text file = statements for 50 accounts produced by CREASTMT → The job converts the text file and writes 'AWS.M2.CARDDEMO.STATEMNT.PS.PDF' containing those statements. + +## Decision tables + +None. + +## Design notes + +- ASGD-BR-039: A scheduled follow-on step that starts when statement creation completes. It renders the plain-text statement report to PDF and stores the result as the published statement document (legacy name AWS.M2.CARDDEMO.STATEMNT.PS.PDF), for example in document storage. Any text-to-PDF renderer works. The legacy job uses the TXT2PDF utility with BROWSE Y. + +## Open questions + +- SME-298: What should the modernized statement PDF output be called, and where should it be stored? Today it is known only by the legacy dataset name AWS.M2.CARDDEMO.STATEMNT.PS.PDF. (Statement operations team) On ASGD-BR-039. +- SME-299: The statement PDF conversion only runs if every earlier step ended with return code 0, yet it is the job's only business step. Which earlier steps does this cover, and should the modernized system keep this check? (Batch operations team) On ASGD-BR-039. +- SME-300: If the statement PDF conversion fails or is rerun, should a rerun overwrite the existing PDF, and is a partial PDF acceptable after a failure? (Batch operations team) On ASGD-BR-039. +- SME-301: The browse option (BROWSE Y) is described only as making the statement PDF viewable. Which PDF properties must the modernized conversion keep to meet this intent? (Statement operations team) On ASGD-BR-039. +- DEF-102: Is this intended? The step carries COND=(0,NE), which looks meant to skip conversion after a failure, but as the first and only step it has nothing to test, so the PDF is produced even if the statement job's output is incomplete. (Subject-matter expert) On ASGD-BR-039. + +## Testing + +Every acceptance criterion in requirements.md is a test named by its ID (1 in all). diff --git a/reports/carddemo/design/package/claude-code/specs/cafm-01-purge-expired-pending-authorizations.md b/reports/carddemo/design/package/claude-code/specs/cafm-01-purge-expired-pending-authorizations.md new file mode 100644 index 00000000..a9956ce8 --- /dev/null +++ b/reports/carddemo/design/package/claude-code/specs/cafm-01-purge-expired-pending-authorizations.md @@ -0,0 +1,279 @@ +# Purge expired pending authorizations (CAFM-C01) + +**Status: DRAFT**: the function is not signed off yet. Confirm with the owner before building to it. + +Unclassified · Card Authorization and Fraud Management · runs as scheduled job · risk high + +## Introduction + +A scheduled batch job for the card operations team. It works through every account's pending authorizations, removes each one that has reached the expiry age, and removes an account's summary once it has no approved authorizations left. It must never delete an authorization younger than the expiry days. If a deletion fails it must stop at once with return code 16, so the store is never left half-purged without anyone knowing. + +**User story:** As a card operations team, I want pending authorizations that have reached their expiry age removed from the authorization database by a batch job, so that the pending authorization store holds only current authorizations. + +## Requirements + +### Requirement 1: CAFM-REQ-F-001 (design note) + +#### Acceptance criteria + +1. The system shall capture the current date, use the supplied expiry days when numeric or else default them to 5, and default the checkpoint frequency to 5 when it is spaces, 0 or low-values. (rules CAFM-BR-001) +2. GIVEN SYSIN: 00,00001,00001,Y WHEN Purge Parameter Setup runs THEN Expiry days is 0 (numeric, so used as given) and checkpoint frequency stays '00001'. (CAFM-C01-AC-01; CAFM-BR-001) +3. GIVEN P-EXPIRY-DAYS: 'AB'; P-CHKP-FREQ: spaces WHEN Purge Parameter Setup runs THEN Expiry days defaults to 5 and checkpoint frequency defaults to 5. (CAFM-C01-AC-02; CAFM-BR-001) +4. GIVEN P-EXPIRY-DAYS: 30; P-CHKP-FREQ: 00000 WHEN Purge Parameter Setup runs THEN Expiry days is 30 and checkpoint frequency is set to 5. (CAFM-C01-AC-03; CAFM-BR-001) + +### Requirement 2: CAFM-REQ-N-001 (design note) + +#### Acceptance criteria + +1. The system shall run the purge program (CBPAUP0C) as an IMS batch message program with program specification block PSBPAUTB, using the IMS PSB and DBD libraries. (rules CAFM-BR-002) +2. GIVEN Job: CBPAUP0J WHEN expired-authorization purge job runs THEN Step STEP01 runs DFSRRC00 with PARM 'BMP,CBPAUP0C,PSBPAUTB'. (CAFM-C01-AC-04; CAFM-BR-002) + +### Requirement 3: CAFM-REQ-F-002 (business rule) + +#### Acceptance criteria + +1. The system shall run the expired-authorization purge job with the control values '00,00001,00001,Y', meaning authorizations 0 or more days old count as expired, a checkpoint is taken after more than 1 authorization summary is processed, every checkpoint is reported, and debug messages are on. (rules CAFM-BR-003) +2. GIVEN Control values: 00,00001,00001,Y; Authorization age: 0 days (made today) WHEN expired-authorization purge job runs THEN The authorization qualifies for deletion, because its age is not less than 0 expiry days. (CAFM-C01-AC-05; CAFM-BR-003) +3. GIVEN Control values: 00,00001,00001,Y WHEN expired-authorization purge job runs THEN Debug lines such as 'DEBUG: AUTH SMRY READ : ' are printed and 'CHKP SUCCESS: AUTH COUNT - ' is shown after every checkpoint. (CAFM-C01-AC-06; CAFM-BR-003) + +### Requirement 4: CAFM-REQ-F-003 (design note) + +#### Acceptance criteria + +1. The system shall read each account's pending authorization summary in turn until the end of the database, check every authorization detail under that summary for expiry, delete each detail that qualifies, and then move on to the next summary. (rules CAFM-BR-004) +2. GIVEN Summaries in database: 2; Details under first summary: 3, of which 1 expired WHEN pending authorization purge runs THEN All 3 details of the first summary are checked and 1 is deleted before the second summary is read; the run stops when the summary read returns end of database. (CAFM-C01-AC-07; CAFM-BR-004) + +### Requirement 5: CAFM-REQ-F-004 (business rule) + +#### Acceptance criteria + +1. The system shall work out each authorization's date as 99999 minus its stored inverted date key (Julian YYDDD), and its age as today's Julian date (YYDDD) minus that date. (rules CAFM-BR-005) +2. GIVEN Stored date key: 74964; Today (YYDDD): 25040 WHEN pending authorization purge runs THEN Authorization date is 25035 and age is 5 days. (CAFM-C01-AC-08; CAFM-BR-005) + +### Requirement 6: CAFM-REQ-F-005 (business rule) + +#### Acceptance criteria + +1. When an authorization's age is at least the expiry days, the system shall mark it as qualified for deletion. (rules CAFM-BR-006) +2. GIVEN Expiry days: 5; Age: 5 WHEN an authorization's age is at least the expiry days THEN Qualified for deletion. (CAFM-C01-AC-09; CAFM-BR-006) +3. GIVEN Expiry days: 5; Age: 4 WHEN an authorization's age is at least the expiry days THEN Kept. (CAFM-C01-AC-10; CAFM-BR-006) + +### Requirement 7: CAFM-REQ-F-006 (business rule) + +#### Acceptance criteria + +1. When an authorization's age is less than the expiry days, the system shall mark it as not qualified and keep it. (rules CAFM-BR-006) +2. GIVEN Expiry days: 5; Age: 5 WHEN an authorization's age is at least the expiry days THEN Qualified for deletion. (CAFM-C01-AC-09; CAFM-BR-006) +3. GIVEN Expiry days: 5; Age: 4 WHEN an authorization's age is at least the expiry days THEN Kept. (CAFM-C01-AC-10; CAFM-BR-006) + +### Requirement 8: CAFM-REQ-F-007 (business rule) + +#### Acceptance criteria + +1. When an authorization detail qualifies for deletion, the system shall delete it from the pending authorization detail segment (PAUTDTL1) and add 1 to the details-deleted count. (rules CAFM-BR-007) +2. GIVEN Qualified for deletion: Yes; Delete status: blank (success) WHEN an authorization detail qualifies for deletion THEN Detail removed and '# DETAILS REC DELETED' count increases by 1. (CAFM-C01-AC-11; CAFM-BR-007) + +### Requirement 9: CAFM-REQ-F-008 (error handling) + +#### Acceptance criteria + +1. If deleting an authorization detail fails, then the system shall display 'AUTH DETAIL DELETE FAILED :' with the status and 'AUTH APP ID :' with the account, then display 'CBPAUP0C ABENDING ...' and end the run with return code 16. (rules CAFM-BR-008) +2. GIVEN Delete status: any non-blank code WHEN deleting an authorization detail fails THEN Messages 'AUTH DETAIL DELETE FAILED :' and 'CBPAUP0C ABENDING ...' are shown and the job ends with return code 16. (CAFM-C01-AC-12; CAFM-BR-008) + +### Requirement 10: CAFM-REQ-F-009 (business rule) + +#### Acceptance criteria + +1. When an authorization detail qualifies for purge and its response code is '00' (approved), the system shall subtract 1 from the account summary's approved count and subtract the detail's approved amount from the summary's approved total. (rules CAFM-BR-009) +2. GIVEN Summary approved count: 3; Summary approved total: $450.00; Detail response code: '00'; Detail approved amount: $120.00 WHEN an authorization detail qualifies for purge and its response code is '00' (approved) THEN Approved count becomes 2 and approved total becomes $330.00 in the run's working copy; the stored summary is unchanged. (CAFM-C01-AC-13; CAFM-BR-009) + +### Requirement 11: CAFM-REQ-F-010 (business rule) + +#### Acceptance criteria + +1. When an authorization detail qualifies for purge and its response code is anything other than '00', the system shall subtract 1 from the account summary's declined count and subtract the detail's transaction amount from the summary's declined total. (rules CAFM-BR-010) +2. GIVEN An account summary with a declined count of 3 and a declined total of 150.00, and under it an authorization detail with response code '05' and a transaction amount of 40.00 whose age is at least the expiry days WHEN The purge checks that detail and it qualifies for purge THEN In the purge's working copy of the summary, the declined count is 2 and the declined total is 110.00. The approved count and approved total are unchanged, and the stored summary record is not rewritten. (CAFM-C01-AC-18; CAFM-BR-010) + +### Requirement 12: CAFM-REQ-F-011 (business rule) + +#### Acceptance criteria + +1. The system shall make the approved and declined count and total reductions in its working copy of the summary only and shall never rewrite the summary record. (rules CAFM-BR-009, CAFM-BR-010) +2. GIVEN Summary approved count: 3; Summary approved total: $450.00; Detail response code: '00'; Detail approved amount: $120.00 WHEN an authorization detail qualifies for purge and its response code is '00' (approved) THEN Approved count becomes 2 and approved total becomes $330.00 in the run's working copy; the stored summary is unchanged. (CAFM-C01-AC-13; CAFM-BR-009) + +### Requirement 13: CAFM-REQ-F-012 (business rule) + +#### Acceptance criteria + +1. When all of an account summary's details have been checked and the adjusted approved authorization count is zero or below, the system shall delete the pending authorization summary from the summary store (DLI:PAUTSUM0). (rules CAFM-BR-011, CAFM-BR-012) +2. GIVEN Approved count after purge: 0; Declined count after purge: 2 WHEN all of an account summary's details have been checked THEN The summary is deleted even though declined authorizations remain. (CAFM-C01-AC-14; CAFM-BR-011) +3. GIVEN PA-APPROVED-AUTH-CNT: 0; DIBSTAT: spaces WHEN the approved authorization count (`PA-APPROVED-AUTH-CNT`) of the processed summary is zero or below THEN The summary segment is deleted and '# SUMMARY REC DELETED :' at end of run counts it. (CAFM-C01-AC-15; CAFM-BR-012) +4. GIVEN PA-APPROVED-AUTH-CNT: 2 WHEN the approved authorization count (`PA-APPROVED-AUTH-CNT`) of the processed summary is zero or below THEN The summary is kept. (CAFM-C01-AC-16; CAFM-BR-012) +5. GIVEN PA-APPROVED-AUTH-CNT: 0; DIBSTAT: GE WHEN the approved authorization count (`PA-APPROVED-AUTH-CNT`) of the processed summary is zero or below THEN 'AUTH SUMMARY DELETE FAILED :' is displayed with the account id, then 'CBPAUP0C ABENDING ...' and the run ends with return code 16. (CAFM-C01-AC-17; CAFM-BR-012) + +### Requirement 14: CAFM-REQ-F-013 (business rule) + +#### Acceptance criteria + +1. If deleting the pending authorization summary fails, then the system shall abend the run. (rules CAFM-BR-012) +2. GIVEN PA-APPROVED-AUTH-CNT: 0; DIBSTAT: spaces WHEN the approved authorization count (`PA-APPROVED-AUTH-CNT`) of the processed summary is zero or below THEN The summary segment is deleted and '# SUMMARY REC DELETED :' at end of run counts it. (CAFM-C01-AC-15; CAFM-BR-012) +3. GIVEN PA-APPROVED-AUTH-CNT: 2 WHEN the approved authorization count (`PA-APPROVED-AUTH-CNT`) of the processed summary is zero or below THEN The summary is kept. (CAFM-C01-AC-16; CAFM-BR-012) +4. GIVEN PA-APPROVED-AUTH-CNT: 0; DIBSTAT: GE WHEN the approved authorization count (`PA-APPROVED-AUTH-CNT`) of the processed summary is zero or below THEN 'AUTH SUMMARY DELETE FAILED :' is displayed with the account id, then 'CBPAUP0C ABENDING ...' and the run ends with return code 16. (CAFM-C01-AC-17; CAFM-BR-012) + +## Screens and components + +No screens: it runs as scheduled job. + +## Data models + +#### CIPAUSMY + +File record of CBPAUP0C. Source: `app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy`. + +Record `PA-ACCT-ID`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-ACCT-ID | | S9(11) COMP-3 | signed integer, 11 digits (packed decimal) | | | | + +Record `PA-CUST-ID`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-CUST-ID | | 9(09) | unsigned integer, 9 digits (zoned decimal) | | | | + +Record `PA-AUTH-STATUS`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-AUTH-STATUS | | X(01) | text, 1 character | | | | + +Record `PA-ACCOUNT-STATUS`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-ACCOUNT-STATUS | | X(02) | text, 2 characters | | | occurs 5 | + +Record `PA-CREDIT-LIMIT`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-CREDIT-LIMIT | | S9(09)V99 COMP-3 | signed decimal, 9 integer and 2 fraction digits (packed decimal) | | | | + +Record `PA-CASH-LIMIT`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-CASH-LIMIT | | S9(09)V99 COMP-3 | signed decimal, 9 integer and 2 fraction digits (packed decimal) | | | | + +Record `PA-CREDIT-BALANCE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-CREDIT-BALANCE | | S9(09)V99 COMP-3 | signed decimal, 9 integer and 2 fraction digits (packed decimal) | | | | + +Record `PA-CASH-BALANCE`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-CASH-BALANCE | | S9(09)V99 COMP-3 | signed decimal, 9 integer and 2 fraction digits (packed decimal) | | | | + +Record `PA-APPROVED-AUTH-CNT`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-APPROVED-AUTH-CNT | | S9(04) COMP | signed integer, 4 digits (binary) | | | | + +Record `PA-DECLINED-AUTH-CNT`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-DECLINED-AUTH-CNT | | S9(04) COMP | signed integer, 4 digits (binary) | | | | + +Record `PA-APPROVED-AUTH-AMT`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-APPROVED-AUTH-AMT | | S9(09)V99 COMP-3 | signed decimal, 9 integer and 2 fraction digits (packed decimal) | | | | + +Record `PA-DECLINED-AUTH-AMT`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| PA-DECLINED-AUTH-AMT | | S9(09)V99 COMP-3 | signed decimal, 9 integer and 2 fraction digits (packed decimal) | | | | + +Record `FILLER`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| FILLER | | X(34) | text, 34 characters | | | | + +- CIPAUDTY (working storage of CBPAUP0C): see data-contracts.md. + +## Business rules + +Classes: a *business rule* is kept exactly; *formatting* may be restyled; *error handling* keeps its messages; a *side effect* is kept; a *historical artifact* is carried only after asking the owner; a *design note* is for the build, below. + +| ID | Name | Class | Rule | Confidence | Evidence | +|---|---|---|---|---|---| +| CAFM-BR-001 | Load run date and purge parameters | design note | THE Purge Parameter Setup SHALL capture the current date, use the supplied expiry days (`P-EXPIRY-DAYS`) when numeric or else default to 5, and default the checkpoint frequency (`P-CHKP-FREQ`) to 5 when it is spaces, 0 or low-values | medium | app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:183,187,189,196-203, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:196-209 | +| CAFM-BR-002 | Run the expired authorization purge program | design note | THE expired-authorization purge job SHALL run the purge program (CBPAUP0C) as an IMS batch message program (BMP) with program specification block PSBPAUTB, using the IMS PSB and DBD libraries. | medium | app/app-authorization-ims-db2-mq/jcl/CBPAUP0J.jcl:21-37, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:98-107, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:189-209, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:160-163 | +| CAFM-BR-003 | Run the expired authorization purge program | business rule | THE expired-authorization purge job SHALL pass the control values '00,00001,00001,Y', meaning: authorizations 0 or more days old count as expired, take a checkpoint after more than 1 authorization summary is processed, report every checkpoint, and turn debug messages on. | medium | app/app-authorization-ims-db2-mq/jcl/CBPAUP0J.jcl:21-37, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:98-107, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:189-209, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:160-163 | +| CAFM-BR-004 | Traverse summaries and purge expired details | design note | THE pending authorization purge SHALL read each account's pending authorization summary in turn until the end of the database, check every authorization detail under that summary for expiry, delete each detail that qualifies, and then move on to the next summary. | medium | app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:136-167, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:216-241, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:248-271 | +| CAFM-BR-005 | Determine authorization detail expiry | business rule | THE pending authorization purge SHALL work out each authorization's date as 99999 minus its stored inverted date key (Julian YYDDD), and its age as today's Julian date (YYDDD) minus that date. | high | app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:277-296, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:303-321, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:377-383, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:186-200 | +| CAFM-BR-006 | Determine authorization detail expiry | business rule | WHEN an authorization's age is at least the expiry days, THE pending authorization purge SHALL mark it as qualified for deletion; otherwise it SHALL mark it as not qualified and keep it. | high | app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:277-296, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:303-321, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:377-383, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:186-200 | +| CAFM-BR-007 | Delete expired authorization detail | business rule | WHEN an authorization detail qualifies for deletion, THE pending authorization purge SHALL delete it from the pending authorization detail segment (PAUTDTL1) and add 1 to the details-deleted count. | high | app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:277-296, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:303-321, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:377-383, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:186-200 | +| CAFM-BR-008 | Delete expired authorization detail | error handling | WHEN deleting an authorization detail fails, THE pending authorization purge SHALL display 'AUTH DETAIL DELETE FAILED :' with the status and 'AUTH APP ID :' with the account, then display 'CBPAUP0C ABENDING ...' and end the run with return code 16. | high | app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:277-296, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:303-321, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:377-383, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:186-200 | +| CAFM-BR-009 | Reduce approved totals for expired detail | business rule | WHEN an authorization detail qualifies for purge and its response code is '00' (approved), THE pending authorization purge SHALL subtract 1 from the account summary's approved count and subtract the detail's approved amount from the summary's approved total, in its working copy of the summary only (the summary record is never rewritten). | high | app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:284-296, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:156-158, app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:27-30, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:30-35 | +| CAFM-BR-010 | Reduce declined totals for expired detail | business rule | WHEN an authorization detail qualifies for purge and its response code is anything other than '00', THE pending authorization purge SHALL subtract 1 from the account summary's declined count and subtract the detail's transaction amount from the summary's declined total, in its working copy of the summary only (the summary record is never rewritten). | high | app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:284-296, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:156-158, app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:27-30, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:30-35 | +| CAFM-BR-011 | Reverse summary totals for purged authorizations | business rule | WHEN all of an account summary's details have been checked, THE pending authorization purge SHALL use the adjusted approved count to decide whether to delete the summary, deleting it when the approved count is zero or less. | high | app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:284-296, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:156-158, app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:27-30, app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:30-35 | +| CAFM-BR-012 | Delete summary with no remaining approvals | business rule | WHEN the approved authorization count (`PA-APPROVED-AUTH-CNT`) of the processed summary is zero or below, THE Pending Authorization Purge SHALL delete the pending authorization summary from the summary store (`DLI:PAUTSUM0`), and abend the run if the deletion fails | medium | app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:156-158,328,335-338,340,342,345-346, app/app-authorization-ims-db2-mq/cbl/CBPAUP0C.cbl:142-167 | + +### Worked examples + +- CAFM-BR-001: SYSIN = 00,00001,00001,Y → Expiry days is 0 (numeric, so used as given) and checkpoint frequency stays '00001'. +- CAFM-BR-001: P-EXPIRY-DAYS = 'AB'; P-CHKP-FREQ = spaces → Expiry days defaults to 5 and checkpoint frequency defaults to 5. +- CAFM-BR-001: P-EXPIRY-DAYS = 30; P-CHKP-FREQ = 00000 → Expiry days is 30 and checkpoint frequency is set to 5. +- CAFM-BR-002: Job = CBPAUP0J → Step STEP01 runs DFSRRC00 with PARM 'BMP,CBPAUP0C,PSBPAUTB'. +- CAFM-BR-003: Control values = 00,00001,00001,Y; Authorization age = 0 days (made today) → The authorization qualifies for deletion, because its age is not less than 0 expiry days. +- CAFM-BR-003: Control values = 00,00001,00001,Y → Debug lines such as 'DEBUG: AUTH SMRY READ : ' are printed and 'CHKP SUCCESS: AUTH COUNT - ' is shown after every checkpoint. +- CAFM-BR-004: Summaries in database = 2; Details under first summary = 3, of which 1 expired → All 3 details of the first summary are checked and 1 is deleted before the second summary is read; the run stops when the summary read returns end of database. +- CAFM-BR-005: Stored date key = 74964; Today (YYDDD) = 25040 → Authorization date is 25035 and age is 5 days. +- CAFM-BR-006: Expiry days = 5; Age = 5 → Qualified for deletion. +- CAFM-BR-006: Expiry days = 5; Age = 4 → Kept. +- CAFM-BR-007: Qualified for deletion = Yes; Delete status = blank (success) → Detail removed and '# DETAILS REC DELETED' count increases by 1. +- CAFM-BR-008: Delete status = any non-blank code → Messages 'AUTH DETAIL DELETE FAILED :' and 'CBPAUP0C ABENDING ...' are shown and the job ends with return code 16. +- CAFM-BR-009: Summary approved count = 3; Summary approved total = $450.00; Detail response code = '00'; Detail approved amount = $120.00 → Approved count becomes 2 and approved total becomes $330.00 in the run's working copy; the stored summary is unchanged. +- CAFM-BR-011: Approved count after purge = 0; Declined count after purge = 2 → The summary is deleted even though declined authorizations remain. +- CAFM-BR-012: PA-APPROVED-AUTH-CNT = 0; DIBSTAT = spaces → The summary segment is deleted and '# SUMMARY REC DELETED :' at end of run counts it. +- CAFM-BR-012: PA-APPROVED-AUTH-CNT = 2 → The summary is kept. +- CAFM-BR-012: PA-APPROVED-AUTH-CNT = 0; DIBSTAT = GE → 'AUTH SUMMARY DELETE FAILED :' is displayed with the account id, then 'CBPAUP0C ABENDING ...' and the run ends with return code 16. + +## Decision tables + +#### Purge outcome for an authorization detail + +| Age at least expiry days | Response code is '00' | Purge action | Rule | +|---|---|---|---| +| Yes | Yes | Delete detail; subtract 1 from approved count and approved amount from approved total (working copy) | CAFM-BR-009 | +| Yes | No | Delete detail; subtract 1 from declined count and transaction amount from declined total (working copy) | CAFM-BR-010 | +| No | Any | Mark not qualified and keep the detail | CAFM-BR-006 | + + +## Design notes + +- CAFM-BR-001: At start-up the job takes the run date from the system clock and reads two run parameters. Expiry days is used when numeric and defaults to 5 otherwise. Checkpoint frequency defaults to 5 when it is blank, zero or missing. Check both values before any data is touched. +- CAFM-BR-002: Run the purge as a scheduled batch job that has update access to the pending authorization store, both summaries and details. It runs alongside the online authorization service, so it must commit in small batches (see the checkpoint frequency) rather than locking the whole store. +- CAFM-BR-004: Read every account summary in turn and, for each one, all of its authorization details. Delete the details that qualify, then decide whether the summary goes too, before moving to the next account. A parent-child query or keyset cursor over summaries with their details is enough. Commit every checkpoint-frequency summaries so a restart can resume from the last committed account. + +## Open questions + +- SME-028: The authorization purge job receives the parameters '00,00001,00001,Y'. What does each value mean (for example expiry days or checkpoint frequency), and would '00' mean authorizations expire after zero days? (Card authorization operations) On CAFM-BR-001, CAFM-BR-012, CAFM-BR-003, CAFM-BR-004, CAFM-BR-009, CAFM-BR-010, CAFM-BR-006, CAFM-BR-008. +- SME-029: When should a pending-authorization summary be deleted: only when both the approved and declined counts are zero and no unexpired details remain under it? (Today the code checks the approved count twice.) (Card authorization business analyst) On CAFM-BR-001, CAFM-BR-012, CAFM-BR-003, CAFM-BR-004, CAFM-BR-009, CAFM-BR-010, CAFM-BR-006, CAFM-BR-008. +- DEF-004: Is this intended? The summary-delete test checks the approved count twice ('PA-APPROVED-AUTH-CNT <= 0 AND PA-APPROVED-AUTH-CNT <= 0'), so a summary is deleted when no approved authorizations remain even if declined ones do; the declined count was almost certainly meant for the second test. (Subject-matter expert) On CAFM-BR-009, CAFM-BR-010, CAFM-BR-011. +- DEF-081: Is this intended? The age is a plain subtraction of YYDDD values, so across a year end it is wrong: an authorization dated 25365 checked on 26001 gets an age of 636 days and is purged after one day. Also, the shipped job passes '00' as expiry days, which is numeric, so the default of 5 is skipped and every detail is purged on every run. (Subject-matter expert) On CAFM-BR-006, CAFM-BR-007, CAFM-BR-008. +- DEF-140: Is this intended? The job passes 00 expiry days, which CBPAUP0C accepts as numeric, so every authorization (including ones made today) qualifies for deletion instead of the program default of 5 days. (Subject-matter expert) On CAFM-BR-003. + +## Testing + +Every acceptance criterion in requirements.md is a test named by its ID (18 in all). diff --git a/reports/carddemo/design/package/claude-code/specs/cafm-02-answer-account-inquiry-requests-from-the-queue.md b/reports/carddemo/design/package/claude-code/specs/cafm-02-answer-account-inquiry-requests-from-the-queue.md new file mode 100644 index 00000000..0f5fe7ba --- /dev/null +++ b/reports/carddemo/design/package/claude-code/specs/cafm-02-answer-account-inquiry-requests-from-the-queue.md @@ -0,0 +1,240 @@ +# Answer account inquiry requests from the queue (CAFM-C02) + +**Status: DRAFT**: the function is not signed off yet. Confirm with the owner before building to it. + +Unclassified · Card Authorization and Fraud Management · runs as online · risk high + +## Introduction + +A message-driven service for other systems. It answers an account inquiry request with the account's status, balances, limits and dates on the account reply queue, without the caller needing direct access to the account file. Each reply must carry the request's message and correlation identifiers and must show the stored values exactly as held. A bad request gets an 'INVALID REQUEST PARAMETERS' reply, never another account's data. + +**User story:** As a requesting system, I want to send an account inquiry message and receive the account's details on a reply queue, so that I can see an account's status, balances and limits without direct file access. + +## Requirements + +### Requirement 1: CAFM-REQ-F-014 (design note) + +#### Acceptance criteria + +1. When the account inquiry transaction (CDRA) is started by an MQ trigger, the system shall read requests from the queue named in the trigger message, send replies to the queue 'CARD.DEMO.REPLY.ACCT' and send error records to the queue 'CARD.DEMO.ERROR'. (rules CAFM-BR-013) +2. GIVEN trigger message queue name: CARD.DEMO.REQUEST.ACCT WHEN the account inquiry transaction (CDRA) is started by an MQ trigger THEN Requests are read from CARD.DEMO.REQUEST.ACCT; replies go to 'CARD.DEMO.REPLY.ACCT'; errors go to 'CARD.DEMO.ERROR'. (CAFM-C02-AC-01; CAFM-BR-013) + +### Requirement 2: CAFM-REQ-F-015 (business rule) + +#### Acceptance criteria + +1. The system shall take request messages one at a time, waiting up to 5 seconds for each, process and answer each one, and stop when no message arrives within 5 seconds, then close the queues it opened and end the task. (rules CAFM-BR-014) +2. GIVEN requests waiting: 3 WHEN account inquiry service runs THEN All 3 requests are answered; after a further 5 seconds with no message the queues are closed and the task ends. (CAFM-C02-AC-02; CAFM-BR-014) +3. GIVEN requests waiting: 0 WHEN account inquiry service runs THEN The service waits 5 seconds, finds nothing, closes the queues and ends without sending any reply. (CAFM-C02-AC-03; CAFM-BR-014) + +### Requirement 3: CAFM-REQ-N-002 (design note) + +#### Acceptance criteria + +1. The system shall take each request and put its reply as one unit of work committed before the next request is taken, with the last request's unit of work committed when the task ends. (rules CAFM-BR-015) +2. GIVEN requests waiting: 2 WHEN account inquiry service runs THEN Request 1 and its reply are committed before request 2 is taken; request 2 and its reply are committed when the task ends. (CAFM-C02-AC-04; CAFM-BR-015) + +### Requirement 4: CAFM-REQ-F-016 (design note) + +#### Acceptance criteria + +1. When a request is taken successfully, the system shall keep its message id and correlation id for the reply and read the first 4 characters as the function code and the next 11 digits as the account number. (rules CAFM-BR-016) +2. GIVEN request message: INQA00000012345 WHEN a request is taken successfully THEN Function code is 'INQA' and account number is 00000012345; the reply carries the request's message id and correlation id. (CAFM-C02-AC-05; CAFM-BR-016) + +### Requirement 5: CAFM-REQ-F-017 (historical artifact) + +#### Acceptance criteria + +1. The system shall always send replies to 'CARD.DEMO.REPLY.ACCT' and shall not use the reply-to queue named in the request. (rules CAFM-BR-017) +2. GIVEN request reply-to queue: MY.REPLY.Q WHEN account inquiry service runs THEN The reply still goes to 'CARD.DEMO.REPLY.ACCT'. (CAFM-C02-AC-06; CAFM-BR-017) + +### Requirement 6: CAFM-REQ-F-018 (design note) + +#### Acceptance criteria + +1. When a reply is ready for the current request, the system shall put the reply on the account reply queue carrying the request's message and correlation identifiers. (rules CAFM-BR-018) +2. GIVEN request message ID: MSG0001; request correlation ID: CORR0001; MQPUT result: OK WHEN a reply is ready for the current request THEN The reply is put on 'CARD.DEMO.REPLY.ACCT' with message ID MSG0001 and correlation ID CORR0001 (CAFM-C02-AC-07; CAFM-BR-018) +3. GIVEN reply queue: 'CARD.DEMO.REPLY.ACCT'; MQPUT result: failed (queue full) WHEN a reply is ready for the current request THEN 'MQPUT ERR' is recorded with the condition and reason codes, the error is sent to the error queue, and the queues are closed and the run ends (CAFM-C02-AC-08; CAFM-BR-018) + +### Requirement 7: CAFM-REQ-F-019 (design note) + +#### Acceptance criteria + +1. If putting the reply fails, then the system shall record 'MQPUT ERR', publish the error and end the run. (rules CAFM-BR-018) +2. GIVEN request message ID: MSG0001; request correlation ID: CORR0001; MQPUT result: OK WHEN a reply is ready for the current request THEN The reply is put on 'CARD.DEMO.REPLY.ACCT' with message ID MSG0001 and correlation ID CORR0001 (CAFM-C02-AC-07; CAFM-BR-018) +3. GIVEN reply queue: 'CARD.DEMO.REPLY.ACCT'; MQPUT result: failed (queue full) WHEN a reply is ready for the current request THEN 'MQPUT ERR' is recorded with the condition and reason codes, the error is sent to the error queue, and the queues are closed and the run ends (CAFM-C02-AC-08; CAFM-BR-018) + +### Requirement 8: CAFM-REQ-F-020 (business rule) + +#### Acceptance criteria + +1. If the function code is not 'INQA' or the account number is zero or less, then the system shall reply 'INVALID REQUEST PARAMETERS ACCT ID : ' with the account number, followed by 'FUNCTION : ' with the function code, without reading the account file. (rules CAFM-BR-019, CAFM-BR-020) +2. GIVEN function code: 'INQA'; account ID: 00000000001 WHEN the function code is not 'INQA' or the account key is zero or less THEN The request is accepted and the account file is read for account 00000000001 (CAFM-C02-AC-09; CAFM-BR-019) + +### Requirement 9: CAFM-REQ-F-021 (business rule) + +#### Acceptance criteria + +1. When a request has function code 'INQA' and an account number greater than zero, the system shall read that account from the account file (ACCTDAT). (rules CAFM-BR-021) +2. GIVEN function code: INQA; account number: 00000012345 WHEN a request has function code 'INQA' and an account number greater than zero THEN Account 00000012345 is looked up in ACCTDAT. (CAFM-C02-AC-10; CAFM-BR-021) + +### Requirement 10: CAFM-REQ-F-022 (formatting) + +#### Acceptance criteria + +1. When the account is found, the system shall reply with 'ACCOUNT ID : ', 'ACCOUNT STATUS : ', 'BALANCE : ', 'CREDIT LIMIT : ', 'CASH LIMIT : ', 'OPEN DATE : ', 'EXPR DATE : ', 'REIS DATE : ', 'CREDIT BAL : ', 'DEBIT BAL : ' and 'GROUP ID : ', each followed by the stored value unchanged, the credit and debit balances being the current billing cycle's. (rules CAFM-BR-022) +2. GIVEN Account 00000000001 is on the account file WHEN A request arrives with function code 'INQA' and account number 00000000001 THEN The reply holds 'ACCOUNT ID : ', 'ACCOUNT STATUS : ', 'BALANCE : ', 'CREDIT LIMIT : ', 'CASH LIMIT : ', 'OPEN DATE : ', 'EXPR DATE : ', 'REIS DATE : ', 'CREDIT BAL : ', 'DEBIT BAL : ' and 'GROUP ID : ', in that order, each followed by the account's stored value unchanged. 'CREDIT BAL : ' and 'DEBIT BAL : ' show the current billing cycle's credit and debit. (CAFM-C02-AC-18; CAFM-BR-022) + +### Requirement 11: CAFM-REQ-F-023 (formatting) + +#### Acceptance criteria + +1. The system shall show amounts in the reply as 12 digits with two implied decimal places, no decimal point and the sign carried in the last digit, exactly as stored. (rules CAFM-BR-023) +2. GIVEN Account 00000000001 is on the account file with a stored current balance of 1234.56 WHEN An 'INQA' request for account 00000000001 is answered THEN The value after 'BALANCE : ' is 12 digits with two implied decimal places and no decimal point, with the sign carried in the last digit, exactly as stored (not shown as '1234.56'). Every other amount in the reply follows the same layout. (CAFM-C02-AC-19; CAFM-BR-023) + +### Requirement 12: CAFM-REQ-F-024 (business rule) + +#### Acceptance criteria + +1. When the account is not on the account file, the system shall reply 'INVALID REQUEST PARAMETERS ACCT ID : ' followed by the 11-digit account number. (rules CAFM-BR-024) +2. GIVEN Account 00000000099 is not on the account file WHEN A request arrives with function code 'INQA' and account number 00000000099 THEN The reply is 'INVALID REQUEST PARAMETERS ACCT ID : ' followed by '00000000099', and no account details are returned. (CAFM-C02-AC-20; CAFM-BR-024) + +### Requirement 13: CAFM-REQ-F-025 (error handling) + +#### Acceptance criteria + +1. If reading the account file returns anything other than found or not found, then the system shall put an error record on 'CARD.DEMO.ERROR' holding the message 'ERROR WHILE READING ACCTF' (cut to 25 characters), the file response and reason codes and the input queue name, send no reply, close the open queues and end the task, with the request just taken committed as consumed. (rules CAFM-BR-025, CAFM-BR-026, CAFM-BR-027) +2. GIVEN account file response: DISABLED (84) WHEN reading the account file returns anything other than found or not found THEN Error record with 'ERROR WHILE READING ACCTF', condition 84 and the input queue name is put to 'CARD.DEMO.ERROR'. (CAFM-C02-AC-11; CAFM-BR-025) +3. GIVEN account file response: DISABLED (84); requests waiting: 2 WHEN such an account file error occurs THEN No reply is sent for the first request; the task ends and the second request stays on the queue for the next trigger. (CAFM-C02-AC-12; CAFM-BR-026) +4. GIVEN account file: disabled WHEN reading the account file fails for any reason other than account not found THEN No reply is sent; an error record goes to 'CARD.DEMO.ERROR' and the task ends. (CAFM-C02-AC-13; CAFM-BR-027) + +### Requirement 14: CAFM-REQ-F-026 (error handling) + +#### Acceptance criteria + +1. If taking a request fails for any reason other than no message being available, then the system shall put an error record with 'INP MQGET ERR:', the condition and reason codes and the input queue name on the error queue, close the open queues and end the task. (rules CAFM-BR-028) +2. GIVEN MQGET condition code: 2 (failed); reason code: 2016 (get inhibited) WHEN taking a request fails for any reason other than no message being available THEN Error record 'INP MQGET ERR:' with codes 02 and 02016 is put to 'CARD.DEMO.ERROR'; the task ends. (CAFM-C02-AC-14; CAFM-BR-028) + +### Requirement 15: CAFM-REQ-F-027 (error handling) + +#### Acceptance criteria + +1. If the trigger data cannot be retrieved, or the input or reply queue cannot be opened, then the system shall put an error record ('CICS RETREIVE' with the response codes, 'INP MQOPEN ERR' or 'OUT MQOPEN ERR' respectively) on the error queue and end the task. (rules CAFM-BR-029) +2. GIVEN input queue open: fails WHEN the trigger data cannot be retrieved, or the input or reply queue cannot be opened THEN Error record 'INP MQOPEN ERR' with the input queue name goes to 'CARD.DEMO.ERROR'; no requests are processed. (CAFM-C02-AC-15; CAFM-BR-029) +3. GIVEN reply queue open: fails WHEN the trigger data cannot be retrieved, or the input or reply queue cannot be opened THEN Error record 'OUT MQOPEN ERR' with queue 'CARD.DEMO.REPLY.ACCT' goes to 'CARD.DEMO.ERROR'; the task ends. (CAFM-C02-AC-16; CAFM-BR-029) + +### Requirement 16: CAFM-REQ-F-028 (error handling) + +#### Acceptance criteria + +1. If the error queue 'CARD.DEMO.ERROR' cannot be opened, then the system shall write 'ERR MQOPEN ERR' with the condition and reason codes to the job log and end the task. (rules CAFM-BR-030) +2. GIVEN error queue open: fails WHEN the error queue 'CARD.DEMO.ERROR' cannot be opened THEN 'ERR MQOPEN ERR' is written to the log and the task ends before any request is read. (CAFM-C02-AC-17; CAFM-BR-030) + +## Screens and components + +No screens: it runs as online. + +## Data models + +#### CVACT01Y + +File record of COACCT01. Source: `app/cpy/CVACT01Y.cpy`. + +Record `ACCOUNT-RECORD`: + +| Field | In | PIC | Type | Code type | Column type | Values | +|---|---|---|---|---|---|---| +| ACCT-ID | | 9(11) | unsigned integer, 11 digits (zoned decimal) | | | | +| ACCT-ACTIVE-STATUS | | X(01) | text, 1 character | | | | +| ACCT-CURR-BAL | | S9(10)V99 | signed decimal, 10 integer and 2 fraction digits (zoned decimal) | | | | +| ACCT-CREDIT-LIMIT | | S9(10)V99 | signed decimal, 10 integer and 2 fraction digits (zoned decimal) | | | | +| ACCT-CASH-CREDIT-LIMIT | | S9(10)V99 | signed decimal, 10 integer and 2 fraction digits (zoned decimal) | | | | +| ACCT-OPEN-DATE | | X(10) | text, 10 characters | | | | +| ACCT-EXPIRAION-DATE | | X(10) | text, 10 characters | | | | +| ACCT-REISSUE-DATE | | X(10) | text, 10 characters | | | | +| ACCT-CURR-CYC-CREDIT | | S9(10)V99 | signed decimal, 10 integer and 2 fraction digits (zoned decimal) | | | | +| ACCT-CURR-CYC-DEBIT | | S9(10)V99 | signed decimal, 10 integer and 2 fraction digits (zoned decimal) | | | | +| ACCT-ADDR-ZIP | | X(10) | text, 10 characters | | | | +| ACCT-GROUP-ID | | X(10) | text, 10 characters | | | | +| FILLER | | X(178) | text, 178 characters | | | | + + +## Business rules + +Classes: a *business rule* is kept exactly; *formatting* may be restyled; *error handling* keeps its messages; a *side effect* is kept; a *historical artifact* is carried only after asking the owner; a *design note* is for the build, below. + +| ID | Name | Class | Rule | Confidence | Evidence | +|---|---|---|---|---|---| +| CAFM-BR-013 | Process inquiry requests until queue empty | design note | WHEN the account inquiry transaction (CDRA) is started by an MQ trigger, THE account inquiry service SHALL read requests from the queue named in the trigger message, send replies to the queue 'CARD.DEMO.REPLY.ACCT' and send error records to the queue 'CARD.DEMO.ERROR'. | high | app/app-vsam-mq/cbl/COACCT01.cbl:178-218, app/app-vsam-mq/cbl/COACCT01.cbl:222-253, app/app-vsam-mq/cbl/COACCT01.cbl:255-287, app/app-vsam-mq/cbl/COACCT01.cbl:289-322 | +| CAFM-BR-014 | Process inquiry requests until queue empty | business rule | THE account inquiry service SHALL take request messages one at a time, waiting up to 5 seconds for each, process and answer each one, and stop when no message arrives within 5 seconds (reason MQRC-NO-MSG-AVAILABLE), then close the queues it opened and end the task. | high | app/app-vsam-mq/cbl/COACCT01.cbl:178-218, app/app-vsam-mq/cbl/COACCT01.cbl:222-253, app/app-vsam-mq/cbl/COACCT01.cbl:255-287, app/app-vsam-mq/cbl/COACCT01.cbl:289-322 | +| CAFM-BR-015 | Queue-driven request processing loop with per-message commit | design note | THE account inquiry service SHALL take each request and put its reply as one unit of work, committed (CICS SYNCPOINT) before the next request is taken; the last request's unit of work is committed when the task ends. | high | app/app-vsam-mq/cbl/COACCT01.cbl:178-218, app/app-vsam-mq/cbl/COACCT01.cbl:222-253, app/app-vsam-mq/cbl/COACCT01.cbl:255-287, app/app-vsam-mq/cbl/COACCT01.cbl:289-322 | +| CAFM-BR-016 | Retrieve next inquiry request | design note | WHEN a request is taken successfully, THE account inquiry service SHALL keep its message id and correlation id for the reply and read the first 4 characters as the function code and the next 11 digits as the account number. | high | app/app-vsam-mq/cbl/COACCT01.cbl:178-218, app/app-vsam-mq/cbl/COACCT01.cbl:222-253, app/app-vsam-mq/cbl/COACCT01.cbl:255-287, app/app-vsam-mq/cbl/COACCT01.cbl:289-322 | +| CAFM-BR-017 | Queue-driven request processing loop with per-message commit | historical artifact | THE account inquiry service SHALL always send replies to 'CARD.DEMO.REPLY.ACCT' and SHALL NOT use the reply-to queue named in the request, although it saves that name (SAVE-REPLY2Q). | high | app/app-vsam-mq/cbl/COACCT01.cbl:178-218, app/app-vsam-mq/cbl/COACCT01.cbl:222-253, app/app-vsam-mq/cbl/COACCT01.cbl:255-287, app/app-vsam-mq/cbl/COACCT01.cbl:289-322 | +| CAFM-BR-018 | Send reply to requester | design note | WHEN a reply is ready for the current request, THE Inquiry Reply Delivery SHALL put the reply on the account reply queue carrying the request's message and correlation identifiers; on failure record 'MQPUT ERR', publish the error and end the run (physical store: `CARD.DEMO.REPLY.ACCT`) | medium | app/app-vsam-mq/cbl/COACCT01.cbl:462,467-471,473,475-477,479-486,488-499, app/app-vsam-mq/cbl/COACCT01.cbl:462-499 | +| CAFM-BR-019 | Reject invalid inquiry request | business rule | IF the function code is not 'INQA' or the account key is zero or less, THEN THE Account Inquiry SHALL send an 'INVALID REQUEST PARAMETERS' reply quoting the account ID and function code | medium | app/app-vsam-mq/cbl/COACCT01.cbl:448-457, app/app-vsam-mq/cbl/COACCT01.cbl:390-457 | +| CAFM-BR-020 | Reply with account details | business rule | WHEN the function code is not 'INQA' or the account number is zero, THE account inquiry service SHALL reply 'INVALID REQUEST PARAMETERS ACCT ID : ' with the account number, followed by 'FUNCTION : ' with the function code, without reading the account file. | high | app/app-vsam-mq/cbl/COACCT01.cbl:130-169, app/app-vsam-mq/cbl/COACCT01.cbl:390-457, app/app-vsam-mq/cbl/COACCT01.cbl:109-112, app/cpy/CVACT01Y.cpy:4-17 | +| CAFM-BR-021 | Reply with account details | business rule | WHEN a request has function code 'INQA' and an account number greater than zero, THE account inquiry service SHALL read that account from the account file (ACCTDAT). | high | app/app-vsam-mq/cbl/COACCT01.cbl:130-169, app/app-vsam-mq/cbl/COACCT01.cbl:390-457, app/app-vsam-mq/cbl/COACCT01.cbl:109-112, app/cpy/CVACT01Y.cpy:4-17 | +| CAFM-BR-022 | Reply with account details | formatting | WHEN the account is found, THE account inquiry service SHALL reply with 'ACCOUNT ID : ', 'ACCOUNT STATUS : ', 'BALANCE : ', 'CREDIT LIMIT : ', 'CASH LIMIT : ', 'OPEN DATE : ', 'EXPR DATE : ', 'REIS DATE : ', 'CREDIT BAL : ', 'DEBIT BAL : ' and 'GROUP ID : ', each followed by the stored value unchanged, the credit and debit balances being the current billing cycle's. | high | app/app-vsam-mq/cbl/COACCT01.cbl:130-169, app/app-vsam-mq/cbl/COACCT01.cbl:390-457, app/app-vsam-mq/cbl/COACCT01.cbl:109-112, app/cpy/CVACT01Y.cpy:4-17 | +| CAFM-BR-023 | Account inquiry lookup and reply content | formatting | THE account inquiry service SHALL show amounts in the reply as 12 digits with two implied decimal places, no decimal point and the sign carried in the last digit, exactly as stored. | high | app/app-vsam-mq/cbl/COACCT01.cbl:130-169, app/app-vsam-mq/cbl/COACCT01.cbl:390-457, app/app-vsam-mq/cbl/COACCT01.cbl:109-112, app/cpy/CVACT01Y.cpy:4-17 | +| CAFM-BR-024 | Reply account not found | business rule | WHEN the account is not on the account file, THE account inquiry service SHALL reply 'INVALID REQUEST PARAMETERS ACCT ID : ' followed by the 11-digit account number. | high | app/app-vsam-mq/cbl/COACCT01.cbl:130-169, app/app-vsam-mq/cbl/COACCT01.cbl:390-457, app/app-vsam-mq/cbl/COACCT01.cbl:109-112, app/cpy/CVACT01Y.cpy:4-17 | +| CAFM-BR-025 | Fatal error reporting to error queue and termination | error handling | WHEN reading the account file returns anything other than found or not found, THE account inquiry service SHALL put an error record on 'CARD.DEMO.ERROR' holding the message 'ERROR WHILE READING ACCTF' (cut to 25 characters), the file response and reason codes, and the input queue name. | medium | app/app-vsam-mq/cbl/COACCT01.cbl:58-67, app/app-vsam-mq/cbl/COACCT01.cbl:437-445, app/app-vsam-mq/cbl/COACCT01.cbl:501-536, app/app-vsam-mq/cbl/COACCT01.cbl:538-550 | +| CAFM-BR-026 | Fatal error reporting to error queue and termination | error handling | WHEN such an account file error occurs, THE account inquiry service SHALL send no reply to the requester, close the open queues and end the task, and the request just taken is committed as consumed when the task ends. | medium | app/app-vsam-mq/cbl/COACCT01.cbl:58-67, app/app-vsam-mq/cbl/COACCT01.cbl:437-445, app/app-vsam-mq/cbl/COACCT01.cbl:501-536, app/app-vsam-mq/cbl/COACCT01.cbl:538-550 | +| CAFM-BR-027 | Account inquiry lookup and reply content | error handling | WHEN reading the account file fails for any reason other than account not found, THE account inquiry service SHALL send no reply, put an error record on the error queue and end the task. | high | app/app-vsam-mq/cbl/COACCT01.cbl:130-169, app/app-vsam-mq/cbl/COACCT01.cbl:390-457, app/app-vsam-mq/cbl/COACCT01.cbl:109-112, app/cpy/CVACT01Y.cpy:4-17 | +| CAFM-BR-028 | Retrieve next inquiry request | error handling | WHEN taking a request fails for any reason other than no message being available, THE account inquiry service SHALL put an error record with 'INP MQGET ERR:', the condition and reason codes and the input queue name on the error queue, close the open queues and end the task. | high | app/app-vsam-mq/cbl/COACCT01.cbl:178-218, app/app-vsam-mq/cbl/COACCT01.cbl:222-253, app/app-vsam-mq/cbl/COACCT01.cbl:255-287, app/app-vsam-mq/cbl/COACCT01.cbl:289-322 | +| CAFM-BR-029 | Process inquiry requests until queue empty | error handling | WHEN the trigger data cannot be retrieved, or the input or reply queue cannot be opened, THE account inquiry service SHALL put an error record ('CICS RETREIVE' with the response codes, 'INP MQOPEN ERR' or 'OUT MQOPEN ERR' respectively) on the error queue and end the task. | high | app/app-vsam-mq/cbl/COACCT01.cbl:178-218, app/app-vsam-mq/cbl/COACCT01.cbl:222-253, app/app-vsam-mq/cbl/COACCT01.cbl:255-287, app/app-vsam-mq/cbl/COACCT01.cbl:289-322 | +| CAFM-BR-030 | Process inquiry requests until queue empty | error handling | WHEN the error queue 'CARD.DEMO.ERROR' cannot be opened, THE account inquiry service SHALL write 'ERR MQOPEN ERR' with the condition and reason codes to the job log and end the task. | high | app/app-vsam-mq/cbl/COACCT01.cbl:178-218, app/app-vsam-mq/cbl/COACCT01.cbl:222-253, app/app-vsam-mq/cbl/COACCT01.cbl:255-287, app/app-vsam-mq/cbl/COACCT01.cbl:289-322 | + +### Worked examples + +- CAFM-BR-013: trigger message queue name = CARD.DEMO.REQUEST.ACCT → Requests are read from CARD.DEMO.REQUEST.ACCT; replies go to 'CARD.DEMO.REPLY.ACCT'; errors go to 'CARD.DEMO.ERROR'. +- CAFM-BR-014: requests waiting = 3 → All 3 requests are answered; after a further 5 seconds with no message the queues are closed and the task ends. +- CAFM-BR-014: requests waiting = 0 → The service waits 5 seconds, finds nothing, closes the queues and ends without sending any reply. +- CAFM-BR-015: requests waiting = 2 → Request 1 and its reply are committed before request 2 is taken; request 2 and its reply are committed when the task ends. +- CAFM-BR-016: request message = INQA00000012345 → Function code is 'INQA' and account number is 00000012345; the reply carries the request's message id and correlation id. +- CAFM-BR-017: request reply-to queue = MY.REPLY.Q → The reply still goes to 'CARD.DEMO.REPLY.ACCT'. +- CAFM-BR-018: request message ID = MSG0001; request correlation ID = CORR0001; MQPUT result = OK → The reply is put on 'CARD.DEMO.REPLY.ACCT' with message ID MSG0001 and correlation ID CORR0001 +- CAFM-BR-018: reply queue = 'CARD.DEMO.REPLY.ACCT'; MQPUT result = failed (queue full) → 'MQPUT ERR' is recorded with the condition and reason codes, the error is sent to the error queue, and the queues are closed and the run ends +- CAFM-BR-019: function code = 'INQA'; account ID = 00000000001 → The request is accepted and the account file is read for account 00000000001 +- CAFM-BR-021: function code = INQA; account number = 00000012345 → Account 00000012345 is looked up in ACCTDAT. +- CAFM-BR-025: account file response = DISABLED (84) → Error record with 'ERROR WHILE READING ACCTF', condition 84 and the input queue name is put to 'CARD.DEMO.ERROR'. +- CAFM-BR-026: account file response = DISABLED (84); requests waiting = 2 → No reply is sent for the first request; the task ends and the second request stays on the queue for the next trigger. +- CAFM-BR-027: account file = disabled → No reply is sent; an error record goes to 'CARD.DEMO.ERROR' and the task ends. +- CAFM-BR-028: MQGET condition code = 2 (failed); reason code = 2016 (get inhibited) → Error record 'INP MQGET ERR:' with codes 02 and 02016 is put to 'CARD.DEMO.ERROR'; the task ends. +- CAFM-BR-029: input queue open = fails → Error record 'INP MQOPEN ERR' with the input queue name goes to 'CARD.DEMO.ERROR'; no requests are processed. +- CAFM-BR-029: reply queue open = fails → Error record 'OUT MQOPEN ERR' with queue 'CARD.DEMO.REPLY.ACCT' goes to 'CARD.DEMO.ERROR'; the task ends. +- CAFM-BR-030: error queue open = fails → 'ERR MQOPEN ERR' is written to the log and the task ends before any request is read. + +## Decision tables + +#### Account inquiry reply + +| Function code is 'INQA' | Account number greater than zero | Account file read result | Reply sent | Rule | +|---|---|---|---|---| +| No | Any | Not read | Reply 'INVALID REQUEST PARAMETERS ACCT ID : ' with account number and 'FUNCTION : ' with function code | CAFM-BR-020 | +| Yes | No | Not read | Reply 'INVALID REQUEST PARAMETERS ACCT ID : ' with account number and 'FUNCTION : ' with function code | CAFM-BR-019 | +| Yes | Yes | Found | Reply with account details | CAFM-BR-022 | +| Yes | Yes | Not found | Reply 'INVALID REQUEST PARAMETERS ACCT ID : ' with the 11-digit account number | CAFM-BR-024 | +| Yes | Yes | Other error | No reply; error record on 'CARD.DEMO.ERROR'; end task | CAFM-BR-027 | + + +## Design notes + +- CAFM-BR-013: Run the account inquiry as a consumer on the account inquiry request queue, started when messages arrive. It replies on the fixed account reply queue ('CARD.DEMO.REPLY.ACCT') and reports failures to a shared error queue ('CARD.DEMO.ERROR'). Queue names come from configuration, and the request queue is whichever one triggered the consumer. +- CAFM-BR-015: Take a request and send its reply in one transaction, so that a request counts as consumed only when its reply is sent. Commit before taking the next request, and commit the final request's transaction when the consumer stops. +- CAFM-BR-016: Keep each request's message id and correlation id for its reply. Read the request body as fixed positions: characters 1–4 are the function code and the next 11 digits are the account number. Validate the account number as numeric before looking it up. +- CAFM-BR-018: Publish the reply to the account reply queue with the request's message and correlation identifiers, so the caller can match it to its request. If publishing fails, send an 'MQPUT ERR' record to the error queue and stop the consumer. + +## Open questions + +- SME-048: For the account inquiry service, when should the work of reading a request and sending its reply be committed or rolled back: per request, at the end of the run, or on error? (Integration architecture team) On CAFM-BR-019, CAFM-BR-018, CAFM-BR-028, CAFM-BR-030, CAFM-BR-022, CAFM-BR-024. +- SME-049: What are the exact labels and layout for every field in the account inquiry reply? Only 'ACCOUNT ID : ' and 'BALANCE : ' are known. (Card authorization business analyst) On CAFM-BR-019, CAFM-BR-018, CAFM-BR-028, CAFM-BR-030, CAFM-BR-022, CAFM-BR-024. +- SME-050: Where do the function code and account number sit within an account inquiry request message, and how should a non-numeric account number be treated? (Integration architecture team) On CAFM-BR-019, CAFM-BR-018, CAFM-BR-028, CAFM-BR-030, CAFM-BR-022, CAFM-BR-024. +- SME-051: How should the account inquiry service handle an account file read failure other than 'not found', and failures opening or closing queues? What should the published error record contain? (Card authorization business analyst) On CAFM-BR-019, CAFM-BR-018, CAFM-BR-028, CAFM-BR-030, CAFM-BR-022, CAFM-BR-024. +- SME-052: How important is the account inquiry lookup and the content of its reply? Is it critical to the system's core purpose, or a rule that is costly if it goes wrong? (Business owner (account servicing)) On CAFM-BR-027. +- SME-053: Should account inquiry replies go to the reply queue the requester names, or always to the fixed queue CARD.DEMO.REPLY.ACCT for every consumer? (Integration architect) On CAFM-BR-018. +- DEF-069: Is this intended? When the trigger data cannot be retrieved, the code moves the RESP2 code onto itself instead of into its display field, so the error record always shows a RESP2 of 00000000. Also, 'CICS RETREIVE' is misspelled in the error record. (Subject-matter expert) On CAFM-BR-017, CAFM-BR-028, CAFM-BR-030. +- DEF-171: Is this intended? The error text 'ERROR WHILE READING ACCTFILE' (28 characters) is moved into a 25-character field, so the record says 'ERROR WHILE READING ACCTF'; the paragraph field is never filled on this path, and the request is consumed with no reply to the requester. (Subject-matter expert) On CAFM-BR-026. + +## Testing + +Every acceptance criterion in requirements.md is a test named by its ID (20 in all). diff --git a/reports/carddemo/design/package/claude-code/specs/cafm-03-answer-system-date-requests-from-the-queue.md b/reports/carddemo/design/package/claude-code/specs/cafm-03-answer-system-date-requests-from-the-queue.md new file mode 100644 index 00000000..15f23975 --- /dev/null +++ b/reports/carddemo/design/package/claude-code/specs/cafm-03-answer-system-date-requests-from-the-queue.md @@ -0,0 +1,163 @@ +# Answer system date requests from the queue (CAFM-C03) + +**Status: DRAFT**: the function is not signed off yet. Confirm with the owner before building to it. + +Unclassified · Card Authorization and Fraud Management · runs as online · risk low + +## Introduction + +A message-driven service that tells calling systems the host's current date and time. Each request gets one reply reading 'SYSTEM DATE : SYSTEM TIME :