Scenario 1: Request for a Global Resource
In the following example scenario, a z/VM user program requests a connection to a global resource manager program that is located in the same TSAF or CS collection. First, log on the server virtual machine and invoke the global resource manager program, then the user program needs to start a conversation with the global resource manager. After establishing the conversation, the user program sends the name of a file to the global resource manager program. The global resource manager program then sends the entire contents of the file back to the user program. The user program then receives the file data and ends the conversation. Both programs use CPI Communications routines to communicate. For details on the routines shown here, refer to the CPI Communications Reference.