×
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.
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
* (O_RDONLY + O_CCSID + O_TEXTDATA)
D MODE S 10I 0 INZ(0)
D CCSID S 10I 0 INZ(37)
and then changed the open to:
C EVAL FD = OPEN(%TRIM(PATH):OFLG:MODE:CCSID)
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.
--
JHHL
--
JHHL
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.