Problem with i5_data_area_write

General discussion on Zend Server for IBM System i

Problem with i5_data_area_write

Postby nl059810 on Wed Jan 16, 2013 2:54 pm

I'm curently rewriting all our scripts to use the new Toolkit in Zendserver 5.6.0., trying to become free of the Easycom Toolkit for php.

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" ?>                                   
<script>                                                                                   
<cmd><error><![CDATA[*** error CHGDTAARA DTAARA(*CURLIB/*LDA ( 1 2)) VALUE('23')]]></error>
<error>202</error>                                                                         
<version>XML Toolkit 1.7.5</version>

Could this be corrected in a new release of the Toolkit and/or CW?
Henri Timmermans, Software Engineer at FH Holding BV
Internet : http://www.exa-holding.com
LinkedIn: http://www.linkedin.com/pub/henri-timmermans/14/b39/236
nl059810
 
Posts: 13
Joined: Thu Sep 03, 2009 10:29 pm

Re: Problem with i5_data_area_write

Postby aseiden on Fri Jan 18, 2013 9:55 pm

Good observation. I'll take a look.

Alan
aseiden
 
Posts: 840
Joined: Thu Apr 09, 2009 5:45 pm

Re: Problem with i5_data_area_write

Postby aseiden on Mon Jan 21, 2013 4:47 am

You're right. Data areas *LDA, *GDA and *PDA should not be qualified with a library.

I think I can get this corrected in the next minor release (probably 1.4.1).

If you would like to try a preview of the fix, send me a note at alan@alanseiden.com.

Alan
aseiden
 
Posts: 840
Joined: Thu Apr 09, 2009 5:45 pm

Re: Problem with i5_data_area_write

Postby nl059810 on Mon Jan 21, 2013 8:37 pm

Alan,

Thanks. I'll wait for the release. No problem...
Henri Timmermans, Software Engineer at FH Holding BV
Internet : http://www.exa-holding.com
LinkedIn: http://www.linkedin.com/pub/henri-timmermans/14/b39/236
nl059810
 
Posts: 13
Joined: Thu Sep 03, 2009 10:29 pm


Return to Zend Server for IBM i

Who is online

Users browsing this forum: No registered users and 4 guests

cron