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



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2011-04-13 15:42, Bill Burnet wrote:
Pete,

I think you need to close the file after creating it then open it again
for output something like this:

fd = open('/ads2datanfs/ads001.txt':
O_CREAT+O_WRONLY+O_CODEPAGE+O_APPEND:
S_IWUSR+S_IRUSR+S_IRGRP+S_IROTH:
437);
callp close(fd);
fd = open('/ads2datanfs/ads001.txt':
O_WRONLY+O_TEXTDATA+O_APPEND);


I've been bitten by that too. The conversion map is instantiated based
on the CCSID of the output file, so you must open it twice. You could
create it with "touch -C 819" to achieve the same result. There is
another newer constant available for the open bitmap that is supposed to
allow you to write correctly with a single open, but I've not used it. I
think I found the double open info in one of Scott's articles when I was
fighting with it. Like most things, it's really easy once you figure it out.

- --
Pete Hall
pete@xxxxxxxxxxxxxx
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk2mNG8ACgkQXczQcKdXKg7LeQCgoC8K7fp4zxPRagXIc10+F28w
XXUAniJKV1xqVvjwWq2jP+wkj9PRPhmU
=Krij
-----END PGP SIGNATURE-----

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.