|
On 22/03/2005, at 8:53 AM, Stephen More wrote:
I have not gotten it to work yet, but I think I may have found the answer:
http://www-1.ibm.com/servers/enable/site/porting/iseries/overview/ faq_files.html
In ILE, when I tried fopen(), fclose(), etc. on IFS stream files in QOpenSys they do not seem to work, but the low level calls do not have any problems. Is there any difference in these two types of calls?
Yes. The two types of calls are different in the ILE environment. The calls like fopen(), fclose(), fread() work on the database files whereas low-level calls like open(), close(), read() work on the stream files. The low level calls can work on the database files by specifying the full qualified name (i.e. /qsys.lib/< library>.lib/< file>.file/< mbr>.mbr). Calls like fopen(), fclose, and fread() can also work on the stream files in QOpenSys if *IFSIO is specified for "System Interface Option" on CRTCMOD command. Once the program is created with *IFSIO option absolute or relative path names can be specified with fopen(), fclose() etc calls. However, after specifying *IFSIO these call will not work on the native database file system even if fully qualified path name is specified.
This is normal behaviour and is described in the C Programmers Guide.
Regards, Simon Coulter. -------------------------------------------------------------------- FlyByNight Software AS/400 Technical Specialists
http://www.flybynight.com.au/ Phone: +61 3 9419 0175 Mobile: +61 0411 091 400 /"\ Fax: +61 3 9419 0175 \ / X ASCII Ribbon campaign against HTML E-Mail / \ --------------------------------------------------------------------
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.