Can a CICS application programmer tell, in their application code, that a transaction has been invoked via HostBridge?
Yes. Technically speaking, when a transaction is run from a real terminal, it runs under a “terminal facility” within CICS. However, when a transaction is run executed via HostBridge it runs under a “bridge facility”. A CICS application can determine whether it is being run under a terminal facility or a bridge facility by issuing the following command: This command returns the 4-character TRANSID of the bridge monitor transaction that started the user transaction. Blanks are returned if: (a) The user transaction was not started by a bridge monitor transaction, or (b) This command was issued by a program started by a distributed program link (DPL) request. Thus, your program can do the following: 1. Issue an EXEC CICS ASSIGN BRIDGE command. 2. If the returned TRANSID is blank, then the transaction was started from a terminal. 3. If the returned TRANSID is non-blank, then the transaction was started via a bridge monitor program, such as HostBridge. 4. If the returned TRANSID is ‘HWBA’,
Related Questions
- Describe the advantages of writing a managed code application instead of unmanaged one. What’s involved in certain piece of code being managed?
- Can I use InterTest/CICS (from Computer Associates) or XPEDITER (from Compuware) to debug a transaction invoked through HostBridge?
- Can a CICS application programmer tell, in their application code, that a transaction has been invoked via HostBridge?