× 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: RPG enhancement suggestion
  • From: "Scott Klement" <infosys@xxxxxxxxxxxx>
  • Date: 21 Jun 1999 12:37:34 -0500

Colin,

The way I've always envisioned field loading is that the system loads
an entire record (or sometimes a block of records, if blocking is
enabled for the file) into a buffer.

If you're using the cycle with blocking support, it (at the proper
time in the cycle) then loads one record into another buffer, thus
making it available to the program.

The input specs would, basically, be a data structure thats based on
the same area of memory that the record is loaded into.   Therefore,
whether you only loaded one field, or loaded all of them, would not
make ANY difference in how fast the record loads.

Granted, this is only how I _envision_ it, and may not be how it
ACTUALLY works :)  But, its the way I'd do it, if I were designing
the language :)

Scott Klement
Information Systems Manager
Klement's Sausage Co, Inc.



Colin Williams <Williamsc@technocrats.co.uk> wrote:
>
> I have been writing an extract program, to bring in data from a file
>  on
> an external system. During this, a question occurred.
>
> Would file processing in RPG be a lot quicker if we could drop field
> that we weren't using, similar to the way it works when you internal
> describe
> a file, but without actually decribing the file internally.
>
> eg: if I have a typical input file with 50 fields on it, but I only
> actually use 1 field on it in the program, I would like a keyword th
> allows me to
> drop all the other fields from the file.
>
> There must be 1000's of RPG programs out there that use only very fe
> fields from files, but read in every field on the file every time a
> record
> is read
>
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  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.