|
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 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.