Discussion:
Format of SAVF?
(too old to reply)
ThomasF
2003-12-09 03:15:13 UTC
Permalink
Hi all,

I want to extract SAVF in UNIX and windows, who know the format of SAVF?
Thank in advance.

TOM
Gentleman
2003-12-09 09:26:15 UTC
Permalink
For what it is worth take a look here http://www.iseries400.org/programs/.
I'm sure the last thing you wanted was MI Source but this is what I can find
on the subject.
James Wall
***@hotmail.com


SAVF.zip DOS-program to Display a Savefile, Ch.27 2001/01/23
MIOBJSAV.txt Find an Object in a Save File, Ch.27 2001/07/21
MIWLKSAV.txt Walk a Save File, Ch.27 2001/07/21
MICHGMOD.txt Change a Module in a Save File, Ch.27 2001/07/21
CHGMINF.txt Command Source for MICHGMOD, Ch.27
Post by ThomasF
Hi all,
I want to extract SAVF in UNIX and windows, who know the format of SAVF?
Thank in advance.
TOM
J Connor
2003-12-09 13:41:50 UTC
Permalink
Post by ThomasF
Hi all,
I want to extract SAVF in UNIX and windows, who know the format of SAVF?
Thank in advance.
TOM
The only thing IBM seems to want to document about save files is that
they have fixed-length 528 byte records.

I believe that a save file can contain any data. It's purpose is to be a
disk file with the same semantics as a tape or diskette file. (i.e.
sequential only, fixed-size blocks, etc)

What you REALLY want to know is what command was used to populate the save
file, and what format that command writes data in. If the save file was
created using the SAVLIB command or SAVOBJ command, then you'll want to
know the format of data created with those commands. And that format is
release-specific, and AFIAK undocumented.

You're probably better off doing what other people suggest and just
restoring the SAVF to an AS/400, and then transferring the source out of
it directly.

For questions and answers regarding AS400 systems, try http://www.as400support.com
Dan Hicks
2003-12-10 00:52:45 UTC
Permalink
Post by J Connor
You're probably better off doing what other people suggest and just
restoring the SAVF to an AS/400, and then transferring the source out of
it directly.
And if you're going to be doing this with any regularity then
setting up a procedure to transfer the files directly or create and
transfer everything in a zip file is probably a good idea.
--
Dan Hicks
Don't mistake pleasure for happiness. They're a different breed of
dog. --Josh Billings
Alex Nubla
2003-12-10 17:12:33 UTC
Permalink
Post by Dan Hicks
Post by J Connor
You're probably better off doing what other people suggest and just
restoring the SAVF to an AS/400, and then transferring the source out of
it directly.
And if you're going to be doing this with any regularity then
setting up a procedure to transfer the files directly or create and
transfer everything in a zip file is probably a good idea.
Thomas:

The save file is in a 528 byte "flat" file format. It can either be
in compressed or uncompressed form. For the file to be extracted into
network drive, you can easily FTP the save file. However, once in the
network, it cannot be restored.

The best way is to do what Dan suggested. From the AS/400, zip the
files you want saved in the IFS. FTP this zip file into the network
so that it can be unzipped from the network easily. The files you
save in the zip can be in a form of .txt or .xls.

You can download a combination of tools available in
www.as400journal.com. The tools you would need would be Convert PF to
Excel (CVTPFXLS), ZIP AS/400 File (ZIP400). On the website, navigate
to the tips and technique page. You should be able to download the
tools. BTW, you can also use the FTP File (FTPFILE) to send your zip
file into the network drive.

Best Regards,
Alex Nubla

Loading...