Search found 249 matches

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: 1161

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: 4
Views: 1565

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: 1161

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: 23895

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: 23895

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.
by jonboy49
Tue Apr 29, 2025 4:16 pm
Forum: HSSFR4
Topic: Very slow (? hang ?) on SS_SAVE
Replies: 2
Views: 16973

Re: Very slow (? hang ?) on SS_SAVE

I have no clue as to a direct answer to your problem - but I can't help but wonder if there is not a better approach. Frankly I'm amazed that the process didn't just blow up at some point.

A multi-million-row spreadsheet seems insane - nobody can usefully work with that.

Can it not be grouped to ...
by jonboy49
Thu Apr 24, 2025 5:48 pm
Forum: YAJL-ILE
Topic: Trouble reading in an array
Replies: 1
Views: 7291

Re: Trouble reading in an array

Been a long time since I used the "raw" YAJL APIs. I tend to use DATA-INTO with YAJLINTO for most stuff.

That said - I seem to recall that YAJL_object_find will only locate children of the passed node. So you would need to first locate the "data" node and then from there locate the child "jobs ...
by jonboy49
Sun Apr 20, 2025 7:41 pm
Forum: YAJL-ILE
Topic: Read Payload from IFS File to a string in RPGLE
Replies: 5
Views: 14036

Re: Read Payload from IFS File to a string in RPGLE

I know you have been working on an alternative approach - although how SQL helped I'm not sure - but as far as I can see your second approach works just fine.

ctl-opt BNDDIR('YAJL')
OPTION(*SRCSTMT:*NODEBUGIO: *NOSHOWCPY);

/copy yajl/qrpglesrc,yajl_h

Dcl-S docNode like(yajl_val);
Dcl-S node ...
by jonboy49
Tue Apr 15, 2025 3:09 pm
Forum: YAJL-ILE
Topic: yajl_stmf_load_tree returning open and file name conversion error
Replies: 1
Views: 8955

Re: yajl_stmf_load_tree returning open and file name conversion error

CCSID 65533? That's pretty unusual - in fact I don't think I've ever seen it before. According to IBM it is only for user-definable code sets. Which would indicate that the company is using their own conversion tables. Which might help explain this.

As to DATA-INTO, simply point Scott's YAJLGENR4 ...
by jonboy49
Thu Apr 10, 2025 4:32 pm
Forum: HTTPAPI
Topic: Getting error: SetError() #22: open(): No such path or directory.
Replies: 2
Views: 16543

Re: Getting error: SetError() #22: open(): No such path or directory.

It looks to me as if you are mixing up your APIs.

The second parm for http_get is the filename where you want the retrieved response placed. So hardly any wonder that you are being told the file doesn't exist because assumedly it is all blanks.

Maybe you need http_req?