Search found 209 matches

by jonboy49
Mon May 13, 2024 6:42 pm
Forum: HTTPAPI
Topic: DATA-INTO with YAJLINTO
Replies: 4
Views: 21

Re: DATA-INTO with YAJLINTO

Hmmmm very strange.

Did you actually try running my code as-is ? That would at least rule out the possibility of a missing PTF or something,
by jonboy49
Mon May 13, 2024 5:53 pm
Forum: HTTPAPI
Topic: DATA-INTO with YAJLINTO
Replies: 4
Views: 21

Re: DATA-INTO with YAJLINTO

I just tested your basic scenario and encountered no problem. The trackingid populated as expected. This is my code: **free Dcl-ds List qualified; riskScore varchar(2); trackingid varchar(32); end-ds; dcl-s testJson varchar(200) inz('{"riskScore":66,"pastFireOverview":[],- "...
by jonboy49
Wed May 08, 2024 5:31 pm
Forum: HTTPAPI
Topic: Unable to compile the program which uses Httpapi
Replies: 6
Views: 133

Re: Unable to compile the program which uses Httpapi

<snip> I'm getting the error 'RNF5409' - The prototyped call returns a value which is lost when CALLP is used. That is not an error It is a warning and should be ignored. When i look into the log im getting the below messages. It looks like authority issue. Message . . . . : *SRVPGM object HTTPAPIR...
by jonboy49
Sun Apr 21, 2024 3:20 pm
Forum: RPG IV
Topic: MCH3601 unmonitored by HTTPAPIR4
Replies: 7
Views: 1194

Re: MCH3601 unmonitored by HTTPAPIR4

It is pretty clear from the returned error text that you have made an error in the URL. Depending on the service, "error" could include credentials but more likely the URL itself. You have changed pretty much everything about the relevant part of the program if what you said is true "...
by jonboy49
Thu Apr 18, 2024 1:27 pm
Forum: YAJL-ILE
Topic: Clarification on - YAJL_OBJECT_FIND
Replies: 2
Views: 1066

Re: Clarification on - YAJL_OBJECT_FIND

Unless I misunderstand you, you have answered your own question.

YAJL_OBJECT_FIND returns a pointer so one way to test is simply:

Code: Select all

node = YAJL_OBJECT_FIND(.....);

if node <> *Null;
   // node is valid
else;
   // node not found
endif;
by jonboy49
Thu Apr 11, 2024 4:36 pm
Forum: HTTPAPI
Topic: OUATH2
Replies: 18
Views: 4755

Re: OUATH2

Glad Scott was able to sort it for you - he is much (much, much) more knowledgeable about this stuff than I am. Hopefully, your OAUTH transition will be as smooth as mine has been with Zoom. Once I had the token logic sorted, changing the individual APIs calls was pretty easy - so far anyway! Good l...
by jonboy49
Wed Apr 10, 2024 10:06 pm
Forum: HTTPAPI
Topic: OUATH2
Replies: 18
Views: 4755

Re: OUATH2

How did you set the required form data? You haven't shown that code.
by jonboy49
Mon Apr 08, 2024 7:50 pm
Forum: HTTPAPI
Topic: Changing the log file
Replies: 2
Views: 583

Re: Changing the log file

Thanks, Scott - yes I meant the debug file and for some reason it did not occur to me to turn it off before changing the name. I plead senility and just too many things going on in my life! I can understand your confusion re cycling the server. The HTTPAPIs are called from a web server job and I tho...
by jonboy49
Sat Apr 06, 2024 6:05 pm
Forum: HTTPAPI
Topic: Changing the log file
Replies: 2
Views: 583

Changing the log file

We have experienced some random weirdness when using Zoom APIs recently. As a result, I am logging everything as I can't predict when/what will cause a problem. Of course, the log files get huge and I would like to switch them at least daily. I have modified my code to specify a different log file n...
by jonboy49
Mon Mar 25, 2024 7:26 pm
Forum: RPG IV
Topic: Converting Hundred Year Date Plus Time to Timestamp
Replies: 6
Views: 4062

Re: Converting Hundred Year Date Plus Time to Timestamp

Then the code I gave you should work. Just substitute your own variable names for the numDate and numTime.

IF - the number represents HHMMSS. If it doesn't then we need to know what it does contain!