Hi Loek,That was the problem! I had an extra space in my FTP_ROOT constant definition. Thank you so much for your help on getting me past this error.
Now I just have to figure out why the "callp mkdir(%trimr(LocalDir):511)" statement in the "do_dir" subprocedure did not create a directory on the local IBMi system to transfer the files to. I looked at the authority of the Local_Root directory and *PUBLIC was set to*RWX so I don't think it is an authority issue. I didn't have time to look at it any further as the system was set to come down for backups in 5 minutes so I had to sign off. I will take a look tomorrow but if you can think of anything to look at it will be greatly appreciated!
Best Regards, Jerry Birch
Message: 2 Date: Mon, 08 Dec 2014 17:33:23 -0400 From: Loek Maartens <loek.maartens@xxxxxxxxx> To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: Ftpapi Digest, Vol 97, Issue 15 1. RE: TESTMIRIN getting FTP 550 Return Code (Mike Krebs) Message-ID: <54861923.8020605@xxxxxxxxx> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi Jerry, When looking at your joblog from the as400 session it appears that your second cwd command contains a preceding space. Maybe you can check your rpg code where you build the second cwd command to see if you correctly %trim the command? Also, please do not quote the full mail digest when replying to the list. Kind regards, Loek Maartens.
----------------------------------------------------------------------- This is the FTPAPI mailing list. To unsubscribe, please go to: http://www.scottklement.com/mailman/listinfo/ftpapi -----------------------------------------------------------------------