ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Interactive FTP

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

  • Interactive FTP

    Hi- I am not sure how this works in FTP. I have screen program where I just need to FTP specific file on to another AS400 server.

    Here is Piece of code I used

    Code:
    OVRDBF     FILE(IPUT) TOFILE(MYLIB/QCLSRC) + 
                 MBR(FTPCMD)                         
    OVRDBF     FILE(OUTPUT) TOFILE(MYLIB/FTPLOG) +   
                 MBR(*FIRST)                              
    STRTCPFTP  RMTSYS(REMOTESR)
    During screen execution, it prompts for FTP commands. I checked OVERRIDE in debug and its available. I dont know if this process works in batch only.

    Bt when I run these commands on command line it works fine. Can someone tell me what is going wrong? And is there any other way to do it?

  • #2
    Re: Interactive FTP

    Your file name needs to be "INPUT"
    Michael Catalani
    IS Director, eCommerce & Web Development
    Acceptance Insurance Corporation
    www.AcceptanceInsurance.com
    www.ProvatoSys.com

    Comment


    • #3
      Re: Interactive FTP

      ohh... let me try that... but one more question. Code I posted in op is working from command line. I did and it works. I could even find log generated in FTPLOG member which was overriden. How is this possible that op code works from command line but not from screen program?... am i doing anything wrong?
      Last edited by swaps400; September 2, 2011, 12:38 PM. Reason: correction

      Comment


      • #4
        Re: Interactive FTP

        it depends on the code in your program. without that we can't really say...
        I'm not anti-social, I just don't like people -Tommy Holden

        Comment


        • #5
          Re: Interactive FTP

          Originally posted by MichaelCatalani View Post
          Your file name needs to be "INPUT"
          Now i understood... my mistake. I wrongly named file and hence was error. I just could not stop thinking of what was going on even when you pointed out the mistake. well sometimes small mistakes are not really visible to naked eyes. I will be careful next time onwards... thanks a lot Michael and Tom.

          Comment

          Working...
          X