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



Scott,

Make sure you're using O_TEXT_CREAT and doing it all with a single
open() call. The "two opens" approach has never worked well with /QNTC.

fd = open( '/QNTC/whatever/whatever'
: O_CREAT + O_TRUNC + O_WRONLY
+ O_CCSID + O_TEXTDATA + O_TEXT_CREAT
: permissions
: 1252
: 0 );


I added the 5th open() argument, txtcreatid, to my IFS copybook and changed
my open to the above syntax. I'm still getting what appears to be a code
page problem. The contents displays correctly via WRKLNK option 5, and
option 8 shows the CCSID as 1252. But under Windows, the contents look more
like Katakana characters. Definitely non-Latin.

The box is at V5R4, and the PC is back at W2K. Could this be a problem with
the age of W2K?

As an alternative, I just took a file I created as 819 in a non-QNTC folder,
and used the CPY command to copy to the W2K box with TOCCSIC(1252) and
DTAFMT(*TEXT). It was readable under Windows, so I can probably do it this
was as a circumvention.

But any idea why creating it directly under QNTC with O_TEXT_CREAT etc is
not producing valid data?

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

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.