Sign in to follow this  
Followers 0
Alan D. Ayers

_ftp_fileget

3 posts in this topic

I am trying to use this to download a file from an MVS Mainframe. I am always getting a Binary file, how do I set it to download an AScii File?

I have tried with no success.

_FTP_FileGet($Conn,$fnDwnld,$toFN, False, $FTP_TRANSFER_TYPE_ASCII)

Share this post


Link to post
Share on other sites



hi Alan,

did you try using "11" instead of "$FTP_TRANSFER_TYPE_ASCII"?

You can try invoking an external command instead of using a UDF. ncftp comes in handy at this point.


Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]

Share this post


Link to post
Share on other sites

hi Alan,

did you try using "11" instead of "$FTP_TRANSFER_TYPE_ASCII"?

You can try invoking an external command instead of using a UDF. ncftp comes in handy at this point.

It helps if you put the parameters in the correct spot too... :)

_FTP_FileGet($Conn,$fnDwnld,$toFN, False, 128, $FTP_TRANSFER_TYPE_ASCII)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0