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

Re: IFS file being created and opened with incorrect CCSID of 37, not 819.



Hi Paul,

I would consider adding both O_TEXTDATA and O_TEXT_CREAT if you want the 
IFS APIs to automatically translate data between ASCII & EBCDIC.

More detailed info here:
http://www.systeminetwork.com/article/rpg-programming/character-set-translation-with-the-open-api-65965

For future questions about stuff like this, please do not use this 
mailing list.

Instead, please consider the System iNetwork forums (web based):
http://www.systeminetwork.com/forums

Or, the RPG400-L mailing list at Midrange.com (e-mail based):
http://www.midrange.com/lists.htm

I'm a regular at both places, and I'll be around to help with your 
RPG/IFS questions. It's just not on-topic for the FTPAPI/HTTPAPI list.

Thanks!


On 1/3/2012 10:57 PM, Steinmetz, Paul wrote:
>     Scott,
>
>     The correction you suggested did resoslve the CCSID issue, however, the
>     file is still not viewable when opened using Notepad on the IFS.
>
>     Do I need O_TEXTDATA to correct this issue?
>
>     This file is a script, used by SFTP (SSH), for secure file transfers.
>
>
>     c                   eval      fd = open('/home/CPASFNBA/NBA_Test.txt':
>
>     c                                    O_WRONLY+O_CREAT+O_TRUNC+O_CCSID:
>
>     c                                    S_IRUSR+S_IWUSR+S_IRGRP:
>
>     c                                    1252 )
>
>
>     Thanks
>
>     Paul
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------