Ftp Examples
[IBS Home] [Up] [Commands] [Downloading Reports] [Ftp Examples]

IBM Server Site

IBS Home Up

 

 

FTP File Xfer

Dos FTP

GET - Example 1

  • open dos prompt
    • XP PCs
      start > programs > accesories > command prompt
    • Win2k PCs
      start > programs > accesories > command prompt
    • Win9x PCs
      start > programs > dos prompt
  • type cd\
    • you are now in the root directory
  • type cd ibs
    • you are now in C:\ibs
    • if you do not have that directory type md C:\ibs then try cd ibs again
  • type the following commands
    • C:\ibs>ftp
      ftp> open
      To 10.0.0.8 [your ip address will be different]
      Connected to 10.0.0.8.
      220-QTCP at S103913M.IBSCORPORATION.COM.
      220 Connection will close if idle more than 10 minutes.
      User (10.0.0.8:(none)): dale [your user ide will be different]
      331 Enter password.
      Password:[type in your password]
      230 DALE logged on.
      ftp> bi
      200 Representation type is binary IMAGE.
      ftp> cd ibsxfer
      250 "IBSXFER" is current library.
      ftp> dir
      200 PORT COMMAND Successful
    • look for your file(s) that you want to download
    • type get [filename] then press ENTER
      • the files will be downloaded from the system to your pc

PUT - Example 1

  • open dos prompt
    • XP PCs
      start > programs > accesories > command prompt
    • Win2k PCs
      start > programs > accesories > command prompt
    • Win9x PCs
      start > programs > dos prompt
  • type cd\
    • you are now in the root directory
  • type cd ibs
    • you are now in C:\ibs
    • if you do not have that directory type md C:\ibs then try cd ibs again
  • type the following commands
    • C:\ibs>ftp
      ftp> open
      To 10.0.0.8 [your ip address will be different]
      Connected to 10.0.0.8.
      220-QTCP at S103913M.IBSCORPORATION.COM.
      220 Connection will close if idle more than 10 minutes.
      User (10.0.0.8:(none)): dale [your user ide will be different]
      331 Enter password.
      Password:[type in your password]
      230 DALE logged on.
      ftp> bi
      200 Representation type is binary IMAGE.
      ftp> cd ibsxfer
      250 "IBSXFER" is current library.
      ftp> dir
      200 PORT COMMAND Successful
    • look for your file(s) that you want to download
    • type put [filename] ibsxfer/[filename] then press ENTER
      • the files will be uploaded from the your pc to the server

Put - Example 2

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

  • C:\Documents and Settings\Toms's PC>cd\
  • C:\>cd ibs
  • C:\ibs>dir

    Volume in drive C is ACER
    Volume Serial Number is 320D-180E

    Directory of C:\ibs

    01/21/2008 04:15 PM <DIR> .
    01/21/2008 04:15 PM <DIR> ..
    01/21/2008 04:18 PM 3,902,784 gosetup.exe
    01/22/2008 12:16 PM <DIR> xfer
    01/22/2008 05:15 PM 359 program changes.txt
    01/23/2008 10:21 AM 804,680 mw5250.exe
    01/23/2008 02:35 PM 13,041,490 WSFTP_ProT128_Install.exe
    4 File(s) 17,749,313 bytes
    3 Dir(s) 4,259,184,640 bytes free

  • C:\ibs>cd xfer
  • C:\ibs\xfer>dir

    Volume in drive C is ACER
    Volume Serial Number is 320D-180E
    Directory of C:\ibs\xfer
    01/22/2008 12:16 PM <DIR> .
    01/22/2008 12:16 PM <DIR> ..
    7 File(s) 83,880,192 bytes
    2 Dir(s) 4,259,184,640 bytes free

  • C:\ibs\xfer>ftp
    • ftp> open
    • To 192.168.1.5

      Connected to 192.168.1.5.
      220-QTCP at S104AZBM.
      220 Connection will close if idle more than 5 minutes.

    • User (192.168.1.5:(none)): dale
    • 331 Enter password.
      Password:
      230 DALE logged on.
    • ftp> bi
      200 Representation type is binary IMAGE.
    • ftp> cd ibsxfer
      250 "IBSXFER" is current library.
    • ftp> put miscf
      200 PORT subcommand request successful.
      150 Sending file to member MISCF in file MISCF in library IBSXFER.
      250 File transfer completed successfully.
      ftp: 498432 bytes sent in 2.66Seconds 187.66Kbytes/sec.
    • ftp> quit
    • exit

 

Misc Examples

There are various ways to download data from the AS/400.

Suppose your user needs to download a certain file every morning.

Here is a simple way to use FTP to simplify the task.

Lets say the file that needs to be downloaded is named PAYCHEX and is in the library named PAYLIB.

On the AS/400, create a user profile named PAYCHEXUSR. Give it a password of PAYPASS and set the current library to PAYLIB.

On the PC, create a folder named PAYFOLDER

Use notepad to enter the following:
  open 10.10.10.10
  PAYCHEXUSR
  PAYPASS
  get PAYCHEX c:\PAYFOLDER\PAYCHEX.TXT (replace
  quit

Note that the "open 10.10.10.10" needs to have your AS/400 TCP/IP address or URL.

Name this file "ftpscript.txt" amd save it in the PAYFOLDER

Use notepad to enter the following in a new file:
ftp -s:c:\PAYFOLDER\ftpscript.txt
 

Name this file "GETPAYCHEX.BAT" and save it someplace where the user can find it easily (the desktop is a good place)
 

To download the file, the user simply double-clicks the GETPAYCHEX.BAT icon and the file should transfer to the PAYFOLDER

iSeries to iSeries FTP - Example 1 GET

  • This is an example of being signed onto the server where you want the data pulled into
  • FTP Criteria for this 'GET'
    • I am signed on my server
    • I must ftp from my server into the server where the data is
    • I must pull the data off the other server into my server
  • > dale
    331 Enter password.
    230 DALE logged on.
    OS/400 is the remote operating system. The TCP/IP version is "V5R1M0".
    250 Now using naming format "0".
    257 "QGPL" is current library.
    > bi
    200 Representation type is binary IMAGE.
    > cd ibsbackup
    250 "IBSBACKUP" is current library.
    > get ibsbackup/dlchistx ibsbackup/dlchistx (replace
    227 Entering Passive Mode (10,0,0,8,221,183).
    150 Retrieving member DLCHISTX in file DLCHISTX in library IBSBACKUP.
    Enter an FTP subcommand.
 
IBS Lumber and Building Material Software  Copyright © 2006 IBS Lumber Software Inc (TM)
Last modified: December 5, 2008

IBS Sales & Support (888) 427-1566
Main Office 1-812-547-4640
Fax IBS  1-812-547-9614

IBS Corporation - Building Materials Software for your Lumberyard

All pages contained in this support website are not intended for general public distribution.  Any material here can be considered private, confidential with various copyrights and restrictions against public release.  You 'the browser' cannot legally release this information for general public distribution.

IBS Webmail | IBS Corporate Site | IBS Homepage
remote support:
http://www.gotomeeting.com | remote support download program