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 >firstname.lastname@example.org > +--- | 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: email@example.com +---
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.