Search found 662 matches
- Sun May 05, 2024 12:37 am
- Forum: CL
- Topic: Prototype CL subprocedure in a service program
- Replies: 2
- Views: 31
Re: Prototype CL subprocedure in a service program
Every CLLE module has exactly one procedure, named the same as the module name. I have never done this but have to think that dcl-pr would include EXTPROC with the name of the module (same as its procedure) in it. Yes, if you use EXTPROC it should be the same as the module name for a CL (or Cobol) ...
Re: OUATH2
As far as I can tell there isn't a problem, here. If you want to see the whole string in the green-screen debugger, you can type this at the debuggger's command line: eval MY-VARIABLE:C 1483 That will show 1483 bytes of the variable. (Keep in mind that a VARCHAR variable starts with either 2 or 4 by...
Re: OUATH2
How did you come to the conclusion that you've only received 1021? The ILE Debugger in the operating system will, by default, only show 1024 characters. I could see how you might confuse that for only receiving 1021 (with a slight miscount) characters. Could that be what you're seeing? The only othe...
- Mon Apr 29, 2024 9:32 pm
- Forum: HTTPAPI
- Topic: Identifying CommSSL_Read timeout in RPGLE
- Replies: 1
- Views: 65
Re: Identifying CommSSL_Read timeout in RPGLE
rc = 0 generally means that a timeout has occurred. It may be a timeout from a different part of the code, though, it might not be a read timeout specifically. If you specifically want to identify a read timeout, you can call http_error() to get the error number. The error number constant HTTP_BRTIM...
- Thu Apr 25, 2024 3:21 am
- Forum: General
- Topic: Calling Python from CLLE with parameters
- Replies: 4
- Views: 2718
Re: Calling Python from CLLE with parameters
Python WILL work.. it's just more complicated than other solutions. I'm just not understanding why you'd want to use it for this. If there's actually some stuff going on that makes Python a better choice because you're using some python modules you installed via pip, or you are using a large valuabl...
- Wed Apr 24, 2024 9:59 pm
- Forum: General
- Topic: Calling Python from CLLE with parameters
- Replies: 4
- Views: 2718
Re: Calling Python from CLLE with parameters
If you like the idea of using UNIXCMD, there's a presentation with examples here: https://www.scottklement.com/presentations/#UNIXCMD If you liked the idea of reading the IFS directly with RPG, there's an example of one method here (albeit, this is a very old example) https://www.scottklement.com/rp...
- Wed Apr 24, 2024 9:55 pm
- Forum: General
- Topic: Calling Python from CLLE with parameters
- Replies: 4
- Views: 2718
Re: Calling Python from CLLE with parameters
Unix programs are not meant to be able to send output through their parameters. (Though, the way you're doing it wouldn't work even for a native IBM i program where output can be returned via parameters... but since Unix programs can't return output via parameters, fixing that wouldn't help.) Instea...
- Mon Apr 22, 2024 5:25 pm
- Forum: HSSFR4
- Topic: Copy Sheet (workbook.cloneSheet)
- Replies: 1
- Views: 218
Re: Copy Sheet (workbook.cloneSheet)
I am trying to add functionality to be able to copy a sheet (workbook.cloneSheet) and to delete a sheet (workbook.removeSheet). How is this done? What do you mean? Are you asking how to call Java code from RPG? It is described in the ILE RPG Programmer's Guide. I have tried to add a method by copyi...
- Mon Apr 22, 2024 5:17 pm
- Forum: RPG IV
- Topic: MCH3601 unmonitored by HTTPAPIR4
- Replies: 7
- Views: 608
Re: MCH3601 unmonitored by HTTPAPIR4
I'm sure the problem you solved was to fix the 404 error. But it doesn't explain why you'd get an MCH3601... There were fixes in the past to fix MCH3601 in HTTPAPI.
- Mon Apr 22, 2024 5:48 am
- Forum: RPG IV
- Topic: MCH3601 unmonitored by HTTPAPIR4
- Replies: 7
- Views: 608
Re: MCH3601 unmonitored by HTTPAPIR4
What version of HTTPAPI?