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.
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.
John,
Are you doing a Binary transfer when you FTP the file?
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.
Also, I created the save file on the source system by doing a savlib.
John,
Could you have a conflict with the target release OS version?
Are you asking if they are at the same release? They are both at V7R1.
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.
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?
Also, i have been successful using smaller files, so maybe the size is an issue.
Where is your bin command? That means transfer in binary mode - no translation.
OOPS - never mind, I see it now.
Chris Ringer
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.
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.
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!!!