385 pts.
0
Q:
Transfer *SAVF to another AS400 box
Hi,
Can anybody tell me as how to transfer a save file from one iSeries to another. I am using FTP. I tried the following
FTP "Remote machine"
after loggin in
Typed BINARY
NAME FMT 1
then i tried the PUT command...
it did not work, may be my syntax was wrong or something.
Can somebody help please. Or may be another way to do a save file transfer?
thanks
ASKED: Jul 14 2009  12:21 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
24105 pts.
0
A:
 RATE THIS ANSWER
+1
Click to Vote:
  •   1
  •  0
  • AddThis Social Bookmark Button
Show us the put statement and the systems response please.

From rockleadme: my PUT statement looks like : PUT abclib/abcsavfile (space) rmtlib/rmtsavfile
Error received : Unknown extension in database file name

ps: I created a dummy *SAVF on the remote system and the lib names on both remote and local machine is same (in case if this makes any difference)

****************************************************************
-----------------------------------------------------------------
It's that name format thingy

BINARY
NAMEFMT 0
PUT abclib/abcsavfile rmtlib/rmtsavfile

Phil
------------------------------------------------------------------
******************************************************************

NAMEFMT 1 is used if you are using IFS name format.

example: qsys.lib\abclib.lib\abcsavfile.file

in NAMEFMT 0, it would look like

abclib/abcsavfile.abcsavmbr

-----------------------------------------------------------------------------------------------------------------------------------------


    From rockleadme:
Thanks Guys... I have finally managed to get it through

PUT /qsys.lib/locallibraryname.lib/savefilename.savf /qsys.lib/remotelibraryname.lib/savefilename.savf

This creates a save file on to the remote system.

Appreciate everybody's help.

thanks

--------------------------------------------
SAVF exists in QGPL on both systems

ftp system
bin
put MYFILE.SAVF


==========================================================
We've had a couple of suggestions on drag-drop on the pc in navigator or via mapped drives
but ... I suspect this would route the data through your pc and twice through your network .. from the first 400 to your pc and from your pc to the second 400.
Phil
Last Answered: Jul 17 2009  7:57 PM GMT by Philpl1jb   24105 pts.
Latest Contributors: DHanneman   200 pts., Rockleadme   385 pts., NullFields   395 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

RPGILer   25 pts.  |   Jul 14 2009  5:23PM GMT

After entering BINARY and pressing enter you would do the put command.
The format is put libraryname/savfname (on AS400 being sent from) libraryname/savfname (on remote AS400).
For example: put abclib/abcsavf rmtlib/rmtsavf then press enter. Once this has completed simply type quit then press enter. Continue on with restoring objects in the save file on the remote system.

 

Satsho   1215 pts.  |   Jul 14 2009  7:05PM GMT

Knowing the steps you took and the error will help.

Make sure you are pointing to the correct location on both machines - If not use change directory command.
Ensure you have sufficient authority to all objects - files, lib, etc

 

Satsho   1215 pts.  |   Jul 14 2009  7:13PM GMT

You can also try the DEBUG to trace the issue

Type QUOTE DBUG to begin and end the trace. The trace creates a spooled file called QTMFFTRC. The
default output queue contains the spooled file.

 

Infiniumpro   105 pts.  |   Jul 14 2009  8:15PM GMT

You probably know this, but be sure to create a blank savf on the target system if it doesn’t already exist, or you will get an unreadable PF.

 

Rockleadme   385 pts.  |   Jul 15 2009  10:36AM GMT

Hi RPGILer,
I tried exactly as you said with the PUT command, but I get an error saying :

“Unknown extension in database file name”

ps: I created a dummy *SAVF on the remote system and the lib names on both remote and local machine is same (in case if this makes any difference)

 

Jbmm   115 pts.  |   Jul 16 2009  5:32AM GMT

uhm…

try
NAMEFMT 0

 

Wpoulin   1085 pts.  |   Jul 16 2009  5:56PM GMT

Another option is to use the SAVRSTOBJ Command. One step, works slick !

Hope this helps,
Bill Poulin

 

JSellick   105 pts.  |   Jul 17 2009  8:17AM GMT

But not if, like me, you’re still languishing on release 5.4!

 

NullFields   395 pts.  |   Jul 17 2009  1:53PM GMT

You could map a drive on your PC client for each iSeries server and drag and drop the SAVF between them.

 

Wpoulin   1085 pts.  |   Jul 17 2009  2:41PM GMT

JSellick,

Both of my systems are at V5R4 and I frequently use all of the SAVRST commands in both directions.

Hope this helps,
Bill Poulin

 

Batman47   485 pts.  |   Jul 17 2009  5:34PM GMT

iSeries Navagator is a great tool to just drap and drop files from one system to another… no need to worry about having perfect syntax!

 

Dsrpg   45 pts.  |   Jul 17 2009  6:47PM GMT

We are at a lower release level also and I just did this from one AS/400 to another and it worked properly.
ftp xxx.xx.xxx
userid
password
binary
put qgpl/filename

If your other AS/400 is at a lower release level than the sending AS/400 you will have to create the save file using a lower relase level or you will not be able to display it on the other AS/400.

If you create the savf in QGPL on your other AS/400 this shoudl work properly. If the save file does not exist on the other AS/400 it will not create it as a save file.

 

Ibmmer   310 pts.  |   Jul 17 2009  7:15PM GMT

From your pc

ftp rmtsys
quote site namefmt 1
cd /qsys.lib/savflib.lib
Lcd C:mysavfdir
Bin
mput *.savf

Directories given are examples substitute your own using same syntax.
No need to create the save file on target in namefmt 1 .savf extension defines file type as SAVF

Great when you need to push a file or a bunch of small files out to many machines at once. Can even create a small batch program if you’re clever.

I also utilize various FTP clients Filezilla seems to work fine for me but I can get almost any client to work with little effort. You have to make sure the FTP server is configured correct to communicate properly with FTP Clients by setting the File listing format to Unix list format which can be found in OPS NAV –> Network –> TCP/IP–>servers–> Right click FTP server selecting Properties from the drop down menu then Initial Formats tab. For Small files this can be handy to move files from server to server quickly with out using a command line. Also excellent method to provide FTP to those unfamiliar with the System i.

For Large Transfers I prefer to create a CL program which I can then submit or schedule to be submitted and an appropriate time. Login and Command Data is read from and input file and results are list to an output file which I can check after job completion to ensure that their where no errors. Most commonly used when grabbing images files such as PTF’s.

 
0