Search found 890 matches

by Scott Klement
Wed Jul 16, 2025 10:32 pm
Forum: YAJL-ILE
Topic: Using CCSID 1208 - accent characters
Replies: 8
Views: 19365

Re: Using CCSID 1208 - accent characters


#‚ÊÁÉÍÁËȬÑÀ‚š‚‘‘“˜“

I recognize that this is probably due to CCSID mismatch between the stream (UTF-8) and the log viewer (819), so that’s understandable.


No, CCSID 819 is a subset of UTF-8. You wouldn't get all garbage like this -- a few characters (perhaps the n-tilde) would not show ...
by Scott Klement
Wed Jul 16, 2025 10:21 pm
Forum: HTTPAPI
Topic: ommSSL_read: timeout
Replies: 4
Views: 500

Re: ommSSL_read: timeout

Most of what you've provided here doesn't seem relevant to the problem.

What is happening is that you are sending an HTTP request, and it is timing out getting a response from the request.

Possible causes:


An improper use of the HTTP_POINT_ADDL_HEADER exit point can send an improperly ...
by Scott Klement
Wed Jul 16, 2025 10:08 pm
Forum: RPG IV
Topic: Show message on line 24 of interactive display after RPG program ends
Replies: 1
Views: 119

Re: Show message on line 24 of interactive display after RPG program ends

*COMP means "completion message" -- i.e. it is what shows when a program completes.

Since you have another program that is ending after the CL, it replaces it because now that program is completing. (Assuming I understand your scenario, anyway.)

You say you are able to see it if you do it as an ...
by Scott Klement
Wed Jul 09, 2025 11:27 pm
Forum: RPG IV
Topic: Trimming prototype/interface variables only works with certain lengths
Replies: 6
Views: 14292

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


If, however, I set my prototype to expect something longer--say, char(50)--but still only provide a string value that is 7 characters long, by default my CALL will still be sending a char(32) (7 chars + 25 blanks), but then some junk values (not necessarily blanks) will be in in the remaining 18 ...
by Scott Klement
Wed Jul 09, 2025 11:20 pm
Forum: HTTPAPI
Topic: v1.52 - Getting "Pointer not set" error on http_url_post_stmf() call.
Replies: 1
Views: 4382

Re: v1.52 - Getting "Pointer not set" error on http_url_post_stmf() call.

What error did you receive? You provided the call stack entries that the error message was sent from/to, but you didn't provide the message itself.
by Scott Klement
Wed Jul 09, 2025 11:09 pm
Forum: YAJL-ILE
Topic: Using CCSID 1208 - accent characters
Replies: 8
Views: 19365

Re: Using CCSID 1208 - accent characters


When we make the http_req, we get a bad request. The API host is telling us that it should be encoded properly.


As far as I can tell, you are generating the JSON, not the remote host. Why would you ask them if their document is encoded properly?


We are using yajl and from what I am reading ...
by Scott Klement
Fri Jun 27, 2025 11:16 pm
Forum: RPG IV
Topic: Trimming prototype/interface variables only works with certain lengths
Replies: 6
Views: 14292

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

Yes, this has always been the case from day 1. The CALL command when used from the command-line ALWAYS defines character fields as CHAR(32) and ALWAYS defines numeric fields as PACKED(15, 5)

Nothing new about this. Its been this way since the AS/400 was originally introduced in 1988.

If you ...
by Scott Klement
Fri Jun 27, 2025 11:09 pm
Forum: RPG IV
Topic: Red x on display file
Replies: 3
Views: 50139

Re: Red x on display file

There are commercial tools that provide a full 5250 emulator (including all the 5250 buttons like error reset) for touch displays. You'll either need to get one of those, or... stop using 5250 and make a better UI for a touch display.
by Scott Klement
Fri Jun 27, 2025 11:07 pm
Forum: HTTPAPI
Topic: Invoke google api using JWT oauth2 with RSASHA256 encryption
Replies: 1
Views: 18298

Re: Invoke google api using JWT oauth2 with RSASHA256 encryption

Hello,

Yes, its possible.

Midrange Dynamics has a product called MDRest4i that has routines to generate JWT tokens using RSASHA-256 that are written in RPG and are aimed at RPG programmers. So that might work, assuming your OAuth2 is using JWT tokens (This is commonplace.)

You could also write it ...
by Scott Klement
Wed Jun 25, 2025 5:10 pm
Forum: HTTPAPI
Topic: Web service & content-type application/x-www-form-urlencoded
Replies: 2
Views: 17255

Re: Web service & content-type application/x-www-form-urlencoded

Please don't convert the debug log to a Word document or PDF, just send the original document unaltered. Changing it to these document formats can change the way blank lines are handled, the way characters are translated, etc. Just send the original document unchanged so I can see the details as ...