MIDRANGE dot COM Mailing List Archive



MIDRANGE-L » January 2013

Re: Correct CCSID for IFS File.



On 22 Jan 2013 12:49, Michael Schutte wrote:
Any idea on why...

open(FileName:O_CREAT+O_TRUNC+O_CODEPAGE+O_WRONLY:
S_IRUSR + S_IWUSR + S_IRGRP:1252);

actually creates with CCSID of 5348 instead?


The CodePage 1252 specification probably had the file creation choose the CCSID 5348 as the latest version that includes the Euro symbol.

http://www.ibm.com/software/globalization/cp/cp01252.html
"SBCS code page information document
CPGID: 01252
...
Notes:...
2. The Euro supported CCSID of this updated code page is 5348 with the euro symbol added to \x80.
..."

To specify a CCSID, e.g. 1252, then choose to specify\set the CCSID rather than the specify a CodePage; i.e. use O_CCSID instead of O_CODEPAGE.






Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2013 by MIDRANGE dot 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 here. If you have questions about this, please contact