Following are instructions on FTPing a save file to your AS/400. The example
below uses SPLTOOL as the file we are restoring. Replace the SPLTOOL name with
the name of the file you are restoring.
Create an empty save
file on your AS/400 named SPLTOOL in libary QGPL
CRTSAVF FILE(QGPL/SPLTOOL)
Click the Start button on your Windows task bar. Select the
Run option. In the Open: dialog box, type in ftp. This will start your ftp session.
Use the following FTP commands. (The commands you type in are in bold
italics. Press Enter after each command.)
ftp>open
(to) your system ip address or DNS name Connected to xxxxx
220-QTCP at xxxxx. 220 Connection will close if idle more than 5 minutes.
User (xxxxx:(none)): your user name 331 Enter password.
Password: your password 230 user name logged on. ftp>
quote site namefmt 0 250 Now using name format "0".
ftp> bin 200 Representation type is binary. ftp> put
(local-file) c:\spltool (remote-file) qgpl/spltool
200 PORT subcommand request successful. 150 Sending file to
member SPLTOOL in file SPLTOOL in library QGPL. 250 File transfer completed
successfully. 11704 bytes sent in 0.06 seconds (195.07 Kbytes/sec) ftp>
quit
Restore library SPLTOOL from the save file
you just FTPed to your AS/400.
I wanted to drop you a line thanking you for your help
getting SPLTOOL up and running. By using your tool and an article you wrote
in March 2000's Midrange Computing, I was able to create an application
that monitors an output queue and distributes spoolfiles in PDF & HTML format
onto my NT server. With your PDF engine at its core, this program will save
us many dollars in paper and printer costs, as well as providing a secure
and dependable report archival system. Thanks for your ideas and your programs!
- Patrick Shrader