Midrange News for the IBM i Community


Posted by: John Tremper
FTP of SAVF
has no ratings.
Published: 20 Dec 2012
Revised: 23 Jan 2013 - 4083 days ago
Last viewed on: 28 Mar 2024 (9721 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

FTP of SAVF Published by: John Tremper on 20 Dec 2012 view comments(12)

Good Morning.  I am trying to ftp a large save file from one iSeries (located in KS) to another iSeries (located in PA).  The ftp completes but when i do a dspsavf on the file that was sent to PA I get error CPF3805, (Objects from save file FTPJOHN in JOHN not restored).  The dspsavf on the KS side works fine.  Any ideas on this?  Thanks in advance.

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS

(Sign in to Post a Comment)
Posted by: AlanHouston
Premium member *
Chester, NY
Comment on: FTP of SAVF
Posted: 11 years 3 months 8 days 16 hours 36 minutes ago

John,

Are you doing a Binary transfer when you FTP the file?

Posted by: jtremper
Premium member *
Comment on: FTP of SAVF
Posted: 11 years 3 months 8 days 16 hours 27 minutes ago

Yes, I'm doing it in batch mode.  Here is the file I'm using in the cl for ftp commands:

**** ****                            

bin                                      

quote site namefmt 0                     

quote rcmd clrsavf file(john/ftpjohn)    

put john/ftpjohn john/ftpjohn            

quit                          

 

The asterisks at the beginning represent the user id and password I am using to log on to the target box.          

Posted by: jtremper
Premium member *
Comment on: FTP of SAVF
Posted: 11 years 3 months 8 days 16 hours 24 minutes ago

Also, I created the save file on the source system by doing a savlib.

Posted by: AlanHouston
Premium member *
Chester, NY
Comment on: FTP of SAVF
Posted: 11 years 3 months 8 days 16 hours 20 minutes ago
Edited: Thu, 20 Dec, 2012 at 08:22:20 (4117 days ago)

John,

 

Could you have a conflict with the target release OS version?

Posted by: jtremper
Premium member *
Comment on: FTP of SAVF
Posted: 11 years 3 months 8 days 16 hours 10 minutes ago

Are you asking if they are at the same release?  They are both at V7R1.

Posted by: clbirk
Premium member *
Comment on: FTP of SAVF
Posted: 11 years 3 months 8 days 15 hours 18 minutes ago

are the file sizes the same size?  I notice that is not always the case when I do such.

 

Have you tried not doing it in batch but interactive?

 

I typically would have done a

 

cd  john

lcd john

put  john john

 

of course built a .savf with crtsavf before hand which sounds like you already did since you are doing a clrsavf.

 

Of course I can't remember if I do a binary or a ebcdic before hand but it will alert you.

 

I transfered a whole system from v6r1 to v7r1 when I migrated (due to incompatible tape) so it works.

 

The ONLY other thing might be that something is happening in the communication link garbling but I assume you have done this more than once.

 

The other advantage of running it "interactive" that is typing in FTP and then doing an open, etc. is that if you get any error messages you can see them. One thing I have noticed on occasion is that sometimes on a really big file, it does not "terminate" normally, but the savf seems fine.

 

Another thing you could try is ftp it to a local pc, and then put it back up on your i, check it. Then from the pc ftp it to the remote i, and see what happens. This might help you pinpoint where the issue is.

 

If it wasn't a savf, you could have done DDM and did a simple CPYF to copy it across the internet IF these were on like a vpn.

Posted by: jtremper
Premium member *
Comment on: FTP of SAVF
Posted: 11 years 3 months 8 days 14 hours 35 minutes ago

are the file sizes the same size?  I notice that is not always the case when I do such.
- No, i hadn't looked at this, when i do a dspobj on both sides the size and offline size are different.  This means the file is not making it, right?

Have you tried not doing it in batch but interactive?
- I was hoping to do this in batch so that I could run unattended and eventually put on the scheduler

I typically would have done a, etc, etc, etc
- That looks like you are using the IFS, correct?  Does that make a difference?

The other advantage of running it "interactive" that is typing in FTP and then doing an open, etc. is that if you get any error messages you can see them. One thing I have noticed on occasion is that sometimes on a really big file, it does not "terminate" normally, but the savf seems fine.
- Wouldn't this show up in the output file I am writing to in batch mode?

 

Posted by: jtremper
Premium member *
Comment on: FTP of SAVF
Posted: 11 years 3 months 8 days 14 hours 34 minutes ago

Also, i have been successful using smaller files, so maybe the size is an issue.

Posted by: Ringer
Premium member *
Comment on: FTP of SAVF
Posted: 11 years 3 months 8 days 11 hours 20 minutes ago
Edited: Thu, 20 Dec, 2012 at 13:18:47 (4117 days ago)

Where is your bin command? That means transfer in binary mode - no translation.

OOPS - never mind, I see it now.

Chris Ringer

Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: FTP of SAVF
Posted: 11 years 3 months 8 days 10 hours 46 minutes ago
Edited: Thu, 20 Dec, 2012 at 13:53:54 (4117 days ago)

On the restore, do you have: ALWOBJDIF(*ALL) and MBROPT(*ALL)

 

Also, you might want to use my FTPFILE command instead. It just works.

There are also the SENDSAVF command, which sends it but doesn't restore it and the one I use almost everyday, the SENDOBJ command which packages everything up together and even allows you to do a restore after the transfer.

Posted by: clbirk
Premium member *
Comment on: FTP of SAVF
Posted: 11 years 3 months 7 days 9 hours 36 minutes ago

in answer to your question, no I am not using the ifs on the transfer or transferring files in the ifs. I did type it wrong using john for both file and "library" name when one was ftpjohn.

 

While I understand that you want to do it batch, my point was simply that maybe by doing it once interactive, you will see an error that you don't see in batch. It is kind of like when a bat doesn't work on a pc, you go and run it from a cmd window to see the errors.

 

Posted by: jtremper
Premium member *
Comment on: FTP of SAVF
Posted: 11 years 3 months 4 days 14 hours 4 minutes ago

Thanks for the clarification.  

 

I ended up breaking the library up into smaller chunks and sending the files that way.  So far this seems to be working.  Thanks all, and have a Merry Christmas!!!