×
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.
What error you get ? "Ask bob" to integrate your code with proper error handling asking for the errno variable and detailed error handling, see what the LLM comes up with.Maybe some ccsid mess.
The C open is a variable argument function, you can inspect/pick or include the prototype usually from QSYSINC/QRPGLESRC IFS or FCNTL that mimick the C includes.
On Sunday, January 25, 2026 at 01:07:28 AM GMT+1, Jon Paris <jon.paris@xxxxxxxxxxxxxx> wrote:
I'm playing with Bob and asked him (it?) to create an RPG program to read an IFS file.
I'm familiar with all of the required APIs (or thought I was) - but the Bob program will not open the file and I'm danged if I can see why. Here's an extract of the code which demonstrates the issue.
Ctl-Opt DftActGrp(*No);
// C API Prototypes - renamed to avoid opcode conflicts
Dcl-Pr openFile Int(10) ExtProc('open');
*N Pointer Value Options(*String);
*N Int(10) Value;
*N Uns(10) Value Options(*NoPass);
*N Uns(10) Value Options(*NoPass);
End-Pr;
// Constants for open()
Dcl-C O_RDONLY 1;
Dcl-C O_TEXTDATA 16777216;
This mailing list archive is Copyright 1997-2026 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.