× 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.



Is your file a physical or logical file?  A logical would take a longer
to retrieve than a physical.  I assume a spool file is like a physical
(no key).

> -----Original Message-----
> From: Gerald Magnuson [SMTP:magnuson@knapheide.com]
> Sent: Monday, July 19, 1999 2:11 PM
> To:   MIDRANGE-L@midrange.com
> Subject:      Quick field scan
> 
> I need to provide a method to scan for a character string
> contained anywhere within a field 25 characters long..
> The user wants this to be an INTERACTIVE process.
> 
> the file contains around 75k to 100k records.
> 
> I have a rpg program that uses the scan op code within a do loop.
> 
> I run this program interactivelyand I get my results in about
>  3 minutes (48cpw).  
> I say "Sorry, we are not going to eat up that many cycles for
> this interactivly, we will run this in batch."
> 
> So my user asks:  "Well then, why is it that I can look at a
> report in my outq with all the data (1400 pages) and scan
> and find the data in 30 to 50 seconds, and It takes you 3
> minutes?"
> 
> I know that there is something about spool files that makes
> this type of scanning much faster.
> 
> so the questions are:  
>     Is there a method to perform this type of scan interactivly?
>         (by interactive I mean, to go through 75k records in 30 to
>          50 seconds)
>     
>     What is the reason that the spool file find is so much faster?
> 
> 
> Thank you...
> 
> 
> +---
> | 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-Ups:

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.