× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: Query/400 question
  • From: "Stone, Brad V (TC)" <bvstone@xxxxxxxxxxxxxx>
  • Date: Fri, 4 Dec 1998 08:14:41 -0600


> -----Original Message-----
> From: Satria Suryahadi [SMTP:satria@jakarta.wasantara.net.id]
> Sent: Friday, December 04, 1998 7:29 AM
> To:   MIDRANGE-L@midrange.com
> Subject:      Query/400 question
> 
> Dear query/400 experts...,
> 
> End user request concerning modification of an interactive CL pgm which
> call
> 6 queries I create last year is really bugging me. Is anyone out there can
> give me tips to make my queries works better and efficient?. 
> Here is the case, there is one transaction physical file that looks like
> this:
> 
> (Sorted by Stock#-Ascending, and PODate-Descending)
> 
> Stock#          Description             UnitCost PO#    PODate     Vendor#
> A0101001        BUSHING; 1 KV/250 A     48.000   DE0021 98/10/20   FE001
> A0101001        BUSHING; 1 KV/250 A     46.000   PE0012 98/05/13   LE012
> A0101001        BUSHING; 1 KV/250 A     44.000   DE0003 97/11/24   LA123
> A0101001        BUSHING; 1 KV/250 A     46.000   DE0021 97/10/05   FD034
> A0101001        BUSHING; 1 KV/250 A     47.000   DE0021 98/10/20   LC005
> 
> A0101002        COPPER BLA BLA..       123.000   CE0123 98/05/12   DE012
> A0101002        COPPER BLA BLA..       130.000   BE0221 98/01/13   LE013
> A0101002        COPPER BLA BLA..       120.000   DE0028 97/09/24   LA123
> A0101002        COPPER BLA BLA..       100.000   LE0321 96/10/04   FD034
> A0101002        COPPER BLA BLA..       128.000   BE0009 95/08/21   LC005
> 
> A0101003        OTHER  BLA BLA..       490.000   PE0320 98/09/13   CE013
>                                                                 More...
> 
> 
> Expected query result is to get the most current UnitCost of every Stock#,
> which looks like this:
> 
> 
> Stock#          Description             UnitCost PO#    PODate     Vendor#
> 
> A0101001        BUSHING; 1 KV/250 A     48.000   DE0021 98/10/20   FE001
> 
> A0101002        COPPER BLA BLA..       123.000   CE0123 98/05/12   DE012
> A0101003        OTHER  BLA BLA..       490.000   PE0320 98/09/13   CE013
>                                                                 More...
> 
> 
> My CL pgm call 6 queries which process 5 physical files and heavily use
> QTEMP library, NOW it takes 10 minutes to get the result (F10, CISC). I
> try
> to find the solution in Query/400 manual but I can't find useful tips.
> 
> Please don't mention RPG at this time, since I'm in hurry  :-)
> 
        [And Brad Said:]  That's too bad.  That was my suggestion.  You
should be able to write an RPG program in less time that it would take to
solve this connundrum.  You'll be fighting with this query forever.  I've
seen in a hundred times.
>                              
> Thanks in Advance,                   
> 
> 
> Satria
> 
> +---
> | This is the Midrange System Mailing List!
> | To submit a new message, send your mail to MIDRANGE-L@midrange.com.
> | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
> | To unsubscribe from this list send email to
> MIDRANGE-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator:
> david@midrange.com
> +---
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2024 by midrange.com 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].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.