Do channels have a time limit, or something else that would cause them to disappear between sessions?
I have an application that sends data back and forth between enter sessions. Most of the time it works perfectly, but on an occasion when the program goes to get the container it gets a 122 error (Channel not found). The channel name is simple enough - the program's name (RICO) and the user's terminal ID. Neither would change between sessions. The only thing I can guess at (tried everything else) is that something is causing the channel to be deleted, and the only thought I have is if the user gets involved with something else between sessions (phone call, etc.) and somehow the system thinks it's no longer needed and deletes it automatically.
The scope of a channel is the code from which it can be accessed. These examples show the scope of each channel in the diagram.
The scope is important because it defines the lifetime of the channel and container storage. For more information, see Deleting channels and containers and freeing their storage.
The transaction channel DFHTRANSACTION
Channels normally go out of scope when the link level changes. They might therefore not be available to all the programs in a transaction. If you create a channel with the name DFHTRANSACTION, it does not go out of scope when the link level changes. It is thus available to all programs in a transaction, including any exit points that are API enabled. However, the transaction channel cannot be passed to a CICS region at a version earlier than 5.2.
DFHTRANSACTION can be used in all API commands that accept a channel name. However, programs cannot delete the DFHTRANSACTION channel by using the EXEC CICS DELETE CHANNEL command.
When they hit enter next it comes right back into RICO. The channel never gets passed to a lower-level program until the very end of the conversation when they request the order to be created. This issue is happening mid-conversation, they never get to the point of passing the channel to the lower program.
Joined: 06 Jun 2008 Posts: 8432 Location: Dubuque, Iowa, USA
If you have having intermittent problems with a channel, your site support group will definitely need to be involved, and IBM will probably need to be involved. Intermittent issues occur when something external is impacting the program(s), and your site support group / IBM are your BEST resources for figuring out what is going on.