Try PowerScript similar to this:
////////////////////////////////////////////
transaction ltr_Prod, ltr_Test
//////////////////////////////
// Connect to the Prod dB
ltr_Prod = CREATE transaction
//
ltr_Prod.DBMS = ...
ltr_Prod.LogID = ...
ltr_Prod.LogPass = ...
ltr_Prod.ServerName = ...
//
CONNECT USING ltr_Prod ;
dw_Prod.SetTransObject( ltr_Prod )
//
//////////////////////////
// Connect to the Test dB
ltr_Test = CREATE transaction
//
ltr_Test.DBMS = ...
ltr_Test.LogID = ...
ltr_Test.LogPass = ...
ltr_Test.ServerName = ...
//
CONNECT USING ltr_Test ;
dw_Test.SetTransObject( ltr_Test )
////////////////////////////////////////////
---
PowerObject!
-----------------------------------------
PowerBuilder / PFC Developers' Group
Subscribe: PowerObject-subscribe@YahooGroups.com