# Validation Criteria

> [← Back to README](../README.md) | [Test Specifications](./test-specifications.md)

## Data Integrity Checks

### VSAM File Validation
- Record counts match between source and target for all files
- Key field values preserved exactly (ACCT-ID, CARD-NUM, CUST-ID, etc.)
- Numeric fields (PIC S9(10)V99) maintain sign and decimal precision
- FILLER fields preserved (maintaining record length compatibility)
- Alternate index relationships maintained (CARDAIX, CXACAIX)

### Cross-Reference Integrity
- Every XREF-CARD-NUM in CCXREF has a matching CARD-NUM in CARDDAT
- Every XREF-ACCT-ID in CCXREF has a matching ACCT-ID in ACCTDAT
- Every XREF-CUST-ID in CCXREF has a matching CUST-ID in CUSTDAT

## Functional Equivalence

### Online Transaction Validation
| Transaction | Criteria |
|:------------|:---------|
| CC00 (Sign-on) | Same credentials produce same outcome (admin/user routing) |
| CM00 (Menu) | All 12 options route to correct programs |
| CAVW (Account View) | Same account ID → identical field display |
| CAUP (Account Update) | Same input → same validation errors/success |
| CCLI (Card List) | Same data → same pagination, ordering |
| CT02 (Tran Add) | Same input → same transaction record created |
| CB00 (Bill Pay) | Same payment → same balance update |
| CR00 (Reports) | Same parameters → same JCL submitted |
| CU00-03 (Users) | CRUD operations produce identical results |

### Batch Output Validation
| Job | Criteria |
|:----|:---------|
| POSTTRAN | Same DALYTRAN input → same TRANSACT output; same balance updates; same rejections |
| INTCALC | Same input data → identical interest amounts (within rounding tolerance) |
| CREASTMT | Same input → statement output matches field-by-field |
| TRANREPT | Same input → report output matches field-by-field |
| COMBTRAN | Same input files → identical sorted/merged output |

## Performance Criteria

### Online Response
- Transaction response within CICS region performance norms
- Browse/pagination performance comparable to original

### Batch Processing
- POSTTRAN throughput: process same volume in comparable time
- INTCALC: same volume processed without timeout
- Statement generation: same volume output

## Report Format Consistency

- Statement report (CBSTM03A/B): Same header/footer format, same field positions
- Transaction report (CBTRN03C): Same column layout, same totals
- Category balance report: Same format and values

## Compatibility Checks

- COMMAREA layout preserved exactly (COCOM01Y structure)
- BMS map field positions and attributes match
- File record lengths unchanged
- Key field sizes and types preserved
- COMP/COMP-3 fields maintain binary precision

---

*See also: [Component Order](./component-order.md) | [Test Specifications](./test-specifications.md)*
