Sent date: 06/05/2008
From: lindaBztk
Message:I haven't worked on DB2 store procedures, but I am just wondering if you
modify the schema manually, e.g. change Table1 to any name you like, would it
affect the executing of that store proc? If not, you can give it any name to
the output table from SP.
Sent date: 06/05/2008
From: Mark Brimble
Message:Thanks, I have moved on a bit from here. I tried your suggestion some time
back and it did not seem to work. Recently I tried to do some things I do
routinely witn the SQL adapter and have discovered the DB2 is rather limited
e.g. I wanted to generate a schema with a second element. If use the SQL
adapter wizard with a stored proc that has a SELECT statement that has a JOIN
to another table I get schemas of this form. If i do the same with the DB2
adapter wizard I just get everything as a list of attributes under one
element namely 'Table1'. I guess the DB2 wizard behaves quite differently
from the SQL adapter wizard. The DB2 adapter does not seem to generate XML
schema without any element other than 'Table1".
"lindaBztk" wrote:
Show quoted text
> I haven't worked on DB2 store procedures, but I am just wondering if you
> modify the schema manually, e.g. change Table1 to any name you like, would it
> affect the executing of that store proc? If not, you can give it any name to
> the output table from SP.
>
>
Sent date: 08/19/2008
From: samadkhan
Message:Hi Mark,
This will not be much help but within a test sp I modified the results to
return the Table as a name I specified. After using the DB2 Adapter
generation wizard it still generates Table1.
Not useful.
If I find anything I will post the information here.
Enjoy,
Samad
Sent date: 08/21/2008
From: Mark Brimble
Message:Thanks.
"Mark Brimble" wrote:
Show quoted text
> Does anyone know where the name of Table1 element in the resulting generated
> schemas comes from? Do you have any control over this or is it it all
> determined by the wizard? I am involved in my first project integrating an
> AS400 system with other systems using BizTalk. Everything is going amazingly
> well but I am trying to understand what the DB2 generation wizards are doing
> in a bit more detail.
>
> I get a xml like;
>
> <WorkAssignments xmlns="http://DTA.BT_GET_WORKASSIGNMENTS">
> <Table1 QUEUE="01" ASSIGNMENT="201729" DIRECTIVE="1" />
> </WorkAssignments>
>
> when I generate a DB2 receive adapter from a stored procedure of the general
> pattern;
> CREATE PROCEDURE DTA.BT_GET_WORKASSIGNMENTS ( )
> LANGUAGE SQL
> MODIFIES SQL DATA
> BEGIN
>
> --Get some work assigments and remember them
>
> --Get all the next Work assignments and associated directives
> P1 : BEGIN
> DECLARE wa_CURSOR CURSOR WITH RETURN TO CLIENT FOR
>
> SELECT BT . QUEUE ,
> BT . ASSIGNMENT ,
> BT . DIRECTIVE
> FROM DTA . WA2PD AS BT
>
> P2 : BEGIN
> /*
> --Delete some rows so we don't pick them up again
> */
>
> OPEN wa_CURSOR;
> END P2;
> END P1;
>
> END;
>
>
>
>
>
>
>