BillyBoyo wrote:You have already shown you don't need to do any calculation. If A = B result will be zero. So OMIT when A = B.
BillyBoyo wrote:Oh, I thought the embedded "-" was a typo
Which Sort product do you use?
What is the RECFM of you input file? And LRECL?
You can calculate the sum and put the result in a temporary "extension" of your record. Where, depends on the RECFM and LRECL answer.
Then with OUTFIL OMIT you can exclude the ones whose sum is zero.