Hi,
I need to move some physical files from one as/400 to another. I cannot use savf, because I don't have privilege to use RSTOBJ command. In order to achieve this, i tried FTP'ing the physical file itself in Binary mode from AS/400 to Windows, and then to other AS/400.
However data got corrupted, when I checked using, RUNQRY on the file. Can anyone explain what's going wrong here? Below is the list of commands I used to achieve this.
This is the only way I know to FTP files, since I am still learning this protocol. If there are other ways around please guide me with them. Also, I know you can directly transfer files from AS/400 to AS/400, but I don't know how to do that. I also want to know, why using the above procedure corrupted my data.
In past I used FTP to move SAVF from my windows to AS/400 server, and at that time I had access to RSTOBJ command, but now, it's denied.
Thanks in advance
Proto
I need to move some physical files from one as/400 to another. I cannot use savf, because I don't have privilege to use RSTOBJ command. In order to achieve this, i tried FTP'ing the physical file itself in Binary mode from AS/400 to Windows, and then to other AS/400.
However data got corrupted, when I checked using, RUNQRY on the file. Can anyone explain what's going wrong here? Below is the list of commands I used to achieve this.
Code:
ftp myserver username password binary quote site namefmt 1 cd qsys.lib/mylib.lib get myfile.pf myfile.pf quit ftp mynextserver username password binary quote site namefmt 1 cd qsys.lib/mylib.lib put myfile.pf myfile.pf quit
In past I used FTP to move SAVF from my windows to AS/400 server, and at that time I had access to RSTOBJ command, but now, it's denied.
Thanks in advance
Proto





) that way i don't have to worry about it. (but of course i'm basically a one man shop when it comes to the AS/400 <insert your favorite name for the frigging platform here> so i don't have to worry too much. plus i also have FTP exit programs in place to prevent users, etc. from accessing any production libraries, data, etc. via FTP. the programs are pretty easy to write, etc. and can actually be a better fit for the audit logging than putting it into the RST program. that way any FTP session gets logged.
Comment