Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Copy SAVF with FTP

48 views
Skip to first unread message

Jacques Tardif

unread,
Oct 20, 1998, 3:00:00 AM10/20/98
to
Last week, I asked how to copy SAVF with CPYTOPCD.

Some people told to use FTP. It's a good idea ant it's easier for me to do
it with FTP.

I've only one problem. When using RECV from AS/400 A and after the PUT
commands to the AS/400 B, the result is a physical file on AS/400 B. I set
the transfer mode to BINARY and it doesn't work better

Jacques Tardif
tar...@inextenso.qc.ca

JeanMichel

unread,
Oct 20, 1998, 3:00:00 AM10/20/98
to
It's because when you start ftp namefmt is set to '0'. In this case it's
your responsability to create the receiving SAVF.
This can be achieve in ftp by QUOTE RCMD CRTSAVF library/savfname ...
Othewise you can change namefmt to '1' : QUOTE SITE NAMEFMT '1'
If the source file is a savf, a target savf will be created. But the naming
convention is changed.
In place of Library/filename (with namefmt '0) you must use
qsys.lib/library.lib/filename.file/Member.mbr ...

Hope this helps

Jean-Michel Penasse
EXPERIA Europe
jmpe...@experia.europe
_____________________________________________
Jacques Tardif a écrit dans le message
<01bdfc17$b88a7150$0a0000c7@inex_01>...

Karl Hanson

unread,
Oct 20, 1998, 3:00:00 AM10/20/98
to
Jacques Tardif wrote:
>
> Last week, I asked how to copy SAVF with CPYTOPCD.
>
> Some people told to use FTP. It's a good idea ant it's easier for me to do
> it with FTP.
>
> I've only one problem. When using RECV from AS/400 A and after the PUT
> commands to the AS/400 B, the result is a physical file on AS/400 B. I set
> the transfer mode to BINARY and it doesn't work better
>
> Jacques Tardif
> tar...@inextenso.qc.ca

This topic was discussed recently here. You have two options:
1) Create the save file first on the target system.
2) Use "namefmt 1" which is IFS syntax, along with a ".savf" suffix for
the target object name.

For option 2, the sequence would look something like:
===> ftp tgtsys
<signon etc>
ftp> bin
ftp> namefmt 1
ftp> put /qsys.lib/mylib.lib/mysavf.savf /qsys.lib/mylib.lib/mysavf.savf

Use www.dejanews.com to find the earlier threads on this topic. I
searched for "SAVF" and "FTP".

--

Karl Hanson

Orangtang

unread,
Oct 22, 1998, 3:00:00 AM10/22/98
to
You have to create the SAVF first on the receiving machine and receive into
it..FTP doesn't know it's a save file...Ron

(and it must be BINARY).

0 new messages