Search found 263 matches

by jonboy49
Mon May 18, 2026 3:57 pm
Forum: General
Topic: Calling an ile rpg service program procedure that returns a value from a java class
Replies: 2
Views: 30814

Re: Calling an ile rpg service program procedure that returns a value from a java class

If a Rest Service is not an option then only other thing would be to recompile the procedure specifying RTNPARM on the PR. It won’t affect the RPG callers but will allow the Java to work with the return value as an extra parm.

Those are your only options - you can’t make the Java classes do stuff ...
by jonboy49
Tue May 05, 2026 4:03 pm
Forum: General
Topic: Number of elements for an array with DIM(*AUTO) in debug
Replies: 2
Views: 27623

Re: Number of elements for an array with DIM(*AUTO) in debug

This should really be in the RPG forum but ...

In debug simply use _QRNU_VARDIM_ELEMS_arrayname to see the number of active elements. It cannot be changed - only viewed.
by jonboy49
Mon May 04, 2026 10:29 pm
Forum: RPG IV
Topic: IFS Write fails when using codepage 1208
Replies: 8
Views: 104425

Re: IFS Write fails when using codepage 1208

Sorry - I didn't notice the missing O_TEXT_CREAT until I tried to get your code working. The code I posted was just a condensed version of your original. I never attempted to run it.

The only IFS E Book that I am aware of is Scott's - here: https://www.scottklement.com/rpg/ifs.html

As far as I ...
by jonboy49
Mon May 04, 2026 10:29 pm
Forum: RPG IV
Topic: IFS Write fails when using codepage 1208
Replies: 8
Views: 104425

Re: IFS Write fails when using codepage 1208

Sorry - I didn't notice the missing O_TEXT_CREAT until I tried to get your code working. The code I posted was just a condensed version of your original. I never attempted to run it.

The only IFS E Book that I am aware of is Scott's - here: https://www.scottklement.com/rpg/ifs.html

As far as I ...
by jonboy49
Mon May 04, 2026 6:16 pm
Forum: RPG IV
Topic: IFS Write fails when using codepage 1208
Replies: 8
Views: 104425

Re: IFS Write fails when using codepage 1208

You forgot to use O_TEXT_CREAT on the open ... without it no conversion takes place. This code works as you want it to. It is free-form - I cannot force myself to work in fixed form any more.


flags = O_CREAT + O_WRONLY + O_TRUNC + O_CCSID + O_TEXTDATA + O_TEXT_CREAT;
fd = open('/home/paris ...
by jonboy49
Fri May 01, 2026 2:56 pm
Forum: RPG IV
Topic: IFS Write fails when using codepage 1208
Replies: 8
Views: 104425

Re: IFS Write fails when using codepage 1208

You're using a very outdated method for checking/creating/openining the file. Had you used the single step approach the code would be much simpler and this naming issue could not occur.

You can open, clear (truncate) an existing file, set code page, and translate all in a single open. Here's the ...
by jonboy49
Mon Apr 06, 2026 7:03 pm
Forum: RPG IV
Topic: Seeking recommendations for ILE RPG training
Replies: 1
Views: 56092

Re: Seeking recommendations for ILE RPG training

There are myriad sources for picking up RPG IV and ILE, but Jim Buck's book is probably the best option. There will be some bits you can skip past based on your old RPG knowledge and understanding of the system in general. You can find the book here: https://www.amazon.com/Programming-ILE-RPG-Jim ...
by jonboy49
Thu Jan 29, 2026 6:03 pm
Forum: RPG IV
Topic: Trouble managing OVRDBF inside a program
Replies: 3
Views: 197470

Re: Trouble managing OVRDBF inside a program

I have always had issues with OVR and SQL. Given that you know the name of the library you need why not use SET SCHEMA - if SQL ignores that you really have an issue! Another option would be to pass the required library name to the function and use it to qualify all table references.
by jonboy49
Thu Dec 18, 2025 9:02 pm
Forum: HSSFR4
Topic: Autofilter Java Error Help
Replies: 2
Views: 348213

Re: Autofilter Java Error Help

I don't see how it could work when you specify the cell address range as Interval like(Jstring). It has to refer to an object of class CellRangeAddress. You don't show your proto for CellRangeAddress.
by jonboy49
Tue Nov 25, 2025 6:51 pm
Forum: General
Topic: Help to get data from storage.googleapis.com
Replies: 7
Views: 627264

Re: Help to get data from storage.googleapis.com

No idea why you are stuck on 7.2 but ...

I still think you need to look at the formation of the request and/or the headers. The response I got - using your exact request - was that the request was mail-formed.