Search found 254 matches

by jonboy49
Tue Nov 25, 2025 6:51 pm
Forum: General
Topic: Help to get data from storage.googleapis.com
Replies: 7
Views: 25481

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.
by jonboy49
Mon Nov 24, 2025 11:59 pm
Forum: General
Topic: Help to get data from storage.googleapis.com
Replies: 7
Views: 25481

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

Can't help a lot with this but I noticed that switching from the old ** SYSTOOLS.HTTPgetCLOBverbose to QSYS2.HTTP_GET allowed me to get the
response back, which clearly states that: "That’s an error. Your client has issued a malformed or illegal request. That’s all we know."

One of the posts here ...
by jonboy49
Wed Sep 24, 2025 5:32 pm
Forum: HTTPAPI
Topic: Which version support IBM i 7.2
Replies: 4
Views: 45921

Re: Which version support IBM i 7.2

Well - according to Scott's site, the latest version runs on 6.1, so you should have no issues. See https://www.scottklement.com/httpapi/

Where most people encounter issues with out-of-date releases is that useful RPG features like DATA-INTO and DATA-GEN may not be available.
by jonboy49
Wed Aug 13, 2025 10:26 pm
Forum: YAJL-ILE
Topic: YAJL_OBJECT_LOOP not working on second level group
Replies: 5
Views: 125292

Re: YAJL_OBJECT_LOOP not working on second level group

Your basic problem is that you are treating return_message as an object but it is an array. So you need to work through it using YAJL_array_loop and _then_ YAJL_OBJECT_LOOP for its elements. It appears that return_message is a single element so heaven knows why the doc was designed like this but ...
by jonboy49
Wed Aug 13, 2025 9:13 pm
Forum: YAJL-ILE
Topic: YAJL_OBJECT_LOOP not working on second level group
Replies: 5
Views: 125292

Re: YAJL_OBJECT_LOOP not working on second level group

I'll try to look at your code later, but is there a reason why you are using the "raw" YAJL APIs? I just ran your JSON through YAJLGEN, and the resulting DATA-INTO works perfectly on this document.
by jonboy49
Sun Jun 29, 2025 5:34 pm
Forum: RPG IV
Topic: Opening a 5250 web page with a link longer than 123 characters
Replies: 5
Views: 61987

Re: Opening a 5250 web page with a link longer than 123 characters

It always saddens me when programmers are forced to find "solutions" for non-existent problems. The answer is so easy - update to a supported release.

But if the powers that be deem this impossible the only thiong I can think of is to load a batch file on each PC and invoke that with parms for the ...
by jonboy49
Fri Jun 27, 2025 11:40 pm
Forum: RPG IV
Topic: Trimming prototype/interface variables only works with certain lengths
Replies: 6
Views: 78443

Re: Trimming prototype/interface variables only works with certain lengths

Scott is correct - but these days there is another option which is to use the ability to define the data type and length of parms on a call. Like so:

CALL PGM(XYZ) PARM(('ABC' (*CHAR 100)))

In this case, the system will pass a 100-character field blank-padded as expected.
by jonboy49
Fri Jun 27, 2025 3:54 pm
Forum: RPG IV
Topic: Opening a 5250 web page with a link longer than 123 characters
Replies: 5
Views: 61987

Re: Opening a 5250 web page with a link longer than 123 characters

That limit disappeared back in release 7.2. Are you running a really old release? The current limit is 1,023 characters. Of course you will also need to be running a 5250 emulator package that is aware of this update.
by jonboy49
Tue Jun 10, 2025 10:32 am
Forum: YAJL-ILE
Topic: YAJLINTO handling varying number of array records
Replies: 9
Views: 133889

Re: YAJLINTO handling varying number of array records

Glad to hear you have it working. For the path option the following works. Note the use of the element count from the psds. RPG populates this when you are parsing into an array as there is no opportunity to add a countprefix field.

dcl-ds pgmStat psds;
elements int(20) pos(372);
end-ds;

Dcl-ds ...
by jonboy49
Thu Jun 05, 2025 7:14 pm
Forum: YAJL-ILE
Topic: YAJLINTO handling varying number of array records
Replies: 9
Views: 133889

Re: YAJLINTO handling varying number of array records

Look into the countprefix option. That is what you need to use to get a count of the actual number. Can’t type code on my phone or I’d try to give you an example.

If you really only want that data you should also look at using the path option to direct the parse to the bit though want.