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.
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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-001 | design note | 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. | AC-01 |
REQ-F-002 | error handling | When the sort step ends normally, the system shall keep the card-ordered work copy. | AC-02 |
REQ-F-003 | error handling | 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. | AC-02 |
Business rules
| Rule | Class | Text, 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.
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.
app/jcl/CREASTMT.JCL:44-55, app/cpy/CVTRA05Y.cpy:4-18 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | 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. | REQ-F-001 Re-sequence transactions by card number worked example 1 of the rule |
| AC-02 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-004 | design note | 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. | AC-01, AC-02 |
REQ-F-005 | design note | 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. | AC-03 |
REQ-N-001 | design note | 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. | AC-04, AC-05 |
Business rules
| Rule | Class | Text, 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.
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.
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.
app/cbl/CBSTM03A.CBL:225-233, app/cbl/CBSTM03A.CBL:818-830 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | 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. | REQ-F-004 Load card-ordered transactions into keyed file worked example 1 of the rule |
| AC-02 | 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. | REQ-F-004 Load card-ordered transactions into keyed file worked example 2 of the rule |
| AC-03 | 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 | REQ-F-005 Group transactions by card in table worked example 1 of the rule |
| AC-04 | 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 | REQ-N-001 In-memory capacity limit of 51 cards x 10 transactions per card worked example 1 of the rule |
| AC-05 | 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 | 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-006 | design note | 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). | AC-01, AC-02 |
REQ-F-007 | design note | 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. | AC-03, AC-04 |
REQ-F-008 | business rule | 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. | AC-05, AC-06 |
REQ-F-009 | design note | 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. | AC-07 |
REQ-F-010 | error handling | When the statement step ends normally, the system shall keep both statement reports. | AC-08 |
REQ-F-011 | error handling | 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. | AC-08, AC-09 |
Business rules
| Rule | Class | Text, 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).
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.
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.
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.
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.
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.
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.
app/cbl/CBSTM03A.CBL:345-414, app/cbl/CBSTM03A.CBL:921-923, app/jcl/CREASTMT.JCL:87-96 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | 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. | REQ-F-006 Produce text and HTML card statements worked example 1 of the rule |
| AC-02 | 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. | REQ-F-006 Produce text and HTML card statements worked example 2 of the rule |
| AC-03 | 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 | REQ-F-007 Fixed processing sequence: load transactions, open masters, then produce statements worked example 1 of the rule |
| AC-04 | Given 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-05 | 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 | REQ-F-008 Produce one statement per card worked example 1 of the rule |
| AC-06 | 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 | REQ-F-008 Produce one statement per card worked example 2 of the rule |
| AC-07 | 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 | REQ-F-009 Produce one statement per card worked example 1 of the rule |
| AC-08 | 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. | REQ-F-010, REQ-F-011 Produce text and HTML card statements worked example 1 of the rule |
| AC-09 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-012 | formatting | 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. | AC-02 |
REQ-F-013 | formatting | 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. | AC-03 |
REQ-F-014 | formatting | 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. | AC-04 |
REQ-F-015 | formatting | 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. | AC-05 |
REQ-F-016 | formatting | 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'. | AC-01 |
REQ-F-017 | formatting | 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. | AC-01 |
REQ-F-018 | formatting | 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. | AC-06 |
Business rules
| Rule | Class | Text, 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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | 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' | REQ-F-012 Write statement header and account details written from the rule |
| AC-03 | 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 | REQ-F-013 Assemble statement holder details written from the rule |
| AC-04 | 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'. | REQ-F-014 Assemble statement holder details written from the rule |
| AC-05 | 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. | REQ-F-015 Write statement header and account details written from the rule |
| AC-06 | 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' | 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-019 | business rule | 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. | AC-01, AC-02 |
REQ-F-020 | formatting | 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. | AC-06 |
REQ-F-021 | formatting | 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. | AC-07 |
REQ-F-022 | formatting | 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. | AC-08 |
REQ-F-023 | business rule | The 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-024 | formatting | 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. | AC-09 |
REQ-F-025 | formatting | 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. | AC-05 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | 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 | REQ-F-019 List card transactions on statement worked example 1 of the rule |
| AC-02 | 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 | REQ-F-019 List card transactions on statement worked example 2 of the rule |
| AC-03 | Given 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-04 | Given 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-05 | 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 | REQ-F-025 Write total expenses and statement end worked example 1 of the rule |
| AC-06 | 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. | REQ-F-020 List card transactions and accumulate total written from the rule |
| AC-07 | 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 | REQ-F-021 Write transaction detail line written from the rule |
| AC-08 | 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 | REQ-F-022 Write one transaction row written from the rule |
| AC-09 | 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. | 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-026 | error handling | 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. | AC-02 |
REQ-F-027 | error handling | 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. | AC-03 |
REQ-F-028 | error handling | 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. | AC-04 |
REQ-F-029 | error handling | 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. | AC-05 |
REQ-F-030 | error handling | 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 <file>', 'ERROR READING TRNXFILE' or 'ERROR CLOSING <file>' with the return code and abend. | AC-06 |
REQ-F-031 | error handling | 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. | AC-07 |
REQ-F-032 | error handling | If 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
| Rule | Class | Text, 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.
app/cbl/CBSTM03A.CBL:345-414, app/cbl/CBSTM03A.CBL:921-923, app/jcl/CREASTMT.JCL:87-96 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | 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. | 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-03 | 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 | 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-04 | 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. | 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-05 | 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 | REQ-F-029 Produce one statement per card written from the rule |
| AC-06 | 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 <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-07 | 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. | 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
| File | Operation | Result code | Message and run outcome | Rule |
|---|---|---|---|---|
| CUSTFILE | Keyed read | Other than '00' | Display 'ERROR READING CUSTFILE' with return code; abend | rec/claude:claude/RULE-076/1 |
| ACCTFILE | Keyed read | Other than '00' | Display 'ERROR READING ACCTFILE' with return code; abend | rec/claude:claude/RULE-076/2 |
| XREFFILE | Next read | Other than '00' or '10' | Display 'ERROR READING XREFFILE' with return code; abend | rec/claude:claude/RULE-076/3 |
| XREFFILE, CUSTFILE or ACCTFILE | Read | Failure | Display read error with return code, then 'ABENDING PROGRAM'; abend | rec/group:claude/RULE-162/3 |
| Any statement file | Open or close | Other than '00' or '04' | Display 'ERROR OPENING <file>' or 'ERROR CLOSING <file>' with return code; abend | rec/claude:claude/RULE-077/1 |
| TRNXFILE | First read | Other than '00' or '04' | Display 'ERROR READING TRNXFILE' with return code; abend | rec/claude:claude/RULE-077/1 |
| TRNXFILE | Later read during loading | Other than '00' or '10' | Display 'ERROR READING TRNXFILE' with return code; abend | rec/claude:claude/RULE-077/2 |
| 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. | |
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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-033 | design note | 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. | AC-06 |
REQ-F-034 | design note | 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. | AC-07 |
REQ-F-035 | error handling | 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. | AC-01, AC-02 |
REQ-F-036 | design note | The system shall drive each statement file in the order open, read one or more times, then close. | AC-03 |
REQ-F-037 | design note | 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. | AC-04 |
REQ-F-038 | design note | The system shall let the customer file (CUSTFILE) and account file (ACCTFILE) be opened, read by key and closed. | AC-08 |
REQ-N-002 | design note | 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. | AC-05 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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.
app/cbl/CBSTM03B.CBL:31-53, app/cbl/CBSTM03B.CBL:100-112, app/cbl/CBSTM03B.CBL:114-229 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | 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. | REQ-F-037 Statement data access: allowed operations per file worked example 1 of the rule |
| AC-05 | Given 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-06 | 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' | REQ-F-033 Keyed customer/account lookup uses caller-supplied key length written from the rule |
| AC-07 | 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' | REQ-F-034 Keyed customer/account lookup uses caller-supplied key length written from the rule |
| AC-08 | 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. | 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-039 | design note | 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'. | AC-01 |
Business rules
| Rule | Class | Text, 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'.
app/jcl/TXT2PDF1.JCL:24-40, app/scheduler/CardDemo.ca7:470-495, app/jcl/CREASTMT.JCL:75 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | 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. | 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-001 | design note | When 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-002 | design note | When 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-003 | business rule | When 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-004 | business rule | The system shall not copy a non-zero current cycle debit to the account output record. | AC-03, AC-04 |
REQ-F-005 | historical artifact | When 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-006 | design note | When 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-007 | design note | When 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-008 | design note | When 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-009 | error handling | When 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-010 | error handling | If 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-011 | design note | When 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-012 | error handling | If 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
| Rule | Class | Text, 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
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.
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`
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.
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.
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.
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'.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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 status | Extract action | Rule |
|---|---|---|
| '00' (read successfully) | Write one account output, one balance array and two variable-length records, then read the next account | rec/group:claude/RULE-157/1 |
| '10' | End of file: stop, close the account file and end normally | rec/group:claude/RULE-157/2 |
| Other than '00' or '10' | Display 'ERROR READING ACCOUNT FILE' with status and abend with code 999 | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-013 | business rule | The 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-014 | business rule | If 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-015 | business rule | If 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-016 | business rule | If 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-017 | business rule | The 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-018 | business rule | While 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-019 | business rule | When 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
| Rule | Class | Text, 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.
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`)
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`
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`)
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.
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.
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.
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)
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'`
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
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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-16 | Given 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-17 | Given 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-18 | Given 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-19 | Given 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-20 | Given 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-reference | Linked account found | Over credit limit | Transaction after account expiration | Failure reason | Rule |
|---|---|---|---|---|---|
| No | - | - | - | Reason 100 'INVALID CARD NUMBER FOUND'; account checks skipped | rec/agreed:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-6d49a924be/1 |
| Yes | No | - | - | Reason 101 'ACCOUNT RECORD NOT FOUND'; limit and expiration checks not evaluated | rec/group:claude/RULE-082/2 |
| Yes | Yes | Yes | No | Reason 102 'OVERLIMIT TRANSACTION' | rec/group:claude/RULE-043/1 |
| Yes | Yes | No | Yes | Reason 103 'TRANSACTION RECEIVED AFTER ACCT EXPIRATION' | rec/agreed:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-8aead3d4c5/1 |
| Yes | Yes | Yes | Yes | Only reason 103 recorded (overwrites 102) | rec/group:claude/RULE-043/3 |
| Yes | Yes | No | No | Reason stays 0; transaction is posted | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-020 | business rule | When 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-021 | design note | When 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-022 | business rule | When 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-023 | business rule | When 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-024 | error handling | If 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-025 | business rule | When a daily transaction passes validation, the system shall add the transaction amount to the account's current balance. | AC-09, AC-10 |
REQ-F-026 | business rule | When 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-027 | business rule | When 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-028 | design note | The system shall save the updated balance and cycle totals back to the account record before the transaction itself is written. | AC-13 |
REQ-F-029 | historical artifact | If 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-030 | design note | When 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-031 | design note | The 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-032 | error handling | If 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
| Rule | Class | Text, 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.
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).
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.
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.
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.'.
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.
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.
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.
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.
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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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-16 | Given 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-17 | Given 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 result | Category balance action | Rule |
|---|---|---|
| Record exists | Add transaction amount to the balance and save the record | rec/group:claude/RULE-020/2 |
| Record not found | Create 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 reason | Display 'ERROR READING TRANSACTION BALANCE FILE' with status and abend | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-033 | business rule | While 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-034 | side effect | When 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-035 | error handling | If 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-036 | formatting | When 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-037 | error handling | When 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
| Rule | Class | Text, 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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-038 | design note | The 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-039 | business rule | When 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-040 | business rule | When 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-041 | business rule | When no group-specific rate exists for a category balance, the system shall use the 'DEFAULT' group rate. | AC-05 |
REQ-F-042 | business rule | If the interest rate lookup fails for any reason other than no group-specific rate existing, then the system shall abend. | AC-05 |
REQ-F-043 | business rule | When 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-044 | business rule | When 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-045 | business rule | When 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-046 | historical artifact | When 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-047 | business rule | When 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-048 | business rule | When 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-049 | error handling | If 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-050 | error handling | If 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-051 | error handling | If 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
| Rule | Class | Text, 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.
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.
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.
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`)
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
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`)
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.
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').
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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-16 | Given 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-17 | Given 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 result | Rate found | Interest action | Rule |
|---|---|---|---|
| Group-specific rate found | Non-zero | Compute balance × rate / 1200, add to account total, write interest transaction | rec/agreed:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-80b16a6fb4/1 |
| No group-specific rate | - | Use the 'DEFAULT' group rate | rec/agreed:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-cf95cd423c/1 |
| Other lookup failure | - | Abend | rec/agreed:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-cf95cd423c/1 |
| Rate found | 0 | No interest, no interest transaction, nothing added to account total | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-052 | formatting | When 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-053 | formatting | While 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-054 | design note | When 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-055 | design note | If 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-056 | formatting | 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 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
| Rule | Class | Text, 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
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`)
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-057 | design note | The 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-058 | side effect | The 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-001 | side effect | If 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
| Rule | Class | Text, 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').
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-059 | design note | The 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-060 | design note | The 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-002 | design note | If 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-061 | business rule | When 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
| Rule | Class | Text, 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.
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.
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).
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-062 | design note | The 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-003 | error handling | If the sort step fails, then the system shall delete the new combined generation instead of cataloguing it. | AC-02 |
REQ-F-063 | design note | The 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
| Rule | Class | Text, 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).
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.
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).
app/jcl/COMBTRAN.jcl:41-48, app/jcl/COMBTRAN.jcl:33-37 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-064 | design note | The 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-004 | error handling | When the backup step ends normally, the system shall keep (catalog) the new backup generation. | AC-01, AC-02, AC-04, AC-05 |
REQ-N-005 | error handling | If the backup step fails, then the system shall delete the new backup generation. | AC-01, AC-02, AC-04, AC-05 |
Business rules
| Rule | Class | Text, 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.
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.
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.
app/jcl/TRANBKP.jcl:23-33, app/proc/REPROC.prc:21-28, app/ctl/REPROCT.ctl:15 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-065 | design note | The 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-066 | design note | When 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
| Rule | Class | Text, 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.
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.
app/jcl/TRANFILE.jcl:76-111 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-067 | design note | Before 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-006 | design note | If 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-068 | design note | The 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-069 | design note | The 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
| Rule | Class | Text, 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.
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.
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.
app/jcl/TCATBALF.jcl:54-61, app/jcl/TCATBALF.jcl:22-49 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-070 | design note | The 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-071 | formatting | The 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-007 | error handling | When the report step completes normally, the system shall catalog the new category balance report. | AC-03 |
REQ-N-008 | error handling | If the report step fails, then the system shall delete the partial category balance report. | AC-03 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-072 | design note | The 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-073 | side effect | The 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-009 | error handling | When the reader step completes normally, the system shall catalog each extract. | AC-03 |
REQ-N-010 | error handling | If the reader step fails, then the system shall delete the extracts. | AC-03 |
Business rules
| Rule | Class | Text, 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.
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).
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-074 | design note | 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. | AC-01, AC-02 |
REQ-F-075 | business rule | 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). | AC-03, AC-04 |
REQ-F-076 | business rule | When 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-077 | business rule | 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. | AC-06 |
REQ-N-011 | error handling | If the sort step fails, then the system shall discard the new daily transaction extract generation instead of cataloging it. | AC-07 |
REQ-F-078 | business rule | When 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-079 | design note | When 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
| Rule | Class | Text, 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.
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).
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'.
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.
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.
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.
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.
samples/jcl/SORTTEST.jcl:19-35 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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 started | Date range used to select transactions | Rule |
|---|---|---|
| Standalone transaction report job | Fixed range '2022-01-01' to '2022-07-06' | rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-f4a043d91b/2 |
| Online report screen request | Start and end dates of that request | rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-f4a043d91b/3 |
| Sort test job | Only processing date equal to fixed date '2022-06-02' | rec/aws:CustomerAccountSelf-Service/DailyTransactionProcessingandReporting/id-945fc34dbe/1 |
| Any other way of starting the run | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-080 | design note | 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. | AC-01 |
REQ-F-081 | business rule | 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. | AC-03 |
REQ-N-012 | error handling | If the report step fails, then the system shall discard the new transaction report generation instead of cataloging it. | AC-02 |
Business rules
| Rule | Class | Text, 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.
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.
app/jcl/TRANREPT.jcl:59-80, app/proc/TRANREPT.prc:57-78, app/cbl/CORPT00C.cbl:84-125 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-082 | business rule | The 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-083 | business rule | When 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-084 | formatting | The 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-085 | business rule | When 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-086 | business rule | When 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-087 | business rule | If 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
| Rule | Class | Text, 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.
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.
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).
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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 result | Processing date within reporting period | Report action | Rule |
|---|---|---|---|
| Transaction read | Yes | Add amount to page total and account total, then print detail line | rec/group:claude/RULE-244/1 |
| Transaction read | No | Stop at once, skip this and all later transactions, close files without final page, account or grand totals | rec/group:claude/RULE-084/2 |
| End of transaction file | Not applicable | Add 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 file | No transaction read at all | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-001 | formatting | 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'. | AC-01 |
REQ-F-002 | formatting | 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'. | AC-02 |
REQ-F-003 | historical artifact | 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'. | AC-03 |
REQ-F-004 | design note | 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. | AC-04 |
REQ-F-005 | business rule | 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>'. | AC-09 |
REQ-F-006 | error handling | 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>'. | AC-10 |
REQ-F-007 | design note | When the account master read succeeds, the system shall mark the account as found. | AC-05 |
REQ-F-008 | error handling | 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>'. | AC-11 |
REQ-F-009 | error handling | 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>...'. | AC-12 |
REQ-F-010 | design note | When the customer master read for the account's customer succeeds, the system shall mark the customer as found. | AC-06 |
REQ-F-011 | error handling | 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>'. | AC-13 |
REQ-F-012 | error handling | 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>...'. | AC-14 |
REQ-F-013 | design note | 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. | AC-07 |
REQ-F-014 | design note | 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. | AC-08 |
Business rules
| Rule | Class | Text, 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'.
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'.
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.
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.
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.
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.
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.
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.
app/cbl/COACTUPC.cbl:3801-3885, app/cbl/COACTUPC.cbl:3608-3647 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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 read | Read result | Lookup outcome | Rule |
|---|---|---|---|
| Card cross-reference | Found | Take customer ID and card number for the session; go on to read account and customer | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-08e7dcbdee/1 |
| Card cross-reference | Not found | Flag 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-reference | Other failure | Flag account invalid, stop lookup, show 'File Error: READ on CXACAIX returned RESP <resp>,RESP2 <reason>' | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-08e7dcbdee/3 |
| Account master | Found | Mark account as found | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-13f3573186/1 |
| Account master | Not found | Flag input error, mark account search invalid, report 'Account:<id> not found in Acct Master file...' if no message already set | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-13f3573186/2 |
| Account master | Other failure | Flag input error, mark account search invalid, report 'File Error: READ on ACCTDAT returned RESP <resp>...' | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-13f3573186/3 |
| Customer master | Found | Mark customer as found | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-80f808be41/1 |
| Customer master | Not found | Flag input error, mark customer search invalid, report 'CustId:<id> not found in customer master...' if no message already set | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-80f808be41/2 |
| Customer master | Other failure | Flag input error, mark customer search invalid, report 'File Error: READ on CUSTDAT returned RESP <resp>...' | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-80f808be41/3 |
| Account master | Not found / Other failure | Gap: 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 entry | Account details fetched | Update stage matched | Information message | Rule |
|---|---|---|---|---|
| Yes | - | - | 'Enter or update id of account to update' | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-8cc6eb22da/1 |
| No | No | - | '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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-015 | formatting | The system shall always show the current information message and the current error or return message in their message lines. | AC-01 |
REQ-F-016 | formatting | 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.' | AC-02 |
REQ-F-017 | formatting | 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.' | AC-03, AC-04 |
REQ-F-018 | formatting | 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. | AC-05 |
REQ-F-019 | formatting | 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. | AC-06 |
REQ-F-020 | formatting | 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. | AC-07 |
REQ-F-021 | formatting | 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. | AC-08 |
REQ-F-022 | formatting | 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. | AC-09, AC-10 |
REQ-F-023 | formatting | 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. | AC-11 |
REQ-N-001 | formatting | 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. | AC-12, AC-13 |
REQ-N-002 | formatting | While 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-024 | formatting | While 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
| Rule | Class | Text, 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.
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.'
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.'
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.
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.
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.
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.
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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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 stage | Fields open for entry | Rule |
|---|---|---|
| Details shown ('S') | Account and customer detail fields editable; account number, customer number and country protected | rec/claude:claude/RULE-245/1 |
| Changes not OK ('E') | Account and customer detail fields editable; account number, customer number and country protected | rec/claude:claude/RULE-245/2 |
| Awaiting confirmation ('N') | Every field protected | rec/claude:claude/RULE-245/3 |
| Saved ('C') | Every field protected | rec/claude:claude/RULE-245/3 |
| No account fetched yet | Only account number open | rec/claude:claude/RULE-245/3 |
| Save failed | Only account number open | rec/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 fetched | Account id zero | Update stage | Values shown | Rule |
|---|---|---|---|---|
| No | - | - | All account and customer fields blank | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-377dcc0a54/2 |
| - | Yes | - | All account and customer fields blank | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-377dcc0a54/2 |
| Yes | No | Details shown ('S') | Original fetched values | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-377dcc0a54/3 |
| Yes | No | Changes made ('E','N','C','L','F') | Values the operator entered | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-025 | design note | 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. | AC-01, AC-02 |
REQ-F-026 | design note | 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. | AC-03, AC-04 |
REQ-F-027 | design note | 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. | AC-05, AC-06, AC-07 |
REQ-F-028 | design note | 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. | AC-08 |
REQ-F-029 | design note | 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. | AC-09, AC-10 |
REQ-F-030 | design note | 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. | AC-11, AC-12 |
REQ-F-031 | design note | 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. | AC-13 |
REQ-F-032 | design note | 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. | AC-14, AC-15 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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.
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.
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.
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.
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.
app/cbl/COACTUPC.cbl:1254-1275, app/cbl/COACTUPC.cbl:1533-1543, app/cpy/CSUTLDPY.cpy:341-370 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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
| Field | Entry is '*' or blank | Captured value | Rule |
|---|---|---|---|
| Account group | Yes | Not supplied | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-ad16065db1/1 |
| Account group | No | Entered group is the proposed group | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-ad16065db1/1 |
| Country code | Yes | Not supplied | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-e5b4c36c1b/1 |
| Country code | No | Entered value is the proposed country code | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-e5b4c36c1b/1 |
| Customer number | Yes | Not supplied | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-b7c4210743/1 |
| Customer number | No | Entered value is the proposed customer number | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-b7c4210743/1 |
| Government ID | Yes | Not supplied | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-d5025fc321/1 |
| Government ID | No | Entered value is the proposed government ID | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-d5025fc321/1 |
| Any of the five amounts | Yes | Not supplied | rec/group:claude/RULE-023/1 |
| Any of the five amounts | No (valid currency number) | Converted to proposed amount with two decimal places | rec/group:claude/RULE-023/2 |
| Open, expiry or reissue date part | Yes | Not supplied | rec/group:claude/RULE-086/1 |
| Open, expiry or reissue date part | No | Taken as typed | rec/group:claude/RULE-086/1 |
| Date of birth part | Yes | Not supplied | rec/group:claude/RULE-087/1 |
| Date of birth part | No | Taken as the proposed value | rec/group:claude/RULE-087/1 |
| Status, SSN, FICO score, names, address lines, city, state, ZIP, phones, EFT account, primary-holder flag | Yes / No | Gap: No rule says how '*' or blank entries are captured for these fields. | |
| Any of the five amounts | No (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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-033 | business rule | 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. | AC-01, AC-02, AC-03 |
REQ-F-034 | business rule | The 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-035 | business rule | 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. | AC-02, AC-03, AC-04, AC-05 |
REQ-F-036 | business rule | The 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-037 | business rule | 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.'). | AC-15, AC-16 |
REQ-F-038 | business rule | 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'. | AC-17, AC-18 |
REQ-F-039 | business rule | The 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-040 | business rule | 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'. | AC-08, AC-09 |
REQ-F-041 | business rule | 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'. | AC-08, AC-09 |
REQ-F-042 | business rule | 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). | AC-10, AC-11 |
REQ-F-043 | business rule | 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. | AC-12, AC-13 |
REQ-N-003 | business rule | The system shall show only the first error message found on the screen. | AC-06, AC-07 |
REQ-F-044 | business rule | When all field checks pass, the system shall set the stage to changes validated but not confirmed ('N'). | AC-14 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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.
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').
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).
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.
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').
app/cbl/COACTUPC.cbl:1429-1475, app/cbl/COACTUPC.cbl:1476-1676, app/cbl/COACTUPC.cbl:2431-2531 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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-16 | Given 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-17 | Given 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-18 | Given 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 entry | Validation result | Rule |
|---|---|---|
| Not supplied (blank or '*') | Reject with '<field> must be supplied.' | rec/group:claude/RULE-023/4 |
| Supplied, not a valid currency number | Reject with '<field> is not valid' | rec/group:claude/RULE-023/5 |
| Valid currency number (including negative or zero) | Accept, no range or sign check | rec/group:claude/RULE-023/6 |
Validation stage
| Entered values differ from fetched | Changes already validated or saved | All field checks pass | Update stage | Rule |
|---|---|---|---|---|
| Yes | No | No | Changes not OK ('E') | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-d19f8c8d13/1 |
| Yes | No | - | Mark not OK ('E') and check status, dates and five amounts | rec/group:claude/RULE-023/3 |
| Yes | No | Yes | Changes validated but not confirmed ('N') | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-d19f8c8d13/6 |
| No | No | - | 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-045 | business rule | 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. | AC-01 |
REQ-F-046 | business rule | 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. | AC-08 |
REQ-F-047 | business rule | 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.' | AC-09 |
REQ-F-048 | business rule | 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.' | AC-02 |
REQ-F-049 | business rule | If 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-050 | business rule | 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.' | AC-11 |
REQ-F-051 | business rule | If 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-052 | business rule | 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.' | AC-13 |
REQ-F-053 | business rule | 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. | AC-14 |
REQ-F-054 | business rule | 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. | AC-15 |
REQ-F-055 | business rule | 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.' | AC-03, AC-04 |
REQ-F-056 | business rule | 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. | AC-05 |
REQ-F-057 | business rule | 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. | AC-06 |
REQ-F-058 | error handling | 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. | AC-07 |
Business rules
| Rule | Class | Text, 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.
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.'
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.'
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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
| Year | Month | Day | Date check result | Rule |
|---|---|---|---|---|
| Blank | - | - | Reject '<date name> : Year must be supplied.'; continue checking month and day | rec/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 |
| - | - | Blank | Reject '<date name> : Day must be supplied.' | rec/group:claude/RULE-086/8 |
| - | - | Not a number or outside 1 to 31 | Reject '<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 12 | 31 | Reject '<date name>:Cannot have 31 days in this month.'; stop | rec/group:claude/RULE-086/10 |
| - | 2 | 30 | Reject '<date name>:Cannot have 30 days in this month.'; stop | rec/group:claude/RULE-086/11 |
| Not a leap year | 2 | 29 | Reject '<date name>:Not a leap year.Cannot have 29 days in this month.' | rec/group:claude/RULE-086/12 |
| Any part failed | Any part failed | Any part failed | Stop checking; no date-service check | rec/group:claude/RULE-086/13 |
| Valid | Valid | Valid | Confirm with date service (CSUTLDTC); reject on non-zero severity | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-059 | business rule | 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. | AC-01, AC-02, AC-03 |
REQ-F-060 | error handling | 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. | AC-04, AC-05, AC-06 |
REQ-F-061 | design note | 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. | AC-07 |
Business rules
| Rule | Class | Text, 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
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
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-062 | design note | 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. | AC-01, AC-02 |
REQ-F-063 | business rule | While 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-064 | business rule | 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. | AC-04, AC-05 |
REQ-F-065 | business rule | 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. | AC-10, AC-11 |
REQ-F-066 | business rule | 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. | AC-06 |
REQ-F-067 | business rule | 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. | AC-07, AC-08, AC-09 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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 fetched | Account number entry | Screen response | Rule |
|---|---|---|---|
| No | Blank or '*' | Show 'No input received', set account number to zeros, read no account | rec/group:claude/RULE-091/3 |
| No | Not numeric or all zeros | Show 'Account Number if supplied must be a 11 digit Non-Zero Number', set account number to zeros, read no account | rec/group:claude/RULE-091/4 |
| No | 11-digit non-zero number | Accept as current account and look the account up | rec/group:claude/RULE-091/5 |
| No | Numeric, non-zero, fewer than 11 digits entered | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-068 | business rule | 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. | AC-01, AC-02, AC-03 |
REQ-F-069 | business rule | 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. | AC-04 |
REQ-F-070 | business rule | 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. | AC-05, AC-06, AC-07 |
REQ-F-071 | design note | 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. | AC-08 |
REQ-F-072 | business rule | When 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
| Rule | Class | Text, 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.
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.
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').
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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 detected | Update state | Validation action | Rule |
|---|---|---|---|
| No | Any | Show 'No change detected with respect to values fetched.', clear error flags, run no checks, save nothing | rec/group:claude/RULE-090/2 |
| Yes | Not 'N' and not 'C' | Mark changes 'E', run every field check; move to 'N' if all pass | rec/group:claude/RULE-090/3 |
| Yes | Awaiting confirmation ('N') | Clear error flags and skip every field check | rec/group:claude/RULE-090/4 |
| Yes | Completed ('C') | Clear error flags and skip every field check | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-073 | design note | 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. | AC-01, AC-02 |
REQ-F-074 | business rule | 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'). | AC-12, AC-13 |
REQ-F-075 | business rule | 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'). | AC-03 |
REQ-F-076 | business rule | 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. | AC-04 |
REQ-F-077 | business rule | 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. | AC-05 |
REQ-F-078 | business rule | 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. | AC-06, AC-07, AC-08 |
REQ-F-079 | business rule | 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. | AC-14, AC-15, AC-16 |
REQ-F-080 | business rule | 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. | AC-09, AC-10 |
REQ-F-081 | business rule | 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. | AC-11 |
Business rules
| Rule | Class | Text, 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).
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.
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').
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.'
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.
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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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-16 | Given 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 supplied | Letters and spaces only | Valid US state code (state only) | Validation result | Rule |
|---|---|---|---|---|
| No | - | - | Reject with '<field> must be supplied.', flag 'B' | rec/group:claude/RULE-089/2 |
| Yes | No | - | Reject with '<field> can have alphabets only.', flag '0' | rec/group:claude/RULE-089/3 |
| Yes | Yes | No | Reject state, flag it, show 'State: is not a valid state code' if no earlier message | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-082 | design note | 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. | AC-01 |
REQ-F-083 | business rule | 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. | AC-02, AC-03 |
REQ-F-084 | business rule | 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. | AC-03 |
REQ-F-085 | business rule | 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. | AC-07 |
REQ-F-086 | business rule | 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. | AC-08 |
REQ-F-087 | business rule | 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'. | AC-04 |
REQ-F-088 | business rule | 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. | AC-09 |
REQ-F-089 | business rule | 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. | AC-10 |
REQ-F-090 | business rule | 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). | AC-05 |
REQ-F-091 | business rule | 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.'. | AC-11 |
REQ-F-092 | business rule | 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.'. | AC-12 |
REQ-F-093 | business rule | 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. | AC-06 |
REQ-F-094 | formatting | 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. | AC-13 |
Business rules
| Rule | Class | Text, 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.
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.
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.'
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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 part | Any part of the phone supplied | Part supplied | All digits | Zero | Listed general-purpose area code | Validation result | Rule |
|---|---|---|---|---|---|---|---|
| All parts | No | - | - | - | - | Accept phone as omitted, skip further checks | rec/group:claude/RULE-093/2 |
| Area code | Yes | No | - | - | - | 'Area code must be supplied.', go on to prefix | rec/group:claude/RULE-093/3 |
| Area code | Yes | Yes | No | - | - | 'Area code must be A 3 digit number.', go on to prefix | rec/group:claude/RULE-093/4 |
| Area code | Yes | Yes | Yes | Yes | - | 'Area code cannot be zero', go on to prefix | rec/group:claude/RULE-093/5 |
| Area code | Yes | Yes | Yes | No | No | 'Not valid North America general purpose area code' | rec/group:claude/RULE-093/6 |
| Area code | Yes | Yes | Yes | No | Yes | Accept area code | rec/group:claude/RULE-093/6 |
| Prefix | Yes | No | - | - | - | 'Prefix code must be supplied.', go on to line number | rec/group:claude/RULE-093/7 |
| Prefix | Yes | Yes | No | - | - | 'Prefix code must be A 3 digit number.', go on to line number | rec/group:claude/RULE-093/8 |
| Prefix | Yes | Yes | Yes | Yes | - | 'Prefix code cannot be zero', go on to line number | rec/group:claude/RULE-093/9 |
| Prefix | Yes | Yes | Yes | No | - | Accept prefix | rec/group:claude/RULE-093/9 |
| Line number | Yes | No | - | - | - | 'Line number code must be supplied.' | rec/group:claude/RULE-093/10 |
| Line number | Yes | Yes | No | - | - | 'Line number code must be A 4 digit number.' | rec/group:claude/RULE-093/11 |
| Line number | Yes | Yes | Yes | Yes | - | 'Line number code cannot be zero' | rec/group:claude/RULE-093/12 |
| Line number | Yes | Yes | Yes | No | - | Accept line number | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-095 | design note | 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. | AC-06 |
REQ-F-096 | business rule | 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. | AC-01 |
REQ-F-097 | business rule | 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'. | AC-02, AC-03 |
REQ-F-098 | business rule | 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.'. | AC-07, AC-08, AC-09 |
REQ-F-099 | business rule | 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. | AC-01, AC-04 |
REQ-F-100 | business rule | 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.'. | AC-10 |
REQ-F-101 | business rule | 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.'. | AC-11, AC-12 |
REQ-F-102 | business rule | 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. | AC-05 |
Business rules
| Rule | Class | Text, 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 '.
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'.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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 digits | Zero | Between 300 and 850 inclusive | Validation result | Rule |
|---|---|---|---|---|---|
| No | - | - | - | Reject with 'FICO Score must be supplied.' | rec/group:claude/RULE-088/1 |
| Yes | No | - | - | Reject with 'FICO Score must be all numeric.' | rec/group:claude/RULE-088/2 |
| Yes | Yes | Yes | - | Reject with 'FICO Score must not be zero.' | rec/group:claude/RULE-088/2 |
| Yes | Yes | No | No | Mark in error, reject with 'FICO Score: should be between 300 and 850' | rec/group:claude/RULE-088/3 |
| Yes | Yes | No | Yes | Accept | rec/group:claude/RULE-088/3 |
SSN first three characters checks
| Supplied | All numeric | Zero | 666 or 900-999 | Validation result | Rule |
|---|---|---|---|---|---|
| No | - | - | - | 'SSN: First 3 chars must be supplied.'; other parts not checked | rec/group:claude/RULE-094/2 |
| Yes | No | - | - | 'SSN: First 3 chars must be all numeric.'; other parts not checked | rec/group:claude/RULE-094/2 |
| Yes | Yes | Yes | - | 'SSN: First 3 chars must not be zero.'; other parts not checked | rec/group:claude/RULE-094/2 |
| Yes | Yes | No | Yes | 'SSN: First 3 chars: should not be 000, 666, or between 900 and 999' | rec/group:claude/RULE-094/3 |
| Yes | Yes | No | No | Go on to check 4th-5th and last 4 characters | rec/group:claude/RULE-094/4 |
| Yes | Yes | No | Yes | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-103 | design note | 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. | AC-01, AC-02 |
REQ-F-104 | business rule | 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. | AC-03 |
REQ-F-105 | business rule | 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. | AC-03, AC-04 |
REQ-F-106 | business rule | 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. | AC-05 |
Business rules
| Rule | Class | Text, 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.
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.'
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.
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).
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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 supplied | Value is 'Y' or 'N' | Validation result | Rule |
|---|---|---|---|
| No (blank, low-values or '0') | - | Reject with '<field> must be supplied.', cursor on field | rec/group:claude/RULE-092/2 |
| Yes | No | Reject with '<field> must be Y or N.', cursor on field | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-107 | error handling | When 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-108 | error handling | 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'. | AC-01, AC-02 |
REQ-F-109 | business rule | 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. | AC-07 |
REQ-F-110 | error handling | If the account rewrite fails, then the system shall not update the customer and shall show 'Update of record failed'. | AC-03 |
REQ-F-111 | business rule | 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. | AC-08 |
REQ-N-004 | error handling | If 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-112 | formatting | When both rewrites succeed, the system shall mark the change as done and tell the operator the update succeeded. | AC-05 |
REQ-F-113 | error handling | 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'. | AC-06 |
Business rules
| Rule | Class | Text, 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'.
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'.
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'.
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.
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'.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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 locked | Changed by someone else since shown | Account rewrite succeeds | Customer rewrite succeeds | Save result | Rule |
|---|---|---|---|---|---|
| No | - | - | - | Stop without saving; show lock failure message | rec/group:claude/RULE-134/1 |
| Yes | No | No | - | Customer not updated; show 'Update of record failed' | rec/group:claude/RULE-134/3 |
| Yes | No | Yes | No | Roll back account rewrite; show 'Update of record failed' | rec/group:claude/RULE-134/5 |
| Yes | No | Yes | Yes | Mark done; tell operator the update succeeded | rec/group:claude/RULE-134/6 |
| Yes | Yes | - | - | 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-114 | formatting | 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'. | AC-01 |
REQ-F-115 | business rule | 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. | AC-02, AC-03 |
REQ-F-116 | business rule | 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. | AC-04 |
REQ-F-117 | business rule | 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. | AC-05, AC-06 |
Business rules
| Rule | Class | Text, 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'.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-118 | business rule | 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. | AC-01, AC-02 |
REQ-F-119 | business rule | 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.'. | AC-03 |
REQ-F-120 | business rule | 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. | AC-04 |
REQ-F-121 | business rule | 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. | AC-05, AC-06 |
REQ-F-122 | formatting | When a save completes ('C'), the system shall show the message 'Changes committed to database'. | AC-07 |
Business rules
| Rule | Class | Text, 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.
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.'.
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.
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.
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'.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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
| State | Key pressed | Save result | Resulting action and state | Rule |
|---|---|---|---|---|
| Details shown, values changed | Any | All checks pass | State 'N', message 'Changes validated.Press F5 to save' | rec/group:claude/RULE-166/5 |
| Details shown, values changed | Any | Any check fails | State 'E' (changes not OK) | rec/group:claude/RULE-166/5 |
| Details shown, no value changed | Any | — | 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 correction | rec/group:claude/RULE-166/7 |
| 'N' | Not PF5 | — | Save nothing; show details again for confirmation | rec/group:claude/RULE-166/7 |
| 'N' | PF5 | Account cannot be locked | State 'L' | rec/group:claude/RULE-166/8 |
| 'N' | PF5 | Locked update fails | State 'F' | rec/group:claude/RULE-166/8 |
| 'N' | PF5 | Record changed by someone else since read | State 'S' (details shown again) | rec/group:claude/RULE-166/8 |
| 'N' | PF5 | Saved | State '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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-123 | business rule | When 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-124 | business rule | 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. | AC-02 |
REQ-F-125 | business rule | 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'. | AC-03, AC-04 |
REQ-F-126 | business rule | 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. | AC-05 |
REQ-F-127 | design note | 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. | AC-06 |
REQ-F-128 | business rule | 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>'. | AC-12 |
REQ-F-129 | error handling | 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>'. | AC-13 |
REQ-F-130 | design note | 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. | AC-07 |
REQ-F-131 | error handling | 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>'. | AC-14, AC-15 |
REQ-F-132 | error handling | 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. | AC-08 |
REQ-F-133 | design note | 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. | AC-09 |
REQ-F-134 | error handling | 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. | AC-16, AC-17 |
REQ-F-135 | error handling | 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. | AC-18 |
REQ-F-136 | business rule | 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. | AC-10, AC-11 |
Business rules
| Rule | Class | Text, 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.
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.
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'.
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.
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.
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.
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).
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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-16 | Given 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-17 | Given 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-18 | Given 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 entered | Result | Rule |
|---|---|---|
| '*' or blank | Not supplied: input error, no file read, session account zero, 'No input received', field shown as '*' in red | rec/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 zeros | 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 |
| 11 digits, not all zeros | Accepted as session account; go on to account lookup | rec/group:claude/RULE-096/4 |
Account and customer lookup outcome
| Card cross-reference read | Account master read | Customer master read | Result | Rule |
|---|---|---|---|---|
| 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 |
| Found | Found | — | Account marked found; details displayed | rec/group:claude/RULE-097/4 |
| Found | Not found | — | Input error; account number in red; 'Account:<account number> not found in Acct Master file.Resp:<code> Reas:<code>'; customer master still read | rec/group:claude/RULE-097/5 |
| Found | Other failure | — | 'File Error: READ on ACCTDAT returned RESP <code>,RESP2 <code>'; customer master still read | rec/group:claude/RULE-097/6 |
| Found | Any | Found | Customer marked found; customer details displayed | rec/group:claude/RULE-097/7 |
| Found | Any | Not found | Input error; 'CustId:<customer number> not found in customer master.Resp: <code> REAS:<code>' unless an earlier message is already set | rec/group:claude/RULE-097/8 |
| Found | Any | Other failure | Input error; 'File Error: READ on CUSTDAT returned RESP <code>,RESP2 <code>', replacing any earlier message | rec/group:claude/RULE-097/9 |
| Found | Not found or other failure | Any | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-137 | formatting | 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. | AC-01 |
REQ-F-138 | formatting | 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. | AC-02, AC-03, AC-04 |
REQ-N-005 | business rule | When 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-139 | formatting | 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'. | AC-06 |
REQ-F-140 | formatting | 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. | AC-07, AC-08 |
REQ-F-141 | formatting | 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. | AC-09 |
REQ-F-142 | formatting | 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. | AC-10, AC-11 |
Business rules
| Rule | Class | Text, 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.
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
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.
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.
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'.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-143 | business rule | 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. | AC-01, AC-02 |
REQ-F-144 | business rule | 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. | AC-03, AC-04 |
REQ-F-145 | design note | 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. | AC-05 |
REQ-F-146 | business rule | 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. | AC-06 |
REQ-F-147 | design note | 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'. | AC-07 |
REQ-F-148 | error handling | If 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
| Rule | Class | Text, 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.
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.
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.
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.
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'.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-N-006 | business rule | When the Bill Payment transaction is started with no session data, the system shall transfer to the sign-on program (COSGN00C). | AC-01 |
REQ-F-149 | formatting | 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. | AC-02 |
REQ-F-150 | business rule | 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. | AC-03 |
REQ-F-151 | formatting | 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. | AC-04 |
REQ-F-152 | formatting | 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...'. | AC-05, AC-06 |
REQ-F-153 | business rule | 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. | AC-07 |
REQ-F-154 | business rule | 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. | AC-08, AC-09 |
REQ-F-155 | business rule | 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...'. | AC-10, AC-11, AC-12 |
REQ-F-156 | business rule | 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). | AC-13 |
REQ-F-157 | business rule | 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. | AC-14 |
REQ-F-158 | business rule | 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. | AC-15 |
REQ-F-159 | business rule | 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. | AC-16 |
Business rules
| Rule | Class | Text, 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).
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.
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.
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.
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...'.
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.
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.
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...'
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).
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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-16 | Given 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 ID | Confirmation | Current balance | Result | Rule |
|---|---|---|---|---|
| Blank | — | — | 'Acct ID can NOT be empty...', cursor on account ID, no payment | rec/group:claude/RULE-098/1 |
| Entered | Blank | Above zero | Show current balance and 'Confirm to make a bill payment...'; post nothing | rec/group:claude/RULE-135/1 |
| Entered | Blank | Zero or less | Error 'You have nothing to pay...' | rec/agreed:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-140f759ad5/1 |
| Entered | 'Y' or 'y' | Above zero | Look up account for update, show balance, post payment for full current balance | rec/group:claude/RULE-135/2 |
| Entered | 'Y' or 'y' | Zero or less | Error '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 nothing | rec/group:claude/RULE-135/3 |
| Entered | Any other value | — | 'Invalid value. Valid values are (Y/N)...', cursor on confirmation, post nothing | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-160 | business rule | 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. | AC-01 |
REQ-F-161 | design note | 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. | AC-02 |
REQ-F-162 | business rule | 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. | AC-03 |
REQ-F-163 | error handling | 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. | AC-04 |
REQ-F-164 | business rule | 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. | AC-05, AC-06, AC-07 |
REQ-F-165 | business rule | 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. | AC-05, AC-06, AC-08 |
REQ-F-166 | business rule | 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. | AC-09, AC-10 |
REQ-F-167 | formatting | 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>.'. | AC-15 |
REQ-F-168 | error handling | 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...'. | AC-11 |
REQ-F-169 | error handling | 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. | AC-12 |
REQ-F-170 | error handling | 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. | AC-13, AC-14 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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).
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
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.
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.
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.
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.
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...'.
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.
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.
app/cbl/COBIL00C.cbl:233-235, app/cbl/COBIL00C.cbl:377-403 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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 lookup | Transaction write | Account save | Result | Rule |
|---|---|---|---|---|
| Found | Written | Saved | Balance reduced to zero; fields cleared; green 'Payment successful. Your Transaction ID is <new ID>.' | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-0764ac3c65/1 |
| Found | Transaction ID already exists | Saved | 'Tran ID already exist...'; balance still cleared without a payment on file | rec/group:claude/RULE-136/2 |
| Found | Other write failure | Saved | 'Unable to Add Bill pay Transaction...'; balance still cleared without a payment on file | rec/group:claude/RULE-136/2 |
| No card link | — | Saved | 'Account ID NOT found...'; balance still cleared without a payment on file | rec/group:claude/RULE-136/2 |
| Other failure | — | Saved | 'Unable to lookup XREF AIX file...'; balance still cleared without a payment on file | rec/group:claude/RULE-136/2 |
| Any | Any | Account not found | 'Account ID NOT found...', cursor on account ID | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-c64693b684/2 |
| Any | Any | Other failure | 'Unable to Update Account...', cursor on account ID | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-c64693b684/2 |
| Found | Written | Account not found or other failure | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-171 | business rule | 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. | AC-01, AC-02 |
REQ-F-172 | business rule | 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. | AC-03 |
Business rules
| Rule | Class | Text, 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
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
app/cbl/CORPT00C.cbl:208,212-215,217-221,223-230,232-236,238, app/cbl/CORPT00C.cbl:213-238 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-N-007 | business rule | When 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-173 | formatting | 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. | AC-02 |
REQ-F-174 | formatting | When the user presses PF3 on the transaction report screen, the system shall return to the main menu (COMEN01C). | AC-03 |
REQ-F-175 | business rule | When the user presses Enter on the transaction report screen, the system shall process the report request. | AC-04 |
REQ-F-176 | business rule | 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. | AC-05 |
Business rules
| Rule | Class | Text, 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).
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.
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).
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.
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.
app/cbl/CORPT00C.cbl:172-197, app/cbl/CORPT00C.cbl:540-551, app/cpy/CSMSG01Y.cpy:20-21 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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 pressed | Screen action | Rule |
|---|---|---|
| PF3 | Return to the main menu (COMEN01C) | rec/claude:claude/RULE-185/3 |
| Enter | Process the report request | rec/claude:claude/RULE-185/4 |
| Any other key | Show 'Invalid key pressed. Please see below...' with the cursor on Monthly | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-177 | business rule | 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. | AC-01, AC-02 |
REQ-F-178 | business rule | 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. | AC-03 |
REQ-F-179 | business rule | 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. | AC-04, AC-05 |
REQ-F-180 | design note | 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. | AC-06 |
REQ-F-181 | business rule | 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. | AC-07 |
REQ-F-182 | business rule | 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. | AC-08 |
REQ-F-183 | business rule | 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. | AC-09 |
REQ-F-184 | business rule | 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'). | AC-10, AC-11 |
REQ-F-185 | business rule | 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'). | AC-12 |
REQ-F-186 | business rule | 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. | AC-13 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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 marked | Yearly marked | Custom marked | Report processed | Rule |
|---|---|---|---|---|
| No | No | No | Show 'Select a report type to print report...' with the cursor on Monthly and submit nothing | rec/group:claude/RULE-226/2 |
| Yes | Any | Any | Process Monthly; ignore any other marked type | rec/group:claude/RULE-226/1 |
| No | Yes | Any | Process Yearly; ignore Custom if marked | rec/group:claude/RULE-226/1 |
| No | No | Yes | Process Custom using the entered start and end dates once they pass every check | rec/group:claude/RULE-176/1 |
| Yes | Any | Any | Gap: No rule states which start and end dates are used as the report period for a Monthly report. | |
| No | Yes | Any | Gap: 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 entered | Month, day and year in range and numeric | Start 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 result | Rule |
|---|---|---|---|---|---|
| No | Any | Any | Any | Show message for first blank part, cursor on it, submit nothing | rec/group:claude/RULE-110/1 |
| Yes | No - month above '12' or not numeric | Any | Any | Show 'Start/End Date - Not a valid Month...', cursor on that month, submit nothing | rec/group:claude/RULE-110/3 |
| Yes | No - day above '31' or not numeric | Any | Any | Show 'Start/End Date - Not a valid Day...', cursor on that day, submit nothing | rec/group:claude/RULE-110/4 |
| Yes | No - year not numeric | Any | Any | Show 'Start/End Date - Not a valid Year...', cursor on that year, submit nothing | rec/group:claude/RULE-110/5 |
| Yes | Yes | No | Any | Show 'Start Date - Not a valid date...', cursor on start month, submit nothing | rec/group:claude/RULE-110/6 |
| Yes | Yes | Yes | No | Show 'End Date - Not a valid date...', cursor on end month, submit nothing | rec/group:claude/RULE-110/7 |
| Yes | Yes | Yes | Yes | Use entered dates as the report period, name report 'Custom', go on to submit | rec/group:claude/RULE-176/1 |
| Yes | No - more than one part invalid | Any | Any | Gap: 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). | |
| Yes | Yes | Yes | Yes | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-187 | business rule | 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. | AC-05 |
REQ-F-188 | business rule | 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. | AC-06 |
REQ-F-189 | business rule | 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. | AC-01 |
REQ-F-190 | business rule | 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. | AC-07 |
REQ-F-191 | design note | 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'. | AC-08 |
REQ-F-192 | side effect | 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. | AC-02 |
REQ-F-193 | error handling | 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. | AC-03, AC-04 |
REQ-F-194 | formatting | 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. | AC-09 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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 value | Submission result | Rule |
|---|---|---|
| Blank | Show 'Please confirm to print the <report name> report...', cursor on Confirm, submit nothing | rec/group:claude/RULE-111/1 |
| 'Y' or 'y' | Submit report job (TRNRPT00), clear screen, show '<report name> report submitted for printing ...' in green | rec/group:claude/RULE-111/2 |
| 'N' or 'n' | Clear entry fields, submit nothing, redisplay with no message and cursor on Monthly | rec/group:claude/RULE-111/3 |
| Any other value | Show '"<value>" is not a valid value to confirm...', cursor on Confirm, submit nothing | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-195 | business rule | 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. | AC-01 |
REQ-F-196 | design note | 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. | AC-02 |
REQ-F-197 | business rule | 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. | AC-03, AC-04 |
REQ-F-198 | business rule | 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. | AC-05 |
REQ-F-199 | business rule | 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. | AC-06 |
REQ-F-200 | business rule | 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. | AC-07, AC-08 |
REQ-F-201 | business rule | 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. | AC-09 |
REQ-F-202 | formatting | 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. | AC-10 |
REQ-F-203 | business rule | 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. | AC-11 |
REQ-F-204 | formatting | When 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-205 | formatting | 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). | AC-31, AC-32 |
REQ-F-206 | design note | 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. | AC-13 |
REQ-F-207 | design note | 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. | AC-14 |
REQ-F-208 | business rule | 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. | AC-15, AC-16 |
REQ-F-209 | business rule | 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. | AC-17 |
REQ-F-210 | formatting | 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...'. | AC-18 |
REQ-F-211 | error handling | 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...'. | AC-19 |
REQ-F-212 | business rule | 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. | AC-20 |
REQ-F-213 | formatting | 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...'. | AC-21, AC-22 |
REQ-F-214 | business rule | 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. | AC-23 |
REQ-F-215 | formatting | 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. | AC-24, AC-25 |
REQ-F-216 | design note | 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. | AC-26 |
REQ-F-217 | formatting | 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. | AC-27 |
REQ-F-218 | business rule | 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. | AC-28, AC-29 |
REQ-F-219 | error handling | 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. | AC-30 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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...'.
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...'.
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.
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...'
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.
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.
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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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-16 | Given 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-17 | Given 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-18 | Given 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-19 | Given 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-20 | Given 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-21 | Given 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-22 | Given 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-23 | Given 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-24 | Given 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-25 | Given 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-26 | Given 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-27 | Given 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-28 | Given 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-29 | Given 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-30 | Given 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-31 | Given 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-32 | Given 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 pressed | Current page number | Next page available | Paging result | Rule |
|---|---|---|---|---|
| PF7 | Greater than 1 | Any | Read from the page's first transaction ID, mark next page available, show previous page | rec/group:claude/RULE-028/1 |
| PF7 | 1 or lower | Any | Redisplay current screen with 'You are already at the top of the page...', mark next page available | rec/group:claude/RULE-028/2 |
| PF8 | Any | Yes | Restart after the page's last transaction ID and show up to the next 10 transactions | rec/group:claude/RULE-029/1 |
| PF8 | Any | No | Redisplay 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 content | Transaction at or above the filter ID on file | List result | Rule |
|---|---|---|---|
| Blank | Any | Show first page from the first transaction on file | rec/group:claude/RULE-114/1 |
| Numeric (all 16 digits) | Yes | Start list at that ID or the next higher ID | rec/group:claude/RULE-114/2 |
| Numeric (all 16 digits) | No | Show 'You are at the top of the page...' with no rows and page number 0 | rec/group:claude/RULE-114/5 |
| Not entirely digits | Any | Show 'Tran ID must be Numeric ...', cursor on filter, keep entry, no new page | rec/group:claude/RULE-114/3 |
| Blank | No | Gap: No rule states what is shown when the filter is blank and the transaction file holds no transactions. | |
Page completion and next-page indicator
| Direction | All 10 rows filled | Further transaction exists | Page number and indicator | Rule |
|---|---|---|---|---|
| Forward | Yes | Yes | Add 1 to page number; next page available Y | rec/group:claude/RULE-029/4 |
| Forward | Yes | No | Add 1 to page number; next page available N; show 'You have reached the bottom of the page...' | rec/group:claude/RULE-029/4 |
| Forward | No | No | Next page available N; add 1 to page number only if at least one transaction placed | rec/group:claude/RULE-029/5 |
| Backward | Yes | Yes | Decrease page number by 1 if above 1, otherwise set to 1 | rec/group:claude/RULE-028/5 |
| Backward | Yes | No | Set page number to 1 | rec/group:claude/RULE-028/5 |
| Backward | No | No | Show 'You have reached the top of the page...', leave top rows blank, page number unchanged | rec/group:claude/RULE-028/6 |
| Backward | No | Any | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-220 | business rule | 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. | AC-01, AC-02, AC-03 |
REQ-F-221 | business rule | 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. | AC-04 |
REQ-F-222 | business rule | 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. | AC-05 |
REQ-F-223 | design note | 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. | AC-06 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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.
app/cbl/COTRN00C.cbl:146-183, app/cbl/COTRN00C.cbl:184-186 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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 code | Selection code of first marked row | Row has a transaction ID | Selection result | Rule |
|---|---|---|---|---|
| No | - | - | Clear remembered selection; open nothing; redisplay list | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-2fff8352cb/1 |
| Yes | 'S' or 's' | Yes | Open Transaction Detail (COTRN01C) for that ID as a fresh entry | rec/group:claude/RULE-113/2 |
| Yes | Any other value | Any | Show 'Invalid selection. Valid value is S', cursor on search field, redisplay list | rec/group:claude/RULE-113/3 |
| Yes | 'S' or 's' | No | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-N-008 | business rule | 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'. | AC-01 |
REQ-N-009 | business rule | 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. | AC-02 |
REQ-F-224 | business rule | When the user presses PF3 on the transaction list, the system shall return the user to the main menu program 'COMEN01C'. | AC-03 |
REQ-F-225 | business rule | 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. | AC-04 |
REQ-N-010 | design note | 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. | AC-05 |
Business rules
| Rule | Class | Text, 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'.
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.
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'.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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 pressed | Screen action | Rule |
|---|---|---|
| Enter | Run search and selection | rec/group:claude/RULE-179/4 |
| PF3 | Return to main menu 'COMEN01C' | rec/group:claude/RULE-179/5 |
| PF7 | Show the previous page | rec/group:claude/RULE-179/4 |
| PF8 | Show the next page | rec/group:claude/RULE-179/4 |
| Any other key | Redisplay with 'Invalid key pressed. Please see below...', cursor on transaction ID field | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-226 | formatting | 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. | AC-01 |
REQ-F-227 | business rule | 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. | AC-02 |
Business rules
| Rule | Class | Text, 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
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
app/cbl/COTRN01C.cbl:144,146-154,156, app/cbl/COTRN01C.cbl:144-156 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-228 | business rule | When 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-229 | business rule | 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). | AC-02, AC-03 |
REQ-F-230 | business rule | 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...'. | AC-04 |
REQ-F-231 | formatting | 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. | AC-12 |
REQ-F-232 | formatting | 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). | AC-13 |
REQ-F-233 | business rule | 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. | AC-05 |
REQ-N-011 | error handling | 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...'. | AC-06 |
REQ-F-234 | business rule | 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. | AC-07, AC-08 |
REQ-F-235 | formatting | 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. | AC-09 |
REQ-F-236 | business rule | When the user presses PF5 on the Transaction View, the system shall go to the transaction list (COTRN00C). | AC-10 |
REQ-F-237 | business rule | 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...'. | AC-11 |
Business rules
| Rule | Class | Text, 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.
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).
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...'.
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.
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...'.
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.
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.
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).
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...'.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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 ID | Transaction file read result | Screen result | Rule |
|---|---|---|---|
| blank | not read | No lookup; message 'Tran ID can NOT be empty...' | rec/group:claude/RULE-117/1 |
| entered | found | Show transaction and merchant details with signed amount | rec/group:claude/RULE-117/3 |
| entered | not found | Message 'Transaction ID NOT found...', cursor on Transaction ID | rec/group:claude/RULE-117/4 |
| entered | other failure | Log response and reason codes; message 'Unable to lookup Transaction...' | rec/group:claude/RULE-117/5 |
Transaction View key handling
| Key pressed | Screen action | Rule |
|---|---|---|
| Enter | Read entered Transaction ID and look up the transaction | rec/group:claude/RULE-254/1 |
| PF3 | Return to calling program, or main menu COMEN01C if none known | rec/group:claude/RULE-254/2 |
| PF4 | Clear all fields and message, cursor on Transaction ID | rec/group:claude/RULE-254/3 |
| PF5 | Go to transaction list COTRN00C | rec/group:claude/RULE-254/4 |
| any other key | Message '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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-N-012 | business rule | If 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-238 | formatting | 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. | AC-02 |
REQ-F-239 | business rule | 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. | AC-03 |
REQ-F-240 | business rule | 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. | AC-04, AC-05 |
REQ-F-241 | business rule | When 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-242 | business rule | When 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-243 | business rule | 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. | AC-06, AC-07, AC-08 |
REQ-F-244 | business rule | 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...'. | AC-09 |
Business rules
| Rule | Class | Text, 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'.
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.
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.
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.
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.
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
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...'.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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 pressed | Screen action | Rule |
|---|---|---|
| Enter | Check entries and add the transaction if confirmed | rec/group:claude/RULE-186/5 |
| PF3 | Return to calling program, or main menu COMEN01C if none recorded | rec/group:claude/RULE-186/4 |
| PF4 | Clear all fields and redisplay the form | rec/group:claude/RULE-186/5 |
| PF5 | Fill data fields from the most recent transaction, then process as for Enter | rec/group:claude/RULE-186/5 |
| any other key | Message '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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-245 | business rule | 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. | AC-01, AC-02 |
REQ-F-246 | business rule | 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. | AC-03 |
REQ-F-247 | business rule | 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. | AC-04, AC-05 |
REQ-F-248 | business rule | 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. | AC-06, AC-07 |
REQ-F-249 | business rule | 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. | AC-08 |
REQ-N-013 | error handling | 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. | AC-09 |
REQ-F-250 | business rule | 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. | AC-10 |
REQ-F-251 | business rule | 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. | AC-11 |
REQ-F-252 | business rule | 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. | AC-12 |
REQ-N-014 | error handling | 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. | AC-13 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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 ID | Card number | Cross-reference lookup result | Result | Rule |
|---|---|---|---|---|
| blank | blank | not looked up | Message 'Account or Card Number must be entered...', cursor on account ID, save nothing | rec/group:claude/RULE-118/10 |
| entered, not all digits | any | not looked up | Message 'Account ID must be Numeric...', cursor on account ID, save nothing | rec/group:claude/RULE-118/2 |
| numeric | any | account found (CXACAIX) | Card number filled with linked card, replacing any typed card number | rec/group:claude/RULE-118/3 |
| numeric | any | account not found | Message 'Account ID NOT found...', cursor on account ID, save nothing | rec/group:claude/RULE-118/4 |
| numeric | any | other lookup failure | Log response codes; message 'Unable to lookup Acct in XREF AIX file...', save nothing | rec/group:claude/RULE-118/5 |
| blank | entered, not all digits | not looked up | Message 'Card Number must be Numeric...', cursor on card number, save nothing | rec/group:claude/RULE-118/6 |
| blank | numeric | card found (CCXREF) | Account ID filled with account linked to the card | rec/group:claude/RULE-118/7 |
| blank | numeric | card not found | Message 'Card Number NOT found...', cursor on card number, save nothing | rec/group:claude/RULE-118/8 |
| blank | numeric | other lookup failure | Log response codes; message 'Unable to lookup Card # in XREF file...', save nothing | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-253 | business rule | 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. | AC-01 |
REQ-F-254 | business rule | 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. | AC-02 |
REQ-F-255 | business rule | 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). | AC-03 |
REQ-F-256 | business rule | 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). | AC-04 |
REQ-F-257 | business rule | 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). | AC-05 |
REQ-F-258 | business rule | 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). | AC-06 |
REQ-F-259 | business rule | 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). | AC-07 |
REQ-F-260 | business rule | 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). | AC-08 |
REQ-F-261 | business rule | 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). | AC-09 |
REQ-F-262 | business rule | 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). | AC-10 |
REQ-F-263 | business rule | 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). | AC-11 |
REQ-F-264 | business rule | 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). | AC-12 |
REQ-F-265 | business rule | 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). | AC-13 |
REQ-F-266 | business rule | When 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-267 | business rule | 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. | AC-15 |
REQ-F-268 | business rule | 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. | AC-16 |
REQ-F-269 | business rule | 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. | AC-17, AC-18 |
REQ-F-270 | design note | 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. | AC-19, AC-20 |
REQ-F-271 | business rule | 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. | AC-21, AC-22 |
REQ-F-272 | business rule | 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. | AC-23 |
REQ-F-273 | business rule | 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. | AC-24, AC-25 |
REQ-F-274 | business rule | 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. | AC-26 |
REQ-F-275 | business rule | 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. | AC-27, AC-28, AC-29 |
REQ-F-276 | business rule | 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. | AC-30 |
Business rules
| Rule | Class | Text, 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.
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.
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).
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).
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).
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).
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).
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).
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).
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).
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).
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).
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).
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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-16 | Given 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-17 | Given 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-18 | Given 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-19 | Given 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-20 | Given 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-21 | Given 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-22 | Given 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-23 | Given 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-24 | Given 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-25 | Given 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-26 | Given 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-27 | Given 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-28 | Given 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-29 | Given 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-30 | Given 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 order | Message and cursor | Rule |
|---|---|---|
| Type CD | 'Type CD can NOT be empty...', cursor on TTYPCDI | rec/group:claude/RULE-119/3 |
| Category CD | 'Category CD can NOT be empty...', cursor on TCATCDI | rec/group:claude/RULE-119/4 |
| Source | 'Source can NOT be empty...', cursor on TRNSRCI | rec/group:claude/RULE-119/5 |
| Description | 'Description can NOT be empty...', cursor on TDESCI | rec/group:claude/RULE-119/6 |
| Amount | 'Amount can NOT be empty...', cursor on TRNAMTI | rec/group:claude/RULE-119/7 |
| Orig Date | 'Orig Date can NOT be empty...', cursor on TORIGDTI | rec/group:claude/RULE-119/8 |
| Proc Date | 'Proc Date can NOT be empty...', cursor on TPROCDTI | rec/group:claude/RULE-119/9 |
| Merchant ID | 'Merchant ID can NOT be empty...', cursor on MIDI | rec/group:claude/RULE-119/10 |
| Merchant Name | 'Merchant Name can NOT be empty...', cursor on MNAMEI | rec/group:claude/RULE-119/11 |
| Merchant City | 'Merchant City can NOT be empty...', cursor on MCITYI | rec/group:claude/RULE-119/12 |
| Merchant Zip | 'Merchant Zip can NOT be empty...', cursor on MZIPI | rec/group:claude/RULE-119/13 |
| none | Pass blank check; go on to numeric and format checks | rec/group:claude/RULE-119/14 |
Date checks
| Orig Date form YYYY-MM-DD | Orig Date confirmed real by CSUTLDTC | Proc Date form YYYY-MM-DD | Proc Date confirmed real by CSUTLDTC | Result | Rule |
|---|---|---|---|---|---|
| no | - | - | - | 'Orig Date should be in format YYYY-MM-DD', save nothing | rec/group:claude/RULE-120/1 |
| - | - | no | - | 'Proc Date should be in format YYYY-MM-DD', save nothing | rec/group:claude/RULE-120/2 |
| yes | no | - | - | 'Orig Date - Not a valid date...', save nothing | rec/group:claude/RULE-120/3 |
| yes | yes | - | no | 'Proc Date - Not a valid date...', save nothing | rec/group:claude/RULE-120/4 |
| yes | no | no | - | 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. | |
| yes | yes | yes | yes | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-277 | business rule | When every Transaction Add field passes validation and Confirm is 'Y' or 'y', the system shall add the transaction. | AC-01 |
REQ-F-278 | business rule | 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. | AC-02 |
REQ-F-279 | business rule | 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. | AC-03 |
REQ-F-280 | error handling | 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. | AC-04 |
REQ-F-281 | business rule | 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. | AC-05, AC-06 |
REQ-F-282 | formatting | 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>.' | AC-09 |
REQ-F-283 | error handling | 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. | AC-07 |
REQ-N-015 | error handling | 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. | AC-08 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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.
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.
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.
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.
app/cbl/COTRN02C.cbl:735-749 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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 result | Write result | Result | Rule |
|---|---|---|---|
| highest number found | - | New number = highest + 1, 16-digit zero-padded | rec/group:claude/RULE-031/1 |
| end of file (no transactions) | - | New number 0000000000000001 | rec/group:claude/RULE-031/2 |
| start position not found | not attempted | Add nothing; 'Transaction ID NOT found...', cursor on Account ID | rec/group:claude/RULE-031/3 |
| other error | not attempted | Add nothing; 'Unable to lookup Transaction...', cursor on Account ID | rec/group:claude/RULE-031/3 |
| number assigned | success | Clear fields; green 'Transaction added successfully. Your Tran ID is <number>.' | rec/group:claude/RULE-138/2 |
| number assigned | number already exists | 'Tran ID already exist...', cursor on Account ID, keep entries | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-3ea16ae2ee/1 |
| number assigned | other failure | 'Unable to Add Transaction...', cursor on Account ID, log response codes | rec/aws:CustomerAccountSelf-Service/OnlineAccountandTransactionManagement/id-3ea16ae2ee/2 |
| all fields valid | Confirm 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-284 | business rule | 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. | AC-01, AC-02 |
REQ-F-285 | business rule | 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. | AC-03 |
Business rules
| Rule | Class | Text, 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.
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.
app/cbl/COTRN02C.cbl:160-188, app/cbl/COTRN02C.cbl:516-534 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-286 | design note | 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. | AC-12 |
REQ-F-287 | design note | 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. | AC-13 |
REQ-F-288 | business rule | 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'. | AC-01 |
REQ-F-289 | business rule | If 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-290 | business rule | 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'. | AC-14 |
REQ-F-291 | business rule | 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'. | AC-03 |
REQ-F-292 | business rule | 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'. | AC-04 |
REQ-F-293 | business rule | 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'. | AC-05 |
REQ-F-294 | business rule | 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'. | AC-06 |
REQ-F-295 | business rule | 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'. | AC-07 |
REQ-F-296 | business rule | 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. | AC-08 |
REQ-F-297 | business rule | If 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-298 | business rule | 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...'. | AC-10, AC-11 |
Business rules
| Rule | Class | Text, 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'.
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'.
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'.
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'.
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'.
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'.
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'.
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.
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'.
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...'.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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
- Transaction reports
S-REPORT-REQUEST· design · replaces CORPT0A (1 kept, 3 dropped, 16 merged) - 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)
Data contracts
None found in the source.
Decision tables
Date validation result text by conversion feedback
| Date conversion feedback | Result text | Rule |
|---|---|---|
| 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 code | rec/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 date | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-001 | formatting | 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. | AC-01 |
REQ-F-002 | design note | 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. | AC-02 |
REQ-F-003 | business rule | 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. | AC-03 |
REQ-F-004 | business rule | 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. | AC-04, AC-05 |
REQ-F-005 | business rule | 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. | AC-06 |
REQ-F-006 | business rule | 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. | AC-07, AC-08, AC-09 |
REQ-F-007 | business rule | 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'. | AC-08, AC-09, AC-10 |
REQ-F-008 | business rule | 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. | AC-10, AC-11 |
REQ-F-009 | formatting | 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'. | AC-12 |
REQ-F-010 | business rule | 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. | AC-13 |
REQ-F-011 | business rule | 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. | AC-14 |
REQ-F-012 | business rule | 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'. | AC-15, AC-16 |
REQ-F-013 | business rule | 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. | AC-17 |
REQ-F-014 | business rule | 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. | AC-18 |
REQ-F-015 | design note | 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. | AC-19 |
REQ-F-016 | design note | When the user presses any key other than PF8, the system shall reset the last-page flag to 'not shown'. | AC-28 |
REQ-F-017 | formatting | 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. | AC-20 |
REQ-F-018 | formatting | 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'. | AC-21 |
REQ-F-019 | formatting | 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. | AC-22, AC-23, AC-24 |
REQ-F-020 | business rule | 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. | AC-25, AC-26, AC-27 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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).
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.
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'.
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'.
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.
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.
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.
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.
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'.
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.'.
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
app/cbl/COCRDLIC.cbl:384-385,402-406, app/cbl/COCRDLIC.cbl:370-414 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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-16 | Given 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-17 | Given 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-18 | Given 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-19 | Given 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-20 | Given 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-21 | Given 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-22 | Given 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-23 | Given 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-24 | Given 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-25 | Given 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-26 | Given 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-27 | Given 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-28 | Given 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 page | Next page exists | Last page already shown | Page shown and message | Rule |
|---|---|---|---|---|---|
| PF8 | any | Yes ('Y') | any | Add one to page number; list from look-ahead card | rec/group:claude/RULE-024/1 |
| PF8 | last page | No | Not shown | Show page again with 'TYPE S FOR DETAIL, U TO UPDATE ANY RECORD'; remember last page shown | rec/group:claude/RULE-249/2 |
| PF8 | last page | No | Shown | Redisplay page with 'NO MORE PAGES TO DISPLAY' | rec/group:claude/RULE-249/3 |
| PF7 | page 1 | any | any | Redisplay page 1 from its first card with 'NO PREVIOUS PAGES TO DISPLAY' | rec/group:claude/RULE-025/1 |
| PF7 | not page 1 | any | any | Subtract one from page number; read backward from first card of current page | rec/group:claude/RULE-025/2 |
| Enter, nothing selected | any | any | any | Redisplay from first card of current page | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-021 | business rule | 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. | AC-01, AC-02, AC-03 |
REQ-F-022 | business rule | 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'. | AC-01 |
REQ-F-023 | business rule | 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. | AC-02 |
REQ-F-024 | business rule | When 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-025 | business rule | When a valid account filter is entered, the system shall list only cards whose account number equals the filter. | AC-04 |
REQ-F-026 | business rule | 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. | AC-05 |
REQ-F-027 | error handling | 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. | AC-06, AC-07, AC-08, AC-09, AC-10 |
Business rules
| Rule | Class | Text, 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
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
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.
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.
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.
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.
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.'.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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 filter | Card filter | Cards listed or error | Rule |
|---|---|---|---|
| blank or zero | blank or zero | No filtering; all cards listed | rec/group:claude/RULE-223/3 |
| valid number | blank or zero | Only cards whose account number equals the filter | rec/group:claude/RULE-223/1 |
| blank or zero | valid number | Only the card with that number | rec/group:claude/RULE-223/2 |
| valid number | valid number | Only cards matching both filters | rec/group:claude/RULE-223/2 |
| non-numeric | any | Reject with 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER'; protect selection rows | rec/agreed:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-8d224eefb4/1 |
| blank, zero or valid number | non-numeric | Reject with 'CARD ID FILTER,IF SUPPLIED MUST BE A 16 DIGIT NUMBER' | rec/agreed:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-47e01908e8/1 |
| non-numeric | non-numeric | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-028 | business rule | 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. | AC-01, AC-02, AC-03 |
REQ-F-029 | business rule | 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. | AC-01, AC-02, AC-03 |
REQ-F-030 | business rule | When the filters are valid and a row is selected, the system shall record the selected row. | AC-01, AC-02, AC-03 |
REQ-F-031 | error handling | If the selection fails a check, then the system shall redisplay the list screen with the error message. | AC-04, AC-05 |
REQ-F-032 | business rule | 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'. | AC-06 |
REQ-F-033 | business rule | 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'. | AC-07 |
Business rules
| Rule | Class | Text, 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
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.
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'.
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'.
app/cbl/COCRDLIC.cbl:517-569, app/cbl/COCRDLIC.cbl:195-210, app/cbl/COCRDLIC.cbl:1074-1116 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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 valid | Rows marked 'S' or 'U' | Invalid action code entered | Result of Enter | Rule |
|---|---|---|---|---|
| Yes | one row with 'S' | No | Transfer to card detail (COCRDSLC) with that row's account and card number | rec/claude:claude/RULE-170/1 |
| Yes | one row with 'U' | No | Transfer to card update (COCRDUPC) with that row's account and card number | rec/claude:claude/RULE-170/2 |
| Yes | more than one | No | Reject with 'PLEASE SELECT ONLY ONE RECORD TO VIEW OR UPDATE'; mark rows in error | rec/agreed:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-61bccf823a/1 |
| Yes | any | Yes | Reject with 'INVALID ACTION CODE'; mark rows in error | rec/agreed:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-61bccf823a/1 |
| Yes | none | No | Redisplay list from first card of current page | rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-335dc185b3/1 |
| Yes | more than one | Yes | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-034 | business rule | When 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-035 | business rule | If 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-036 | business rule | If 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-037 | business rule | When 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-038 | business rule | If 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-039 | business rule | If 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-040 | business rule | When 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-041 | business rule | If 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-042 | business rule | When 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-043 | business rule | When 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-044 | business rule | 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. | AC-19 |
REQ-F-045 | formatting | 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. | AC-20 |
REQ-F-046 | business rule | 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'. | AC-21 |
REQ-F-047 | error handling | 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>'. | AC-33 |
REQ-F-048 | formatting | 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'. | AC-22, AC-23 |
REQ-F-049 | formatting | 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. | AC-24 |
REQ-F-050 | formatting | 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. | AC-25, AC-26 |
REQ-F-051 | formatting | 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. | AC-27, AC-28 |
REQ-F-052 | formatting | 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. | AC-29, AC-30 |
REQ-F-053 | formatting | 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. | AC-31, AC-32 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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'.
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'.
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.
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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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-16 | Given 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-17 | Given 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-18 | Given 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-19 | Given 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-20 | Given 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-21 | Given 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-22 | Given 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-23 | Given 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-24 | Given 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-25 | Given 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-26 | Given 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-27 | Given 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-28 | Given 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-29 | Given 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-30 | Given 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-31 | Given 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-32 | Given 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-33 | Given 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 entered | Card number entered | Search result | Rule |
|---|---|---|---|
| missing (blank, '*' or all zeros) | missing (blank, '*' or all zeros) | 'No input received'; both fields '*' in red; no lookup | rec/group:claude/RULE-129/1 |
| missing (blank, '*' or all zeros) | any other | Reject; 'Account number not provided' if no other message; account '*' in red; saved account reset to 0 | rec/group:claude/RULE-103/2 |
| not entirely numeric | any | Reject; account in red with 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER' if no other message; saved account reset to 0 | rec/group:claude/RULE-103/4 |
| 11-digit number, not all zeros | missing (blank, '*', spaces or all zeros) | Input error; card '*' in red; 'Card number not provided'; no lookup | rec/group:claude/RULE-104/1 |
| 11-digit number, not all zeros | not 16 digits | Input 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 zeros | 16-digit number, not all zeros | Accept both; look up the card and show its details | rec/group:claude/RULE-171/4 |
Card master lookup result
| Card master read result | Screen shown | Rule |
|---|---|---|
| card found | ' Displaying requested details' with embossed name, expiry month, expiry year and active status | rec/group:claude/RULE-045/2 |
| not found | Reject; account and card in red; 'Did not find cards for this search condition' | rec/group:claude/RULE-045/3 |
| any other failure | Reject; 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-054 | design note | 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 system shall clear the whole shared session context before going on. | AC-01 |
REQ-F-055 | formatting | When 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-056 | business rule | 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. | AC-04 |
REQ-N-001 | design note | 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. | AC-05 |
REQ-F-057 | business rule | 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. | AC-06, AC-07 |
REQ-F-058 | design note | 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. | AC-08 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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
- 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) - Application header and navigation
S-APP-SHELL· design**data table**Cards
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 from | First entry | PF3 pressed | What the card detail program does | Rule |
|---|---|---|---|---|
| card list (COCRDLIC) | Yes | No | Use passed account and card as valid; look up and show card | rec/group:claude/RULE-171/3 |
| any program other than the card list | Yes | No | Show empty search screen with 'Please enter Account and Card Number' | rec/group:claude/RULE-171/2 |
| any | No (re-entry) | No | Check entered account and card; look up and show card or redisplay with message | rec/group:claude/RULE-171/4 |
| any | any | Yes | Transfer to calling program, or main menu COMEN01C (CM00) if no caller | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-059 | business rule | 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. | AC-01, AC-02, AC-03 |
REQ-F-060 | business rule | While 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
| Rule | Class | Text, 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
app/cbl/COCRDUPC.cbl:668-670,680-683,685-693, app/cbl/COCRDUPC.cbl:679-693 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-061 | formatting | When 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-062 | formatting | When 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-063 | formatting | While 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-064 | formatting | 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. | AC-07 |
REQ-F-065 | design note | When 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-066 | business rule | While 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-067 | business rule | If 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-068 | business rule | If 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-069 | business rule | If 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-070 | business rule | If 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-071 | business rule | If 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-072 | business rule | When 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-073 | business rule | 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. | AC-26, AC-28 |
REQ-F-074 | error handling | 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. | AC-33 |
REQ-F-075 | design note | 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. | AC-34 |
REQ-F-076 | formatting | 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'. | AC-29, AC-30 |
REQ-F-077 | business rule | 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. | AC-31, AC-32 |
Business rules
| Rule | Class | Text, 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.
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'.
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.
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'.
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.
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.
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.
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.
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.
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.
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'.
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).
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'.
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.
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).
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.
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.
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.
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).
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.
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'.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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-16 | Given 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-17 | Given 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-18 | Given 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-19 | Given 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-20 | Given 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-21 | Given 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-22 | Given 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-23 | Given 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-24 | Given 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-25 | Given 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-26 | Given 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-27 | Given 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-28 | Given 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-29 | Given 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-30 | Given 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-31 | Given 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-32 | Given 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-33 | Given 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-34 | Given 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 entered | Card number entered | Message shown / action | Rule |
|---|---|---|---|
| blank, '*' or zeros | blank, '*' or zeros | 'No input received' | rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-ff85d1eca6/2 |
| blank, '*' or zeros | numeric | 'Account number not provided' | rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-9d005ffa1d/1 |
| blank, '*' or zeros | not numeric | 'Account number not provided' (first problem found) | rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-ff85d1eca6/3 |
| not numeric | any | 'ACCOUNT FILTER,IF SUPPLIED MUST BE A 11 DIGIT NUMBER' (first problem found) | rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-9d005ffa1d/2 |
| numeric | blank, '*' or zeros | 'Card number not provided' | rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-b8f83478ab/1 |
| numeric | not numeric | 'CARD ID FILTER,IF SUPPLIED MUST BE A 16 DIGIT NUMBER' | rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-b8f83478ab/2 |
| numeric | numeric | Read the card by card number | rec/group:claude/RULE-137/2 |
| numeric but not 11 digits | any | Gap: 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 result | Screen result | Rule |
|---|---|---|
| card found | Show details for editing with 'Details of selected card shown above' (state 'S') | rec/group:claude/RULE-137/2 |
| card not found | Both search keys flagged; 'Did not find cards for this search condition' | rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-a1ffaf24dd/2 |
| other failure | Input error; 'File Error: READ on CARDDAT returned RESP <code>' | rec/aws:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-a1ffaf24dd/3 |
| card found but belongs to a different account | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-078 | design note | 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. | AC-01, AC-02, AC-03, AC-04, AC-05, AC-06, AC-07 |
REQ-F-079 | design note | 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. | AC-08 |
REQ-F-080 | business rule | 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. | AC-09, AC-10, AC-11, AC-12 |
REQ-F-081 | business rule | 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. | AC-13 |
REQ-F-082 | business rule | 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. | AC-14 |
REQ-F-083 | business rule | 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. | AC-15, AC-16, AC-17 |
REQ-F-084 | business rule | 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. | AC-18, AC-19, AC-20, AC-21 |
REQ-F-085 | business rule | 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. | AC-22, AC-23, AC-24 |
REQ-F-086 | business rule | 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. | AC-25, AC-26, AC-27 |
REQ-F-087 | formatting | When 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-088 | business rule | 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. | AC-29 |
REQ-F-089 | business rule | 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. | AC-13, AC-30 |
REQ-F-090 | business rule | When 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-091 | business rule | While 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-092 | formatting | 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. | AC-33 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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.
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.
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
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.'.
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.'.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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'.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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-16 | Given 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-17 | Given 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-18 | Given 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-19 | Given 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-20 | Given 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-21 | Given 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-22 | Given 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-23 | Given 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-24 | Given 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-25 | Given 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-26 | Given 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-27 | Given 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-28 | Given 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-29 | Given 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-30 | Given 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-31 | Given 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-32 | Given 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-33 | Given 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 name | Active status | Expiry month | Expiry year | Message and state | Rule |
|---|---|---|---|---|---|---|
| no | - | - | - | - | 'No change detected with respect to values fetched.'; state 'S' | rec/agreed:CustomerDataSetup/CreditCardListDetailViewandUpdate/id-c89ab9678d/1 |
| yes | missing, '*', blank or zeros | - | - | - | 'Card name not provided'; '*' in name in red; state 'E' | rec/group:claude/RULE-105/2 |
| yes | contains other than letters and spaces | - | - | - | 'Card name can only contain alphabets and spaces'; name in red; state 'E' | rec/group:claude/RULE-105/3 |
| yes | valid | not supplied or '0' | - | - | 'Card Active Status must be Y or N'; state 'E' | rec/group:claude/RULE-106/2 |
| yes | valid | other than uppercase 'Y' or 'N' | - | - | 'Card Active Status must be Y or N'; state 'E' | rec/group:claude/RULE-106/3 |
| yes | valid | '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 |
| yes | valid | 'Y' or 'N' | 1-12 | missing, blank, zeros or not 1950-2099 | 'Invalid card expiry year'; year in red; state 'E' | rec/group:claude/RULE-107/3 |
| yes | valid | 'Y' or 'N' | 1-12 | 1950-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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-093 | business rule | 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. | AC-01, AC-02, AC-03, AC-04 |
REQ-F-094 | business rule | 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'). | AC-05 |
REQ-F-095 | business rule | 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. | AC-06, AC-07 |
REQ-F-096 | error handling | 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'. | AC-08, AC-09, AC-10, AC-11 |
REQ-F-097 | business rule | 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'). | AC-12, AC-13 |
REQ-F-098 | error handling | 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'. | AC-09, AC-10, AC-11 |
REQ-F-099 | business rule | 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'). | AC-14 |
Business rules
| Rule | Class | Text, 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.
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.
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').
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.
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.
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'.
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'.
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'.
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.
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').
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').
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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 state | Key pressed | Record lock | Stored record matches values first shown | Rewrite result | Result | Rule |
|---|---|---|---|---|---|---|
| 'N' | PF5 | cannot lock | - | - | Not saved; state 'L'; 'Could not lock record for update' and 'Changes unsuccessful. Please try again' | rec/group:claude/RULE-191/1 |
| 'N' | PF5 | locked | no | - | Not saved; 'Record changed by some one else. Please review'; current stored values shown; state 'S' | rec/group:claude/RULE-191/2 |
| 'N' | PF5 | locked | yes | fails | State 'F'; 'Changes unsuccessful. Please try again' | rec/group:claude/RULE-137/10 |
| 'N' | PF5 | locked | yes | succeeds | State '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 Enter | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-100 | business rule | 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. | AC-01, AC-02 |
REQ-F-101 | design note | 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. | AC-03 |
REQ-F-102 | design note | 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. | AC-04 |
REQ-F-103 | business rule | 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'. | AC-05 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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'.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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
- 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) - Application header and navigation
S-APP-SHELL· design**data table**Cards
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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-104 | business rule | 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'. | AC-02 |
REQ-F-105 | error handling | If 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
| Rule | Class | Text, 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'.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-001 | design note | The 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-002 | design note | The 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-003 | business rule | The 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-004 | design note | The 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-005 | design note | The 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-006 | business rule | The 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-007 | design note | The 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
| Rule | Class | Text, 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.
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.
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.
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.
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.
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).
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-N-001 | business rule | The 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-002 | business rule | When 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-003 | business rule | When 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
| Rule | Class | Text, 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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-008 | side effect | When 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-009 | side effect | When 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
| Rule | Class | Text, 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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-010 | error handling | If 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-011 | error handling | If 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-012 | error handling | If 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
| Rule | Class | Text, 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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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 operation | Status returned | Export action | Rule |
|---|---|---|---|
| Open of any source file or the export file | Other than '00' | Display 'ERROR: Cannot open <file>, Status: ' and 'CBEXPORT: ABENDING PROGRAM'; abend before any record is written | rec/claude:claude/RULE-072/1 |
| Read of any source file | Other 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 file | rec/group:claude/RULE-211/5 |
| Write of an export record | Other 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 file | rec/group:claude/RULE-211/5 |
| Close of any file | Other 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-013 | design note | The 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-014 | design note | The 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-015 | business rule | While 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-016 | business rule | When 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-017 | design note | When 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-018 | design note | When 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-019 | design note | When 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-020 | business rule | When 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-021 | business rule | The 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
| Rule | Class | Text, 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.
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.
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.
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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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 type | Import action | Rule |
|---|---|---|
| 'C' | Write a customer record to the customer import file | rec/group:claude/RULE-160/4 |
| 'A' | Write an account record to the account import file | rec/group:claude/RULE-073/1 |
| 'X' | Write a cross-reference record to the card cross-reference import file | rec/group:claude/RULE-213/4 |
| 'T' | Write a transaction record to the transaction import file | rec/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 type | Count 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-022 | error handling | If 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-023 | error handling | If 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
| Rule | Class | Text, 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'
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 '|'.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-024 | side effect | When 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-025 | historical artifact | When 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
| Rule | Class | Text, 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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-026 | error handling | If 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-027 | error handling | If 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-028 | business rule | If 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-029 | error handling | When 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
| Rule | Class | Text, 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.
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.
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.
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.
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.
app/jcl/CBIMPORT.jcl:22-60, app/cbl/CBIMPORT.cbl:63-66, app/cbl/CBIMPORT.cbl:81-109 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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 operation | Result | Import action | Rule |
|---|---|---|---|
| Open of the export file or any output file | Cannot be opened | Display 'ERROR: Cannot open <file>, Status: '; abend before any record is read; new import files deleted | rec/group:claude/RULE-160/1 |
| Read of the export file | Any status other than success or end of file | Display 'ERROR: Reading EXPORT-INPUT, Status: '; abend; new import files deleted | rec/group:claude/RULE-213/7 |
| Write of a customer, account, cross-reference, transaction or card record | Fails | Display 'ERROR: Writing <type> record, Status: ' and 'CBIMPORT: ABENDING PROGRAM'; abend at once without closing files or printing statistics; new import files deleted | rec/group:claude/RULE-160/2 |
| Write of an error record | Fails | Display 'ERROR: Writing error record, Status: '; carry on importing, still counting the error as written | rec/group:claude/RULE-213/3 |
| Close of any file | Fails | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-001 | design note | The 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-002 | design note | The 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
| Rule | Class | Text, 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.
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).
app/jcl/ACCTFILE.jcl:19-50, app/jcl/ACCTFILE.jcl:51-61 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-003 | design note | The 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-004 | design note | The 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-005 | design note | When 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
| Rule | Class | Text, 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.
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.
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).
app/jcl/CARDFILE.jcl:78-112 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-006 | design note | The 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-007 | design note | The 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-008 | design note | The 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
| Rule | Class | Text, 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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-009 | design note | The 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-010 | design note | The 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-011 | design note | When 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
| Rule | Class | Text, 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.
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).
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.
app/jcl/XREFFILE.jcl:66-102, app/cpy/CVACT03Y.cpy:4-8 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-001 | business rule | The 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-002 | business rule | When 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-003 | business rule | If 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-004 | business rule | When 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-005 | error handling | If 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-006 | business rule | When 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-007 | error handling | If 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-008 | error handling | If 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-009 | business rule | When 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-010 | error handling | If 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-011 | error handling | When 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-001 | formatting | The 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
| Rule | Class | Text, 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.
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.
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.
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.
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.
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'.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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-16 | Given 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 code | Transaction type code exists | Categories refer to the type | Database accepts the change | Batch result for the record | Rule |
|---|---|---|---|---|---|
| '*' | - | - | - | Show 'IGNORING COMMENTED LINE'; change nothing | rec/group:claude/RULE-058/2 |
| Other than 'A', 'U', 'D', '*' | - | - | - | Show 'ERROR: TYPE NOT VALID'; return code 4; table unchanged; continue | rec/group:claude/RULE-058/3 |
| 'A' | - | - | Yes | Add 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; continue | rec/group:claude/RULE-146/2 |
| 'U' | Yes | - | Yes | Replace description; show 'RECORD UPDATED SUCCESSFULLY' | rec/group:claude/RULE-147/1 |
| 'U' | No | - | - | Show 'No records found.'; return code 4; continue | rec/group:claude/RULE-147/2 |
| 'U' | - | - | No (database error) | Show 'Error accessing: TRANSACTION_TYPE table. SQLCODE:' with code; return code 4; continue | rec/group:claude/RULE-147/3 |
| 'D' | Yes | No | Yes | Delete type; show 'RECORD DELETED SUCCESSFULLY' | rec/group:claude/RULE-148/1 |
| 'D' | Yes | Yes | No (refused) | Show 'Error accessing: TRANSACTION_TYPE table. SQLCODE:' with code; return code 4; continue | rec/group:claude/RULE-148/2 |
| 'D' | No | - | - | Show 'No records found.'; return code 4; continue | rec/group:claude/RULE-148/3 |
| 'D' | Yes | No | No (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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-012 | business rule | 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. | AC-01, AC-02, AC-03, AC-04 |
REQ-F-013 | business rule | 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. | AC-01, AC-02, AC-05, AC-06 |
REQ-F-014 | design note | 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. | AC-07 |
REQ-F-015 | design note | 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. | AC-08, AC-09 |
REQ-F-016 | design note | 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. | AC-10, AC-11 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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.
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.
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.
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.
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.
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1644-1653, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1318 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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
- 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) - Application header and navigation
S-APP-SHELL· design**data table**Transaction types
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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-017 | formatting | 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'). | AC-01, AC-02 |
REQ-F-018 | business rule | 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. | AC-03 |
REQ-F-019 | business rule | 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. | AC-04, AC-05, AC-06 |
REQ-F-020 | business rule | 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. | AC-07 |
REQ-F-021 | business rule | 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'. | AC-05, AC-06, AC-08 |
REQ-F-022 | formatting | 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. | AC-09 |
REQ-F-023 | formatting | 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'. | AC-10 |
REQ-F-024 | business rule | 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. | AC-11 |
REQ-F-025 | formatting | 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'. | AC-12 |
REQ-F-026 | formatting | 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. | AC-13, AC-14 |
REQ-F-027 | formatting | When 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-028 | formatting | 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. | AC-16, AC-17 |
REQ-F-029 | formatting | 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'. | AC-18, AC-19 |
REQ-F-030 | error handling | 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. | AC-20 |
REQ-F-031 | error handling | 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'). | AC-21 |
Business rules
| Rule | Class | Text, 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').
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.
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.
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'.
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.
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'.
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.
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'.
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.
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'.
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.
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.'.
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.
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'.
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.
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').
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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-16 | Given 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-17 | Given 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-18 | Given 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-19 | Given 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-20 | Given 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-21 | Given 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 pressed | On first page | Next page exists | Last page already shown | Page and message shown | Rule |
|---|---|---|---|---|---|
| F8 | - | Yes | - | Show page from stored next type code; page number + 1; clear row selections | rec/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 pending | rec/group:claude/RULE-014/4 |
| F8 | - | No | No | Show 'Type U to update, D to delete any record'; remember last page shown | rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-c90447aad2/1 |
| F8 | - | No | Yes | Show same page again with 'No more pages to display' | rec/group:claude/RULE-014/5 |
| F7 | No | - | - | Show the 7 types before current first code; page number - 1; clear selections; mark next page exists | rec/group:claude/RULE-014/6 |
| F7 | Yes | - | - | Show first page again with 'No previous pages to display' (if no input errors) | rec/group:claude/RULE-014/7 |
| F8 | - | No | No | Gap: 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. | |
| F7 | Yes | - | - | 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-032 | business rule | 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. | AC-01, AC-02, AC-03 |
REQ-F-033 | business rule | When a numeric type code filter is entered, the system shall list only the transaction type with that code. | AC-04 |
REQ-F-034 | business rule | 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. | AC-05 |
REQ-F-035 | design note | 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. | AC-06 |
REQ-F-036 | design note | 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. | AC-07, AC-08 |
REQ-F-037 | business rule | When 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-038 | business rule | 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). | AC-12 |
REQ-F-039 | business rule | 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. | AC-10 |
REQ-F-040 | formatting | 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. | AC-11 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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.
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).
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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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 entered | Same as filter last used | List behaviour | Rule |
|---|---|---|---|
| Blank, low-values or zeros | - | Treat as not supplied; list all type codes; no error | rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-2f602f3092/1 |
| '00' | - | Apply no type code filter | rec/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-read | rec/group:claude/RULE-060/1 |
| Numeric | - | List only the transaction type with that code | rec/group:claude/RULE-060/2 |
| Any | No | Reset paging to start; remember new filter; mark changed (pending F10 treated as Enter) | rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-c6c37c526a/1 |
| Any | Yes (or both empty) | Keep current paging; mark unchanged | rec/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 numeric | No | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-041 | design note | 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. | AC-01 |
REQ-F-042 | design note | 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. | AC-01, AC-02 |
REQ-F-043 | business rule | 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. | AC-03, AC-04 |
REQ-F-044 | business rule | 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'. | AC-05 |
REQ-F-045 | business rule | 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. | AC-12 |
REQ-F-046 | business rule | 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. | AC-06 |
REQ-F-047 | formatting | 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 '*'. | AC-07 |
REQ-F-048 | formatting | 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. | AC-13 |
REQ-F-049 | formatting | 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. | AC-08 |
REQ-F-050 | business rule | 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. | AC-09 |
REQ-F-051 | formatting | 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. | AC-10, AC-11 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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'.
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.
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 '*'.
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.
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.
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.
app/app-transaction-type-db2/cbl/COTRTLIC.cbl:698-720, app/app-transaction-type-db2/cbl/COTRTLIC.cbl:1111-1118 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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 spaces | Validation result | Rule |
|---|---|---|---|---|
| Same | - | - | Show 'No change detected with respect to database values.'; skip remaining checks | rec/group:claude/RULE-059/1 |
| Different | No | - | Reject; show 'Transaction Desc must be supplied.' unless an earlier message is set | rec/group:claude/RULE-059/4 |
| Different | Yes | No | Reject; show 'Transaction Desc can have numbers or alphabets only.' unless an earlier message is set | rec/group:claude/RULE-059/5 |
| Different | Yes | Yes | Treat row as changed; first 50 characters checked as required 'Transaction Desc' | rec/group:claude/RULE-059/2 |
| Different | Yes | Yes | Gap: 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. | |
| Different | Yes | Yes (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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-N-002 | business rule | When 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-003 | business rule | The 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
| Rule | Class | Text, 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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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
- Transaction types
S-TRANTYPE-LIST· design · replaces CTRTLIA (4 kept, 42 merged, 1 split) - Application header and navigation
S-APP-SHELL· design**data table**Transaction types
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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-052 | business rule | 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. | AC-01 |
REQ-F-053 | business rule | 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). | AC-04 |
REQ-F-054 | business rule | 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. | AC-02 |
REQ-F-055 | error handling | 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. | AC-03 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-056 | business rule | 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. | AC-01 |
REQ-F-057 | design note | 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). | AC-02 |
REQ-F-058 | design note | 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. | AC-03, AC-04 |
REQ-F-059 | business rule | 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'. | AC-05, AC-06 |
REQ-F-060 | business rule | 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. | AC-07, AC-08 |
REQ-F-061 | business rule | When a row is marked 'U', the system shall check that row's description, even if other rows are also marked. | AC-09 |
REQ-F-062 | business rule | 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'. | AC-10 |
REQ-F-063 | business rule | 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'. | AC-11 |
REQ-F-064 | formatting | 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. | AC-12 |
Business rules
| Rule | Class | Text, 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.
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).
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.
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'.
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.
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.
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'.
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'.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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 changed | Rows with a non-blank action code | Action code | Result of the row action checks | Rule |
|---|---|---|---|---|
| Yes | Any | Any | Clear every row action code and skip all row action checks | rec/group:claude/RULE-062/1 |
| No | Any | Other than 'D', 'U' or blank | Highlight row in error, reject input, show 'Action code selected is invalid' | rec/group:claude/RULE-062/3 |
| No | 2 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 |
| No | 1 | 'D' | Highlight row, delete pending, show 'Delete HIGHLIGHTED row ? Press F10 to confirm' | rec/group:claude/RULE-151/1 |
| No | 1 | 'U' | Highlight row, update pending, show 'Update HIGHLIGHTED row. Press F10 to save' | rec/group:claude/RULE-151/2 |
| No | 0 | Blank | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-065 | business rule | 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. | AC-01 |
REQ-F-066 | business rule | 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. | AC-02, AC-03 |
REQ-F-067 | business rule | 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'. | AC-04, AC-05, AC-06 |
REQ-F-068 | business rule | 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. | AC-07 |
REQ-F-069 | formatting | 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. | AC-08 |
REQ-F-070 | formatting | When 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-071 | error handling | 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. | AC-10 |
REQ-F-072 | error handling | 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. | AC-11 |
REQ-F-073 | error handling | 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. | AC-12 |
REQ-F-074 | business rule | 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). | AC-06 |
REQ-F-075 | business rule | 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. | AC-13 |
REQ-F-076 | error handling | 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. | AC-14 |
REQ-F-077 | error handling | 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. | AC-15 |
Business rules
| Rule | Class | Text, 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.
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.
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'.
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).
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.
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.
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'.
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.
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.
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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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 pending | Filters or selected row changed since prompt | Effect of F10 | Rule |
|---|---|---|---|
| No | Any | Treat F10 as Enter and show the list again | rec/group:claude/RULE-151/4 |
| Yes | Yes | Treat F10 as Enter instead of carrying out the change | rec/group:claude/RULE-151/5 |
| Yes | No | Delete 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 action | Database result | Message and state after the change | Rule |
|---|---|---|---|
| Update ('U') | Success | Commit; show 'HIGHLIGHTED row was updated' (if no deletion confirmed in same request); redisplay page | rec/group:claude/RULE-149/3 |
| Update ('U') | SQLCODE +100 | Show 'Record not found. Deleted by others ?'; update stays pending | rec/group:claude/RULE-149/4 |
| Update ('U') | SQLCODE -911 | Show 'Deadlock. Someone else updating ?'; input error; update stays pending | rec/group:claude/RULE-149/5 |
| Update ('U') | Any other negative code | Show 'Update failed with' and error details; update stays pending | rec/group:claude/RULE-149/6 |
| Delete ('D') | Success | Commit; show 'HIGHLIGHTED row deleted.Hit Enter to continue'; restart from first page with filters cleared | rec/group:claude/RULE-150/2 |
| Delete ('D') | SQLCODE -532 | Delete nothing; delete stays pending; show 'Please delete associated child records first:' and error details | rec/group:claude/RULE-150/3 |
| Delete ('D') | Any other database reason | Show 'Delete failed with message:' and error details; delete not done | rec/group:claude/RULE-150/4 |
| Delete ('D') | SQLCODE +100 | Gap: 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 +100 | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-078 | business rule | 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'. | AC-01 |
REQ-F-079 | business rule | 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'. | AC-02 |
Business rules
| Rule | Class | Text, 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.
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'.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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
- Transaction types
S-TRANTYPE-LIST· design · replaces CTRTLIA (4 kept, 42 merged, 1 split)**primary button**Add transaction type
- Add or change a transaction type
S-TRANTYPE-EDIT· design · replaces CTRTUPA (3 kept, 17 merged, 1 split, 1 dropped) - Application header and navigation
S-APP-SHELL· design**data table**Transaction types
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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-080 | business rule | 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. | AC-08 |
REQ-F-081 | business rule | 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. | AC-09 |
REQ-F-082 | business rule | 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. | AC-10 |
REQ-F-083 | formatting | 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'). | AC-01 |
REQ-F-084 | business rule | 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. | AC-02 |
REQ-F-085 | design note | When 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-086 | design note | 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. | AC-03 |
REQ-F-087 | design note | If the looked-up transaction type is not found or the read fails, then the system shall keep no original values. | AC-03 |
REQ-F-088 | business rule | 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'. | AC-04 |
REQ-F-089 | business rule | 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. | AC-05, AC-06 |
REQ-F-090 | historical artifact | When F5 is pressed in the not-found state ('X'), the system shall switch straight to new-record entry. | AC-07 |
Business rules
| Rule | Class | Text, 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'.
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.
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.
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'.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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 code | Record already fetched | Result of search key editing | Rule |
|---|---|---|---|
| Blank | Any | Show 'Tran Type code must be supplied.', mark code '*' in red, ask for a code | rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-b1d31f0ae8/1 |
| Not numeric | Any | Show 'Tran Type code must be numeric.', highlight code in red, ask for a code | rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-b1d31f0ae8/2 |
| Zero | Any | Show 'Tran Type code must not be zero.', highlight code in red, ask for a code | rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-b1d31f0ae8/3 |
| Valid non-zero number | No | Store code as two digits with leading zero and search the table | rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-b1d31f0ae8/4 |
| Valid non-zero number | Yes | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-091 | formatting | 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'. | AC-01, AC-02 |
REQ-F-092 | formatting | 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'. | AC-03 |
REQ-F-093 | formatting | 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'. | AC-04 |
REQ-F-094 | formatting | 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'. | AC-05 |
REQ-F-095 | formatting | 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.' | AC-06, AC-07 |
REQ-F-096 | formatting | 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. | AC-12 |
REQ-F-097 | formatting | 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. | AC-08 |
REQ-F-098 | business rule | 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. | AC-09 |
REQ-F-099 | design note | 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. | AC-10, AC-11 |
Business rules
| Rule | Class | Text, 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'.
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'.
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'.
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'.
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.'
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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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
- 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)
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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-100 | business rule | 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. | AC-01, AC-02 |
REQ-F-101 | business rule | 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. | AC-03, AC-04, AC-05 |
REQ-F-102 | business rule | 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. | AC-04, AC-05, AC-06 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-103 | business rule | 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.'. | AC-01 |
REQ-F-104 | business rule | 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. | AC-02 |
REQ-F-105 | historical artifact | When 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
| Rule | Class | Text, 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.'.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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
- 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)
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 pressed | Maintenance state | Effect of cancel | Rule |
|---|---|---|---|
| F12 | Awaiting save confirmation ('N') | Show 'Update was cancelled'; redisplay stored values with 'Update transaction type details shown.' | rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-7c2d30318c/1 |
| F12 | Awaiting delete confirmation ('9') | Show 'Delete was cancelled'; ask for a transaction type | rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-7c2d30318c/2 |
| F12 | Record shown ('S') | Restart the screen to ask for a new transaction type | rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-7c2d30318c/4 |
| F12 | Not 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. | |
| F12 | New 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-106 | design note | 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. | AC-01 |
REQ-F-107 | business rule | 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. | AC-02, AC-03 |
Business rules
| Rule | Class | Text, 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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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
- 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) - Application header and navigation
S-APP-SHELL· design**data table**Transaction types
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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-108 | formatting | 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'. | AC-01 |
REQ-F-109 | design note | 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. | AC-02, AC-03 |
REQ-F-110 | business rule | 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. | AC-09 |
REQ-F-111 | business rule | 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. | AC-10 |
REQ-F-112 | business rule | 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. | AC-11 |
REQ-F-113 | business rule | 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. | AC-04, AC-05 |
REQ-F-114 | formatting | If more than one check fails on the same entry, then the system shall show only the first error message found. | AC-12 |
REQ-F-115 | business rule | 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'. | AC-06, AC-07 |
REQ-F-116 | business rule | 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. | AC-08 |
Business rules
| Rule | Class | Text, 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'.
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.
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.
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'.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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 number | Code equals zero | Search result | Rule |
|---|---|---|---|---|
| No | - | - | Show 'Tran Type code must be supplied.'; no lookup | rec/group:claude/RULE-065/2 |
| Yes | No | - | Show 'Tran Type code must be numeric.'; search code invalid; no lookup | rec/group:claude/RULE-065/4 |
| Yes | Yes | Yes | Show 'Tran Type code must not be zero.'; search code invalid; no lookup | rec/group:claude/RULE-065/5 |
| Yes | Yes | No | Accept; pad to two digits with leading zero; use as lookup key | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-117 | business rule | 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). | AC-01 |
REQ-F-118 | design note | 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. | AC-02 |
REQ-F-119 | business rule | 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'). | AC-12 |
REQ-F-120 | business rule | 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'). | AC-13 |
REQ-F-121 | business rule | 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'. | AC-03, AC-04, AC-05 |
REQ-F-122 | business rule | 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. | AC-04, AC-05 |
REQ-F-123 | business rule | 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. | AC-06, AC-07 |
REQ-F-124 | business rule | When 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-125 | business rule | 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'. | AC-06, AC-07, AC-09 |
REQ-F-126 | error handling | 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'. | AC-14 |
REQ-F-127 | business rule | If 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-128 | business rule | 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'). | AC-10 |
REQ-F-129 | business rule | 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. | AC-11 |
Business rules
| Rule | Class | Text, 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).
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.
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'.
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.
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'.
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'.
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'.
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').
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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 spaces | Screen result | Rule |
|---|---|---|---|
| Yes | - | Show 'Transaction Desc must be supplied.'; stay in state 'E' | rec/group:claude/RULE-064/2 |
| No | Yes | Show 'Transaction Desc can have numbers or alphabets only.'; stay in state 'E' | rec/group:claude/RULE-064/3 |
| No | No | Move 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 update | Saved state and message | Rule |
|---|---|---|
| Success | Commit; 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 SQLCODE | Error 'Error updating: TRANSACTION_TYPE Table. SQLCODE:…' yet state 'C' and 'Changes committed to database' | rec/group:claude/RULE-152/5 |
| Other database failure | State 'F'; 'Changes unsuccessful' | rec/group:claude/RULE-154/7 |
| Other negative SQLCODE | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-130 | business rule | 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.'. | AC-01 |
REQ-F-131 | business rule | 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'. | AC-02 |
REQ-F-132 | error handling | 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'. | AC-03 |
Business rules
| Rule | Class | Text, 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.'.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-133 | business rule | 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. | AC-01 |
REQ-F-134 | business rule | 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. | AC-02 |
REQ-F-135 | business rule | When the confirmed delete succeeds, the system shall commit the deletion and show 'Delete successful.'. | AC-03 |
REQ-F-136 | error handling | 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. | AC-06 |
REQ-F-137 | error handling | 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. | AC-07 |
REQ-F-138 | business rule | 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. | AC-04 |
REQ-F-139 | formatting | 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. | AC-05 |
Business rules
| Rule | Class | Text, 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.
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.
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.'.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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 delete | Delete result and message | Rule |
|---|---|---|
| Success | Commit 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 message | rec/group:claude/RULE-153/4 |
| Any other database failure | Delete failed; 'Changes unsuccessful'; 'Delete failed with message:' with SQL code and message | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-140 | business rule | The system shall accept F3 (exit) in every state, and Enter in every state except while a delete is awaiting confirmation. | AC-01 |
REQ-F-141 | business rule | 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. | AC-02, AC-03 |
REQ-F-142 | business rule | 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. | AC-04 |
REQ-F-143 | business rule | 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. | AC-05, AC-06 |
REQ-F-144 | error handling | If 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
| Rule | Class | Text, 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.
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.
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.
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.
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'.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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 pressed | Screen state | Key handling | Rule |
|---|---|---|---|
| F3 | Any state | Accepted (exit) | rec/group:claude/RULE-237/1 |
| Enter | Any state except delete awaiting confirmation | Accepted | rec/group:claude/RULE-237/1 |
| F4 | Details shown or delete awaiting confirmation | Accepted | rec/group:claude/RULE-237/2 |
| F5 | Changes validated, record not found, or delete in progress | Accepted | rec/group:claude/RULE-237/2 |
| F12 | Changes validated, details shown, record not found, delete awaiting confirmation, or new record being created | Accepted | rec/group:claude/RULE-237/2 |
| Any key | State where the key is not allowed (e.g. Enter while delete awaiting confirmation) | Redisplay with 'Invalid key pressed'; no other action | rec/group:claude/RULE-237/3 |
| F5 | Delete in progress | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-145 | design note | The 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-146 | business rule | The 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
| Rule | Class | Text, 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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-147 | design note | The 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-148 | design note | When 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-149 | design note | When 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-150 | design note | When 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
| Rule | Class | Text, 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.
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.
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.
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.
app/jcl/DEFGDGD.jcl:82-89 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-151 | design note | The 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-152 | design note | When 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-153 | error handling | If 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-154 | side effect | When 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-155 | design note | The 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-156 | error handling | If the transaction type unload fails, then the system shall delete the new transaction type file instead of keeping it. | AC-06 |
REQ-F-157 | side effect | When 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-158 | design note | The 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-159 | error handling | If the transaction category unload fails, then the system shall delete the new transaction category file instead of keeping it. | AC-09 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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.
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.
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).
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.
app/app-transaction-type-db2/jcl/TRANEXTR.jcl:95-122 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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 steps | Step action | Rule |
|---|---|---|
| 0 | Back up transaction category file | rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-c858e8fc3a/1 |
| 0 | Unload transaction types to new file | rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-59ee71ac7e/1 |
| 0 to 4 | Unload transaction categories to new file | rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-89849cd099/1 |
| Other than 0 | Skip transaction category backup | rec/aws:CustomerDataSetup/TransactionTypeReferenceDataMaintenance/id-c858e8fc3a/2 |
| Other than 0 | Gap: No rule states what happens to the transaction type unload when an earlier step ended with a non-zero return code. | |
| Above 4 | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-160 | design note | The 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-161 | design note | The 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
| Rule | Class | Text, 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.
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.
app/jcl/TRANTYPE.jcl:22-27, app/jcl/TRANTYPE.jcl:33-49, app/jcl/TRANTYPE.jcl:54-61 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-001 | design note | 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. | AC-01, AC-02, AC-03 |
REQ-N-001 | design note | 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. | AC-04 |
REQ-F-002 | business rule | 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. | AC-05, AC-06 |
REQ-F-003 | design note | 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. | AC-07 |
REQ-F-004 | business rule | 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. | AC-08 |
REQ-F-005 | business rule | When 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-006 | business rule | When 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-007 | business rule | 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. | AC-11 |
REQ-F-008 | error handling | 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. | AC-12 |
REQ-F-009 | business rule | 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. | AC-13 |
REQ-F-010 | business rule | 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. | AC-18 |
REQ-F-011 | business rule | 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. | AC-13 |
REQ-F-012 | business rule | 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). | AC-14, AC-15, AC-16, AC-17 |
REQ-F-013 | business rule | If deleting the pending authorization summary fails, then the system shall abend the run. | AC-15, AC-16, AC-17 |
Business rules
| Rule | Class | Text, 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
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.
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.
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.
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.
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.
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.
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.
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).
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.
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
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | 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'. | REQ-F-001 Load run date and purge parameters worked example 1 of the rule |
| AC-02 | 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. | REQ-F-001 Load run date and purge parameters worked example 2 of the rule |
| AC-03 | 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. | REQ-F-001 Load run date and purge parameters worked example 3 of the rule |
| AC-04 | Given 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-05 | 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. | REQ-F-002 Run the expired authorization purge program worked example 1 of the rule |
| AC-06 | 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. | REQ-F-002 Run the expired authorization purge program worked example 2 of the rule |
| AC-07 | 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. | REQ-F-003 Traverse summaries and purge expired details worked example 1 of the rule |
| AC-08 | Given 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-09 | Given 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-10 | Given 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-11 | 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. | REQ-F-007 Delete expired authorization detail worked example 1 of the rule |
| AC-12 | 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. | REQ-F-008 Delete expired authorization detail worked example 1 of the rule |
| AC-13 | 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. | REQ-F-009, REQ-F-011 Reduce approved totals for expired detail worked example 1 of the rule |
| AC-14 | 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. | REQ-F-012 Reverse summary totals for purged authorizations worked example 1 of the rule |
| AC-15 | 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. | REQ-F-012, REQ-F-013 Delete summary with no remaining approvals worked example 1 of the rule |
| AC-16 | 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. | REQ-F-012, REQ-F-013 Delete summary with no remaining approvals worked example 2 of the rule |
| AC-17 | 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. | REQ-F-012, REQ-F-013 Delete summary with no remaining approvals worked example 3 of the rule |
| AC-18 | 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. | 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 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) | rec/group:claude/RULE-007/1 |
| Yes | No | Delete detail; subtract 1 from declined count and transaction amount from declined total (working copy) | rec/group:claude/RULE-007/2 |
| No | Any | Mark not qualified and keep the detail | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-014 | design note | 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'. | AC-01 |
REQ-F-015 | business rule | 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. | AC-02, AC-03 |
REQ-N-002 | design note | 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. | AC-04 |
REQ-F-016 | design note | 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. | AC-05 |
REQ-F-017 | historical artifact | The 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-018 | design note | 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. | AC-07, AC-08 |
REQ-F-019 | design note | If putting the reply fails, then the system shall record 'MQPUT ERR', publish the error and end the run. | AC-07, AC-08 |
REQ-F-020 | business rule | 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. | AC-09 |
REQ-F-021 | business rule | 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). | AC-10 |
REQ-F-022 | formatting | 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. | AC-18 |
REQ-F-023 | formatting | 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. | AC-19 |
REQ-F-024 | business rule | 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. | AC-20 |
REQ-F-025 | error handling | 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. | AC-11, AC-12, AC-13 |
REQ-F-026 | error handling | 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. | AC-14 |
REQ-F-027 | error handling | 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. | AC-15, AC-16 |
REQ-F-028 | error handling | 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. | AC-17 |
Business rules
| Rule | Class | Text, 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'.
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.
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.
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.
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).
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`)
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
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).
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.
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.
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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | 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'. | REQ-F-014 Process inquiry requests until queue empty worked example 1 of the rule |
| AC-02 | 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. | REQ-F-015 Process inquiry requests until queue empty worked example 1 of the rule |
| AC-03 | 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. | REQ-F-015 Process inquiry requests until queue empty worked example 2 of the rule |
| AC-04 | 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. | REQ-N-002 Queue-driven request processing loop with per-message commit worked example 1 of the rule |
| AC-05 | 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. | REQ-F-016 Retrieve next inquiry request worked example 1 of the rule |
| AC-06 | Given 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-07 | 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 | REQ-F-018, REQ-F-019 Send reply to requester worked example 1 of the rule |
| AC-08 | 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 | REQ-F-018, REQ-F-019 Send reply to requester worked example 2 of the rule |
| AC-09 | 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 | REQ-F-020 Reject invalid inquiry request worked example 1 of the rule |
| AC-10 | 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. | REQ-F-021 Reply with account details worked example 1 of the rule |
| AC-11 | 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'. | REQ-F-025 Fatal error reporting to error queue and termination worked example 1 of the rule |
| AC-12 | 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. | REQ-F-025 Fatal error reporting to error queue and termination worked example 1 of the rule |
| AC-13 | 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. | REQ-F-025 Account inquiry lookup and reply content worked example 1 of the rule |
| AC-14 | 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. | REQ-F-026 Retrieve next inquiry request worked example 1 of the rule |
| AC-15 | 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. | REQ-F-027 Process inquiry requests until queue empty worked example 1 of the rule |
| AC-16 | 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. | REQ-F-027 Process inquiry requests until queue empty worked example 2 of the rule |
| AC-17 | 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. | REQ-F-028 Process inquiry requests until queue empty worked example 1 of the rule |
| AC-18 | 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. | REQ-F-022 Reply with account details written from the rule |
| AC-19 | 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. | REQ-F-023 Account inquiry lookup and reply content written from the rule |
| AC-20 | 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. | 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 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 | rec/group:claude/RULE-205/5 |
| Yes | No | Not read | Reply 'INVALID REQUEST PARAMETERS ACCT ID : ' with account number and 'FUNCTION : ' with function code | rec/agreed:No domain/CardAuthorizationandFraudManagement/id-e16e301e83/1 |
| Yes | Yes | Found | Reply with account details | rec/group:claude/RULE-205/2 |
| Yes | Yes | Not found | Reply 'INVALID REQUEST PARAMETERS ACCT ID : ' with the 11-digit account number | rec/group:claude/RULE-205/4 |
| Yes | Yes | Other error | No reply; error record on 'CARD.DEMO.ERROR'; end task | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-029 | design note | When 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-030 | design note | When 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-031 | formatting | When 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-032 | design note | When 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-033 | design note | When 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-034 | error handling | If 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-035 | error handling | If 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-036 | error handling | If 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-037 | error handling | If 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-038 | error handling | If 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-039 | error handling | If 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
| Rule | Class | Text, 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.
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.
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
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.
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.
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.
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.
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.
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.
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.
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'.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-040 | design note | When 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-041 | design note | When no request message arrives within 5 seconds of a read, the system shall stop processing and end the task. | AC-03 |
REQ-F-042 | design note | When 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-043 | design note | When 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-044 | error handling | When 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-045 | error handling | If 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-046 | design note | When 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-047 | error handling | When 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-048 | error handling | If 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-049 | design note | When 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-050 | error handling | If 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-051 | design note | When 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
| Rule | Class | Text, 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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)
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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 read | Read result | Lookup handling | Rule |
|---|---|---|---|
| Account master (ACCTDAT) | Found | Mark account found | rec/aws:No domain/CardAuthorizationandFraudManagement/id-53bc6be235/1 |
| Account master (ACCTDAT) | Not found | Mark not found, log warning 'A002', continue | rec/aws:No domain/CardAuthorizationandFraudManagement/id-53bc6be235/2 |
| Account master (ACCTDAT) | Other failure | Log critical error 'C002', end task with no reply | rec/aws:No domain/CardAuthorizationandFraudManagement/id-53bc6be235/3 |
| Customer master (CUSTDAT) | Found | Mark customer found | rec/aws:No domain/CardAuthorizationandFraudManagement/id-37569b6efc/1 |
| Customer master (CUSTDAT) | Not found | Mark not found, log warning 'A003', continue | rec/aws:No domain/CardAuthorizationandFraudManagement/id-37569b6efc/2 |
| Customer master (CUSTDAT) | Other failure | Log critical error 'C003', end task with no reply | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-052 | business rule | When 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-053 | business rule | When 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-054 | business rule | When 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-055 | business rule | When 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-056 | business rule | When 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-057 | business rule | The 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-058 | formatting | The 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-059 | design note | When 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-060 | design note | If putting the authorization reply fails, then the system shall log critical error 'M004'. | AC-08 |
Business rules
| Rule | Class | Text, 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.
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.
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).
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'
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.
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
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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 found | Account record found | Amount strictly greater than available credit | Credit decision | Rule |
|---|---|---|---|---|
| Yes | Any | Yes | Decline for insufficient funds (available credit = summary credit limit - summary credit balance) | rec/group:claude/RULE-001/1 |
| Yes | Any | No | Not declined for insufficient funds | rec/group:claude/RULE-001/1 |
| No | Yes | Yes | Decline for insufficient funds (available credit = account credit limit - account current balance) | rec/group:claude/RULE-001/2 |
| No | Yes | No | Not declined for insufficient funds | rec/group:claude/RULE-001/2 |
| No | No | Any | Decline without insufficient-funds reason; reply carries reason '3100' | rec/group:claude/RULE-001/3 |
| Yes | No | Any | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-061 | business rule | When 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-062 | business rule | When 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-063 | business rule | When 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-064 | business rule | When 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-065 | side effect | When 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-066 | error handling | If 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-067 | business rule | When an authorization is approved, the system shall reply with reason code '0000'. | AC-09 |
REQ-F-068 | business rule | When 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-069 | business rule | When 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-070 | historical artifact | Where 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
| Rule | Class | Text, 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.
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.
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.
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.
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.
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.
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'.
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.
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'.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given decision: approved When an authorization is approved Then Reason '0000' | REQ-F-067 Assign decline reason code worked example 1 of the rule |
| AC-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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
| Decision | Card, account and customer found | Decline cause | Response code, reason code and approved amount | Rule |
|---|---|---|---|---|
| Approved | All found | - | Response '00', full requested amount approved | rec/group:claude/RULE-001/4 |
| Approved | All found | - | Reason '0000' | rec/group:claude/RULE-051/1 |
| Declined | Card not in cross-reference | - | Response '05', reason '3100', approved amount 0 | rec/group:claude/RULE-050/3 |
| Declined | Card, account or customer not found | Any | Reason '3100' (takes precedence) | rec/group:claude/RULE-051/2 |
| Declined | All found | Insufficient funds | Response '05', reason '4100', approved amount 0 | rec/group:claude/RULE-051/3 |
| Declined | All found | Card not active | Reason '4200' (not produced today) | rec/group:claude/RULE-051/4 |
| Declined | All found | Account closed | Reason '4300' (not produced today) | rec/group:claude/RULE-051/4 |
| Declined | All found | Card fraud | Reason '5100' (not produced today) | rec/group:claude/RULE-051/4 |
| Declined | All found | Merchant fraud | Reason '5200' (not produced today) | rec/group:claude/RULE-051/4 |
| Declined | All found | Any other | Reason '9000' (not produced today) | rec/group:claude/RULE-051/4 |
| Declined | All found | Insufficient funds | Gap: The rules name an available credit check but do not state how insufficient funds is determined (which balance and limit are compared). | |
| Approved | Cross-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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-071 | business rule | When 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-072 | business rule | When 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-073 | business rule | When 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-074 | business rule | When 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-075 | error handling | If 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-076 | design note | When 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-077 | business rule | When 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-078 | business rule | When the authorization detail is recorded, the system shall leave the fraud flag and the fraud report date blank. | AC-12 |
REQ-F-079 | error handling | If 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
| Rule | Class | Text, 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.
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).
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-reference | Summary exists for account | Decision | Summary and detail update | Rule |
|---|---|---|---|---|
| No | - | Any | No summary update and no detail recorded | rec/group:claude/RULE-050/2 |
| Yes | No | Any | New summary started at zero with account and customer from cross-reference, then added | rec/group:claude/RULE-002/1 |
| Yes | Yes | Any | Existing summary replaced | rec/group:claude/RULE-195/1 |
| Yes | Any | Approved | Approved 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 |
| Yes | Any | Declined | Declined count +1, previously recorded detail amount added to declined total; detail match status 'D' | rec/group:claude/RULE-002/4 |
| Yes | Any | Summary save failed | Gap: 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. | |
| Yes | No | Declined | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-080 | error handling | When 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-081 | error handling | When 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
| Rule | Class | Text, 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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-082 | formatting | 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. | AC-01 |
REQ-F-083 | business rule | 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. | AC-02, AC-03 |
REQ-F-084 | business rule | 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. | AC-04, AC-05 |
REQ-F-085 | business rule | 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. | AC-06 |
REQ-F-086 | business rule | 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. | AC-07 |
REQ-F-087 | formatting | 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. | AC-08 |
REQ-F-088 | design note | 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. | AC-09, AC-10 |
REQ-F-089 | design note | 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. | AC-11 |
REQ-F-090 | formatting | 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. | AC-19 |
REQ-F-091 | formatting | 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. | AC-20 |
REQ-F-092 | formatting | 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. | AC-12 |
REQ-F-093 | formatting | 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. | AC-13, AC-14, AC-15 |
REQ-F-094 | formatting | 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. | AC-14, AC-15, AC-16 |
REQ-F-095 | error handling | 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. | AC-21 |
REQ-F-096 | error handling | 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>'. | AC-22 |
REQ-F-097 | error handling | 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>'. | AC-23 |
REQ-F-098 | error handling | 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>'. | AC-24 |
REQ-F-099 | business rule | When 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-100 | business rule | 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. | AC-18 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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-16 | Given 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-17 | Given 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-18 | Given 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-19 | Given 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-20 | Given 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-21 | Given 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-22 | Given 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-23 | Given 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-24 | Given 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 pressed | Account ID entered | Paging state | Screen action | Rule |
|---|---|---|---|---|
| Enter | Blank | - | Error 'Please enter Acct Id...', account cleared, cursor on Account ID, nothing loaded | rec/group:claude/RULE-052/1 |
| Enter | Not entirely numeric | - | Error 'Acct Id must be Numeric ...', account cleared, cursor on Account ID, nothing loaded | rec/group:claude/RULE-052/2 |
| Enter | Numeric | - | Account saved, selection processed, first page reloaded with details | rec/group:claude/RULE-052/3 |
| PF3 | - | - | Transfer to main menu COMEN01C with session data | rec/group:claude/RULE-142/3 |
| PF7 | - | Page number greater than 1 | Step back one page from its saved first key, redisplay without erase | rec/group:claude/RULE-143/1 |
| PF7 | - | Page number 1 or less | 'You are already at the top of the page...', list unchanged | rec/group:claude/RULE-143/2 |
| PF8 | - | Next page exists | Clear rows and show next page of up to 5, redisplay without full erase | rec/aws:No domain/CardAuthorizationandFraudManagement/id-5c89966739/1 |
| PF8 | - | No next page | 'You are already at the bottom of the page...', list kept | rec/aws:No domain/CardAuthorizationandFraudManagement/id-3667000338/1 |
| Any other key | - | - | Error 'Invalid key pressed. Please see below...', cursor on account number | rec/group:claude/RULE-142/4 |
| PF7 or PF8 | No 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-101 | business rule | 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. | AC-01, AC-02 |
REQ-F-102 | design note | 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. | AC-03, AC-04 |
REQ-F-103 | business rule | 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. | AC-05, AC-06 |
REQ-F-104 | business rule | 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...'. | AC-07 |
REQ-F-105 | business rule | 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. | AC-08, AC-09 |
REQ-F-106 | business rule | 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. | AC-10 |
REQ-F-107 | business rule | 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. | AC-11, AC-12 |
REQ-F-108 | formatting | 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. | AC-13 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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.
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...'.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-109 | business rule | 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. | AC-01, AC-02 |
REQ-F-110 | business rule | 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. | AC-03 |
REQ-F-111 | business rule | 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. | AC-04 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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 marked | Selection code | Row holds authorization key | Selection action | Rule |
|---|---|---|---|---|
| No row marked | - | - | Selection cleared | rec/group:claude/RULE-053/1 |
| Yes (first marked row) | 'S' or 's' | Yes | Open COPAUS1C with the key, returning to COPAUS0C / CPVS | rec/group:claude/RULE-053/2 |
| Yes (first marked row) | Other than 'S' or 's' | Any | 'Invalid selection. Valid value is S', list redisplayed | rec/group:claude/RULE-053/3 |
| Yes (first marked row) | 'S' or 's' | No | Gap: No rule says what happens when 'S' is entered on a row with no authorization. | |
| More than one row marked | Any | Any | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-112 | formatting | 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. | AC-06 |
REQ-F-113 | formatting | 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. | AC-01, AC-02 |
REQ-F-114 | business rule | 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). | AC-03, AC-04, AC-05 |
Business rules
| Rule | Class | Text, 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.
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).
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-115 | business rule | 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. | AC-01, AC-02, AC-03 |
REQ-F-116 | formatting | 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. | AC-10 |
REQ-F-117 | formatting | 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. | AC-11 |
REQ-F-118 | formatting | 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. | AC-12 |
REQ-F-119 | formatting | 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. | AC-13 |
REQ-F-120 | formatting | 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 '-'. | AC-04 |
REQ-F-121 | business rule | 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. | AC-05, AC-06, AC-07 |
REQ-F-122 | business rule | If a database read error occurred (error flag on), then the system shall leave the authorization detail fields blank. | AC-05 |
REQ-F-123 | design note | 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. | AC-08 |
REQ-F-124 | error handling | 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. | AC-09 |
REQ-F-125 | error handling | 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. | AC-14 |
REQ-F-126 | error handling | 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. | AC-15 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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 '-'.
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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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 selected | Summary read status | Detail read status | What the detail view does | Rule |
|---|---|---|---|---|
| No | not read | not read | No database read; error flag set; all detail fields blank; no message | rec/group:claude/RULE-055/2 |
| Yes | 'GE' or 'GB' | not read | Mark no authorizations remain; skip further reads; no error message | rec/group:claude/RULE-055/5 |
| Yes | any other status | not read | Error flag set; show ' System error while reading Auth Summary: Code:' and status | rec/group:claude/RULE-055/6 |
| Yes | blank or 'FW' | success | Display the authorization details | rec/group:claude/RULE-055/4 |
| Yes | blank or 'FW' | 'GE' or 'GB' | Mark no authorizations remain; skip further reads; no error message | rec/group:claude/RULE-055/5 |
| Yes | blank or 'FW' | any other status | Error flag set; show ' System error while reading Auth Details: Code:' and status | rec/group:claude/RULE-055/7 |
| Yes | 'GE' or 'GB' | not read | Gap: 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. | |
| Yes | blank 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-127 | design note | When 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-128 | business rule | When the user presses PF3 on the detail screen, the system shall return to the authorization summary list (COPAUS0C). | AC-02 |
REQ-F-129 | business rule | 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. | AC-03, AC-04 |
REQ-F-130 | business rule | 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. | AC-05 |
REQ-F-131 | error handling | 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. | AC-08 |
REQ-F-132 | business rule | 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...'. | AC-06, AC-07 |
Business rules
| Rule | Class | Text, 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).
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).
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.
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.
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.
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...'.
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...'.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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
| Entry | Key pressed | What the detail view does | Rule |
|---|---|---|---|
| No data passed from a calling screen | any | Transfer to the authorization summary program (COPAUS0C) | rec/group:claude/RULE-196/1 |
| First entry from summary list | n/a | Read and display the selected authorization | rec/group:claude/RULE-196/2 |
| Re-entry | Enter | Re-read and redisplay the selected authorization | rec/group:claude/RULE-196/3 |
| Re-entry | PF3 | Return to the authorization summary list (COPAUS0C) | rec/group:claude/RULE-196/4 |
| Re-entry | PF5 | Toggle the fraud mark and redisplay the details | rec/group:claude/RULE-196/5 |
| Re-entry | PF8 | Show the next authorization of the same account | rec/group:claude/RULE-196/6 |
| Re-entry | any other key | Re-read and redisplay with 'Invalid key pressed. Please see below...' | rec/group:claude/RULE-196/7 |
PF8 next authorization outcome
| Next authorization read result | What the detail view does | Rule |
|---|---|---|
| Next authorization found | Make it the selected authorization and display its details | rec/group:claude/RULE-144/1 |
| No further authorization | Keep current selection; show 'Already at the last Authorization...' without erasing the screen | rec/group:claude/RULE-144/2 |
| Any other database status | Flag error; show ' System error while reading next Auth: Code:' and status; details not filled | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-133 | business rule | 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). | AC-01, AC-02, AC-03, AC-04 |
REQ-F-134 | business rule | 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). | AC-02, AC-03, AC-04, AC-05, AC-06 |
REQ-F-135 | design note | The 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-136 | business rule | 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. | AC-16 |
REQ-F-137 | business rule | 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. | AC-07, AC-08, AC-09 |
REQ-F-138 | business rule | 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...'. | AC-07, AC-08, AC-10, AC-11 |
REQ-N-003 | error handling | 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. | AC-17 |
REQ-F-139 | error handling | 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:…'). | AC-12 |
REQ-F-140 | error handling | 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. | AC-13 |
REQ-F-141 | business rule | When a PF5 fraud action finishes, the system shall redisplay the same authorization's details. | AC-02, AC-14 |
Business rules
| Rule | Class | Text, 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).
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.
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.
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).
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...'.
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.
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...'.
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:…').
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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-16 | Given 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-17 | Given 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 flag | New fraud flag and fraud action requested | Rule |
|---|---|---|
| '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 normally | Fraud update program status | Authorization detail replace status | Commit or roll back, and message | Rule |
|---|---|---|---|---|
| No | n/a | not attempted | Roll back; authorization detail unchanged; no message | rec/group:claude/RULE-132/6 |
| Yes | failure | not attempted | Roll back; authorization detail unchanged; show the fraud program's message | rec/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 status | Roll back both changes; set error flag; show ' System error while FRAUD Tagging, ROLLBACK||' and status | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-142 | design note | 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. | AC-01 |
REQ-F-143 | business rule | 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'. | AC-02 |
REQ-F-144 | business rule | 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'. | AC-03 |
REQ-F-145 | error handling | 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. | AC-04 |
REQ-F-146 | error handling | 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. | AC-05 |
Business rules
| Rule | Class | Text, 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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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 result | Update existing row result | Status and message returned | Rule |
|---|---|---|---|
| Success | not attempted | Status 'S', 'ADD SUCCESS' | rec/group:claude/RULE-133/2 |
| Duplicate key (SQLCODE -803) | Success | Status 'S', 'UPDT SUCCESS' | rec/group:claude/RULE-133/3 |
| Duplicate key (SQLCODE -803) | Failure | Status 'F', ' UPDT ERROR DB2: CODE:' with SQL code and state | rec/group:claude/RULE-133/5 |
| Any other database error | not attempted | Status 'F', ' SYSTEM ERROR DB2: CODE:' with SQL code and state | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-147 | design note | The 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-148 | design note | The 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-149 | business rule | If 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-150 | design note | When reading summaries reaches the end of the database (status 'GB'), the system shall stop reading and finish the run. | AC-04 |
REQ-F-151 | design note | While 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-152 | design note | When 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-153 | error handling | If 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-154 | error handling | If 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-155 | error handling | If 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
| Rule | Class | Text, 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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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 status | Account id numeric | Summary write status | What the unload does | Rule |
|---|---|---|---|---|
| blank | Yes | blank | Summary written; unload its details | rec/aws:No domain/CardAuthorizationandFraudManagement/id-04f67fcf1c/1 |
| blank | No | not written | Skip the summary and its details | rec/aws:No domain/CardAuthorizationandFraudManagement/id-04f67fcf1c/2 |
| 'GB' | n/a | not written | Stop reading and finish the run | rec/aws:No domain/CardAuthorizationandFraudManagement/id-04f67fcf1c/3 |
| any other status | n/a | not written | Print 'AUTH SUM GN FAILED :' and 'DBUNLDGS ABENDING ...'; return code 16; end | rec/group:claude/RULE-197/1 |
| blank | Yes | non-blank | Print 'GSAM PARENT FAIL :'; return code 16; end | rec/group:claude/RULE-197/3 |
Unloading the details of a summary
| Detail read status | Detail write status | What the unload does | Rule |
|---|---|---|---|
| blank | blank | Detail written; read next detail | rec/aws:No domain/CardAuthorizationandFraudManagement/id-7828a9d69f/1 |
| 'GE' | not written | Print 'CHILD SEG FLAG GE : Y'; stop reading details; clear status for next summary | rec/aws:No domain/CardAuthorizationandFraudManagement/id-7828a9d69f/2 |
| any other status | not written | Print 'GNP CALL FAILED :'; return code 16; end | rec/group:claude/RULE-197/2 |
| blank | non-blank | Print 'GSAM PARENT FAIL :'; return code 16; end | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-156 | design note | The 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-157 | design note | The 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-158 | business rule | If 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-159 | business rule | When 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-160 | error handling | If 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-161 | error handling | When the detail insert returns a blank status, the system shall display 'CHILD SEGMENT INSERTED SUCCESS'. | AC-09 |
REQ-F-162 | error handling | When 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-163 | error handling | If 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-164 | error handling | When reading the detail file returns end of file (status '10'), the system shall stop reading details. | AC-10, AC-11 |
REQ-F-165 | error handling | If 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
| Rule | Class | Text, 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.
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
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.
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.
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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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 numeric | Summary found | Detail insert status | What the load does | Rule |
|---|---|---|---|---|
| No | not looked up | not attempted | Skip the record silently; read next detail | rec/group:claude/RULE-056/2 |
| Yes | No | not attempted | Skip the detail; no error message; run continues | rec/group:claude/RULE-056/4 |
| Yes | Yes | blank | Insert detail; display 'CHILD SEGMENT INSERTED SUCCESS' | rec/group:claude/RULE-056/5 |
| Yes | Yes | 'II' | Display 'CHILD SEGMENT ALREADY IN DB'; existing detail unchanged; continue | rec/group:claude/RULE-056/5 |
| Yes | Yes | any other status | Display 'INSERT CALL FAIL FOR CHILD:' and 'IMS LOAD ABENDING ...'; return code 16 | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-166 | business rule | The system shall insert each record read from the summary file as a pending authorization summary. | AC-01 |
REQ-F-167 | business rule | When a summary insert returns a blank status, the system shall display 'ROOT INSERT SUCCESS'. | AC-01 |
REQ-F-168 | error handling | If 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-169 | error handling | If 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
| Rule | Class | Text, 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'.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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 status | Load action | Rule |
|---|---|---|
| blank | Summary 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 record | rec/group:claude/RULE-198/2 |
| any other status | Display 'ROOT INSERT FAILED :' with status and 'IMS LOAD ABENDING ...'; stop with return code 16 | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-170 | business rule | The 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-171 | design note | While 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-172 | business rule | When 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-173 | design note | The system shall write each summary to the summary unload file as its 100-byte database image, unchanged. | AC-04 |
REQ-F-174 | business rule | If 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-175 | design note | When 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-176 | error handling | If 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-177 | design note | When 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-178 | design note | When 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-179 | error handling | If 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
| Rule | Class | Text, 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.
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.
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.
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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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 status | Account id numeric | Unload action | Rule |
|---|---|---|---|
| blank | yes | Write summary unchanged to summary unload file; unload every detail under it | rec/group:claude/RULE-057/2 |
| blank | no | Write neither summary nor details; no message; go on to next summary | rec/group:claude/RULE-057/3 |
| 'GB' (end of database) | n/a | Stop reading summaries; close both unload files; end normally | rec/group:claude/RULE-199/2 |
| any other status | n/a | Display 'AUTH SUM GN FAILED :' with status and key feedback and 'IMSUNLOD ABENDING ...'; end with return code 16 without closing files | rec/claude:claude/RULE-200/2 |
Detail read outcome
| Detail read status | Unload action | Rule |
|---|---|---|
| blank | Write 206-byte record (parent account id + 200-byte detail image) to detail unload file | rec/group:claude/RULE-201/2 |
| 'GE' (no more details) | Stop reading details for this summary; display 'CHILD SEG FLAG GE : '; go on to next summary | rec/aws:No domain/CardAuthorizationandFraudManagement/id-af91873aa5/1 |
| any other status | Display 'GNP CALL FAILED :' and 'KFB AREA IN CHILD:' and 'IMSUNLOD ABENDING ...'; end with return code 16 without closing files | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-N-004 | design note | The 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-005 | design note | The 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-006 | design note | The 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-180 | design note | The 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-181 | design note | The 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-182 | error handling | If 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-183 | error handling | If 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
| Rule | Class | Text, 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.
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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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 job | Output file | Step outcome | File disposition | Rule |
|---|---|---|---|---|
| UNLDGSAM | root-segment and child-segment GSAM files | ends normally | Keep both files | rec/aws:No domain/CardAuthorizationandFraudManagement/id-750bebea8d/2 |
| UNLDGSAM | root-segment and child-segment GSAM files | fails | Keep both files | rec/aws:No domain/CardAuthorizationandFraudManagement/id-750bebea8d/2 |
| UNLDPADB | root unload file (ROOT.FILEO) | ends normally | Catalog the file | rec/aws:No domain/CardAuthorizationandFraudManagement/id-e90134a92f/1 |
| UNLDPADB | root unload file (ROOT.FILEO) | fails | Delete the file | rec/aws:No domain/CardAuthorizationandFraudManagement/id-e90134a92f/1 |
| UNLDPADB | child unload file (CHILD.FILEO) | ends normally | Catalog the file | rec/aws:No domain/CardAuthorizationandFraudManagement/id-c12ff18051/1 |
| UNLDPADB | child unload file (CHILD.FILEO) | fails | Delete the file | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-001 | design note | When 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-002 | design note | The 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
| Rule | Class | Text, 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.
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)).
samples/proc/BUILDBMS.prc:23-29, samples/proc/BUILDBMS.prc:36-43, samples/proc/BUILDBMS.prc:78-92 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-003 | design note | When 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-004 | formatting | When 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-005 | design note | When 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-006 | design note | When 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-007 | error handling | If 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-008 | error handling | If 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-009 | error handling | If 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
| Rule | Class | Text, 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).
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.
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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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 status | Card Listing action | Rule |
|---|---|---|
| '00' | Treat read as successful and print the record | rec/claude:claude/RULE-069/1 |
| '10' (end of file) | Stop reading, print nothing for that read, end the listing normally | rec/claude:claude/RULE-069/2 |
| any other status | Print 'ERROR READING CARDFILE', file status and 'ABENDING PROGRAM', abend with code 999 | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-010 | design note | The 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-011 | formatting | The 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-012 | historical artifact | The 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
| Rule | Class | Text, 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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-013 | formatting | The 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-014 | formatting | When 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
| Rule | Class | Text, 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').
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-015 | design note | The 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-016 | error handling | If 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-017 | business rule | When 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-018 | formatting | When 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-019 | business rule | If 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-020 | business rule | While 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-021 | error handling | If 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-022 | error handling | If 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-023 | historical artifact | The 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-024 | formatting | When 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
| Rule | Class | Text, 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').
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.
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'
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-reference | Account lookup result | Verification action | Rule |
|---|---|---|---|
| No | not performed | Show 'INVALID CARD NUMBER FOR XREF' and 'CARD NUMBER <card> COULD NOT BE VERIFIED. SKIPPING TRANSACTION ID-<transaction ID>'; no account lookup | rec/group:claude/RULE-079/3 |
| Yes | performed | Show 'SUCCESSFUL READ OF XREF' with card number, account ID and customer ID; look up linked account | rec/group:claude/RULE-079/2 |
| Yes | account not found | Display 'ACCOUNT <account id> NOT FOUND' | rec/agreed:Unassigned-Programs/id-179993271a/1 |
| Yes | account found | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-025 | design note | When 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-026 | design note | When 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-027 | design note | When 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-028 | error handling | If 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
| Rule | Class | Text, 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.
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'.
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'.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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 result | Package bind result | Bind action | Rule |
|---|---|---|---|
| all return code 0 | not yet run | Bind package into collection 'CARDDEMO' | rec/aws:Unassigned-Programs/id-0841a58e24/1 |
| all return code 0 | return code 4 or less | Bind application plan over 'CARDDEMO.*' keeping authorizations ('RETAIN') | rec/aws:Unassigned-Programs/id-f030b29fa5/1 |
| link-edit failed | did not run | Plan bind still runs | rec/aws:Unassigned-Programs/id-f030b29fa5/2 |
| all return code 0 | return code above 4 | Gap: No rule states whether the plan bind is skipped or run when the package bind fails. | |
| precompile, translation or compile failed | did not run | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-029 | business rule | If 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-030 | design note | When 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-031 | business rule | If 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-032 | design note | When 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-033 | business rule | If 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-034 | design note | When 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
| Rule | Class | Text, 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
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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 type | Requested output type | Dash at fifth character of input | Conversion result | Rule |
|---|---|---|---|---|
| not '1' or '2' | any | any | Reject with 'INVALID INPUT'; output date unchanged | rec/group:claude/RULE-016/1 |
| '1' | not '2' | No | Return date as YYYY-MM-DD | rec/group:claude/RULE-016/2 |
| '1' | any | Yes | Reject with 'INVALID INPUT' | rec/group:claude/RULE-016/3 |
| '1' | '2' | any | Reject 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-10 | rec/group:claude/RULE-016/4 |
| '2' | '1' | any | Reject 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-035 | design note | When 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-036 | design note | When 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-037 | historical artifact | The 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
| Rule | Class | Text, 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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-038 | design note | The 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-039 | design note | The 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-040 | design note | The 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-041 | design note | 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. | AC-04 |
REQ-F-042 | design note | 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. | AC-05 |
REQ-F-043 | design note | The 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-044 | design note | The 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-045 | design note | The 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-046 | error handling | If 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
| Rule | Class | Text, 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.
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.
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.
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.
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.
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.
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.
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.
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.
app/jcl/DEFGDGB.jcl:24-29, app/jcl/TRANBKP.jcl:33, app/jcl/COMBTRAN.jcl:24 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-047 | formatting | When 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
| Rule | Class | Text, 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.
samples/jcl/LISTCAT.jcl:21-26, samples/jcl/LISTCAT.jcl:27-35 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-048 | design note | The 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-049 | design note | The 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
| Rule | Class | Text, 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.
app/jcl/TRANIDX.jcl:19-34, app/jcl/TRANIDX.jcl:36-44, app/cpy/CVTRA05Y.cpy:4-18 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-001 | design note | The system shall define the login program COSGN00C in the CICS group CARDDEMO with data location ANY and transaction code CC00. | AC-01 |
REQ-F-002 | design note | The 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-003 | design note | The 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
| Rule | Class | Text, 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.
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.
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.
app/jcl/CBADMCDJ.jcl:147-148 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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
- 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 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-004 | formatting | 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. | AC-01 |
REQ-F-005 | formatting | 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. | AC-14 |
REQ-F-006 | business rule | 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. | AC-02, AC-03, AC-04 |
REQ-F-007 | business rule | 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...'. | AC-05 |
REQ-F-008 | business rule | 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...'. | AC-06, AC-07, AC-08 |
REQ-F-009 | business rule | 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. | AC-09, AC-10 |
REQ-F-010 | error handling | 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. | AC-15 |
REQ-F-011 | historical artifact | 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 ...'. | AC-11 |
REQ-N-001 | business rule | 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. | AC-12, AC-13 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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...'.
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...'.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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 present | Re-entry from own screen | Key pressed | Admin Menu action | Rule |
|---|---|---|---|---|
| Yes | No | - | Clear error and message, mark as re-entry, display fresh empty menu | rec/aws:UserAccessControl/SystemOperationsandMaintenance/id-2a094f423f/1 |
| Yes | Yes | Enter | Normalise and process the option number entered | rec/aws:UserAccessControl/SystemOperationsandMaintenance/id-ae8fd0047c/1 |
| Yes | Yes | Other than Enter or PF3 | Flag 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. | |
| Yes | Yes | PF3 | Gap: 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 CICS | Admin Menu action | Rule |
|---|---|---|---|---|
| No | - | - | Flag error, redisplay menu with 'Please enter a valid option number...' | rec/aws:UserAccessControl/SystemOperationsandMaintenance/id-c18f68018b/1 |
| Yes | Yes | - | Redisplay menu with green 'This option is not installed ...' | rec/group:claude/RULE-246/2 |
| Yes | No | Yes | Record origin CA00/COADM01C, reset target context, transfer to option program | rec/group:claude/RULE-044/1 |
| Yes | No | No | Redisplay menu with green 'This option is not installed ...' and wait | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-012 | business rule | 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). | AC-01 |
REQ-F-013 | design note | 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. | AC-02, AC-03, AC-04 |
REQ-F-014 | design note | When 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-015 | formatting | 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. | AC-22 |
REQ-F-016 | business rule | 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. | AC-05, AC-06, AC-07, AC-08, AC-09 |
REQ-F-017 | business rule | When 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-018 | business rule | 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...'. | AC-05, AC-06, AC-11 |
REQ-F-019 | business rule | 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. | AC-12, AC-13, AC-14 |
REQ-F-020 | business rule | 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... '. | AC-15, AC-16 |
REQ-F-021 | formatting | 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 ...'. | AC-17 |
REQ-F-022 | business rule | 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. | AC-18, AC-19 |
REQ-F-023 | business rule | 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. | AC-20 |
REQ-F-024 | error handling | 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...'. | AC-23 |
REQ-F-025 | design note | 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. | AC-21 |
Business rules
| Rule | Class | Text, 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).
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.
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.
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...'.
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.
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.
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).
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...'.
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.
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... '
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 ...'
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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-16 | Given 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-17 | Given 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-18 | Given 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-19 | Given 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-20 | Given 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-21 | Given 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-22 | Given 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-23 | Given 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 present | Program state 're-enter' | Key pressed | Main Menu action | Rule |
|---|---|---|---|---|
| No | - | - | Show no menu, transfer to sign-on (COSGN00C) | rec/claude:claude/RULE-174/1 |
| Yes | No | - | Mark state re-enter, clear screen, show menu without reading input | rec/claude:claude/RULE-175/1 |
| Yes | Yes | Enter | Process the typed option number | rec/group:claude/RULE-109/1 |
| Yes | Yes | PF3 | Return to sign-on screen (COSGN00C) | rec/group:claude/RULE-109/2 |
| Yes | Yes | Other key | Redisplay 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 program | COPAUS0C defined in CICS | Main Menu action | Rule |
|---|---|---|---|---|---|
| No | - | - | - | Redisplay menu with 'Please enter a valid option number...', select nothing | rec/group:claude/RULE-108/2 |
| Yes | Yes | - | - | Flag error, redisplay menu with 'No access - Admin Only option... ' | rec/agreed:UserAccessControl/SystemOperationsandMaintenance/id-f74ed3f5a8/1 |
| Yes | No | Starts with 'DUMMY' | - | Redisplay menu with green 'This option <name> is coming soon ...' | rec/agreed:UserAccessControl/SystemOperationsandMaintenance/id-07ce21af49/1 |
| Yes | No | Other program | - | Record origin CM00/COMEN01C, reset target context to zero, transfer to option program | rec/group:claude/RULE-173/1 |
| Yes | No | COPAUS0C | Yes | Record origin CM00/COMEN01C, reset target context, transfer to COPAUS0C | rec/group:claude/RULE-225/1 |
| Yes | No | COPAUS0C | No | Redisplay menu with red 'This option <option name> is not installed...' | rec/group:claude/RULE-225/2 |
| Yes | Yes | Starts 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-026 | business rule | The 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-027 | side effect | While 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
| Rule | Class | Text, 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'.
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).
app/jcl/FTPJCL.JCL:30-41, app/jcl/FTPJCL.JCL:21-29 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-028 | design note | The 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-029 | design note | The 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-030 | design note | The 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
| Rule | Class | Text, 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.
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'.
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.
app/jcl/INTRDRJ2.JCL:7-12 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-031 | business rule | The 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
| Rule | Class | Text, 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.
samples/jcl/RACFCMDS.jcl:19-26 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-001 | formatting | 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. | AC-01 |
REQ-F-002 | business rule | 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. | AC-02 |
REQ-F-003 | business rule | 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. | AC-03 |
REQ-F-004 | business rule | 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. | AC-04 |
REQ-F-005 | business rule | 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. | AC-19 |
REQ-F-006 | business rule | 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. | AC-05 |
REQ-F-007 | error handling | 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. | AC-06 |
REQ-F-008 | business rule | 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. | AC-07, AC-08 |
REQ-N-001 | business rule | 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. | AC-08 |
REQ-F-009 | business rule | 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). | AC-09, AC-10 |
REQ-F-010 | business rule | 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. | AC-09, AC-10, AC-11 |
REQ-F-011 | business rule | 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. | AC-09, AC-10, AC-12, AC-13, AC-14, AC-15 |
REQ-F-012 | business rule | 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. | AC-16 |
REQ-F-013 | business rule | 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...'. | AC-17 |
REQ-F-014 | design note | 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. | AC-18 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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...'.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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-16 | Given 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-17 | Given 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-18 | Given 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-19 | Given 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 entered | Password entered | User security record read | Stored password equals upper-cased entered password | User type | Sign-on result | Rule |
|---|---|---|---|---|---|---|
| No | Any | Not read | - | - | Redisplay with 'Please enter User ID ...', cursor on User ID | rec/group:claude/RULE-112/1 |
| Yes | No | Not read | - | - | Redisplay with 'Please enter Password ...', cursor on Password | rec/group:claude/RULE-112/2 |
| Yes | Yes | User not found | - | - | Redisplay with 'User not found. Try again ...', cursor on User ID | rec/aws:UserAccessControl/UserSecurityProfileManagement/id-bd1e258214/1 |
| Yes | Yes | Read failed for any other reason | - | - | Redisplay with 'Unable to verify the User ...', cursor on User ID | rec/group:claude/RULE-047/4 |
| Yes | Yes | Found | No | - | Redisplay with 'Wrong Password. Try again ...', cursor on Password; no lockout | rec/group:claude/RULE-047/3 |
| Yes | Yes | Found | Yes | 'A' | Transfer to administrator menu (COADM01C) with session context | rec/claude:claude/RULE-177/2 |
| Yes | Yes | Found | Yes | Anything other than 'A' | Transfer to regular user main menu (COMEN01C) with session context | rec/claude:claude/RULE-177/3 |
Sign-on screen key handling
| Key pressed | Sign-on screen action | Rule |
|---|---|---|
| Enter | Check User ID and Password and try to sign on | rec/group:claude/RULE-178/2 |
| PF3 | Clear terminal, show 'Thank you for using CardDemo application...' and end | rec/group:claude/RULE-178/3 |
| Any other key | Redisplay 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-015 | business rule | When 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-016 | formatting | 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. | AC-02 |
REQ-F-017 | business rule | 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. | AC-03 |
REQ-F-018 | business rule | 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. | AC-04 |
REQ-F-019 | formatting | 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. | AC-05, AC-06 |
REQ-F-020 | formatting | 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. | AC-07 |
REQ-F-021 | design note | 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. | AC-08 |
REQ-F-022 | design note | 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. | AC-09, AC-10 |
REQ-F-023 | business rule | 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. | AC-11 |
REQ-F-024 | business rule | 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. | AC-12, AC-13, AC-14 |
REQ-F-025 | business rule | 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. | AC-15, AC-16 |
REQ-F-026 | business rule | 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...'. | AC-17 |
REQ-F-027 | error handling | 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. | AC-18 |
REQ-F-028 | business rule | 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. | AC-19 |
REQ-F-029 | business rule | 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. | AC-20 |
REQ-F-030 | design note | 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. | AC-21 |
REQ-F-031 | business rule | 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. | AC-22, AC-23 |
REQ-F-032 | error handling | 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. | AC-24 |
REQ-F-033 | design note | 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. | AC-25 |
Business rules
| Rule | Class | Text, 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).
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.
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.
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.
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
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.
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.
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.
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.
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
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.
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.
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...'.
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.
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.
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.
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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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-16 | Given 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-17 | Given 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-18 | Given 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-19 | Given 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-20 | Given 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-21 | Given 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-22 | Given 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-23 | Given 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-24 | Given 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-25 | Given 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 pressed | Page number | Next page marked | User list action | Rule |
|---|---|---|---|---|
| Enter | Any | Any | Process the selection or filter | rec/group:claude/RULE-181/3 |
| PF3 | Any | Any | Return to the Admin menu (COADM01C) | rec/group:claude/RULE-181/3 |
| PF7 | 1 or lower | Any | Show 'You are already at the top of the page...' and redisplay without clearing | rec/group:claude/RULE-032/1 |
| PF7 | Greater than 1 | Any | Show up to ten users before the first user on the current page | rec/group:claude/RULE-032/2 |
| PF8 | Any | No | Show 'You are already at the bottom of the page...' and redisplay without clearing | rec/group:claude/RULE-033/1 |
| PF8 | Any | Yes | Show up to the next ten users after the last user on the current page | rec/group:claude/RULE-033/2 |
| Any other key | Any | Any | Redisplay with 'Invalid key pressed. Please see below...', cursor on user ID entry | rec/group:claude/RULE-181/4 |
Page number after paging
| Paging direction | Rows filled | Further user exists beyond the page | Page number and next-page marking | Rule |
|---|---|---|---|---|
| Forward | All ten | Yes | Add 1 to page number; mark next page 'Y' | rec/group:claude/RULE-033/3 |
| Forward | All ten | No | Add 1 to page number; mark next page 'N' | rec/group:claude/RULE-033/3 |
| Forward | Fewer than ten (end of file) | No | Mark 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 |
| Backward | All ten | Yes (and page above 1) | Lower page number by 1 | rec/group:claude/RULE-032/3 |
| Backward | All ten | No | Set page number to 1 and show 'You have reached the top of the page...' | rec/group:claude/RULE-032/3 |
| Backward | Fewer than ten | - | Page number left unchanged | rec/group:claude/RULE-032/3 |
| Backward | Fewer 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-034 | business rule | 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. | AC-01, AC-02 |
REQ-F-035 | design note | 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. | AC-03, AC-04 |
REQ-F-036 | business rule | 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. | AC-05 |
REQ-F-037 | business rule | 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. | AC-06 |
REQ-F-038 | business rule | 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. | AC-07, AC-08 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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.
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.
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.
app/cbl/COUSR00C.cbl:188-216, app/cbl/COUSR00C.cbl:526 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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 row | User ID on that row | Screen opened | Rule |
|---|---|---|---|
| 'U' or 'u' | Present | Transfer to Update User (COUSR02C) with the selected user ID | rec/group:claude/RULE-121/3 |
| 'D' or 'd' | Present | Transfer to Delete User (COUSR03C) with the selected user ID | rec/group:claude/RULE-121/4 |
| Any other code | Present | No screen opened; show 'Invalid selection. Valid values are U and D', cursor on user ID search field | rec/aws:UserAccessControl/UserSecurityProfileManagement/id-2e98e46217/1 |
| None on any row | - | Clear pending selection and refresh the list | rec/aws:UserAccessControl/UserSecurityProfileManagement/id-5f059e0afa/1 |
| Any code | Absent | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-039 | business rule | 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. | AC-01 |
REQ-F-040 | business rule | 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. | AC-02 |
REQ-F-041 | business rule | 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. | AC-03 |
REQ-F-042 | business rule | 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. | AC-04 |
REQ-F-043 | business rule | 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. | AC-05 |
REQ-F-044 | business rule | 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. | AC-06 |
REQ-F-045 | business rule | 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). | AC-07 |
REQ-F-046 | design note | 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). | AC-11 |
REQ-N-002 | business rule | 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). | AC-12 |
REQ-F-047 | business rule | When 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-048 | business rule | 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. | AC-08 |
REQ-F-049 | error handling | 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. | AC-09 |
REQ-F-050 | business rule | 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. | AC-10 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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.
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.
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.
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).
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.
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.
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.
app/cbl/COUSR01C.cbl:90-103, app/cpy/CSMSG01Y.cpy:20-21 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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 Name | Last Name | User ID | Password | User Type | Add to user security file | Add User result | Rule |
|---|---|---|---|---|---|---|---|
| Blank | Any | Any | Any | Any | Not attempted | 'First Name can NOT be empty...', cursor on First Name | rec/group:claude/RULE-122/2 |
| Filled | Blank | Any | Any | Any | Not attempted | 'Last Name can NOT be empty...', cursor on Last Name | rec/group:claude/RULE-122/3 |
| Filled | Filled | Blank | Any | Any | Not attempted | 'User ID can NOT be empty...', cursor on User ID | rec/group:claude/RULE-122/4 |
| Filled | Filled | Filled | Blank | Any | Not attempted | 'Password can NOT be empty...', cursor on Password | rec/group:claude/RULE-122/5 |
| Filled | Filled | Filled | Filled | Blank | Not attempted | 'User Type can NOT be empty...', cursor on User Type | rec/group:claude/RULE-122/6 |
| Filled | Filled | Filled | Filled | Filled | Succeeds | Clear fields and show 'User <id> has been added ...' in green | rec/group:claude/RULE-048/1 |
| Filled | Filled | Filled | Filled | Filled | User ID already exists | Add nothing; 'User ID already exist...', cursor on User ID | rec/group:claude/RULE-048/2 |
| Filled | Filled | Filled | Filled | Filled | Fails for any other reason | 'Unable to Add User...', cursor on First Name | rec/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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-051 | business rule | 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. | AC-01, AC-02 |
REQ-F-052 | design note | 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. | AC-03 |
REQ-F-053 | error handling | 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...'. | AC-04 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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...').
app/cbl/COUSR02C.cbl:215-245, app/cbl/COUSR02C.cbl:340-345, app/cbl/COUSR02C.cbl:358-391 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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
| Action | User ID | User exists in user security file | User Update result | Rule |
|---|---|---|---|---|
| Lookup (Enter) | Blank | - | 'User ID can NOT be empty...', cursor on User ID; no lookup | rec/aws:UserAccessControl/UserSecurityProfileManagement/id-8baf062ce2/1 |
| Lookup (Enter) | Non-blank | Any | Clear name, password and type fields and read the user for update | rec/group:claude/RULE-124/2 |
| Save | Non-blank | No | 'User ID NOT found...' then save still attempted; last message 'Unable to Update User...' | rec/aws:UserAccessControl/UserSecurityProfileManagement/id-dfccf3b491/1 |
| Lookup (Enter) | Non-blank | No | Gap: No rule says what message is shown when a lookup finds no user. | |
| Lookup (Enter) | Non-blank | Yes | Gap: No rule states which user details are then displayed. | |
| Save | Blank | - | Gap: No rule covers saving with a blank User ID. | |
| Save | Non-blank | Yes | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-054 | business rule | When the Update User program is started without any session data, the system shall transfer to the sign-on program (COSGN00C). | AC-01 |
REQ-F-055 | business rule | 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. | AC-02 |
REQ-F-056 | formatting | 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. | AC-03 |
REQ-F-057 | business rule | When 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-058 | formatting | 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. | AC-05 |
REQ-F-059 | business rule | 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. | AC-06 |
REQ-F-060 | error handling | 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. | AC-07 |
REQ-F-061 | formatting | 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. | AC-08 |
REQ-F-062 | business rule | When the administrator presses PF12 on the Update User screen, the system shall go to the Admin menu (COADM01C) without saving. | AC-09 |
REQ-F-063 | business rule | 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...'. | AC-10 |
Business rules
| Rule | Class | Text, 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).
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.
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.
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.
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.
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.
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.
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.
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.
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...'.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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 pressed | Action taken by the Update User screen | Rule |
|---|---|---|
| Enter | Look up the entered User ID and show its details | rec/group:claude/RULE-232/1 |
| PF5 | Validate and save the changes and stay on the Update User screen | rec/group:claude/RULE-232/2 |
| PF3 | Attempt the same validation and save as PF5, then return to the calling program, or the Admin menu (COADM01C) if none is recorded | rec/group:claude/RULE-232/3 |
| PF4 | Clear User ID, First Name, Last Name, Password, User Type and the message; cursor on User ID | rec/group:claude/RULE-232/4 |
| PF12 | Go to the Admin menu (COADM01C) without saving | rec/group:claude/RULE-232/5 |
| Any other key | Redisplay the screen with 'Invalid key pressed. Please see below...' | rec/group:claude/RULE-232/6 |
Update User lookup outcome
| How the lookup is triggered | Lookup result | What the Update User screen shows | Rule |
|---|---|---|---|
| First entry, no user selected | No lookup | Empty screen with the cursor on User ID | rec/group:claude/RULE-183/3 |
| First entry with a selected user, or Enter | User found | Show stored First Name, Last Name, Password and User Type with 'Press PF5 key to save your updates ...' in neutral colour | rec/group:claude/RULE-124/3 |
| First entry with a selected user, or Enter | User not found | Show 'User ID NOT found...', cursor on User ID, detail fields blank | rec/group:claude/RULE-124/4 |
| First entry with a selected user, or Enter | Read fails for another reason | Show 'Unable to lookup User...' and log the response codes | rec/group:claude/RULE-124/5 |
| Enter | User ID blank | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-064 | business rule | When the administrator presses PF5, the system shall validate and save the changes and stay on the Update User screen. | AC-01 |
REQ-F-065 | business rule | 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. | AC-02, AC-03 |
REQ-F-066 | business rule | 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. | AC-04 |
REQ-F-067 | business rule | 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. | AC-05 |
REQ-F-068 | business rule | 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. | AC-06 |
REQ-F-069 | business rule | 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. | AC-07 |
REQ-F-070 | business rule | 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. | AC-08 |
REQ-F-071 | business rule | 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. | AC-09 |
REQ-F-072 | error handling | 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. | AC-10 |
REQ-F-073 | business rule | 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. | AC-11 |
REQ-F-074 | business rule | 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. | AC-12 |
REQ-F-075 | formatting | When the changed user record is saved successfully, the system shall show 'User <user ID> has been updated ...' in green. | AC-13 |
Business rules
| Rule | Class | Text, 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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 ID | First Name | Last Name | Password | User Type | Any of First Name, Last Name, Password, User Type differs from stored user | Save result | Rule |
|---|---|---|---|---|---|---|---|
| Blank | Any | Any | Any | Any | Any | Not saved; 'User ID can NOT be empty...'; cursor on User ID | rec/group:claude/RULE-125/1 |
| Filled | Blank | Any | Any | Any | Any | Not saved; 'First Name can NOT be empty...'; cursor on First Name | rec/group:claude/RULE-125/2 |
| Filled | Filled | Blank | Any | Any | Any | Not saved; 'Last Name can NOT be empty...'; cursor on Last Name | rec/group:claude/RULE-125/3 |
| Filled | Filled | Filled | Blank | Any | Any | Not saved; 'Password can NOT be empty...'; cursor on Password | rec/group:claude/RULE-125/4 |
| Filled | Filled | Filled | Filled | Blank | Any | Not saved; 'User Type can NOT be empty...'; cursor on User Type | rec/group:claude/RULE-125/5 |
| Filled | Filled | Filled | Filled | Filled | Yes | Changed fields replaced and user record saved; 'User <user ID> has been updated ...' in green | rec/group:claude/RULE-182/1 |
| Filled | Filled | Filled | Filled | Filled | No | Nothing saved; 'Please modify to update ...' in red | rec/group:claude/RULE-182/2 |
| Filled | Filled | Filled | Filled | Filled | Stored user not found or save fails | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-076 | business rule | When 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-077 | business rule | 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. | AC-02 |
REQ-F-078 | formatting | 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. | AC-13 |
REQ-F-079 | formatting | 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. | AC-03 |
REQ-F-080 | formatting | 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. | AC-14 |
REQ-F-081 | business rule | 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. | AC-04 |
REQ-F-082 | business rule | 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. | AC-05 |
REQ-F-083 | error handling | If 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-084 | business rule | 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. | AC-15 |
REQ-F-085 | business rule | 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. | AC-16 |
REQ-F-086 | business rule | 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. | AC-07 |
REQ-F-087 | error handling | 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. | AC-08 |
REQ-F-088 | error handling | If 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-089 | formatting | 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. | AC-10, AC-11 |
REQ-F-090 | formatting | 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. | AC-12 |
Business rules
| Rule | Class | Text, 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).
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.
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.
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.
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.
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...'.
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.
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.
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...'.
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.
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.
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
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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-10 | Given 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-11 | Given 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-12 | Given 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-13 | Given 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-14 | Given 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-15 | Given 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-16 | Given 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 pressed | User ID | User in user security file | What the User Delete screen does | Rule |
|---|---|---|---|---|
| Enter | Blank | n/a | Show 'User ID can NOT be empty...'; no lookup | rec/aws:UserAccessControl/UserSecurityProfileManagement/id-d07176ad51/1 |
| Enter | Filled | Found | Show first name, last name and user type with 'Press PF5 key to delete this user ...' in neutral colour | rec/group:claude/RULE-139/1 |
| Enter | Filled | Not found | Show 'User ID NOT found...'; cursor on user ID | rec/aws:UserAccessControl/UserSecurityProfileManagement/id-a6b9034964/1 |
| Enter | Filled | Read fails for another reason | Show 'Unable to lookup User...' | rec/aws:UserAccessControl/UserSecurityProfileManagement/id-a6b9034964/2 |
| PF5 | Blank | n/a | Show 'User ID can NOT be empty...'; no delete | rec/aws:UserAccessControl/UserSecurityProfileManagement/id-fe7f38497d/1 |
| PF5 | Filled | Found | Delete the record, clear the fields and show 'User <id> has been deleted ...' in green | rec/group:claude/RULE-139/2 |
| PF5 | Filled | Not found | Report 'User ID NOT found...' then still attempt the delete; final screen may show 'Unable to Update User...' | rec/aws:UserAccessControl/UserSecurityProfileManagement/id-25a0fc68a0/1 |
| PF5 | Filled | Delete fails for another reason | Show 'Unable to Update User...' | rec/aws:UserAccessControl/UserSecurityProfileManagement/id-25a0fc68a0/2 |
| PF3 | Any | Any | Return to the calling program, or the admin menu COADM01C if none recorded | rec/claude:claude/RULE-257/1 |
| PF4 | Any | Any | Clear user ID, first name, last name, type and message; redisplay empty screen | rec/group:claude/RULE-139/4 |
| PF12 | Any | Any | Gap: No rule says what PF12 does on the User Delete screen. | |
| Any other key | Any | Any | Gap: 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
| Code | Class | Requirement | Criteria |
|---|---|---|---|
REQ-F-091 | business rule | The 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-092 | design note | The 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-093 | design note | The 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-094 | business rule | The 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-095 | error handling | When the staging step ends normally, the system shall keep the staging file AWS.M2.CARDDEMO.ESDSRRDS.PS. | AC-07 |
REQ-F-096 | error handling | If the staging step ends abnormally, then the system shall delete the staging file AWS.M2.CARDDEMO.ESDSRRDS.PS. | AC-07 |
REQ-F-097 | design note | The 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-098 | design note | The 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
| Rule | Class | Text, 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'.
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.
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.
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.
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.
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.
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.
app/jcl/ESDSRRDS.jcl:93-107, app/jcl/ESDSRRDS.jcl:113-121 |
Acceptance criteria
| ID | Criterion | Checks |
|---|---|---|
| AC-01 | Given 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-02 | Given 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-03 | Given 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-04 | Given 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-05 | Given 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-06 | Given 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-07 | Given 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-08 | Given 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-09 | Given 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
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
ERR-DATE | X(06) | text, 6 characters | app/app-authorization-ims-db2-mq/cpy/CCPAUERY.cpy:20 | ||
ERR-TIME | X(06) | text, 6 characters | app/app-authorization-ims-db2-mq/cpy/CCPAUERY.cpy:21 | ||
ERR-APPLICATION | X(08) | text, 8 characters | app/app-authorization-ims-db2-mq/cpy/CCPAUERY.cpy:22 | ||
ERR-PROGRAM | X(08) | text, 8 characters | app/app-authorization-ims-db2-mq/cpy/CCPAUERY.cpy:23 | ||
ERR-LOCATION | X(04) | text, 4 characters | app/app-authorization-ims-db2-mq/cpy/CCPAUERY.cpy:24 | ||
ERR-LEVEL | X(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-SUBSYSTEM | X(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-1 | X(09) | text, 9 characters | app/app-authorization-ims-db2-mq/cpy/CCPAUERY.cpy:37 | ||
ERR-CODE-2 | X(09) | text, 9 characters | app/app-authorization-ims-db2-mq/cpy/CCPAUERY.cpy:38 | ||
ERR-MESSAGE | X(50) | text, 50 characters | app/app-authorization-ims-db2-mq/cpy/CCPAUERY.cpy:39 | ||
ERR-EVENT-KEY | X(20) | text, 20 characters | app/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
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-RL-CARD-NUM | X(16) | text, 16 characters | app/app-authorization-ims-db2-mq/cpy/CCPAURLY.cpy:19 |
PA-RL-TRANSACTION-ID
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-RL-TRANSACTION-ID | X(15) | text, 15 characters | app/app-authorization-ims-db2-mq/cpy/CCPAURLY.cpy:20 |
PA-RL-AUTH-ID-CODE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-RL-AUTH-ID-CODE | X(06) | text, 6 characters | app/app-authorization-ims-db2-mq/cpy/CCPAURLY.cpy:21 |
PA-RL-AUTH-RESP-CODE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-RL-AUTH-RESP-CODE | X(02) | text, 2 characters | app/app-authorization-ims-db2-mq/cpy/CCPAURLY.cpy:22 |
PA-RL-AUTH-RESP-REASON
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-RL-AUTH-RESP-REASON | X(04) | text, 4 characters | app/app-authorization-ims-db2-mq/cpy/CCPAURLY.cpy:23 |
PA-RL-APPROVED-AMT
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
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
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-RQ-AUTH-DATE | X(06) | text, 6 characters | app/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:19 |
PA-RQ-AUTH-TIME
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-RQ-AUTH-TIME | X(06) | text, 6 characters | app/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:20 |
PA-RQ-CARD-NUM
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-RQ-CARD-NUM | X(16) | text, 16 characters | app/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:21 |
PA-RQ-AUTH-TYPE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-RQ-AUTH-TYPE | X(04) | text, 4 characters | app/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:22 |
PA-RQ-CARD-EXPIRY-DATE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-RQ-CARD-EXPIRY-DATE | X(04) | text, 4 characters | app/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:23 |
PA-RQ-MESSAGE-TYPE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-RQ-MESSAGE-TYPE | X(06) | text, 6 characters | app/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:24 |
PA-RQ-MESSAGE-SOURCE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-RQ-MESSAGE-SOURCE | X(06) | text, 6 characters | app/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:25 |
PA-RQ-PROCESSING-CODE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-RQ-PROCESSING-CODE | 9(06) | unsigned integer, 6 digits (zoned decimal) | app/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:26 |
PA-RQ-TRANSACTION-AMT
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
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
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-RQ-MERCHANT-CATAGORY-CODE | X(04) | text, 4 characters | app/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:28 |
PA-RQ-ACQR-COUNTRY-CODE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-RQ-ACQR-COUNTRY-CODE | X(03) | text, 3 characters | app/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:29 |
PA-RQ-POS-ENTRY-MODE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-RQ-POS-ENTRY-MODE | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:30 |
PA-RQ-MERCHANT-ID
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-RQ-MERCHANT-ID | X(15) | text, 15 characters | app/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:31 |
PA-RQ-MERCHANT-NAME
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-RQ-MERCHANT-NAME | X(22) | text, 22 characters | app/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:32 |
PA-RQ-MERCHANT-CITY
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-RQ-MERCHANT-CITY | X(13) | text, 13 characters | app/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:33 |
PA-RQ-MERCHANT-STATE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-RQ-MERCHANT-STATE | X(02) | text, 2 characters | app/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:34 |
PA-RQ-MERCHANT-ZIP
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-RQ-MERCHANT-ZIP | X(09) | text, 9 characters | app/app-authorization-ims-db2-mq/cpy/CCPAURQY.cpy:35 |
PA-RQ-TRANSACTION-ID
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-RQ-TRANSACTION-ID | X(15) | text, 15 characters | app/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
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-AUTH-DATE-9C | S9(05) COMP-3 | signed integer, 5 digits (packed decimal) | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:20 | ||
PA-AUTH-TIME-9C | S9(09) COMP-3 | signed integer, 9 digits (packed decimal) | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:21 |
PA-AUTH-ORIG-DATE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-AUTH-ORIG-DATE | X(06) | text, 6 characters | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:22 |
PA-AUTH-ORIG-TIME
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-AUTH-ORIG-TIME | X(06) | text, 6 characters | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:23 |
PA-CARD-NUM
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-CARD-NUM | X(16) | text, 16 characters | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:24 |
PA-AUTH-TYPE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-AUTH-TYPE | X(04) | text, 4 characters | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:25 |
PA-CARD-EXPIRY-DATE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-CARD-EXPIRY-DATE | X(04) | text, 4 characters | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:26 |
PA-MESSAGE-TYPE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-MESSAGE-TYPE | X(06) | text, 6 characters | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:27 |
PA-MESSAGE-SOURCE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-MESSAGE-SOURCE | X(06) | text, 6 characters | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:28 |
PA-AUTH-ID-CODE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-AUTH-ID-CODE | X(06) | text, 6 characters | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:29 |
PA-AUTH-RESP-CODE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-AUTH-RESP-CODE | X(02) | text, 2 characters PA-AUTH-APPROVED = 00 | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:30 |
PA-AUTH-RESP-REASON
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-AUTH-RESP-REASON | X(04) | text, 4 characters | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:32 |
PA-PROCESSING-CODE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-PROCESSING-CODE | 9(06) | unsigned integer, 6 digits (zoned decimal) | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:33 |
PA-TRANSACTION-AMT
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-TRANSACTION-AMT | S9(10)V99 COMP-3 | signed decimal, 10 integer and 2 fraction digits (packed decimal) | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:34 |
PA-APPROVED-AMT
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-APPROVED-AMT | S9(10)V99 COMP-3 | signed decimal, 10 integer and 2 fraction digits (packed decimal) | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:35 |
PA-MERCHANT-CATAGORY-CODE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-MERCHANT-CATAGORY-CODE | X(04) | text, 4 characters | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:36 |
PA-ACQR-COUNTRY-CODE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-ACQR-COUNTRY-CODE | X(03) | text, 3 characters | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:37 |
PA-POS-ENTRY-MODE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-POS-ENTRY-MODE | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:38 |
PA-MERCHANT-ID
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-MERCHANT-ID | X(15) | text, 15 characters | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:39 |
PA-MERCHANT-NAME
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-MERCHANT-NAME | X(22) | text, 22 characters | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:40 |
PA-MERCHANT-CITY
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-MERCHANT-CITY | X(13) | text, 13 characters | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:41 |
PA-MERCHANT-STATE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-MERCHANT-STATE | X(02) | text, 2 characters | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:42 |
PA-MERCHANT-ZIP
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-MERCHANT-ZIP | X(09) | text, 9 characters | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:43 |
PA-TRANSACTION-ID
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-TRANSACTION-ID | X(15) | text, 15 characters | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:44 |
PA-MATCH-STATUS
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
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 | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:45 |
PA-AUTH-FRAUD
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-AUTH-FRAUD | X(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
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-FRAUD-RPT-DATE | X(08) | text, 8 characters | app/app-authorization-ims-db2-mq/cpy/CIPAUDTY.cpy:53 |
FILLER
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
FILLER | X(17) | text, 17 characters | app/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
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-ACCT-ID | S9(11) COMP-3 | signed integer, 11 digits (packed decimal) | app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:19 |
PA-CUST-ID
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-CUST-ID | 9(09) | unsigned integer, 9 digits (zoned decimal) | app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:20 |
PA-AUTH-STATUS
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-AUTH-STATUS | X(01) | text, 1 character | app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:21 |
PA-ACCOUNT-STATUS
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-ACCOUNT-STATUS | X(02) | text, 2 characters occurs 5 | app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:22 |
PA-CREDIT-LIMIT
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-CREDIT-LIMIT | S9(09)V99 COMP-3 | signed decimal, 9 integer and 2 fraction digits (packed decimal) | app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:23 |
PA-CASH-LIMIT
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-CASH-LIMIT | S9(09)V99 COMP-3 | signed decimal, 9 integer and 2 fraction digits (packed decimal) | app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:24 |
PA-CREDIT-BALANCE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-CREDIT-BALANCE | S9(09)V99 COMP-3 | signed decimal, 9 integer and 2 fraction digits (packed decimal) | app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:25 |
PA-CASH-BALANCE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-CASH-BALANCE | S9(09)V99 COMP-3 | signed decimal, 9 integer and 2 fraction digits (packed decimal) | app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:26 |
PA-APPROVED-AUTH-CNT
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-APPROVED-AUTH-CNT | S9(04) COMP | signed integer, 4 digits (binary) | app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:27 |
PA-DECLINED-AUTH-CNT
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-DECLINED-AUTH-CNT | S9(04) COMP | signed integer, 4 digits (binary) | app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:28 |
PA-APPROVED-AUTH-AMT
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-APPROVED-AUTH-AMT | S9(09)V99 COMP-3 | signed decimal, 9 integer and 2 fraction digits (packed decimal) | app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:29 |
PA-DECLINED-AUTH-AMT
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PA-DECLINED-AUTH-AMT | S9(09)V99 COMP-3 | signed decimal, 9 integer and 2 fraction digits (packed decimal) | app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:30 |
FILLER
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
FILLER | X(34) | text, 34 characters | app/app-authorization-ims-db2-mq/cpy/CIPAUSMY.cpy:31 |
COADM02Y app/cpy/COADM02Y.cpy · 1 record(s), 25 fields
CARDDEMO-ADMIN-MENU-OPTIONS
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
CDEMO-ADMIN-OPT-COUNT | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/COADM02Y.cpy:22 | ||
CDEMO-ADMIN-OPTIONS-DATA | | group | app/cpy/COADM02Y.cpy:24 | ||
FILLERin CDEMO-ADMIN-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/COADM02Y.cpy:26 | ||
FILLERin CDEMO-ADMIN-OPTIONS-DATA | X(35) | text, 35 characters | app/cpy/COADM02Y.cpy:27 | ||
FILLERin CDEMO-ADMIN-OPTIONS-DATA | X(08) | text, 8 characters | app/cpy/COADM02Y.cpy:29 | ||
FILLERin CDEMO-ADMIN-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/COADM02Y.cpy:31 | ||
FILLERin CDEMO-ADMIN-OPTIONS-DATA | X(35) | text, 35 characters | app/cpy/COADM02Y.cpy:32 | ||
FILLERin CDEMO-ADMIN-OPTIONS-DATA | X(08) | text, 8 characters | app/cpy/COADM02Y.cpy:34 | ||
FILLERin CDEMO-ADMIN-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/COADM02Y.cpy:36 | ||
FILLERin CDEMO-ADMIN-OPTIONS-DATA | X(35) | text, 35 characters | app/cpy/COADM02Y.cpy:37 | ||
FILLERin CDEMO-ADMIN-OPTIONS-DATA | X(08) | text, 8 characters | app/cpy/COADM02Y.cpy:39 | ||
FILLERin CDEMO-ADMIN-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/COADM02Y.cpy:41 | ||
FILLERin CDEMO-ADMIN-OPTIONS-DATA | X(35) | text, 35 characters | app/cpy/COADM02Y.cpy:42 | ||
FILLERin CDEMO-ADMIN-OPTIONS-DATA | X(08) | text, 8 characters | app/cpy/COADM02Y.cpy:44 | ||
FILLERin CDEMO-ADMIN-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/COADM02Y.cpy:46 | ||
FILLERin CDEMO-ADMIN-OPTIONS-DATA | X(35) | text, 35 characters | app/cpy/COADM02Y.cpy:47 | ||
FILLERin CDEMO-ADMIN-OPTIONS-DATA | X(08) | text, 8 characters | app/cpy/COADM02Y.cpy:49 | ||
FILLERin CDEMO-ADMIN-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/COADM02Y.cpy:50 | ||
FILLERin CDEMO-ADMIN-OPTIONS-DATA | X(35) | text, 35 characters | app/cpy/COADM02Y.cpy:51 | ||
FILLERin CDEMO-ADMIN-OPTIONS-DATA | X(08) | text, 8 characters | app/cpy/COADM02Y.cpy:53 | ||
CDEMO-ADMIN-OPTIONS | | group redefines CDEMO-ADMIN-OPTIONS-DATA | app/cpy/COADM02Y.cpy:55 | ||
CDEMO-ADMIN-OPTin CDEMO-ADMIN-OPTIONS | | group occurs 9 | app/cpy/COADM02Y.cpy:56 | ||
CDEMO-ADMIN-OPT-NUMin CDEMO-ADMIN-OPTIONS/CDEMO-ADMIN-OPT | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/COADM02Y.cpy:57 | ||
CDEMO-ADMIN-OPT-NAMEin CDEMO-ADMIN-OPTIONS/CDEMO-ADMIN-OPT | X(35) | text, 35 characters | app/cpy/COADM02Y.cpy:58 | ||
CDEMO-ADMIN-OPT-PGMNAMEin CDEMO-ADMIN-OPTIONS/CDEMO-ADMIN-OPT | X(08) | text, 8 characters | app/cpy/COADM02Y.cpy:59 |
COCOM01Y app/cpy/COCOM01Y.cpy · 1 record(s), 21 fields
CARDDEMO-COMMAREA
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
CDEMO-GENERAL-INFO | | group | app/cpy/COCOM01Y.cpy:20 | ||
CDEMO-FROM-TRANIDin CDEMO-GENERAL-INFO | X(04) | text, 4 characters | app/cpy/COCOM01Y.cpy:21 | ||
CDEMO-FROM-PROGRAMin CDEMO-GENERAL-INFO | X(08) | text, 8 characters | app/cpy/COCOM01Y.cpy:22 | ||
CDEMO-TO-TRANIDin CDEMO-GENERAL-INFO | X(04) | text, 4 characters | app/cpy/COCOM01Y.cpy:23 | ||
CDEMO-TO-PROGRAMin CDEMO-GENERAL-INFO | X(08) | text, 8 characters | app/cpy/COCOM01Y.cpy:24 | ||
CDEMO-USER-IDin CDEMO-GENERAL-INFO | X(08) | text, 8 characters | app/cpy/COCOM01Y.cpy:25 | ||
CDEMO-USER-TYPEin CDEMO-GENERAL-INFO | X(01) | text, 1 character CDEMO-USRTYP-ADMIN = A, CDEMO-USRTYP-USER = U | app/cpy/COCOM01Y.cpy:26 | ||
CDEMO-PGM-CONTEXTin 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 | | group | app/cpy/COCOM01Y.cpy:32 | ||
CDEMO-CUST-IDin CDEMO-CUSTOMER-INFO | 9(09) | unsigned integer, 9 digits (zoned decimal) | app/cpy/COCOM01Y.cpy:33 | ||
CDEMO-CUST-FNAMEin CDEMO-CUSTOMER-INFO | X(25) | text, 25 characters | app/cpy/COCOM01Y.cpy:34 | ||
CDEMO-CUST-MNAMEin CDEMO-CUSTOMER-INFO | X(25) | text, 25 characters | app/cpy/COCOM01Y.cpy:35 | ||
CDEMO-CUST-LNAMEin CDEMO-CUSTOMER-INFO | X(25) | text, 25 characters | app/cpy/COCOM01Y.cpy:36 | ||
CDEMO-ACCOUNT-INFO | | group | app/cpy/COCOM01Y.cpy:37 | ||
CDEMO-ACCT-IDin CDEMO-ACCOUNT-INFO | 9(11) | unsigned integer, 11 digits (zoned decimal) | app/cpy/COCOM01Y.cpy:38 | ||
CDEMO-ACCT-STATUSin CDEMO-ACCOUNT-INFO | X(01) | text, 1 character | app/cpy/COCOM01Y.cpy:39 | ||
CDEMO-CARD-INFO | | group | app/cpy/COCOM01Y.cpy:40 | ||
CDEMO-CARD-NUMin CDEMO-CARD-INFO | 9(16) | unsigned integer, 16 digits (zoned decimal) | app/cpy/COCOM01Y.cpy:41 | ||
CDEMO-MORE-INFO | | group | app/cpy/COCOM01Y.cpy:42 | ||
CDEMO-LAST-MAPin CDEMO-MORE-INFO | X(7) | text, 7 characters | app/cpy/COCOM01Y.cpy:43 | ||
CDEMO-LAST-MAPSETin CDEMO-MORE-INFO | X(7) | text, 7 characters | app/cpy/COCOM01Y.cpy:44 |
CODATECN app/cpy/CODATECN.cpy · 1 record(s), 31 fields
CODATECN-REC
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
CODATECN-IN-REC | | group | app/cpy/CODATECN.cpy:18 | ||
CODATECN-TYPEin CODATECN-IN-REC | X | text, 1 character YYYYMMDD-IN = 1, YYYY-MM-DD-IN = 2 | app/cpy/CODATECN.cpy:19 | ||
CODATECN-INP-DATEin CODATECN-IN-REC | X(20) | text, 20 characters | app/cpy/CODATECN.cpy:22 | ||
CODATECN-1INPin CODATECN-IN-REC | | group redefines CODATECN-INP-DATE | app/cpy/CODATECN.cpy:23 | ||
CODATECN-1YYYYin CODATECN-IN-REC/CODATECN-1INP | XXXX | text, 4 characters | app/cpy/CODATECN.cpy:24 | ||
CODATECN-1MMin CODATECN-IN-REC/CODATECN-1INP | XX | text, 2 characters | app/cpy/CODATECN.cpy:25 | ||
CODATECN-1DDin CODATECN-IN-REC/CODATECN-1INP | XX | text, 2 characters | app/cpy/CODATECN.cpy:26 | ||
CODATECN-1FILin CODATECN-IN-REC/CODATECN-1INP | X(12) | text, 12 characters | app/cpy/CODATECN.cpy:27 | ||
CODATECN-2INPin CODATECN-IN-REC | | group redefines CODATECN-INP-DATE | app/cpy/CODATECN.cpy:28 | ||
CODATECN-1O-YYYYin CODATECN-IN-REC/CODATECN-2INP | XXXX | text, 4 characters | app/cpy/CODATECN.cpy:29 | ||
CODATECN-1I-S1in CODATECN-IN-REC/CODATECN-2INP | X | text, 1 character | app/cpy/CODATECN.cpy:30 | ||
CODATECN-1MMin CODATECN-IN-REC/CODATECN-2INP | XX | text, 2 characters | app/cpy/CODATECN.cpy:31 | ||
CODATECN-1I-S2in CODATECN-IN-REC/CODATECN-2INP | X | text, 1 character | app/cpy/CODATECN.cpy:32 | ||
CODATECN-2YYin CODATECN-IN-REC/CODATECN-2INP | XX | text, 2 characters | app/cpy/CODATECN.cpy:33 | ||
CODATECN-2FILin CODATECN-IN-REC/CODATECN-2INP | X(10) | text, 10 characters | app/cpy/CODATECN.cpy:34 | ||
CODATECN-OUT-REC | | group | app/cpy/CODATECN.cpy:35 | ||
CODATECN-OUTTYPEin CODATECN-OUT-REC | X | text, 1 character YYYY-MM-DD-OP = 1, YYYYMMDD-OP = 2 | app/cpy/CODATECN.cpy:36 | ||
CODATECN-0UT-DATEin CODATECN-OUT-REC | X(20) | text, 20 characters | app/cpy/CODATECN.cpy:39 | ||
CODATECN-1OUTin CODATECN-OUT-REC | | group redefines CODATECN-0UT-DATE | app/cpy/CODATECN.cpy:40 | ||
CODATECN-1O-YYYYin CODATECN-OUT-REC/CODATECN-1OUT | XXXX | text, 4 characters | app/cpy/CODATECN.cpy:41 | ||
CODATECN-1O-S1in CODATECN-OUT-REC/CODATECN-1OUT | X | text, 1 character | app/cpy/CODATECN.cpy:42 | ||
CODATECN-1O-MMin CODATECN-OUT-REC/CODATECN-1OUT | XX | text, 2 characters | app/cpy/CODATECN.cpy:43 | ||
CODATECN-1O-S2in CODATECN-OUT-REC/CODATECN-1OUT | X | text, 1 character | app/cpy/CODATECN.cpy:44 | ||
CODATECN-1O-DDin CODATECN-OUT-REC/CODATECN-1OUT | XX | text, 2 characters | app/cpy/CODATECN.cpy:45 | ||
CODATECN-1OFILin CODATECN-OUT-REC/CODATECN-1OUT | X(10) | text, 10 characters | app/cpy/CODATECN.cpy:46 | ||
CODATECN-2OUTin CODATECN-OUT-REC | | group redefines CODATECN-0UT-DATE | app/cpy/CODATECN.cpy:47 | ||
CODATECN-2O-YYYYin CODATECN-OUT-REC/CODATECN-2OUT | XXXX | text, 4 characters | app/cpy/CODATECN.cpy:48 | ||
CODATECN-2O-MMin CODATECN-OUT-REC/CODATECN-2OUT | XX | text, 2 characters | app/cpy/CODATECN.cpy:49 | ||
CODATECN-2O-DDin CODATECN-OUT-REC/CODATECN-2OUT | XX | text, 2 characters | app/cpy/CODATECN.cpy:50 | ||
CODATECN-2OFILin CODATECN-OUT-REC/CODATECN-2OUT | X(12) | text, 12 characters | app/cpy/CODATECN.cpy:51 | ||
CODATECN-ERROR-MSG | X(38) | text, 38 characters | app/cpy/CODATECN.cpy:52 |
COMEN02Y app/cpy/COMEN02Y.cpy · 1 record(s), 52 fields
CARDDEMO-MAIN-MENU-OPTIONS
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
CDEMO-MENU-OPT-COUNT | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/COMEN02Y.cpy:21 | ||
CDEMO-MENU-OPTIONS-DATA | | group | app/cpy/COMEN02Y.cpy:23 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/COMEN02Y.cpy:25 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(35) | text, 35 characters | app/cpy/COMEN02Y.cpy:26 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(08) | text, 8 characters | app/cpy/COMEN02Y.cpy:28 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(01) | text, 1 character | app/cpy/COMEN02Y.cpy:29 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/COMEN02Y.cpy:31 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(35) | text, 35 characters | app/cpy/COMEN02Y.cpy:32 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(08) | text, 8 characters | app/cpy/COMEN02Y.cpy:34 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(01) | text, 1 character | app/cpy/COMEN02Y.cpy:35 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/COMEN02Y.cpy:37 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(35) | text, 35 characters | app/cpy/COMEN02Y.cpy:38 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(08) | text, 8 characters | app/cpy/COMEN02Y.cpy:40 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(01) | text, 1 character | app/cpy/COMEN02Y.cpy:41 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/COMEN02Y.cpy:43 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(35) | text, 35 characters | app/cpy/COMEN02Y.cpy:44 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(08) | text, 8 characters | app/cpy/COMEN02Y.cpy:46 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(01) | text, 1 character | app/cpy/COMEN02Y.cpy:47 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/COMEN02Y.cpy:49 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(35) | text, 35 characters | app/cpy/COMEN02Y.cpy:50 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(08) | text, 8 characters | app/cpy/COMEN02Y.cpy:52 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(01) | text, 1 character | app/cpy/COMEN02Y.cpy:53 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/COMEN02Y.cpy:55 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(35) | text, 35 characters | app/cpy/COMEN02Y.cpy:56 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(08) | text, 8 characters | app/cpy/COMEN02Y.cpy:58 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(01) | text, 1 character | app/cpy/COMEN02Y.cpy:59 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/COMEN02Y.cpy:61 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(35) | text, 35 characters | app/cpy/COMEN02Y.cpy:62 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(08) | text, 8 characters | app/cpy/COMEN02Y.cpy:64 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(01) | text, 1 character | app/cpy/COMEN02Y.cpy:65 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/COMEN02Y.cpy:67 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(35) | text, 35 characters | app/cpy/COMEN02Y.cpy:68 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(08) | text, 8 characters | app/cpy/COMEN02Y.cpy:71 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(01) | text, 1 character | app/cpy/COMEN02Y.cpy:72 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/COMEN02Y.cpy:74 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(35) | text, 35 characters | app/cpy/COMEN02Y.cpy:75 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(08) | text, 8 characters | app/cpy/COMEN02Y.cpy:77 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(01) | text, 1 character | app/cpy/COMEN02Y.cpy:78 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/COMEN02Y.cpy:80 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(35) | text, 35 characters | app/cpy/COMEN02Y.cpy:81 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(08) | text, 8 characters | app/cpy/COMEN02Y.cpy:83 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(01) | text, 1 character | app/cpy/COMEN02Y.cpy:84 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/COMEN02Y.cpy:86 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(35) | text, 35 characters | app/cpy/COMEN02Y.cpy:87 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(08) | text, 8 characters | app/cpy/COMEN02Y.cpy:89 | ||
FILLERin CDEMO-MENU-OPTIONS-DATA | X(01) | text, 1 character | app/cpy/COMEN02Y.cpy:90 | ||
CDEMO-MENU-OPTIONS | | group redefines CDEMO-MENU-OPTIONS-DATA | app/cpy/COMEN02Y.cpy:93 | ||
CDEMO-MENU-OPTin CDEMO-MENU-OPTIONS | | group occurs 12 | app/cpy/COMEN02Y.cpy:94 | ||
CDEMO-MENU-OPT-NUMin CDEMO-MENU-OPTIONS/CDEMO-MENU-OPT | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/COMEN02Y.cpy:95 | ||
CDEMO-MENU-OPT-NAMEin CDEMO-MENU-OPTIONS/CDEMO-MENU-OPT | X(35) | text, 35 characters | app/cpy/COMEN02Y.cpy:96 | ||
CDEMO-MENU-OPT-PGMNAMEin CDEMO-MENU-OPTIONS/CDEMO-MENU-OPT | X(08) | text, 8 characters | app/cpy/COMEN02Y.cpy:97 | ||
CDEMO-MENU-OPT-USRTYPEin CDEMO-MENU-OPTIONS/CDEMO-MENU-OPT | X(01) | text, 1 character | app/cpy/COMEN02Y.cpy:98 |
COSTM01 app/cpy/COSTM01.CPY · 1 record(s), 16 fields
TRNX-RECORD
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
TRNX-KEY | | group | app/cpy/COSTM01.CPY:21 | ||
TRNX-CARD-NUMin TRNX-KEY | X(16) | text, 16 characters | app/cpy/COSTM01.CPY:22 | ||
TRNX-IDin TRNX-KEY | X(16) | text, 16 characters | app/cpy/COSTM01.CPY:23 | ||
TRNX-REST | | group | app/cpy/COSTM01.CPY:24 | ||
TRNX-TYPE-CDin TRNX-REST | X(02) | text, 2 characters | app/cpy/COSTM01.CPY:25 | ||
TRNX-CAT-CDin TRNX-REST | 9(04) | unsigned integer, 4 digits (zoned decimal) | app/cpy/COSTM01.CPY:26 | ||
TRNX-SOURCEin TRNX-REST | X(10) | text, 10 characters | app/cpy/COSTM01.CPY:27 | ||
TRNX-DESCin TRNX-REST | X(100) | text, 100 characters | app/cpy/COSTM01.CPY:28 | ||
TRNX-AMTin TRNX-REST | S9(09)V99 | signed decimal, 9 integer and 2 fraction digits (zoned decimal) | app/cpy/COSTM01.CPY:29 | ||
TRNX-MERCHANT-IDin TRNX-REST | 9(09) | unsigned integer, 9 digits (zoned decimal) | app/cpy/COSTM01.CPY:30 | ||
TRNX-MERCHANT-NAMEin TRNX-REST | X(50) | text, 50 characters | app/cpy/COSTM01.CPY:31 | ||
TRNX-MERCHANT-CITYin TRNX-REST | X(50) | text, 50 characters | app/cpy/COSTM01.CPY:32 | ||
TRNX-MERCHANT-ZIPin TRNX-REST | X(10) | text, 10 characters | app/cpy/COSTM01.CPY:33 | ||
TRNX-ORIG-TSin TRNX-REST | X(26) | text, 26 characters | app/cpy/COSTM01.CPY:34 | ||
TRNX-PROC-TSin TRNX-REST | X(26) | text, 26 characters | app/cpy/COSTM01.CPY:35 | ||
FILLERin TRNX-REST | X(20) | text, 20 characters | app/cpy/COSTM01.CPY:36 |
COTTL01Y app/cpy/COTTL01Y.cpy · 1 record(s), 3 fields
CCDA-SCREEN-TITLE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
CCDA-TITLE01 | X(40) | text, 40 characters | app/cpy/COTTL01Y.cpy:18 | ||
CCDA-TITLE02 | X(40) | text, 40 characters | app/cpy/COTTL01Y.cpy:20 | ||
CCDA-THANK-YOU | X(40) | text, 40 characters | app/cpy/COTTL01Y.cpy:23 |
CSDAT01Y app/cpy/CSDAT01Y.cpy · 1 record(s), 38 fields
WS-DATE-TIME
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
WS-CURDATE-DATA | | group | app/cpy/CSDAT01Y.cpy:18 | ||
WS-CURDATEin WS-CURDATE-DATA | | group | app/cpy/CSDAT01Y.cpy:19 | ||
WS-CURDATE-YEARin WS-CURDATE-DATA/WS-CURDATE | 9(04) | unsigned integer, 4 digits (zoned decimal) | app/cpy/CSDAT01Y.cpy:20 | ||
WS-CURDATE-MONTHin WS-CURDATE-DATA/WS-CURDATE | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/CSDAT01Y.cpy:21 | ||
WS-CURDATE-DAYin WS-CURDATE-DATA/WS-CURDATE | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/CSDAT01Y.cpy:22 | ||
WS-CURDATE-Nin WS-CURDATE-DATA | 9(08) | unsigned integer, 8 digits (zoned decimal) redefines WS-CURDATE | app/cpy/CSDAT01Y.cpy:23 | ||
WS-CURTIMEin WS-CURDATE-DATA | | group | app/cpy/CSDAT01Y.cpy:24 | ||
WS-CURTIME-HOURSin WS-CURDATE-DATA/WS-CURTIME | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/CSDAT01Y.cpy:25 | ||
WS-CURTIME-MINUTEin WS-CURDATE-DATA/WS-CURTIME | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/CSDAT01Y.cpy:26 | ||
WS-CURTIME-SECONDin WS-CURDATE-DATA/WS-CURTIME | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/CSDAT01Y.cpy:27 | ||
WS-CURTIME-MILSECin WS-CURDATE-DATA/WS-CURTIME | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/CSDAT01Y.cpy:28 | ||
WS-CURTIME-Nin WS-CURDATE-DATA | 9(08) | unsigned integer, 8 digits (zoned decimal) redefines WS-CURTIME | app/cpy/CSDAT01Y.cpy:29 | ||
WS-CURDATE-MM-DD-YY | | group | app/cpy/CSDAT01Y.cpy:30 | ||
WS-CURDATE-MMin WS-CURDATE-MM-DD-YY | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/CSDAT01Y.cpy:31 | ||
FILLERin WS-CURDATE-MM-DD-YY | X(01) | text, 1 character | app/cpy/CSDAT01Y.cpy:32 | ||
WS-CURDATE-DDin WS-CURDATE-MM-DD-YY | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/CSDAT01Y.cpy:33 | ||
FILLERin WS-CURDATE-MM-DD-YY | X(01) | text, 1 character | app/cpy/CSDAT01Y.cpy:34 | ||
WS-CURDATE-YYin WS-CURDATE-MM-DD-YY | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/CSDAT01Y.cpy:35 | ||
WS-CURTIME-HH-MM-SS | | group | app/cpy/CSDAT01Y.cpy:36 | ||
WS-CURTIME-HHin WS-CURTIME-HH-MM-SS | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/CSDAT01Y.cpy:37 | ||
FILLERin WS-CURTIME-HH-MM-SS | X(01) | text, 1 character | app/cpy/CSDAT01Y.cpy:38 | ||
WS-CURTIME-MMin WS-CURTIME-HH-MM-SS | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/CSDAT01Y.cpy:39 | ||
FILLERin WS-CURTIME-HH-MM-SS | X(01) | text, 1 character | app/cpy/CSDAT01Y.cpy:40 | ||
WS-CURTIME-SSin WS-CURTIME-HH-MM-SS | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/CSDAT01Y.cpy:41 | ||
WS-TIMESTAMP | | group | app/cpy/CSDAT01Y.cpy:42 | ||
WS-TIMESTAMP-DT-YYYYin WS-TIMESTAMP | 9(04) | unsigned integer, 4 digits (zoned decimal) | app/cpy/CSDAT01Y.cpy:43 | ||
FILLERin WS-TIMESTAMP | X(01) | text, 1 character | app/cpy/CSDAT01Y.cpy:44 | ||
WS-TIMESTAMP-DT-MMin WS-TIMESTAMP | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/CSDAT01Y.cpy:45 | ||
FILLERin WS-TIMESTAMP | X(01) | text, 1 character | app/cpy/CSDAT01Y.cpy:46 | ||
WS-TIMESTAMP-DT-DDin WS-TIMESTAMP | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/CSDAT01Y.cpy:47 | ||
FILLERin WS-TIMESTAMP | X(01) | text, 1 character | app/cpy/CSDAT01Y.cpy:48 | ||
WS-TIMESTAMP-TM-HHin WS-TIMESTAMP | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/CSDAT01Y.cpy:49 | ||
FILLERin WS-TIMESTAMP | X(01) | text, 1 character | app/cpy/CSDAT01Y.cpy:50 | ||
WS-TIMESTAMP-TM-MMin WS-TIMESTAMP | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/CSDAT01Y.cpy:51 | ||
FILLERin WS-TIMESTAMP | X(01) | text, 1 character | app/cpy/CSDAT01Y.cpy:52 | ||
WS-TIMESTAMP-TM-SSin WS-TIMESTAMP | 9(02) | unsigned integer, 2 digits (zoned decimal) | app/cpy/CSDAT01Y.cpy:53 | ||
FILLERin WS-TIMESTAMP | X(01) | text, 1 character | app/cpy/CSDAT01Y.cpy:54 | ||
WS-TIMESTAMP-TM-MS6in 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
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
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-INT | S9(4) COMP-3 | signed integer, 4 digits (packed decimal) | app/app-transaction-type-db2/cpy/CSDB2RWY.cpy:23 | ||
WS-DB2-PROCESSING-FLAG | X(1) | text, 1 character WS-DB2-OK = 0, WS-DB2-ERROR = 1 | app/app-transaction-type-db2/cpy/CSDB2RWY.cpy:25 | ||
WS-DB2-CURRENT-ACTION | X(72) | text, 72 characters | app/app-transaction-type-db2/cpy/CSDB2RWY.cpy:28 |
WS-DSNTIAC-FORMATTED
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
WS-DSNTIAC-MESG-LEN | S9(4) COMP | signed integer, 4 digits (binary) | app/app-transaction-type-db2/cpy/CSDB2RWY.cpy:34 | ||
WS-DSNTIAC-FMTD-TEXT | | group | app/app-transaction-type-db2/cpy/CSDB2RWY.cpy:35 | ||
WS-DSNTIAC-FMTD-TEXT-LINEin WS-DSNTIAC-FMTD-TEXT | X(72) | text, 72 characters occurs 10 | app/app-transaction-type-db2/cpy/CSDB2RWY.cpy:36 |
WS-DSNTIAC-LRECL
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
WS-DSNTIAC-LRECL | S9(4) COMP | signed integer, 4 digits (binary) | app/app-transaction-type-db2/cpy/CSDB2RWY.cpy:41 |
WS-DSNTIAC-ERROR
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
WS-DSNTIAC-ERR-MSG | X(10) | text, 10 characters | app/app-transaction-type-db2/cpy/CSDB2RWY.cpy:43 | ||
WS-DSNTIAC-ERR-CD-X | X(02) | text, 2 characters | app/app-transaction-type-db2/cpy/CSDB2RWY.cpy:44 | ||
WS-DSNTIAC-ERR-CD | 9(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
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
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 | app/cpy/CSLKPCDY.cpy:24 |
US-STATE-CODE-TO-EDIT
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
US-STATE-CODE-TO-EDIT | X(2) | text, 2 characters VALID-US-STATE-CODE = AL | app/cpy/CSLKPCDY.cpy:1012 |
US-STATE-ZIPCODE-TO-EDIT
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
US-STATE-AND-FIRST-ZIP2 | X(4) | text, 4 characters VALID-US-STATE-ZIP-CD2-COMBO = AA34 | app/cpy/CSLKPCDY.cpy:1072 | ||
LAST-3-OF-ZIP | X(3) | text, 3 characters | app/cpy/CSLKPCDY.cpy:1314 |
CSMSG01Y app/cpy/CSMSG01Y.cpy · 1 record(s), 2 fields
CCDA-COMMON-MESSAGES
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
CCDA-MSG-THANK-YOU | X(50) | text, 50 characters | app/cpy/CSMSG01Y.cpy:18 | ||
CCDA-MSG-INVALID-KEY | X(50) | text, 50 characters | app/cpy/CSMSG01Y.cpy:20 |
CSMSG02Y app/cpy/CSMSG02Y.cpy · 1 record(s), 4 fields
ABEND-DATA
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
ABEND-CODE | X(4) | text, 4 characters | app/cpy/CSMSG02Y.cpy:22 | ||
ABEND-CULPRIT | X(8) | text, 8 characters | app/cpy/CSMSG02Y.cpy:24 | ||
ABEND-REASON | X(50) | text, 50 characters | app/cpy/CSMSG02Y.cpy:26 | ||
ABEND-MSG | X(72) | text, 72 characters | app/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
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
SEC-USR-ID | X(08) | text, 8 characters | app/cpy/CSUSR01Y.cpy:18 | ||
SEC-USR-FNAME | X(20) | text, 20 characters | app/cpy/CSUSR01Y.cpy:19 | ||
SEC-USR-LNAME | X(20) | text, 20 characters | app/cpy/CSUSR01Y.cpy:20 | ||
SEC-USR-PWD | X(08) | text, 8 characters | app/cpy/CSUSR01Y.cpy:21 | ||
SEC-USR-TYPE | X(01) | text, 1 character | app/cpy/CSUSR01Y.cpy:22 | ||
SEC-USR-FILLER | X(23) | text, 23 characters | app/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
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
WS-EDIT-DATE-CCYY | | group | app/cpy/CSUTLDWY.cpy:5 | ||
WS-EDIT-DATE-CCin WS-EDIT-DATE-CCYY | X(2) | text, 2 characters | app/cpy/CSUTLDWY.cpy:6 | ||
WS-EDIT-DATE-CC-Nin 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-YYin WS-EDIT-DATE-CCYY | X(2) | text, 2 characters | app/cpy/CSUTLDWY.cpy:11 | ||
WS-EDIT-DATE-YY-Nin 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-N | 9(4) | unsigned integer, 4 digits (zoned decimal) redefines WS-EDIT-DATE-CCYY | app/cpy/CSUTLDWY.cpy:14 | ||
WS-EDIT-DATE-MM | X(2) | text, 2 characters | app/cpy/CSUTLDWY.cpy:16 | ||
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 | app/cpy/CSUTLDWY.cpy:17 | ||
WS-EDIT-DATE-DD | X(2) | text, 2 characters | app/cpy/CSUTLDWY.cpy:25 | ||
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 | app/cpy/CSUTLDWY.cpy:26 |
WS-EDIT-DATE-CCYYMMDD-N
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
WS-EDIT-DATE-CCYYMMDD-N | 9(8) | unsigned integer, 8 digits (zoned decimal) redefines WS-EDIT-DATE-CCYYMMDD | app/cpy/CSUTLDWY.cpy:35 |
WS-EDIT-DATE-BINARY
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
WS-EDIT-DATE-BINARY | S9(9) BINARY | signed integer, 9 digits (binary) | app/cpy/CSUTLDWY.cpy:37 |
WS-CURRENT-DATE
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
WS-CURRENT-DATE-YYYYMMDD | X(8) | text, 8 characters | app/cpy/CSUTLDWY.cpy:39 | ||
WS-CURRENT-DATE-YYYYMMDD-N | 9(8) | unsigned integer, 8 digits (zoned decimal) redefines WS-CURRENT-DATE-YYYYMMDD | app/cpy/CSUTLDWY.cpy:40 | ||
WS-CURRENT-DATE-BINARY | S9(9) BINARY | signed integer, 9 digits (binary) | app/cpy/CSUTLDWY.cpy:42 |
WS-EDIT-DATE-FLGS
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
WS-EDIT-YEAR-FLG | X(01) | text, 1 character FLG-YEAR-ISVALID = , FLG-YEAR-NOT-OK = 0, FLG-YEAR-BLANK = B | app/cpy/CSUTLDWY.cpy:46 | ||
WS-EDIT-MONTH | X(01) | text, 1 character FLG-MONTH-ISVALID = , FLG-MONTH-NOT-OK = 0, FLG-MONTH-BLANK = B | app/cpy/CSUTLDWY.cpy:50 | ||
WS-EDIT-DAY | X(01) | text, 1 character FLG-DAY-ISVALID = , FLG-DAY-NOT-OK = 0, FLG-DAY-BLANK = B | app/cpy/CSUTLDWY.cpy:54 |
WS-DATE-FORMAT
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
WS-DATE-FORMAT | X(08) | text, 8 characters | app/cpy/CSUTLDWY.cpy:58 |
WS-DATE-VALIDATION-RESULT
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
WS-SEVERITY | X(04) | text, 4 characters | app/cpy/CSUTLDWY.cpy:61 | ||
WS-SEVERITY-N | 9(4) | unsigned integer, 4 digits (zoned decimal) redefines WS-SEVERITY | app/cpy/CSUTLDWY.cpy:62 | ||
FILLER | X(11) | text, 11 characters | app/cpy/CSUTLDWY.cpy:64 | ||
WS-MSG-NO | X(04) | text, 4 characters | app/cpy/CSUTLDWY.cpy:66 | ||
WS-MSG-NO-N | 9(4) | unsigned integer, 4 digits (zoned decimal) redefines WS-MSG-NO | app/cpy/CSUTLDWY.cpy:67 | ||
FILLER | X(01) | text, 1 character | app/cpy/CSUTLDWY.cpy:69 | ||
WS-RESULT | X(15) | text, 15 characters | app/cpy/CSUTLDWY.cpy:71 | ||
FILLER | X(01) | text, 1 character | app/cpy/CSUTLDWY.cpy:72 | ||
FILLER | X(09) | text, 9 characters | app/cpy/CSUTLDWY.cpy:74 | ||
WS-DATE | X(10) | text, 10 characters | app/cpy/CSUTLDWY.cpy:76 | ||
FILLER | X(01) | text, 1 character | app/cpy/CSUTLDWY.cpy:77 | ||
FILLER | X(10) | text, 10 characters | app/cpy/CSUTLDWY.cpy:79 | ||
WS-DATE-FMT | X(10) | text, 10 characters | app/cpy/CSUTLDWY.cpy:81 | ||
FILLER | X(01) | text, 1 character | app/cpy/CSUTLDWY.cpy:82 | ||
FILLER | X(03) | text, 3 characters | app/cpy/CSUTLDWY.cpy:84 |
CUSTREC app/cpy/CUSTREC.cpy · 1 record(s), 19 fields
CUSTOMER-RECORD
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
CUST-ID | 9(09) | unsigned integer, 9 digits (zoned decimal) | app/cpy/CUSTREC.cpy:5 | ||
CUST-FIRST-NAME | X(25) | text, 25 characters | app/cpy/CUSTREC.cpy:6 | ||
CUST-MIDDLE-NAME | X(25) | text, 25 characters | app/cpy/CUSTREC.cpy:7 | ||
CUST-LAST-NAME | X(25) | text, 25 characters | app/cpy/CUSTREC.cpy:8 | ||
CUST-ADDR-LINE-1 | X(50) | text, 50 characters | app/cpy/CUSTREC.cpy:9 | ||
CUST-ADDR-LINE-2 | X(50) | text, 50 characters | app/cpy/CUSTREC.cpy:10 | ||
CUST-ADDR-LINE-3 | X(50) | text, 50 characters | app/cpy/CUSTREC.cpy:11 | ||
CUST-ADDR-STATE-CD | X(02) | text, 2 characters | app/cpy/CUSTREC.cpy:12 | ||
CUST-ADDR-COUNTRY-CD | X(03) | text, 3 characters | app/cpy/CUSTREC.cpy:13 | ||
CUST-ADDR-ZIP | X(10) | text, 10 characters | app/cpy/CUSTREC.cpy:14 | ||
CUST-PHONE-NUM-1 | X(15) | text, 15 characters | app/cpy/CUSTREC.cpy:15 | ||
CUST-PHONE-NUM-2 | X(15) | text, 15 characters | app/cpy/CUSTREC.cpy:16 | ||
CUST-SSN | 9(09) | unsigned integer, 9 digits (zoned decimal) | app/cpy/CUSTREC.cpy:17 | ||
CUST-GOVT-ISSUED-ID | X(20) | text, 20 characters | app/cpy/CUSTREC.cpy:18 | ||
CUST-DOB-YYYYMMDD | X(10) | text, 10 characters | app/cpy/CUSTREC.cpy:19 | ||
CUST-EFT-ACCOUNT-ID | X(10) | text, 10 characters | app/cpy/CUSTREC.cpy:20 | ||
CUST-PRI-CARD-HOLDER-IND | X(01) | text, 1 character | app/cpy/CUSTREC.cpy:21 | ||
CUST-FICO-CREDIT-SCORE | 9(03) | unsigned integer, 3 digits (zoned decimal) | app/cpy/CUSTREC.cpy:22 | ||
FILLER | X(168) | text, 168 characters | app/cpy/CUSTREC.cpy:23 |
CVACT01Y app/cpy/CVACT01Y.cpy · 1 record(s), 13 fields
ACCOUNT-RECORD
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
ACCT-ID | 9(11) | unsigned integer, 11 digits (zoned decimal) | app/cpy/CVACT01Y.cpy:5 | ||
ACCT-ACTIVE-STATUS | X(01) | text, 1 character | app/cpy/CVACT01Y.cpy:6 | ||
ACCT-CURR-BAL | S9(10)V99 | signed decimal, 10 integer and 2 fraction digits (zoned decimal) | app/cpy/CVACT01Y.cpy:7 | ||
ACCT-CREDIT-LIMIT | S9(10)V99 | signed decimal, 10 integer and 2 fraction digits (zoned decimal) | app/cpy/CVACT01Y.cpy:8 | ||
ACCT-CASH-CREDIT-LIMIT | S9(10)V99 | signed decimal, 10 integer and 2 fraction digits (zoned decimal) | app/cpy/CVACT01Y.cpy:9 | ||
ACCT-OPEN-DATE | X(10) | text, 10 characters | app/cpy/CVACT01Y.cpy:10 | ||
ACCT-EXPIRAION-DATE | X(10) | text, 10 characters | app/cpy/CVACT01Y.cpy:11 | ||
ACCT-REISSUE-DATE | X(10) | text, 10 characters | app/cpy/CVACT01Y.cpy:12 | ||
ACCT-CURR-CYC-CREDIT | S9(10)V99 | signed decimal, 10 integer and 2 fraction digits (zoned decimal) | app/cpy/CVACT01Y.cpy:13 | ||
ACCT-CURR-CYC-DEBIT | S9(10)V99 | signed decimal, 10 integer and 2 fraction digits (zoned decimal) | app/cpy/CVACT01Y.cpy:14 | ||
ACCT-ADDR-ZIP | X(10) | text, 10 characters | app/cpy/CVACT01Y.cpy:15 | ||
ACCT-GROUP-ID | X(10) | text, 10 characters | app/cpy/CVACT01Y.cpy:16 | ||
FILLER | X(178) | text, 178 characters | app/cpy/CVACT01Y.cpy:17 |
CVACT02Y app/cpy/CVACT02Y.cpy · 1 record(s), 7 fields
CARD-RECORD
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
CARD-NUM | X(16) | text, 16 characters | app/cpy/CVACT02Y.cpy:5 | ||
CARD-ACCT-ID | 9(11) | unsigned integer, 11 digits (zoned decimal) | app/cpy/CVACT02Y.cpy:6 | ||
CARD-CVV-CD | 9(03) | unsigned integer, 3 digits (zoned decimal) | app/cpy/CVACT02Y.cpy:7 | ||
CARD-EMBOSSED-NAME | X(50) | text, 50 characters | app/cpy/CVACT02Y.cpy:8 | ||
CARD-EXPIRAION-DATE | X(10) | text, 10 characters | app/cpy/CVACT02Y.cpy:9 | ||
CARD-ACTIVE-STATUS | X(01) | text, 1 character | app/cpy/CVACT02Y.cpy:10 | ||
FILLER | X(59) | text, 59 characters | app/cpy/CVACT02Y.cpy:11 |
CVACT03Y app/cpy/CVACT03Y.cpy · 1 record(s), 4 fields
CARD-XREF-RECORD
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
XREF-CARD-NUM | X(16) | text, 16 characters | app/cpy/CVACT03Y.cpy:5 | ||
XREF-CUST-ID | 9(09) | unsigned integer, 9 digits (zoned decimal) | app/cpy/CVACT03Y.cpy:6 | ||
XREF-ACCT-ID | 9(11) | unsigned integer, 11 digits (zoned decimal) | app/cpy/CVACT03Y.cpy:7 | ||
FILLER | X(14) | text, 14 characters | app/cpy/CVACT03Y.cpy:8 |
CVCRD01Y app/cpy/CVCRD01Y.cpy · 1 record(s), 13 fields
CC-WORK-AREAS
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
CC-WORK-AREA | | group | app/cpy/CVCRD01Y.cpy:2 | ||
CCARD-AIDin 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-PROGin CC-WORK-AREA | X(8) | text, 8 characters | app/cpy/CVCRD01Y.cpy:21 | ||
CCARD-NEXT-MAPSETin CC-WORK-AREA | X(7) | text, 7 characters | app/cpy/CVCRD01Y.cpy:23 | ||
CCARD-NEXT-MAPin CC-WORK-AREA | X(7) | text, 7 characters | app/cpy/CVCRD01Y.cpy:24 | ||
CCARD-ERROR-MSGin CC-WORK-AREA | X(75) | text, 75 characters | app/cpy/CVCRD01Y.cpy:28 | ||
CCARD-RETURN-MSGin CC-WORK-AREA | X(75) | text, 75 characters CCARD-RETURN-MSG-OFF = | app/cpy/CVCRD01Y.cpy:29 | ||
CC-ACCT-IDin CC-WORK-AREA | X(11) | text, 11 characters | app/cpy/CVCRD01Y.cpy:34 | ||
CC-ACCT-ID-Nin CC-WORK-AREA | 9(11) | unsigned integer, 11 digits (zoned decimal) redefines CC-ACCT-ID | app/cpy/CVCRD01Y.cpy:36 | ||
CC-CARD-NUMin CC-WORK-AREA | X(16) | text, 16 characters | app/cpy/CVCRD01Y.cpy:37 | ||
CC-CARD-NUM-Nin CC-WORK-AREA | 9(16) | unsigned integer, 16 digits (zoned decimal) redefines CC-CARD-NUM | app/cpy/CVCRD01Y.cpy:39 | ||
CC-CUST-IDin CC-WORK-AREA | X(09) | text, 9 characters | app/cpy/CVCRD01Y.cpy:40 | ||
CC-CUST-ID-Nin 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
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
CUST-ID | 9(09) | unsigned integer, 9 digits (zoned decimal) | app/cpy/CVCUS01Y.cpy:5 | ||
CUST-FIRST-NAME | X(25) | text, 25 characters | app/cpy/CVCUS01Y.cpy:6 | ||
CUST-MIDDLE-NAME | X(25) | text, 25 characters | app/cpy/CVCUS01Y.cpy:7 | ||
CUST-LAST-NAME | X(25) | text, 25 characters | app/cpy/CVCUS01Y.cpy:8 | ||
CUST-ADDR-LINE-1 | X(50) | text, 50 characters | app/cpy/CVCUS01Y.cpy:9 | ||
CUST-ADDR-LINE-2 | X(50) | text, 50 characters | app/cpy/CVCUS01Y.cpy:10 | ||
CUST-ADDR-LINE-3 | X(50) | text, 50 characters | app/cpy/CVCUS01Y.cpy:11 | ||
CUST-ADDR-STATE-CD | X(02) | text, 2 characters | app/cpy/CVCUS01Y.cpy:12 | ||
CUST-ADDR-COUNTRY-CD | X(03) | text, 3 characters | app/cpy/CVCUS01Y.cpy:13 | ||
CUST-ADDR-ZIP | X(10) | text, 10 characters | app/cpy/CVCUS01Y.cpy:14 | ||
CUST-PHONE-NUM-1 | X(15) | text, 15 characters | app/cpy/CVCUS01Y.cpy:15 | ||
CUST-PHONE-NUM-2 | X(15) | text, 15 characters | app/cpy/CVCUS01Y.cpy:16 | ||
CUST-SSN | 9(09) | unsigned integer, 9 digits (zoned decimal) | app/cpy/CVCUS01Y.cpy:17 | ||
CUST-GOVT-ISSUED-ID | X(20) | text, 20 characters | app/cpy/CVCUS01Y.cpy:18 | ||
CUST-DOB-YYYY-MM-DD | X(10) | text, 10 characters | app/cpy/CVCUS01Y.cpy:19 | ||
CUST-EFT-ACCOUNT-ID | X(10) | text, 10 characters | app/cpy/CVCUS01Y.cpy:20 | ||
CUST-PRI-CARD-HOLDER-IND | X(01) | text, 1 character | app/cpy/CVCUS01Y.cpy:21 | ||
CUST-FICO-CREDIT-SCORE | 9(03) | unsigned integer, 3 digits (zoned decimal) | app/cpy/CVCUS01Y.cpy:22 | ||
FILLER | X(168) | text, 168 characters | app/cpy/CVCUS01Y.cpy:23 |
CVEXPORT app/cpy/CVEXPORT.cpy · 1 record(s), 71 fields
EXPORT-RECORD
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
EXPORT-REC-TYPE | X(1) | text, 1 character | app/cpy/CVEXPORT.cpy:10 | ||
EXPORT-TIMESTAMP | X(26) | text, 26 characters | app/cpy/CVEXPORT.cpy:11 | ||
EXPORT-TIMESTAMP-R | | group redefines EXPORT-TIMESTAMP | app/cpy/CVEXPORT.cpy:12 | ||
EXPORT-DATEin EXPORT-TIMESTAMP-R | X(10) | text, 10 characters | app/cpy/CVEXPORT.cpy:13 | ||
EXPORT-DATE-TIME-SEPin EXPORT-TIMESTAMP-R | X(1) | text, 1 character | app/cpy/CVEXPORT.cpy:14 | ||
EXPORT-TIMEin EXPORT-TIMESTAMP-R | X(15) | text, 15 characters | app/cpy/CVEXPORT.cpy:15 | ||
EXPORT-SEQUENCE-NUM | 9(9) COMP | unsigned integer, 9 digits (binary) | app/cpy/CVEXPORT.cpy:16 | ||
EXPORT-BRANCH-ID | X(4) | text, 4 characters | app/cpy/CVEXPORT.cpy:17 | ||
EXPORT-REGION-CODE | X(5) | text, 5 characters | app/cpy/CVEXPORT.cpy:18 | ||
EXPORT-RECORD-DATA | X(460) | text, 460 characters | app/cpy/CVEXPORT.cpy:19 | ||
EXPORT-CUSTOMER-DATA | | group redefines EXPORT-RECORD-DATA | app/cpy/CVEXPORT.cpy:24 | ||
EXP-CUST-IDin EXPORT-CUSTOMER-DATA | 9(09) COMP | unsigned integer, 9 digits (binary) | app/cpy/CVEXPORT.cpy:25 | ||
EXP-CUST-FIRST-NAMEin EXPORT-CUSTOMER-DATA | X(25) | text, 25 characters | app/cpy/CVEXPORT.cpy:26 | ||
EXP-CUST-MIDDLE-NAMEin EXPORT-CUSTOMER-DATA | X(25) | text, 25 characters | app/cpy/CVEXPORT.cpy:27 | ||
EXP-CUST-LAST-NAMEin EXPORT-CUSTOMER-DATA | X(25) | text, 25 characters | app/cpy/CVEXPORT.cpy:28 | ||
EXP-CUST-ADDR-LINESin EXPORT-CUSTOMER-DATA | | group occurs 3 | app/cpy/CVEXPORT.cpy:29 | ||
EXP-CUST-ADDR-LINEin EXPORT-CUSTOMER-DATA/EXP-CUST-ADDR-LINES | X(50) | text, 50 characters | app/cpy/CVEXPORT.cpy:30 | ||
EXP-CUST-ADDR-STATE-CDin EXPORT-CUSTOMER-DATA | X(02) | text, 2 characters | app/cpy/CVEXPORT.cpy:31 | ||
EXP-CUST-ADDR-COUNTRY-CDin EXPORT-CUSTOMER-DATA | X(03) | text, 3 characters | app/cpy/CVEXPORT.cpy:32 | ||
EXP-CUST-ADDR-ZIPin EXPORT-CUSTOMER-DATA | X(10) | text, 10 characters | app/cpy/CVEXPORT.cpy:33 | ||
EXP-CUST-PHONE-NUMSin EXPORT-CUSTOMER-DATA | | group occurs 2 | app/cpy/CVEXPORT.cpy:34 | ||
EXP-CUST-PHONE-NUMin EXPORT-CUSTOMER-DATA/EXP-CUST-PHONE-NUMS | X(15) | text, 15 characters | app/cpy/CVEXPORT.cpy:35 | ||
EXP-CUST-SSNin EXPORT-CUSTOMER-DATA | 9(09) | unsigned integer, 9 digits (zoned decimal) | app/cpy/CVEXPORT.cpy:36 | ||
EXP-CUST-GOVT-ISSUED-IDin EXPORT-CUSTOMER-DATA | X(20) | text, 20 characters | app/cpy/CVEXPORT.cpy:37 | ||
EXP-CUST-DOB-YYYY-MM-DDin EXPORT-CUSTOMER-DATA | X(10) | text, 10 characters | app/cpy/CVEXPORT.cpy:38 | ||
EXP-CUST-EFT-ACCOUNT-IDin EXPORT-CUSTOMER-DATA | X(10) | text, 10 characters | app/cpy/CVEXPORT.cpy:39 | ||
EXP-CUST-PRI-CARD-HOLDER-INDin EXPORT-CUSTOMER-DATA | X(01) | text, 1 character | app/cpy/CVEXPORT.cpy:40 | ||
EXP-CUST-FICO-CREDIT-SCOREin EXPORT-CUSTOMER-DATA | 9(03) COMP-3 | unsigned integer, 3 digits (packed decimal) | app/cpy/CVEXPORT.cpy:41 | ||
FILLERin EXPORT-CUSTOMER-DATA | X(134) | text, 134 characters | app/cpy/CVEXPORT.cpy:42 | ||
EXPORT-ACCOUNT-DATA | | group redefines EXPORT-RECORD-DATA | app/cpy/CVEXPORT.cpy:47 | ||
EXP-ACCT-IDin EXPORT-ACCOUNT-DATA | 9(11) | unsigned integer, 11 digits (zoned decimal) | app/cpy/CVEXPORT.cpy:48 | ||
EXP-ACCT-ACTIVE-STATUSin EXPORT-ACCOUNT-DATA | X(01) | text, 1 character | app/cpy/CVEXPORT.cpy:49 | ||
EXP-ACCT-CURR-BALin EXPORT-ACCOUNT-DATA | S9(10)V99 COMP-3 | signed decimal, 10 integer and 2 fraction digits (packed decimal) | app/cpy/CVEXPORT.cpy:50 | ||
EXP-ACCT-CREDIT-LIMITin 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-LIMITin EXPORT-ACCOUNT-DATA | S9(10)V99 COMP-3 | signed decimal, 10 integer and 2 fraction digits (packed decimal) | app/cpy/CVEXPORT.cpy:52 | ||
EXP-ACCT-OPEN-DATEin EXPORT-ACCOUNT-DATA | X(10) | text, 10 characters | app/cpy/CVEXPORT.cpy:53 | ||
EXP-ACCT-EXPIRAION-DATEin EXPORT-ACCOUNT-DATA | X(10) | text, 10 characters | app/cpy/CVEXPORT.cpy:54 | ||
EXP-ACCT-REISSUE-DATEin EXPORT-ACCOUNT-DATA | X(10) | text, 10 characters | app/cpy/CVEXPORT.cpy:55 | ||
EXP-ACCT-CURR-CYC-CREDITin 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-DEBITin EXPORT-ACCOUNT-DATA | S9(10)V99 COMP | signed decimal, 10 integer and 2 fraction digits (binary) | app/cpy/CVEXPORT.cpy:57 | ||
EXP-ACCT-ADDR-ZIPin EXPORT-ACCOUNT-DATA | X(10) | text, 10 characters | app/cpy/CVEXPORT.cpy:58 | ||
EXP-ACCT-GROUP-IDin EXPORT-ACCOUNT-DATA | X(10) | text, 10 characters | app/cpy/CVEXPORT.cpy:59 | ||
FILLERin EXPORT-ACCOUNT-DATA | X(352) | text, 352 characters | app/cpy/CVEXPORT.cpy:60 | ||
EXPORT-TRANSACTION-DATA | | group redefines EXPORT-RECORD-DATA | app/cpy/CVEXPORT.cpy:65 | ||
EXP-TRAN-IDin EXPORT-TRANSACTION-DATA | X(16) | text, 16 characters | app/cpy/CVEXPORT.cpy:66 | ||
EXP-TRAN-TYPE-CDin EXPORT-TRANSACTION-DATA | X(02) | text, 2 characters | app/cpy/CVEXPORT.cpy:67 | ||
EXP-TRAN-CAT-CDin EXPORT-TRANSACTION-DATA | 9(04) | unsigned integer, 4 digits (zoned decimal) | app/cpy/CVEXPORT.cpy:68 | ||
EXP-TRAN-SOURCEin EXPORT-TRANSACTION-DATA | X(10) | text, 10 characters | app/cpy/CVEXPORT.cpy:69 | ||
EXP-TRAN-DESCin EXPORT-TRANSACTION-DATA | X(100) | text, 100 characters | app/cpy/CVEXPORT.cpy:70 | ||
EXP-TRAN-AMTin EXPORT-TRANSACTION-DATA | S9(09)V99 COMP-3 | signed decimal, 9 integer and 2 fraction digits (packed decimal) | app/cpy/CVEXPORT.cpy:71 | ||
EXP-TRAN-MERCHANT-IDin EXPORT-TRANSACTION-DATA | 9(09) COMP | unsigned integer, 9 digits (binary) | app/cpy/CVEXPORT.cpy:72 | ||
EXP-TRAN-MERCHANT-NAMEin EXPORT-TRANSACTION-DATA | X(50) | text, 50 characters | app/cpy/CVEXPORT.cpy:73 | ||
EXP-TRAN-MERCHANT-CITYin EXPORT-TRANSACTION-DATA | X(50) | text, 50 characters | app/cpy/CVEXPORT.cpy:74 | ||
EXP-TRAN-MERCHANT-ZIPin EXPORT-TRANSACTION-DATA | X(10) | text, 10 characters | app/cpy/CVEXPORT.cpy:75 | ||
EXP-TRAN-CARD-NUMin EXPORT-TRANSACTION-DATA | X(16) | text, 16 characters | app/cpy/CVEXPORT.cpy:76 | ||
EXP-TRAN-ORIG-TSin EXPORT-TRANSACTION-DATA | X(26) | text, 26 characters | app/cpy/CVEXPORT.cpy:77 | ||
EXP-TRAN-PROC-TSin EXPORT-TRANSACTION-DATA | X(26) | text, 26 characters | app/cpy/CVEXPORT.cpy:78 | ||
FILLERin EXPORT-TRANSACTION-DATA | X(140) | text, 140 characters | app/cpy/CVEXPORT.cpy:79 | ||
EXPORT-CARD-XREF-DATA | | group redefines EXPORT-RECORD-DATA | app/cpy/CVEXPORT.cpy:84 | ||
EXP-XREF-CARD-NUMin EXPORT-CARD-XREF-DATA | X(16) | text, 16 characters | app/cpy/CVEXPORT.cpy:85 | ||
EXP-XREF-CUST-IDin EXPORT-CARD-XREF-DATA | 9(09) | unsigned integer, 9 digits (zoned decimal) | app/cpy/CVEXPORT.cpy:86 | ||
EXP-XREF-ACCT-IDin EXPORT-CARD-XREF-DATA | 9(11) COMP | unsigned integer, 11 digits (binary) | app/cpy/CVEXPORT.cpy:87 | ||
FILLERin EXPORT-CARD-XREF-DATA | X(427) | text, 427 characters | app/cpy/CVEXPORT.cpy:88 | ||
EXPORT-CARD-DATA | | group redefines EXPORT-RECORD-DATA | app/cpy/CVEXPORT.cpy:93 | ||
EXP-CARD-NUMin EXPORT-CARD-DATA | X(16) | text, 16 characters | app/cpy/CVEXPORT.cpy:94 | ||
EXP-CARD-ACCT-IDin EXPORT-CARD-DATA | 9(11) COMP | unsigned integer, 11 digits (binary) | app/cpy/CVEXPORT.cpy:95 | ||
EXP-CARD-CVV-CDin EXPORT-CARD-DATA | 9(03) COMP | unsigned integer, 3 digits (binary) | app/cpy/CVEXPORT.cpy:96 | ||
EXP-CARD-EMBOSSED-NAMEin EXPORT-CARD-DATA | X(50) | text, 50 characters | app/cpy/CVEXPORT.cpy:97 | ||
EXP-CARD-EXPIRAION-DATEin EXPORT-CARD-DATA | X(10) | text, 10 characters | app/cpy/CVEXPORT.cpy:98 | ||
EXP-CARD-ACTIVE-STATUSin EXPORT-CARD-DATA | X(01) | text, 1 character | app/cpy/CVEXPORT.cpy:99 | ||
FILLERin EXPORT-CARD-DATA | X(373) | text, 373 characters | app/cpy/CVEXPORT.cpy:100 |
CVTRA01Y app/cpy/CVTRA01Y.cpy · 1 record(s), 6 fields
TRAN-CAT-BAL-RECORD
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
TRAN-CAT-KEY | | group | app/cpy/CVTRA01Y.cpy:5 | ||
TRANCAT-ACCT-IDin TRAN-CAT-KEY | 9(11) | unsigned integer, 11 digits (zoned decimal) | app/cpy/CVTRA01Y.cpy:6 | ||
TRANCAT-TYPE-CDin TRAN-CAT-KEY | X(02) | text, 2 characters | app/cpy/CVTRA01Y.cpy:7 | ||
TRANCAT-CDin TRAN-CAT-KEY | 9(04) | unsigned integer, 4 digits (zoned decimal) | app/cpy/CVTRA01Y.cpy:8 | ||
TRAN-CAT-BAL | S9(09)V99 | signed decimal, 9 integer and 2 fraction digits (zoned decimal) | app/cpy/CVTRA01Y.cpy:9 | ||
FILLER | X(22) | text, 22 characters | app/cpy/CVTRA01Y.cpy:10 |
CVTRA02Y app/cpy/CVTRA02Y.cpy · 1 record(s), 6 fields
DIS-GROUP-RECORD
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
DIS-GROUP-KEY | | group | app/cpy/CVTRA02Y.cpy:5 | ||
DIS-ACCT-GROUP-IDin DIS-GROUP-KEY | X(10) | text, 10 characters | app/cpy/CVTRA02Y.cpy:6 | ||
DIS-TRAN-TYPE-CDin DIS-GROUP-KEY | X(02) | text, 2 characters | app/cpy/CVTRA02Y.cpy:7 | ||
DIS-TRAN-CAT-CDin DIS-GROUP-KEY | 9(04) | unsigned integer, 4 digits (zoned decimal) | app/cpy/CVTRA02Y.cpy:8 | ||
DIS-INT-RATE | S9(04)V99 | signed decimal, 4 integer and 2 fraction digits (zoned decimal) | app/cpy/CVTRA02Y.cpy:9 | ||
FILLER | X(28) | text, 28 characters | app/cpy/CVTRA02Y.cpy:10 |
CVTRA03Y app/cpy/CVTRA03Y.cpy · 1 record(s), 3 fields
TRAN-TYPE-RECORD
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
TRAN-TYPE | X(02) | text, 2 characters | app/cpy/CVTRA03Y.cpy:5 | ||
TRAN-TYPE-DESC | X(50) | text, 50 characters | app/cpy/CVTRA03Y.cpy:6 | ||
FILLER | X(08) | text, 8 characters | app/cpy/CVTRA03Y.cpy:7 |
CVTRA04Y app/cpy/CVTRA04Y.cpy · 1 record(s), 5 fields
TRAN-CAT-RECORD
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
TRAN-CAT-KEY | | group | app/cpy/CVTRA04Y.cpy:5 | ||
TRAN-TYPE-CDin TRAN-CAT-KEY | X(02) | text, 2 characters | app/cpy/CVTRA04Y.cpy:6 | ||
TRAN-CAT-CDin TRAN-CAT-KEY | 9(04) | unsigned integer, 4 digits (zoned decimal) | app/cpy/CVTRA04Y.cpy:7 | ||
TRAN-CAT-TYPE-DESC | X(50) | text, 50 characters | app/cpy/CVTRA04Y.cpy:8 | ||
FILLER | X(04) | text, 4 characters | app/cpy/CVTRA04Y.cpy:9 |
CVTRA05Y app/cpy/CVTRA05Y.cpy · 1 record(s), 14 fields
TRAN-RECORD
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
TRAN-ID | X(16) | text, 16 characters | app/cpy/CVTRA05Y.cpy:5 | ||
TRAN-TYPE-CD | X(02) | text, 2 characters | app/cpy/CVTRA05Y.cpy:6 | ||
TRAN-CAT-CD | 9(04) | unsigned integer, 4 digits (zoned decimal) | app/cpy/CVTRA05Y.cpy:7 | ||
TRAN-SOURCE | X(10) | text, 10 characters | app/cpy/CVTRA05Y.cpy:8 | ||
TRAN-DESC | X(100) | text, 100 characters | app/cpy/CVTRA05Y.cpy:9 | ||
TRAN-AMT | S9(09)V99 | signed decimal, 9 integer and 2 fraction digits (zoned decimal) | app/cpy/CVTRA05Y.cpy:10 | ||
TRAN-MERCHANT-ID | 9(09) | unsigned integer, 9 digits (zoned decimal) | app/cpy/CVTRA05Y.cpy:11 | ||
TRAN-MERCHANT-NAME | X(50) | text, 50 characters | app/cpy/CVTRA05Y.cpy:12 | ||
TRAN-MERCHANT-CITY | X(50) | text, 50 characters | app/cpy/CVTRA05Y.cpy:13 | ||
TRAN-MERCHANT-ZIP | X(10) | text, 10 characters | app/cpy/CVTRA05Y.cpy:14 | ||
TRAN-CARD-NUM | X(16) | text, 16 characters | app/cpy/CVTRA05Y.cpy:15 | ||
TRAN-ORIG-TS | X(26) | text, 26 characters | app/cpy/CVTRA05Y.cpy:16 | ||
TRAN-PROC-TS | X(26) | text, 26 characters | app/cpy/CVTRA05Y.cpy:17 | ||
FILLER | X(20) | text, 20 characters | app/cpy/CVTRA05Y.cpy:18 |
CVTRA06Y app/cpy/CVTRA06Y.cpy · 1 record(s), 14 fields
DALYTRAN-RECORD
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
DALYTRAN-ID | X(16) | text, 16 characters | app/cpy/CVTRA06Y.cpy:5 | ||
DALYTRAN-TYPE-CD | X(02) | text, 2 characters | app/cpy/CVTRA06Y.cpy:6 | ||
DALYTRAN-CAT-CD | 9(04) | unsigned integer, 4 digits (zoned decimal) | app/cpy/CVTRA06Y.cpy:7 | ||
DALYTRAN-SOURCE | X(10) | text, 10 characters | app/cpy/CVTRA06Y.cpy:8 | ||
DALYTRAN-DESC | X(100) | text, 100 characters | app/cpy/CVTRA06Y.cpy:9 | ||
DALYTRAN-AMT | S9(09)V99 | signed decimal, 9 integer and 2 fraction digits (zoned decimal) | app/cpy/CVTRA06Y.cpy:10 | ||
DALYTRAN-MERCHANT-ID | 9(09) | unsigned integer, 9 digits (zoned decimal) | app/cpy/CVTRA06Y.cpy:11 | ||
DALYTRAN-MERCHANT-NAME | X(50) | text, 50 characters | app/cpy/CVTRA06Y.cpy:12 | ||
DALYTRAN-MERCHANT-CITY | X(50) | text, 50 characters | app/cpy/CVTRA06Y.cpy:13 | ||
DALYTRAN-MERCHANT-ZIP | X(10) | text, 10 characters | app/cpy/CVTRA06Y.cpy:14 | ||
DALYTRAN-CARD-NUM | X(16) | text, 16 characters | app/cpy/CVTRA06Y.cpy:15 | ||
DALYTRAN-ORIG-TS | X(26) | text, 26 characters | app/cpy/CVTRA06Y.cpy:16 | ||
DALYTRAN-PROC-TS | X(26) | text, 26 characters | app/cpy/CVTRA06Y.cpy:17 | ||
FILLER | X(20) | text, 20 characters | app/cpy/CVTRA06Y.cpy:18 |
CVTRA07Y app/cpy/CVTRA07Y.cpy · 7 record(s), 39 fields
REPORT-NAME-HEADER
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
REPT-SHORT-NAME | X(38) | text, 38 characters | app/cpy/CVTRA07Y.cpy:5 | ||
REPT-LONG-NAME | X(41) | text, 41 characters | app/cpy/CVTRA07Y.cpy:7 | ||
REPT-DATE-HEADER | X(12) | text, 12 characters | app/cpy/CVTRA07Y.cpy:9 | ||
REPT-START-DATE | X(10) | text, 10 characters | app/cpy/CVTRA07Y.cpy:11 | ||
FILLER | X(04) | text, 4 characters | app/cpy/CVTRA07Y.cpy:12 | ||
REPT-END-DATE | X(10) | text, 10 characters | app/cpy/CVTRA07Y.cpy:13 |
TRANSACTION-DETAIL-REPORT
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
TRAN-REPORT-TRANS-ID | X(16) | text, 16 characters | app/cpy/CVTRA07Y.cpy:16 | ||
FILLER | X(01) | text, 1 character | app/cpy/CVTRA07Y.cpy:17 | ||
TRAN-REPORT-ACCOUNT-ID | X(11) | text, 11 characters | app/cpy/CVTRA07Y.cpy:18 | ||
FILLER | X(01) | text, 1 character | app/cpy/CVTRA07Y.cpy:19 | ||
TRAN-REPORT-TYPE-CD | X(02) | text, 2 characters | app/cpy/CVTRA07Y.cpy:20 | ||
FILLER | X(01) | text, 1 character | app/cpy/CVTRA07Y.cpy:21 | ||
TRAN-REPORT-TYPE-DESC | X(15) | text, 15 characters | app/cpy/CVTRA07Y.cpy:22 | ||
FILLER | X(01) | text, 1 character | app/cpy/CVTRA07Y.cpy:23 | ||
TRAN-REPORT-CAT-CD | 9(04) | unsigned integer, 4 digits (zoned decimal) | app/cpy/CVTRA07Y.cpy:24 | ||
FILLER | X(01) | text, 1 character | app/cpy/CVTRA07Y.cpy:25 | ||
TRAN-REPORT-CAT-DESC | X(29) | text, 29 characters | app/cpy/CVTRA07Y.cpy:26 | ||
FILLER | X(01) | text, 1 character | app/cpy/CVTRA07Y.cpy:27 | ||
TRAN-REPORT-SOURCE | X(10) | text, 10 characters | app/cpy/CVTRA07Y.cpy:28 | ||
FILLER | X(04) | text, 4 characters | app/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 | ||
FILLER | X(02) | text, 2 characters | app/cpy/CVTRA07Y.cpy:31 |
TRANSACTION-HEADER-1
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
FILLER | X(17) | text, 17 characters | app/cpy/CVTRA07Y.cpy:34 | ||
FILLER | X(12) | text, 12 characters | app/cpy/CVTRA07Y.cpy:36 | ||
FILLER | X(19) | text, 19 characters | app/cpy/CVTRA07Y.cpy:38 | ||
FILLER | X(35) | text, 35 characters | app/cpy/CVTRA07Y.cpy:40 | ||
FILLER | X(14) | text, 14 characters | app/cpy/CVTRA07Y.cpy:42 | ||
FILLER | X | text, 1 character | app/cpy/CVTRA07Y.cpy:44 | ||
FILLER | X(16) | text, 16 characters | app/cpy/CVTRA07Y.cpy:45 |
TRANSACTION-HEADER-2
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
TRANSACTION-HEADER-2 | X(133) | text, 133 characters | app/cpy/CVTRA07Y.cpy:48 |
REPORT-PAGE-TOTALS
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
FILLER | X(11) | text, 11 characters | app/cpy/CVTRA07Y.cpy:51 | ||
FILLER | X(86) | text, 86 characters | app/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
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
FILLER | X(13) | text, 13 characters | app/cpy/CVTRA07Y.cpy:57 | ||
FILLER | X(84) | text, 84 characters | app/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
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
FILLER | X(11) | text, 11 characters | app/cpy/CVTRA07Y.cpy:63 | ||
FILLER | X(86) | text, 86 characters | app/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
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
FUNC-GU | X(04) | text, 4 characters | app/app-authorization-ims-db2-mq/cpy/IMSFUNCS.cpy:18 | ||
FUNC-GHU | X(04) | text, 4 characters | app/app-authorization-ims-db2-mq/cpy/IMSFUNCS.cpy:19 | ||
FUNC-GN | X(04) | text, 4 characters | app/app-authorization-ims-db2-mq/cpy/IMSFUNCS.cpy:20 | ||
FUNC-GHN | X(04) | text, 4 characters | app/app-authorization-ims-db2-mq/cpy/IMSFUNCS.cpy:21 | ||
FUNC-GNP | X(04) | text, 4 characters | app/app-authorization-ims-db2-mq/cpy/IMSFUNCS.cpy:22 | ||
FUNC-GHNP | X(04) | text, 4 characters | app/app-authorization-ims-db2-mq/cpy/IMSFUNCS.cpy:23 | ||
FUNC-REPL | X(04) | text, 4 characters | app/app-authorization-ims-db2-mq/cpy/IMSFUNCS.cpy:24 | ||
FUNC-ISRT | X(04) | text, 4 characters | app/app-authorization-ims-db2-mq/cpy/IMSFUNCS.cpy:25 | ||
FUNC-DLET | X(04) | text, 4 characters | app/app-authorization-ims-db2-mq/cpy/IMSFUNCS.cpy:26 | ||
PARMCOUNT | S9(05) COMP-5 | signed 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
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PADFL-DBDNAME | X(08) | text, 8 characters | app/app-authorization-ims-db2-mq/cpy/PADFLPCB.CPY:18 | ||
PADFL-SEG-LEVEL | X(02) | text, 2 characters | app/app-authorization-ims-db2-mq/cpy/PADFLPCB.CPY:19 | ||
PADFL-PCB-STATUS | X(02) | text, 2 characters | app/app-authorization-ims-db2-mq/cpy/PADFLPCB.CPY:20 | ||
PADFL-PCB-PROCOPT | X(04) | text, 4 characters | app/app-authorization-ims-db2-mq/cpy/PADFLPCB.CPY:21 | ||
FILLER | S9(05) COMP | signed integer, 5 digits (binary) | app/app-authorization-ims-db2-mq/cpy/PADFLPCB.CPY:22 | ||
PADFL-SEG-NAME | X(08) | text, 8 characters | app/app-authorization-ims-db2-mq/cpy/PADFLPCB.CPY:23 | ||
PADFL-KEYFB-NAME | S9(05) COMP | signed integer, 5 digits (binary) | app/app-authorization-ims-db2-mq/cpy/PADFLPCB.CPY:24 | ||
PADFL-NUM-SENSEGS | S9(05) COMP | signed integer, 5 digits (binary) | app/app-authorization-ims-db2-mq/cpy/PADFLPCB.CPY:25 | ||
PADFL-KEYFB | X(255) | text, 255 characters | app/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
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PASFL-DBDNAME | X(08) | text, 8 characters | app/app-authorization-ims-db2-mq/cpy/PASFLPCB.CPY:18 | ||
PASFL-SEG-LEVEL | X(02) | text, 2 characters | app/app-authorization-ims-db2-mq/cpy/PASFLPCB.CPY:19 | ||
PASFL-PCB-STATUS | X(02) | text, 2 characters | app/app-authorization-ims-db2-mq/cpy/PASFLPCB.CPY:20 | ||
PASFL-PCB-PROCOPT | X(04) | text, 4 characters | app/app-authorization-ims-db2-mq/cpy/PASFLPCB.CPY:21 | ||
FILLER | S9(05) COMP | signed integer, 5 digits (binary) | app/app-authorization-ims-db2-mq/cpy/PASFLPCB.CPY:22 | ||
PASFL-SEG-NAME | X(08) | text, 8 characters | app/app-authorization-ims-db2-mq/cpy/PASFLPCB.CPY:23 | ||
PASFL-KEYFB-NAME | S9(05) COMP | signed integer, 5 digits (binary) | app/app-authorization-ims-db2-mq/cpy/PASFLPCB.CPY:24 | ||
PASFL-NUM-SENSEGS | S9(05) COMP | signed integer, 5 digits (binary) | app/app-authorization-ims-db2-mq/cpy/PASFLPCB.CPY:25 | ||
PASFL-KEYFB | X(100) | text, 100 characters | app/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
| Field | PIC | Type | Code type | Column type | Source |
|---|---|---|---|---|---|
PAUT-DBDNAME | X(08) | text, 8 characters | app/app-authorization-ims-db2-mq/cpy/PAUTBPCB.CPY:18 | ||
PAUT-SEG-LEVEL | X(02) | text, 2 characters | app/app-authorization-ims-db2-mq/cpy/PAUTBPCB.CPY:19 | ||
PAUT-PCB-STATUS | X(02) | text, 2 characters | app/app-authorization-ims-db2-mq/cpy/PAUTBPCB.CPY:20 | ||
PAUT-PCB-PROCOPT | X(04) | text, 4 characters | app/app-authorization-ims-db2-mq/cpy/PAUTBPCB.CPY:21 | ||
FILLER | S9(05) COMP | signed integer, 5 digits (binary) | app/app-authorization-ims-db2-mq/cpy/PAUTBPCB.CPY:22 | ||
PAUT-SEG-NAME | X(08) | text, 8 characters | app/app-authorization-ims-db2-mq/cpy/PAUTBPCB.CPY:23 | ||
PAUT-KEYFB-NAME | S9(05) COMP | signed integer, 5 digits (binary) | app/app-authorization-ims-db2-mq/cpy/PAUTBPCB.CPY:24 | ||
PAUT-NUM-SENSEGS | S9(05) COMP | signed integer, 5 digits (binary) | app/app-authorization-ims-db2-mq/cpy/PAUTBPCB.CPY:25 | ||
PAUT-KEYFB | X(255) | text, 255 characters | app/app-authorization-ims-db2-mq/cpy/PAUTBPCB.CPY:26 |
What the checks still found
- None.