Art,

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
>atostaine@crecomp.com
>

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to "MIDRANGE-L@midrange.com".
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


This thread ...

Follow-Ups:

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