ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

FTP from AS400 to PC

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

  • FTP from AS400 to PC

    Hi,

    We are planning to automate the FTP process to maintain the codes in VSS.

    We are able to FTP interactively from AS400 to PC by issuing FTP commands either from AS400 or from PC, but we would like to do this in a batch process so that this job can be scheduled from PC or AS400. How should be the FTP script be written (PC based script – and not AS400 script) so that this executable script is scheduled from the PC using PC system tools.

    How does the AS400 machine identify my PC for FTP ( IP ? ).
    Is there some way to get around the restriction of using STRPCCMD command in batch mode.

    Please note that i am not allowed to install any third party software. Anything with words "Install" is a taboo.
    Thanks
    Sudarshan

  • #2
    Re: FTP from AS400 to PC

    Why don't you create a share on the iSeries IFS, place the files there, then on the PC map a drive to the share on the iSeries IFS.

    Then the files can reside on the iSeries IFS and no PC need be on in order to place the file there.

    Just a different way of looking at it.
    Bill
    "A good friend will bail you out of jail,
    A true friend would be sitting beside you saying,
    'Wow, that was fun.'"

    Comment


    • #3
      Re: FTP from AS400 to PC

      use cpytostmf or cpytoimpf and QNTC
      Attached Files
      All my answers were extracted from the "Big Dummy's Guide to the As400"
      and I take no responsibility for any of them.

      www.code400.com

      Comment


      • #4
        Re: FTP from AS400 to PC

        hello

        use the FTPAPI.

        Comment


        • #5
          Re: FTP from AS400 to PC

          Try

          Comment


          • #6
            Re: FTP from AS400 to PC

            Using the MGET command can I GET multiple files and append a local file? So far I've only seen the option to (REPLACE.
            Your friends list is empty!

            Comment


            • #7
              Re: FTP from AS400 to PC

              I don't think so. You can GET (copy) a single remote file to the local computer or APPEND a local file to a file on the remote computer but not MGET and APPEND altogether.
              Philippe

              Comment


              • #8
                Re: FTP from AS400 to PC

                I ended up doing an MGET into an IFS folder and then did CPYFRMIMPF to append all to a single file.

                Thanks for the help.
                Your friends list is empty!

                Comment

                Working...
                X