Submitted by Anonymous (not verified) on Sat, 04/21/2007 - 00:00
Forums

I want to import an overlay created on my PC, to my AS/400, but I do not have access to the shared folder system on the PC as I am not using Client Access

Full name
Administrator

admin

Sat, 04/21/2007 - 00:00

If both the AS/400 and you are using TCP/IP you can transfer files to the shared folders using FTP.

Open a DOS prompt and change to the directory on the PC, where your PCL overlay or image is placed is placed.
Now connect with FTP to the AS/400. You will need to know the IP address of the AS/400, if you do not already have a name associated to it in your hosts file on your PC. The following is an example of a login sequence. (You should use your normal AS/400 login ID and password with the proper rights to access the folder system:

   C:\>TEMP\ftp 222.2.1.249
 Connected to 222.2.1.249
  220-QTCP at 222.2.1.249
 220 Connection will close if idle more than 5 minutes
 User (222.2.1.249:(none)): Peter
  331 Enter password.
 Password:
 230 logged on.
  ftp> 

 

Now you are logged in, and have access to the libraries on the AS/400. The following is an example of how to place a PC file into the shared folder APF3812: 

  ftp> quote site namefmt 1
  250  Now using naming format "1".
  ftp> cd /qdls
  250 Current directory changed to /QDLS.
 ftp> cd apf3812
  250 Current directory changed to /QDLS/apf3812.
 ftp> binary
  200 Representation type is binary IMAGE.
  ftp> put myovl.prt
 150 sending file to /QDLS/apf3812/MYOVL.PRT
 250 File transfer completed successfully.
 1244552 bytes transferred in 3,06 seconds (8,75 Kbytes/sec)
 ftp> quit
  221 QUIT subcommand received

  C:\TEMP