Perhaps you could use Scott Klement's FTPAPI -- see:
This lets you perform FTP functions directly from compiled code with no
need to write a "script" of any kind in a file (that could be read by
Then, if you can arrange to create a special userID and password on the
Windows side, for use by your program(s) that use FTPAPI, you should be
Hope that helps,
Mark S. Waterbury
> On 9/24/2012 1:23 PM, Cyndi Bradberry wrote:
I use multiple script files to automate transfer of data from the iSeries to a Windows FTP server. In the past, we have used the anonymous user id to access the windows server. We no longer can due to security concerns.
The preferred method is to use a user id/password that does change, but is sync'd between iSeries and Windows.
Can I use the QSYRUPWD api to retrieve the password for a specific user profile and write it out in the script file ?