Hi Crispin. Nice to hear from you again! I have come up with an approach in which I would build a work file using unique keys of the fields in the error string, load the work file, then build the EDTFIL over that. However, I would rather use *Arrays as you suggested. However, you are not able to build a DSPFIL or EDTFIL over an Array file, are you?
Here is the scenario. This happens during 'Initialize subfile record' user point.
- EDTFIL built over a Reject Code master file.
- Transaction file has reject codes in an error string. We read the Reject Code file and then search the transaction string for the existence of the Reject Code. If found, we get the Reject Description and find the field in error from a field string in the Transaction File. These values are then loaded to the subfile record for the current record read.
The issue we have now come across is it is possible to have more than one field in the string with the same reject code. SO in that case, we want to display both fields on the screen for the same reject code master record.
Rick