|
For FILEA.txt I would just use the open (or open64) API and not bother with the C fopen library function at all. And FILEB would just be an F spec. You should be able to find lots of examples in the archives for open (the System API open that is) :) Thanks, Bruce "Bruce Collins" <bruce@xxxxxxxxxx> Sent by: rpg400-l-bounces@xxxxxxxxxxxx 04/07/2006 02:59 PM Please respond to RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx> To "'RPG programming on the AS400 / iSeries'" <rpg400-l@xxxxxxxxxxxx> cc Subject RE: IFS File > 2 GB What I would like to do is create a file(FILEA.txt) in the IFS. Open it. Read from another file(FILEB) that is in a native library like QGPL and populate FILEA.txt with the contents of QGPL/FILEB. I really appreciate the help. This is new for me and you guys have been great. Thanks Hoss -----Original Message----- From: Bruce Collins [mailto:bruce@xxxxxxxxxx] Sent: Friday, April 07, 2006 2:41 PM To: 'RPG programming on the AS400 / iSeries' Subject: RE: IFS File > 2 GB Bruce, The current example show the prototype as follows. D open Pr * ExtProc( '_C_IFS_fopen' ) D * Value Options( *String ) D * Value Options( *String ) Remember I am using examples and if there is a better way then I would love to know it. -----Original Message----- From: Bruce Vining [mailto:bvining@xxxxxxxxxx] Sent: Friday, April 07, 2006 2:06 PM To: RPG programming on the AS400 / iSeries Subject: Re: IFS File > 2 GB Basically rather than using open() you use open64(), creat() becomes creat64(), etc. These '64' APIs are all in the Information Center under Integrated File System APIs. Bruce Vining "Bruce Collins" <bruce@xxxxxxxxxx> Sent by: rpg400-l-bounces@xxxxxxxxxxxx 04/07/2006 12:19 PM Please respond to RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx> To "'RPG programming on the AS400 / iSeries'" <rpg400-l@xxxxxxxxxxxx> cc Subject IFS File > 2 GB I have just started writing a program that uses C funtions to write to the IFS. I have read where the IFS has a limit of 2 GB unless you specify Large File type. Could someone supply me with an example of how this looks in the RPGLE program. Thanks Hoss -- This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
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.