Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

AS/400 to NT FTP

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • AS/400 to NT FTP

    Can someone please help. I'm trying to create a cl program to ftp a NT workstation, retrieve files from that workstation to the 400 and then kick off a program to process those files.

  • #2
    AS/400 to NT FTP

    Unfortunately the AS/400 doesn't provide a good command-line based way to FTP files to/from anything. I know News/400 and possibly MRC have provided some decent sample programs that show you how to FTP files from the AS/400. It's usually pretty messy to go the manual coding route because you have to manually create FTP scripts and then write a CL program to do file overrides, etc...... and then there's no good error checking. Check out News/400 and MRC for sample code. If you decide to go the commercial route, download a copy of our FTP/400 product from our web site. It will make your life a lot easier. You can Send/Receive AS/400 files from any library or the IFS to any FTP server along with error checking. It also supports the running of remote commands if the FTP Server supports remote commands. Regards, Richard Schoen RJS Software Systems Email: richard@rjssoft.com Web Site: http://www.rjssoft.com

    Comment


    • #3
      AS/400 to NT FTP

      Look at these documents, if the link does not work let me know. I have done this plenty of times and it works great. Very easy too. http://publib.boulder.ibm.com/cgi-bi...nl01/9.12.56.2

      Comment


      • #4
        AS/400 to NT FTP

        Mark, We use batch FTP at our shop to. Look at Greg's example. You can set up 2 source members (type TXT). One will contain your FTP commands (INPUT) and the other is used to capture logging information (OUTPUT). You can call an RPG program to update the FTP command file (INPUT) with user ID, password, file name, etc. and then execute the overrides & the FTP command.

        Comment


        • #5
          AS/400 to NT FTP

          There's also an article out on the AS/400 NetJava Web site called "FTP File Transfers While You Sleep" (http://www.midrangecomputing.com/anj...d=268&md=19996) that's a good introduction to FTP on the AS/400. It contains some basic info and a tutorial as to how to set up batch FTP as an unattended transfer. HTH Joe Hertvik Editor-AS/400 Network Expert http://www.midrangecomputing.com/ane mailto:jhertvik@midrangecomputing.com

          Comment


          • #6
            AS/400 to NT FTP

            Well that bit of information was cool but I have gotten to that point already I am transfering files from the AS/400 to the PC the problem I have is that some of the files that I fave to transfer have packed data fields in them and when they come across to the PC the packed data fields come over as garbage, what can I do any help is apprechiated natebuck@fct.com

            Comment


            • #7
              AS/400 to NT FTP

              I gave this tip else where too (Client Access and packed decimal): Having experimented with FTP a little I discovered to use logical files (LF) over the physical (PF) may do the trick. You can make a selction of the desired fields, too; it is like creating a view in SQL. In the LF I changed the data type of the packed fields into zoned. (I also gave the LF the primary access path (keys))

              Comment

              Working...
              X