On the open() specify O_TEXTDATA.  If you then specify the codepage,
then IFS will convert the file data to the specified codepage; if you
do not specify codepage, then IFS will convert the file data to your
job CCSID (or default job CCSID if CCSID = 65535).  Most likely you
just want to specify TEXTDATA (that is, have conversion to your job
CCSID performed).

Bruce Vining

>I am using the IFS programs published in Midrange computing couple of
>months ago that demonstrate the IFS API's like open, read, etc.
>All of my IFS files are ASCII, so the programs print garbage.  Do I use
>the codepage option of the open API to designate ASCII?
>Art Tostaine, Jr.
>Creative Computer Associates, Inc.
>Parlin, NJ

| This is the Midrange System Mailing List!
| To submit a new message, send your mail to "".
| To unsubscribe from this list send email to
| Questions should be directed to the list owner/operator:

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

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