All,
I am attempting to create a new file on the IFS using Scott Klements
prototypes in the IFSIO_H source member from his e-book.
The following is a part of the code showing the defines and the open:
* Copy prototypes for IFS processing
/Copy QCopyBks,IFSIO_H
/Copy QCopyBks,IFSTEXT_H
* Copy API Error constants and prototypes
/Copy QCopyBks,ErrNo_H
D Path_Name S 256A Varying
D File_Name S 128A Varying
D openflags S 10I 0
D mode S 10U 0
D ccsid S 10U 0
D txtcreatid S 10U 0
// Pointer to file name
D File S 10I 0
// Pointer to buffer for IFS Write
D p_writeBuf S * Inz(%Addr(WriteBuf))
// Buffer area for IFS Write
D Writebuf S 80A
D ErrMsg S 80A
D Rc S 10I 0
/Free
*InLr = *On;
Path_Name = '/home/vaijy';
File_Name = 'TEST.CSV';
// Create file, Write Only, Convert Text to Code Page, Open in TEXT mode,
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.