ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

FTP from AS400 to shared drive

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

  • FTP from AS400 to shared drive

    Hi All
    This might be old question for you guys. I am looking for procedure on how to send the stream file from IFS to shared drive path on server?

    I have one file in /as400/export.csv

    I have another shared drive - \\Swaps400\Myfolder

    I need to send that stream file to this folder. In fact can we automate with some sort of FTP programming?

  • #2
    Re: FTP from AS400 to shared drive

    FTP Script
    Code:
    open
    user <username> <password>
    namefmt 1
    lcd /as400/
    cd myfolder
    bin
    put export.csv export.csv (replace
    CL Code Snip
    Code:
    OVRDBF FILE(INPUT) TOFILE(<FTP Script Source>)
    OVRDBF FILE(OUTPUT) TOFILE(<Log File PF>)
    
    STRTCPFTP  RMTSYS('<IP ADDRESS OF SWAPS400')
    
    DLTOVR FILE(INPUT)
    DLTOVR FILE(OUTPUT)

    Comment


    • #3
      Re: FTP from AS400 to shared drive

      if its a networked server just map a drive and move the file from the ifs to the mapped drive.
      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 shared drive

        Yes it is network drive. Jamie do we need to use iSeries navigator to map the drive?

        Actually we need to automate the process of putting file from as400 to shared drive. so any suggestions are welcome

        I am bit doubtful abt FTP as it would need shared drive to have FTP ports opened and user mapped on it. As of now it is not the case.
        So we are looking for network mapping.

        Comment


        • #5
          Re: FTP from AS400 to shared drive

          if the iseries username/pw matches the share you should be able to view the share under QNTC. If that looks ok. You should be able to run a program under the same username pw and move the file that way.

          Comment


          • #6
            Re: FTP from AS400 to shared drive

            To add to what abercrombieande said...
            You can create it like this "md ('/qntc/172.28.28.24')".
            But also remember that if you are using QDLS shares, then these must be loaded first.
            Last edited by kitvb1; July 22, 2011, 12:46 AM.
            Regards

            Kit
            http://www.ecofitonline.com
            DeskfIT - ChangefIT - XrefIT
            ___________________________________
            There are only 3 kinds of people -
            Those that can count and those that can't.

            Comment

            Working...
            X