[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using FTPAPI with IFS stream files



Ok I guess that would have been 1252 to 437....

Still, it would seem to me that iconv() should have handled that, ie.
basically done nothing...

What am I missing?

Charles

On Mon, Oct 4, 2010 at 2:08 PM, Charles Wilt <charles.wilt@xxxxxxxxx> wrote:
> Scott,
>
> Yeah, that's what I was looking at...
>
> The transfer is being done in ASCII mode, not binary...
>
> I didn't write this particular process, just got called in to help.
>
> We'll get it changed and see what happens.
>
> Looking at the code, it appears if the transfer mode is not binary,
> FTPAPI always calls iconv()...
>
> In this case, it would seem that iconv() should have been set to go
> from 1252 to 819...I wouldn't have expected that to be a problem, but
> apparently it is.  I'm curious as to why...
>
> Thanks!
>
> Charles
>
> On Mon, Oct 4, 2010 at 1:53 PM, Scott Klement <sk@xxxxxxxxxxxxxxxx> wrote:
>> Are you sending in binary or ascii mode?  If you want the hex values to
>> be unchanged, make sure you use binary mode.
>>
>> On 10/4/2010 12:27 PM, Charles Wilt wrote:
>>> All,
>>>
>>> Just a quick check while I continue investigations...
>>>
>>> We've got a existing stream file in the IFS, CCISD = 1252, that we're
>>> trying to send to a remote FTP server using FTPAPI...
>>>
>>> Is there some reason this wouldn't work?
>>>
>>> The remote server is seeing garbage..
>>> x'DAD9D9'
>>>
>>> Instead of
>>> x'313030'
>>>
>>> Using EDTF in hex mode, I've confirmed that the file on the IFS
>>> contains x'313030'
>>>
>>> Thanks!
>>> Charles
>>> -----------------------------------------------------------------------
>>> This is the FTPAPI mailing list.  To unsubscribe, please go to:
>>> http://www.scottklement.com/mailman/listinfo/ftpapi
>>> -----------------------------------------------------------------------
>>>
>>
>> -----------------------------------------------------------------------
>> This is the FTPAPI mailing list.  To unsubscribe, please go to:
>> http://www.scottklement.com/mailman/listinfo/ftpapi
>> -----------------------------------------------------------------------
>>
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------