Transfer *SAVF to another AS400 box

385 pts.
Tags:
FTP
iSeries
Save/Restore Objects
SAVF
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: July 14, 2009  12:21 PM
UPDATED: July 17, 2009  7:57 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

—————————————————————————————————————————————–

<ul>
<b>From rockleadme:</b></ul> 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

Discuss This Question: 13  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • RPGILer
    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.
    25 pointsBadges:
    report
  • Satsho
    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
    1,245 pointsBadges:
    report
  • Satsho
    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.
    1,245 pointsBadges:
    report
  • infiniumpro
    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.
    325 pointsBadges:
    report
  • Rockleadme
    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)
    385 pointsBadges:
    report
  • Jbmm
    uhm... try NAMEFMT 0
    125 pointsBadges:
    report
  • wpoulin
    Another option is to use the SAVRSTOBJ Command. One step, works slick ! Hope this helps, Bill Poulin
    2,480 pointsBadges:
    report
  • JSellick
    But not if, like me, you're still languishing on release 5.4!
    115 pointsBadges:
    report
  • NullFields
    You could map a drive on your PC client for each iSeries server and drag and drop the SAVF between them.
    880 pointsBadges:
    report
  • wpoulin
    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
    2,480 pointsBadges:
    report
  • Batman47
    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!
    1,050 pointsBadges:
    report
  • Dsrpg
    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.
    45 pointsBadges:
    report
  • Ibmmer
    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.
    365 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following