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



Yes, you'd get a conversion error here because you didn't specify O_CCSID. When you use O_TEXTDATA without O_CCSID, it uses code pages... and code pages can't support UTF-8, causing the conversion error.

Anyway.. using my new (well, not especially new, but new to you) technique, you won't need to have two opens.

By the way, the "two opens" technique never worked properly with networked drives such as /QNTC and NFS, so the single open technique is a good habit to get into.


On 4/13/2011 9:10 PM, Pete Helgren wrote:
Thanks again Scott. Updating the prototypes solved the compile issue
with the JOB parameter and a light bulb came on when you mentioned this
was pre V5R2 compliant code. To fix the conversion error: I was using
the *old* technique that Bill had suggested (and I was already using) to
open, close and open the file. Your subsequent email explained that is
no longer needed so I removed the close and reopen of the file and all
was well. It was the subsequent open that cause the "Conversion Error"
e.g.:

c eval fd = open('/tmp/' + %trim(INFile):
c O_TEXTDATA+O_WRONLY)


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.