× 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: Accessing a file in memory
  • From: "Ingram, Terry (USE)" <Terry.Ingram@xxxxxxxxxxx>
  • Date: Mon, 17 Jul 2000 15:20:28 -0400

It almost sounds like you want to do a SETOBJACC.  If nothing else, this
could be a quick thing to try.  Just can do SETOBJACC for each of the files
you want to load into memory.  If it doesn't work, nothing lost with minimal
time invested.  It's been a while since I've used it, but think if you look
in the job log, it will tell you how much memory is left.  So, if you files
are too large to load into memory I think it displays a message, but the job
continues.

One time, I heard the suggestion to create a new shared pool that allocates
enough memory to load all these files, then use the SETOBJACC specifying
your new shared pool.  Since nothing else will be using it, all the memory
will belong to that job.  And then delete the shared pool when you are done.
Granted, that is a generic comment and doesn't take into account how much
memory you really have.

HTH

Terry Ingram

>
>We have a project where a few files are accessed a lot in a job stream and
>the job takes over an hour to run. We are looking for ways to speed up the
>process. We are wanting to load the few files into memory rather than
>accessing the files off the disk because we heard that a company that
>purchased the same software did the same. Can you advise us on what might
>be the best solution? User space, what?

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-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.