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



On Wed, 15 Dec 2004, Bryan Merrell wrote:

> Has anyone already written a utility that will take a SAVF and list out all
> of it's contents to a Physical File.

What do you mean by "all of it's contents"?  Do you just mean a list of
files similar to what the DSPSAVF command gives you, or do you want the
actual data in the objects?

> I have found the API's necessary to do such (list contents to a user space
> and then read into a physical)  but it seems like something that has been
> done a million times.

Why do you want it in a physical file?  Are you going to run queries over
it?

If you just need the data in an RPG program, run the API when you need it.
No reason to store it in a PF -- then you have to keep the PF in sync with
the SAVF.

> Anyone have one that they are willing to share source code?
> I have searched out on the web and couldn't find anything quickly. (1,330
> hits with Google  on "Physical SAVF" ). I also couldn't find anything out in
> the archives.

Depends on what you need, I guess.  I know that Leif has written quite a
bit about savf internals in his MI programming e-book.  More info about
that is on his web site:  http://iseries.org

If you want to read the raw data that's inside a savf, you don't even need
APIs.  Just declare an F-spec for a flat file with (IIRC) a 512 byte
record length and override it to the SAVF before reading...

There have been some discussions about the internals of save files in the
MI400 mailing list as well.  IF that interests
you, go to http://archive.midrange.com and search the MI400 mailing list.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.