i5_query etcetera will be replaced by db2_exec, i5_program_call should be processed by the new Compatibility Wrapper for IBM i Toolkit for PHP. We have al lot of scripts that used i5_query, so a lot of work, and not the "limited changes needed" as expected.
But, I'l get there in the end, I hope. At this moment I ran into a problem when I use function "i5_data_area_write" (and probably the same issue with "i5_data_area_read".
I'm trying to change the *LDA (Local data area) of the job, before doing a i5_program_call. When changing the *LDA, a library as a parameter is not allowed. The New Toolkit, however is adding the *CURLIB parameter as can be seen in the debug output below.
- Code: Select all
Output XML: <?xml version="1.0" encoding="ISO-8859-1" ?>
<cmd><error><![CDATA[*** error CHGDTAARA DTAARA(*CURLIB/*LDA ( 1 2)) VALUE('23')]]></error>
<version>XML Toolkit 1.7.5</version>
Could this be corrected in a new release of the Toolkit and/or CW?