Hi Folks
Situation is: using CPYFRMIMPF to convert .csv files in the IFS to a PF.
No control over the data in the .csv (coming from outside). I don't have the authority to insist on cleaner data.
I'd like to write errors to an ERRRCDFILE during CPYFRMIMPF as a first sweep for problems (the second level help is most informative), but most of the .csvs have blank records at the end, so even if there are no other errors, the process will fail there. At present I'm monitoring CPF2817 to prevent that.
So, I would like to either remove the blank records in situ before converting the file, or if there's some other workaround I'm open to it.
Situation is: using CPYFRMIMPF to convert .csv files in the IFS to a PF.
No control over the data in the .csv (coming from outside). I don't have the authority to insist on cleaner data.
I'd like to write errors to an ERRRCDFILE during CPYFRMIMPF as a first sweep for problems (the second level help is most informative), but most of the .csvs have blank records at the end, so even if there are no other errors, the process will fail there. At present I'm monitoring CPF2817 to prevent that.
So, I would like to either remove the blank records in situ before converting the file, or if there's some other workaround I'm open to it.
Comment