The application includes a screen similar to the CPYF prompt
screen itself, I'm assuming that whatever values I key there for
filename and FROM/TO key values are simply passed to CPYF. I
expect that the vendor isn't trying to validate that the values
"make sense" for the given file name and simply rely on CPYF
validating the parms.
I was originally thinking CPYF should be ok, as the file in
question has 3 key fields, all signed. But for my purposes, the
only key field that matters in the first one and I'm only looking
for a specific value, not a range. But I couldn't get it to
In any event, I'm now think that QIBM_QCA_CHG_COMMAND isn't going
to help either because the vendor must have another piece of the application that deletes existing records in the TOFILE for the specified FROMKEY/TOKEY range before they actually invoke CPYF.
Since it doesn't appear that CPYF itself handles replacing a
specific range of records.
Another thought is a select/omit logical that omits the negative values and redefines the key fields from signed packed to
unsigned zone. As there really shouldn't be any negative keys in
production. I might play some with that possibility.