Search found 793 matches

by Scott Klement
Fri Oct 04, 2024 3:41 pm
Forum: JDBCR4
Topic: JDBC_ExecUpd limited to 32767A
Replies: 2
Views: 66

Re: JDBC_ExecUpd limited to 32767A

Typically you'd use the JDBC_setString() to set the value of a VARCHAR field. (JDBC_ExecUpd is used for passing the SQL statement, but to set the variable values in the statement, you'd use JDBC_setString) Currently, the JDBC_setString() uses a 32k parameter. But, you have the source code, so you co...
by Scott Klement
Fri Oct 04, 2024 12:17 am
Forum: General
Topic: Calling Python from CLLE with parameters
Replies: 7
Views: 9265

Re: Calling Python from CLLE with parameters

IN THE CALL python YOU MAKE INSTEAD OF USING " ' " TRY TO PASS THEM , EXAMPLE PYHON3 APP.py 'parm1' 'parm2' you shouldn't have any problems You are replying to a thread that is 6 months old and not needing a reply. Your post also doesn't make much sense. It doesn't seem to relate at all t...
by Scott Klement
Wed Oct 02, 2024 3:18 pm
Forum: YAJL-ILE
Topic: DATA-INTO crashing with UTF16 in CTL-OPT
Replies: 6
Views: 332

Re: DATA-INTO crashing with UTF16 in CTL-OPT

I was able to reproduce the problem. This appears to be a bug in RPG (rather than YAJL). RPG is calling YAJLINTO and passing it parameters. One of the parameters is the CCSID of the input data. In your case, the input is the string 's', which is CCSID(*UTF8), so the CCSID it passes to YAJLINTO shoul...
by Scott Klement
Tue Oct 01, 2024 11:24 pm
Forum: RPG IV
Topic: RPG and Java Lists
Replies: 7
Views: 209

Re: RPG and Java Lists

That explains it. Thanks!
by Scott Klement
Tue Oct 01, 2024 10:01 pm
Forum: RPG IV
Topic: RPG and Java Lists
Replies: 7
Views: 209

Re: RPG and Java Lists

Hmmm... yeah, you didn't change how the get() routine works. I guess that error message was misleading. It looks like what you changed had to do with the way you're setting the start/end pages and setting the split at page. Your original setEndPage was calling the setStartPage Java method, which cou...
by Scott Klement
Tue Oct 01, 2024 9:53 pm
Forum: YAJL-ILE
Topic: DATA-INTO crashing with UTF16 in CTL-OPT
Replies: 6
Views: 332

Re: DATA-INTO crashing with UTF16 in CTL-OPT

Hello, Thanks for providing an example. Unfortuantely, if I wanted to use this, it appears that I would have to pay for a commercial API. Can you provide a sample program that can be used to reproduce the problem? I don't need to call the API. I don't need to do any useful work. Feel free to just ha...
by Scott Klement
Tue Oct 01, 2024 8:34 pm
Forum: RPG IV
Topic: RPG and Java Lists
Replies: 7
Views: 209

Re: RPG and Java Lists

Java exception "java.lang.NoSuchMethodError: java/util/List.get(I)Ljava/util/Object;" when calling method "get" with signature "" in class "java.util.List". The error happens on this line pdfPartialDocument = get(splitRet : 0); I've tried 0 and 1 as I wasn't ...
by Scott Klement
Mon Sep 30, 2024 4:03 pm
Forum: HTTPAPI
Topic: Mutual TLS for HTTPAPI. RPGLE Rest API
Replies: 3
Views: 233

Re: Mutual TLS for HTTPAPI. RPGLE Rest API

Yes, that's the right idea. In the Digital Certificate Manager, you upload it as a client certificate. (uploading any necessary CA certificates first). Then you create an application profile and assign the client certificate to it, and set any options that you wish within that profile. You give the ...
by Scott Klement
Sat Sep 28, 2024 6:52 am
Forum: HTTPAPI
Topic: Mutual TLS for HTTPAPI. RPGLE Rest API
Replies: 3
Views: 233

Re: Mutual TLS for HTTPAPI. RPGLE Rest API

Hello, I assume by "mutual TLS" you mean that you wish to use TLS with client-side certificates? To do so, you should call https_init() with an application ID prior to performing any requests. You should configure that application ID in the IBM i digital certificate manager for client-side...
by Scott Klement
Sat Sep 28, 2024 6:42 am
Forum: YAJL-ILE
Topic: DATA-INTO crashing with UTF16 in CTL-OPT
Replies: 6
Views: 332

Re: DATA-INTO crashing with UTF16 in CTL-OPT

I'm not 100% following you. Can you tell me what I would need to do to reproduce this problem? Which fields are defined as UCS-2 without a CCSID keyword (which would be the only thing affected by the CTL-OPT you posted.) How are these fields used? If at all possible, provide an example that reproduc...