Author: Bill Woodger
Subject: Reply to: Get Record count in summary record for each group of records
Posted: Fri Sep 30, 2016 9:39 pm (GMT 5.5)
Problem is, the context of the original from which the quote is taken is the ability to use the OUTFIL reporting features. "Don't use SORT just to use SUM". In JNFnCNTL, there is no possibility to use the OUTFIL reporting features. But in itself, perhaps not enough to use SUM.
It's not the SUM itself that is the problem, it is doing a SORT just to be able to do a SUM, because SORTing is an extensive operation.
I think from Arun's original solution, drop the first OUTFIL and do the appending in the JNF1CNTL. Avoids the "write", and the BUILD (which I can't see why it was needed).
For sure I've seen and used the SUM in JNFnCNTL for this type of task. A separate step I think on balance is going to be a more efficient way to do it than by using the SUM.
From both the suggested solutions, I have another idea. Have to check it first...
Subject: Reply to: Get Record count in summary record for each group of records
Posted: Fri Sep 30, 2016 9:39 pm (GMT 5.5)
Problem is, the context of the original from which the quote is taken is the ability to use the OUTFIL reporting features. "Don't use SORT just to use SUM". In JNFnCNTL, there is no possibility to use the OUTFIL reporting features. But in itself, perhaps not enough to use SUM.
It's not the SUM itself that is the problem, it is doing a SORT just to be able to do a SUM, because SORTing is an extensive operation.
I think from Arun's original solution, drop the first OUTFIL and do the appending in the JNF1CNTL. Avoids the "write", and the BUILD (which I can't see why it was needed).
For sure I've seen and used the SUM in JNFnCNTL for this type of task. A separate step I think on balance is going to be a more efficient way to do it than by using the SUM.
From both the suggested solutions, I have another idea. Have to check it first...