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



Interestingly, I tried the program that Jon is having trouble with.
My job's CCSID is set to 37, and Jon's code fails with ECONVERT (the same message he posted)

However, if I change the last parameter of open() to 37 (instead of 0 which means "take it from my job's default") it works without error.

This seems strange to me, because they should result in the exact same values. The only difference seems to be that open() doesn't have to figure out what my job is.

Possibly the fact that 0 has the POTENTIAL to be non-SBCS is all it takes to make it fail.


Simon Coulter wrote:
On 28/08/2009, at 9:12 AM, Jon Paris wrote:

Can anyone suggest why I would get a errno value of 3490 (Conversion
error) on a file open?

You're using O_CODEPAGE with a SBCS ASCII value. This will only work if your job is not using a mixed CCSID. O_CODEPAGE supports only SBCS or DBCS code pages. It does not support mixed (i.e., both SBCS and DBCS code pages). Use O_CCSID for that.

Regards,
Simon Coulter.

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.