× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



The light goes on!

When you said you were using open I thought you were using open :) but 
what you're really using is the Integrated File System fopen API option 
from C runtime.  In that case fopen64 should be sufficient (and you do 
need QC2LE).

Bruce Vining




"Bruce Collins" <bruce@xxxxxxxxxx> 
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
04/07/2006 02:41 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






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 


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.