Search found 698 matches

by Scott Klement
Tue Jun 18, 2024 10:34 pm
Forum: General
Topic: Heap analyze on IBM i
Replies: 2
Views: 70

Re: Heap analyze on IBM i

Yeah... the way Java reserves memory is very different from C++. Java runs in a Java Virtual Machine that manages the storage for you and runs garbage collection to clean up unused memory. C++ (or C for that matter) pretty much requires you to manage the memory yourself, and doesn't go through a vir...
by Scott Klement
Tue Jun 18, 2024 1:12 am
Forum: HTTPAPI
Topic: Receiving RNQ0222/MCH3601 when using XML-INTO
Replies: 5
Views: 56

Re: Receiving RNQ0222/MCH3601 when using XML-INTO

The XML tag in just characters in the middle of a larger string, it doesn't have it's own pointer or memory address... It makes zero sense that it would be the cause of the problem.
by Scott Klement
Mon Jun 17, 2024 10:46 pm
Forum: HTTPAPI
Topic: Receiving RNQ0222/MCH3601 when using XML-INTO
Replies: 5
Views: 56

Re: Receiving RNQ0222/MCH3601 when using XML-INTO

There isn't a variable in your code called 'repay'. If I understand you correctly, you are stating that the pointer error occurs on this line of code: xml-into repayAmt %xml(S_RESPONSE: 'case=any ns=remove + path=response/repay'); There are only two variables in this line of code. repayAmt and S_RES...
by Scott Klement
Mon Jun 17, 2024 8:49 pm
Forum: YAJL-ILE
Topic: DATA-INTO - ERROR RNQ0356
Replies: 2
Views: 38

Re: DATA-INTO - ERROR RNQ0356

This problem is caused by the fact that many people use languages where a variable doesn't need to be known at compile-time. For example, PHP, JavaScript or Python are interpreted languages... they can read the JSON and build variables with the names in the JSON on-the-fly. RPG, however, is a compil...
by Scott Klement
Mon Jun 17, 2024 8:18 pm
Forum: HTTPAPI
Topic: Receiving RNQ0222/MCH3601 when using XML-INTO
Replies: 5
Views: 56

Re: Receiving RNQ0222/MCH3601 when using XML-INTO

What variable are you getting the RNQ0222 or MCH3601 on? Or, at least, tell me which line of code you're getting it on? When you debug it and look at the variables, which variable can't be retrieved because it doesn't have an address is memory? Troubleshooting a program is not "here's a bunch o...
by Scott Klement
Thu Jun 13, 2024 4:28 am
Forum: HSSFR4
Topic: Protect sheet when xlsx
Replies: 7
Views: 12503

Re: Protect sheet when xlsx

I tried it using the following CLASSPATH (after downloading and putting POI 3.8 in the appropriate directories) ADDENVVAR ENVVAR(CLASSPATH) + VALUE('/home/sklement/java/poi3.8/xlparse.jar+ :/home/sklement/java/poi3.8/poi-3.8-20120326.jar+ :/home/sklement/java/poi3.8/poi-ooxml-3.8-20120326.jar+ :/hom...
by Scott Klement
Thu Jun 13, 2024 3:59 am
Forum: HSSFR4
Topic: Protect sheet when xlsx
Replies: 7
Views: 12503

Re: Protect sheet when xlsx

Indeed, if I look in the documentation for POI 3.6 (which seems to be what you're using) neither the Sheet interface (which I recommended to you) or the XSSFSheet class (which is what you used) contains a protectSheet() method. However, the documentation for poi 3.8 does show this method. And, I rec...
by Scott Klement
Tue Jun 11, 2024 7:02 pm
Forum: HSSFR4
Topic: Protect sheet when xlsx
Replies: 7
Views: 12503

Re: Protect sheet when xlsx

Haven't tried it.... but I suspect you just have to replace the class name in the first post in this thread with SHEET_CLASS from the HSSF_H copybook. The only mistake I see is hard-coding the HSSF class, which means it'll only work for old-school xls sheets. Changing it to SHEET_CLASS should make i...
by Scott Klement
Mon Jun 10, 2024 8:40 pm
Forum: General
Topic: Pointer not set for location referenced - MCH3601
Replies: 9
Views: 962

Re: Pointer not set for location referenced - MCH3601

It looks to me like you are defining WS-MT011CB-PARAMETERS (and the sub-fields within it) in the LINKAGE SECTION. This means that memory will not be reserved for it, so when you try to use it, you'll get a pointer error.

Trying moving this definition to your WORKING-STORAGE SECTION.
by Scott Klement
Fri Jun 07, 2024 4:28 pm
Forum: YAJL-ILE
Topic: Parsing errors with complex JSON
Replies: 2
Views: 190

Re: Parsing errors with complex JSON

YAJLGEN isn't intelligent... it makes a "best guess" at what the RPG definitions should be based on the document. That is why it inserts this comment: // FIXME: // - The field lengths (varchar/packed) are guesses // and should be adjusted based on your business rules. // - The array length...