Only way I can think of is a two pass method.

1.) Using query read through your file sorted in CUST# order.  Summarize
Min and Max on the date field.  Break on CUST#.   Output to a database file
summary only.  This should create a file with CUST#, MIN CCYYMMDD, MAX

2.) Use query to join your original file with the new file and you should
be able to calculate your days doing business....

Let me know if I'm on target...

BTW, I briefly worked at one of your sister companies RGA (now defunct of

Hi All,
Question:  I have a simple transaction file (physical file) I have to
process for a report, this file is sequenced by CUST# then CCYYMMDD.
Now for the summary query reporting on the CUST#, I want get the (MIN)
and the (MAX) in the CCYYMMDD field (column) so I can do the math in the
query using the 2 fields (MIN) and (MAX) in order to arrive at the
number of days we've done business with this Customer.  Suggestions
appreciated on how I convert the (MIN) and the (MAX) to useable field
names within the query.
Tim Truax
RPS, Inc
1000 RPS Drive
Moon Township,  PA  15108

| This is the Midrange System Mailing List!
| To submit a new message, send your mail to
| To subscribe to this list send email to
| To unsubscribe from this list send email to
| Questions should be directed to the list owner/operator:

This thread ...

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].