We are reading a VSAM file for the record where PRIM-KEY consists of account-nr P17 + serial of P5.
1 PRIM-KEY B12 /* This is the index
This matches the underlying copybook as indicated below:
– 03 :ACNT:-LOCT-MAIN-REC.
----------10 :ACNT:-NUMBER PIC S9(17) COMP-3.
----------10 :ACNT:-SERIAL PIC S9(5) COMP-3.
The issue we find is that no exact match seems possible:
For us to locate account 209072970 with serial number 0, we actually have to read starting at 209072969 (one less than value we are looking for). I have never come across this (but have not dealt with VSAM much).
Any help would be much appreciated.