DAMN, these things are counterintuitive.

Added an O_CCSID to the OFlags (and the necessary other fields) (whitespace columns squeezed to fit):
D OFLG S 10I 0 INZ(16777249) 1+32+16777216
D MODE S 10I 0 INZ(0)
D CCSID S 10I 0 INZ(37)

and then changed the open to:


and it worked right off. Even though I was specifying MY CCSID, rather than the FILE's CCSID.

Somewhere in all the stuff I've been reading over the past few hours, I read something (I think it was from Mr. Klement) to the effect that specifying O_CCSID overrides a default of O_TEXTDATA using codepage conversion, and that this is enough to allow a 1208 --> 37 conversion to happen.

Even though I solved the immediate problem (and in the process, removed a bit of confusing code where I was calling the variable containing the OFlags parameter MODE), I'd greatly appreciate it if somebody could tell my WHY my solution worked.



This thread ...


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

This mailing list archive is Copyright 1997-2020 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].