|
The kind of "double open" demonstrated in the earlier example is only needed pre-V5R2. You can now code it as: fd = open( filename : O_CREAT + O_WRONLY + O_CODEPAGE + O_TEXTDATA + O_TEXT_CREAT : S_IWUSR + S_IRUSR : codePageAsc : 0 ); The fifth parameter (signaled by + O_TEXT_CREAT) is specified as zero which simply says that the data is in the code page of the job. This has been available since V5R2. Delete the file before you run the program in order to ensure the file is recreated. Jon Paris Partner400 www.Partner400.com
As an Amazon Associate we earn from qualifying purchases.
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.