One of the program is abending very frquently.
I want to include a logic in the program such that it will write the error record into a file and continue with processing the next record.
Can anyone help me in getting a psuedo code to do such a change in PL1.
Joined: 20 Oct 2006 Posts: 6968 Location: porcelain throne
as you can imagine by now, you have not explained your problem very well.
actually, at all.
but I will take a wild guess.
you are encountering a S0C7.
you should include a process in you program,
that validates every field as to the datatype and acceptable values.
when you have a record which contains a field that violates this 'plausibility' proofing,
then exclude the record from the rest of the process and report the record.
I would suggest creating a new module,
which would run before the module that is abending,
and perform your exclusion process there,
and only output records containing 'good field values'.
this new module could even be a SORT utility
which would perform a copy, excluding (omit) records that violate your rules.