Search found 884 matches

by Scott Klement
Tue Jun 28, 2022 5:13 pm
Forum: CSVR4
Topic: New version but old error not corrected? and new function not implemented.
Replies: 6
Views: 212782

Re: New version but old error not corrected? and new function not implemented.

I'm not familiar with CSV_loadbuffer, but there is an CSV_openbuf in the current release. Will that help?
by Scott Klement
Tue Jun 28, 2022 5:10 pm
Forum: YAJL-ILE
Topic: Problem copying a node to a stream file
Replies: 7
Views: 15401

Re: Problem copying a node to a stream file

I am not familiar with the message "ERROR decoding EStdString" -- I haven't seen that before. I searched the source code for YAJL, and nothing reports that error.

I did a Google, and the only matches I find are with the IBM i debugger -- perhaps this is coming from the debugger?
by Scott Klement
Tue Jun 21, 2022 8:56 pm
Forum: RPG IV
Topic: Binary to Integer
Replies: 3
Views: 10660

Re: Binary to Integer

4629771061636907072 is hex x'4040404040404040'

So what you are seeing are blanks in the space where you are expecting the field to be. Either you're failing to read the record, or you've done something unusual in the way you've defined things in RPG.

Like Jon said, it's difficult to help you since ...
by Scott Klement
Fri Jun 17, 2022 2:08 am
Forum: HTTPAPI
Topic: This page requires a user-id & password
Replies: 1
Views: 7797

Re: This page requires a user-id & password

Hi Mark,

This error typically means that you need to send a userid/password to log into the site. This is normally done by setting authentication credentials prior to making your POST request. in HTTPAPI, they are set with the http_setAuth() subprocedure.

http_setAuth(HTTP_AUTH_BASIC: 'myUserId ...
by Scott Klement
Thu Jun 16, 2022 12:44 am
Forum: YAJL-ILE
Topic: Problem copying a node to a stream file
Replies: 7
Views: 15401

Re: Problem copying a node to a stream file

YAJL_stringify() will let you output everything at a given node to a variable.
by Scott Klement
Thu Jun 16, 2022 12:41 am
Forum: YAJL-ILE
Topic: utilizing an unnamed array of objects
Replies: 2
Views: 7487

Re: utilizing an unnamed array of objects

You can't just declare a standalone field named num_jsonDoc like that.

Think about how your code tells DATA-INTO which variable to load from the JSON document. It does this:

data-into jsonDoc . . .


Since num_jsonDoc isn't a part of jsonDoc, it has no way to know that it's related in any way ...
by Scott Klement
Thu Jun 16, 2022 12:25 am
Forum: YAJL-ILE
Topic: Combining JSON
Replies: 5
Views: 9590

Re: Combining JSON

Having said that... if you decide that you still want to do it this way, I think your key mistake is thinking of each program as being completely separate.

i.e. you are thinking that the subprogram can call yajl_genOpen(), and that will generate a completely separate document from the main program ...
by Scott Klement
Thu Jun 16, 2022 12:17 am
Forum: YAJL-ILE
Topic: Combining JSON
Replies: 5
Views: 9590

Re: Combining JSON

I must admit, I don't like this design.


Each program depends on each other, so even though they are in separate programs, they act like one big routine because the subprogram expects the main program to be at a particular point in the document, and expects it to do things like deallocate the ...
by Scott Klement
Mon Jun 13, 2022 7:43 am
Forum: YAJL-ILE
Topic: parse error: premature EOF
Replies: 8
Views: 42543

Re: parse error: premature EOF

I tried your JSON document with yajl_buf_load_tree, and it worked perfectly for me.

Something is wrong with your code that reads or the json and feeds it into yajl. Since we have no idea how your code works, we can't begin to help you. Provide a complete program that reproduces the problem so we ...
by Scott Klement
Mon Jun 13, 2022 7:14 am
Forum: YAJL-ILE
Topic: Combining JSON
Replies: 5
Views: 9590

Re: Combining JSON


What I noticed was that I had to make sure that the code that did the yajl_buf_load_tree was carried out before the yajl_genOpen or else it would fail. I think the issue is that once yajl_genOpen has been run the the generator handle is gGenerator whereas if yajl_genOpen hasn't be run the yajl_buf ...