Alan D. Ayers Posted July 26, 2011 Posted July 26, 2011 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)
hannes08 Posted July 26, 2011 Posted July 26, 2011 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]
Alan D. Ayers Posted July 28, 2011 Author Posted July 28, 2011 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)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now