Page 1 of 1

Possible to switch CICS region at run time.

Posted: Tue Oct 09, 2018 4:39 pm
by Neeraj N
Hi,

We have a CICS region, CICSABCD. For some time there had been job abends as this region has got connectivity issues. Support team had been looking for to correct it. Though this problem makes me think that can we at run time see, if there is another CICS region available for connectivity and connect to that OR if this region is available or not and not let the jobs abend? There are EXEC DPL commands which try to connect to this region using program which causes the issues.

Re: Possible to switch CICS region at run time.

Posted: Tue Oct 09, 2018 5:36 pm
by Robert Sample
Most of the time, a connection is made to a particular CICS region because it has the resources (programs, files, transactions) defined for the application. Connecting to a different CICS region would make absolutely no sense if these resources are not available to the different region. If the resources are available to the different region, then yes you could connect to the different region when you cannot connect to the original region -- if the API supports this. I haven't used EXEC DPL commands before, so I have no idea what the API supports.

Re: Possible to switch CICS region at run time.

Posted: Sun Oct 21, 2018 8:30 pm
by alpna
Robert Sample wrote: Tue Oct 09, 2018 5:36 pmMost of the time, a connection is made to a particular CICS region because it has the resources (programs, files, transactions) defined for the application. Connecting to a different CICS region would make absolutely no sense if these resources are not available to the different region. If the resources are available to the different region, then yes you could connect to the different region when you cannot connect to the original region -- if the API supports this. I haven't used EXEC DPL commands before, so I have no idea what the API supports.
Is there a command to switch the region in CICS?

Re: Possible to switch CICS region at run time.

Posted: Sun Oct 21, 2018 8:36 pm
by Robert Sample
I reiterate:
I haven't used EXEC DPL commands before, so I have no idea what the API supports.
So I have no idea if EXEC DPL has a command to switch the region in CICS. Once you're connected to a particular CICS region, it is vanishingly rare to need to change the region -- my thought is that if the API supports this, there will be commands to do so. But more likely the program determines which region to connect to BEFORE making the connection, and without completely starting over it would not be possible to change the region -- but as I said, I have no idea what the API supports.

Re: Possible to switch CICS region at run time.

Posted: Sun Oct 28, 2018 9:23 pm
by Neeraj N
Thanks.

Are you calling DPL as API? Is there a reason to call it like that?

Re: Possible to switch CICS region at run time.

Posted: Sun Oct 28, 2018 10:27 pm
by Robert Sample
API is Application Programming Interface -- the term applies to a variety of command sets (EXEC CICS commands, for example, are an API).

Re: Possible to switch CICS region at run time.

Posted: Thu Nov 01, 2018 5:12 pm
by Neeraj N
Thanks Robert.

Re: Possible to switch CICS region at run time.

Posted: Mon Nov 05, 2018 3:49 pm
by alpna
Thanks Robert...