Scott,
I ran into a couple of issues using the code below. The program
wouldn't compile and complained about too many parameters so I dropped
the :JOB and it did compile. When the program ran though it threw a
"open(): Conversion error." I deleted the original file but it still
threw the error so I changed the code back to the original values. It
compiles and runs and the file can be opened in Wordpad. I have another
text editor that it isn't so friendly with but I think I am out of the
woods.
Thanks for the help. Any idea on the "too many parameters" error on the
compile and the Conversion error (maybe related?)
Pete Helgren
Value Added Software, Inc
www.asaap.com
www.opensource4i.com
On 4/13/2011 3:45 PM, Scott Klement wrote:
** create new file with CCSID 1208
c eval fd = open('/tmp/' + %trim(INFile)
c : O_WRONLY
c + O_TEXTDATA
c + O_CREAT
c + O_EXCL
c + O_CCSID
c + O_TEXT_CREAT
c : S_IRWXU+S_IRWXG+S_IROTH
c : UTF8 : JOB )
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.