× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




If I choose to use iConv to convert the data, how do I set
the ccsid of the file?  Is that possible with the open()
API?

CCSIDs were introduced into the IFS in V5R1. Prior to that time, there was no CCSID flag to set. (There was a code page, but not a CCSID)

If there's no CCSID field, then you can't set it :)

Instead, you'll have to set the code page. You can set it by specifying O_CODEPAGE one the open() API when the file is created. (But don't specify O_TEXTDATA, which causes translation, just O_CODEPAGE to assign the code page.)

Alternately, you can set it Qp0lSetAttr() API.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.