Previous Topic: Run a Qualified Transaction

Next Topic: Program-to-Program Interface


Run a Generic Transaction

Two domains SYSA and SYSB are connected via an APPC link. Transactions starting with the prefix DB (for example, DBQUERY, DBPUT, DBUPDT) are to be allocated in SYSA. The NCL procedures to service these transactions start with the prefix APPC (for example, APPCQRY, APPCPUT, APPCUPDT). This can be done using a single generic TCT entry.

To define a single TCT entry to service all of the above transactions

  1. Define the following TCT entry in SYSA:
    DEFTRANS TRANSID=DB* TPN=TP* LINK=B
    
  2. Define the following TCT entry in SYSB:
    DEFTRANS TRANSID=DB* TPN=TP* PROC=APPC*
    
  3. Issue an allocation request in SYSA for transaction ID DBUPDT.

This matches the TCT entry DB*. The matching characters in the transaction name are removed and the remaining characters (UPDT) are appended to the generic TPN (TP*) to get TPUPDT. This is the TPN sent to the remote domain. It matches the TCT entry for TP* and again the matching characters are removed. The remaining characters UPDT are appended to the generic procedure name APPC* to form the NCL procedure name APPCUPDT to be started.