Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can a CICS application programmer tell, in their application code, that a transaction has been invoked via HostBridge?

0
Posted

Can a CICS application programmer tell, in their application code, that a transaction has been invoked via HostBridge?

0

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

Thanksgiving questions

*Sadly, we had to bring back ads too. Hopefully more targeted.