Search found 200 matches

by jonboy49
Wed Aug 23, 2023 8:03 pm
Forum: HTTPAPI
Topic: Error code 415 posting JSON messages
Replies: 6
Views: 7500

Re: Error code 415 posting JSON messages

What does the httpapi debug log show? There may be hints there
by jonboy49
Wed Aug 16, 2023 9:59 pm
Forum: YAJL-ILE
Topic: Json document with nested arrays, one without name/id
Replies: 9
Views: 8892

Re: Json document with nested arrays, one without name/id

No argument.

I'll have a think about whether it is worth floating an IDEA to have it added to RPG. No way you'd ever get it in COBOL.
by jonboy49
Wed Aug 16, 2023 9:15 pm
Forum: YAJL-ILE
Topic: Json document with nested arrays, one without name/id
Replies: 9
Views: 8892

Re: Json document with nested arrays, one without name/id

<snip> The problem is that RPG doesn't support multi-dimension arrays, and wants to play in the same arena as other languages. So you're saying that we need something like Dim( 20 : 10 ) or similar? I confess that when working with languages that allow it, I have always found it a little frustratin...
by jonboy49
Wed Aug 16, 2023 4:05 pm
Forum: RPG IV
Topic: XML-INTO error RNX0305, reason code 1
Replies: 4
Views: 7469

Re: XML-INTO error RNX0305, reason code 1

Well as the error message says the path is incorrect - in fact you haven't specified a path at all. Your code would work if your XML looked like this: <return> <COMPANY>1</COMPANY> <CONTRACT></CONTRACT> <CUSTCODE></CUSTCODE> <CUSTOMER>9876543210</CUSTOMER> ... But it has (namespaces removed as per y...
by jonboy49
Wed Aug 16, 2023 3:39 pm
Forum: General
Topic: Variable length records in COBOL LE
Replies: 4
Views: 6197

Re: Variable length records in COBOL LE

I'll repeat my earlier request ... show us some code. There are such things as (pseudo) variable length records that can be used in COBOL - but I don't know if that is what you are using without seeing your code. Also, why are you not simply using CPYFRMIMPF to split the CSV into its component field...
by jonboy49
Wed Aug 16, 2023 3:34 pm
Forum: YAJL-ILE
Topic: Json document with nested arrays, one without name/id
Replies: 9
Views: 8892

Re: Json document with nested arrays, one without name/id

Scott, I was thinking last night that there was not really anything that DATA-INTO could do - so I agree an IDEA is not an option. Agreed that changing YAJLINTO would also add complexity to the learning process. JSON is "better" than XML in part due to its flexibility and simpler rules - b...
by jonboy49
Tue Aug 15, 2023 5:52 pm
Forum: General
Topic: Variable length records in COBOL LE
Replies: 4
Views: 6197

Re: Variable length records in COBOL LE

Kinda difficult to know what might be wrong without you having posted the File specifications and record layouts etc.
by jonboy49
Mon Aug 14, 2023 4:10 pm
Forum: YAJL-ILE
Topic: Json document with nested arrays, one without name/id
Replies: 9
Views: 8892

Re: Json document with nested arrays, one without name/id

I wonder Scott if this isn't worthy of an IDEA for DATA-INTO? Or is it something that possibly could be added to YAJLINTO to supply a "made-up" name to RPG when encountering such an element? RPG does support effectively support multi-dimensional arrays but the inner elements need a group n...
by jonboy49
Tue Aug 08, 2023 8:04 pm
Forum: YAJL-ILE
Topic: A node with no name?
Replies: 4
Views: 4089

Re: A node with no name?

In case you are stuck I found time to play and see if my understanding was correct. Here's my version which handles your noname array just fine. RPG fills in the element count in the PSDS with the number of DS array entries, Similalrly I used countprefix to name the count for the inner array. This w...
by jonboy49
Mon Aug 07, 2023 12:28 am
Forum: YAJL-ILE
Topic: A node with no name?
Replies: 4
Views: 4089

Re: A node with no name?

Off the top of my head this would simply require targeting a DS array with DATA-INTO. I think the RPG will accept any name at the top level but since I’m just doing this on my phone I can’t look it up. Also if that doesn’t work I’m pretty sure YAJLINTO provides a way to name the root ele,ent. It is ...