Page 1 of 1

Removing duplicates in Easytrive Report

PostPosted: Thu Aug 05, 2010 5:35 pm
by pacha
Hi,
I have created a report using easytrieve. The fields in my report are PRODUCT-ID, PRODUCT-NAME and VENDOR-ID. But duplicate records are coming in the report.
                                             PRODUCT REPORT
PRODUCT-ID        PRODUCT-NAME            VENDOR-ID     
10                        PEN                             ABC
10                        PEN                             ABC
20                        PENCIL                        DEF
30                        BOOK                          ABC
30                        BOOK                          ABC


Is it possible to remove the duplicates using any REPORT Keywords like DTCTL?
(I am able to remove the duplicates by using SORT statement in Easytrieve and comparing with previous record)

Could someone please help me out ?

Re: Removing duplicates in Easytrive Report

PostPosted: Thu Aug 05, 2010 11:54 pm
by dick scherrer
Hello,

What is the origin of DTCTL - it does not appear to be any part of Easytrieve. . .

The normal way to eliminate duplicates is to compare and discard duplicate entries.

You might also use CONTROL for accumulating totals if needed.

Re: Removing duplicates in Easytrive Report

PostPosted: Fri Aug 06, 2010 10:33 am
by pacha
That was a typo. :) . I meant DTLCTL.
Thank you dick scherrer.

Re: Removing duplicates in Easytrive Report

PostPosted: Sat Aug 07, 2010 12:52 am
by dick scherrer
Hello,

I see no reference to duplicates in the material about DTLCTL. . .

Re: Removing duplicates in Easytrive Report

PostPosted: Fri Oct 15, 2010 8:56 am
by Scott Lippincott
Code the report like this:
REPORT RPTNAME SUMMARY SUMCTL DTLCOPY
...
SEQUENCE PRODUCT-ID PRODUCT-NAME VENDOR-ID
CONTROL PRODUCT-ID PRODUCT-NAME VENDOR-ID
LINE PRODUCT-ID PRODUCT-NAME VENDOR-ID TALLY

I added the TALLY to the LINE to show the number of duplicates; it can be left off.