I have a REXX that uses DSNREXX to Select data from a DB2 table. It then will call an existing batch program/package that is part of a separate DB2 plan. When I call/start the subsequent plan, I see evidence that another LUW-ID has begun.
I need to control the UOW from the outer REXX code. So, I need 1 LUW.
(The way I know that I get a subsequent LUW-ID is because I got luck/unlucky in that the batch program receives a -911. The source of the contention is the me - the DSNREXX plan that I am initially connected to.)
Keep in mind that I dont care about the -911. I care about using a single LUW for both REXX and the called batch program. For reference, part of the DB2 log is attached:
DSNT376I -DBss PLAN=btchpln WITH 743
CORRELATION-ID=mytsoid
CONNECTION-ID=DB2CALL
LUW-ID=xxx.mmmmmmm.C8AEF0DF5CD1=128132
THREAD-INFO=mytsoid:*:*:*
IS TIMED OUT. ONE HOLDER OF THE RESOURCE IS PLAN=DSNREXX WITH
CORRELATION-ID=mytsoid
CONNECTION-ID=DB2CALL
LUW-ID=xxx.mmmmmmm..C8AEF0D7DD45=128124
THREAD-INFO=mytsoid:*:*:*
ON MEMBER DBss
I need to control the UOW from the outer REXX code. So, I need 1 LUW.
(The way I know that I get a subsequent LUW-ID is because I got luck/unlucky in that the batch program receives a -911. The source of the contention is the me - the DSNREXX plan that I am initially connected to.)
Keep in mind that I dont care about the -911. I care about using a single LUW for both REXX and the called batch program. For reference, part of the DB2 log is attached:
DSNT376I -DBss PLAN=btchpln WITH 743
CORRELATION-ID=mytsoid
CONNECTION-ID=DB2CALL
LUW-ID=xxx.mmmmmmm.C8AEF0DF5CD1=128132
THREAD-INFO=mytsoid:*:*:*
IS TIMED OUT. ONE HOLDER OF THE RESOURCE IS PLAN=DSNREXX WITH
CORRELATION-ID=mytsoid
CONNECTION-ID=DB2CALL
LUW-ID=xxx.mmmmmmm..C8AEF0D7DD45=128124
THREAD-INFO=mytsoid:*:*:*
ON MEMBER DBss