Re: How to write a saved file to IFS



Holger Scherer wrote:
When using FTP to transfer objects from one system to an other,
one always should state the name of the object twice so the target
system will create the object correctly. I found, sometimes the
file name is transferred in upper case if omitted and the target
system will be confused.

Thus, use this method:

FTP (target system)
(signon)
cd /some/where (on the target system)
namefmt 1 (if using AS400-FTP, or QUOTE SITE NAMEFMT 1)
lcd /my/source (on the target system)
bin (binary transfer)
put mylib.savf mylib.savf (twice stated, save file does not need to
exist on target system)
exit

I see Karl Hanson has already mentioned this, but I'll send anyway with a little more description.

FTP under OS/400 or i5/OS recognizes the .SAVF extension when using NAMEFMT 1 and will create a savefile. The reason to have it "twice stated" would be to have a different name on the receiving system. A savefile must be transferred as BINARY because it's not text data and should not be translated due to different character encodings -- a savefile is a binary file.

namefmt 1
bin
put mylib.savf

Those FTP subcommands are sufficient to transfer savefile MYLIB to the remote system. It will be created as a savefile in the current directory.

To work, it must be transferred BINARY, it must be done under NAMEFMT 1 _and_ the extension must be .SAVF. The .SAVF extension works by default when transferring to or from an AS/400. If the sending or receiving system is a PC for example, then the file must actually have .SAVF as the extension.

--
Tom Liotta
http://zap.to/tl400
.



Relevant Pages

  • Re: Patchnotes
    ... The "interact ... with target" keybind helped a fair bit with this as regards ... than once or twice on the Isle of Quel'danas because I accidentally ...
    (alt.games.warcraft)
  • Re: Nightmare at Winco!
    ... I know for a fact that the ones at Target don't stop on a dime ... and she hit me with one twice, once knocking me to the floor. ...
    (rec.food.cooking)
  • Re: The product of consecutive integers is never a square ?
    ... > I've forgotten what the target was now! ... > twice though). ... I am still scratching my head and trying to look "behind ...
    (sci.math)
  • Re: Chung is always wrong
    ... No you are the one who is twice wrong again. ... You are doing exactly what your target wants. ... They help humans of all ... beliefs. ...
    (alt.support.diabetes)
  • Re: expand /var, decrease /home space
    ... It's consistent because it's UNIX. ... Twice the target is the last ... twice the one before the last. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)