Home > Archive > Cobol > September 2006 > CICS kickoff online users
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
CICS kickoff online users
|
|
|
| Hi,
I looking for a command/program to kickoff all the users using a cics
application so that batch can be started and allow users back in after
batch is completed.
Any suggestions?
TIA
| |
| Arnold Trembley 2006-09-23, 6:55 pm |
|
excel wrote:
> Hi,
> I looking for a command/program to kickoff all the users using a cics
> application so that batch can be started and allow users back in after
> batch is completed.
>
> Any suggestions?
>
>
> TIA
>
The evil person in me wants to suggest CEMT P SHUT IMM, but that would
simply shut down the entire CICS Region.
I don't believe there is an easy way to do this. Also, depending on
how many applications may be hosted in CICS, you would need to
determine which users to kick off.
A better approach would be a CICS transaction initiated from a batch
job using EXCI interfaces, that would CLOSE and DISABLE all the VSAM
files used by that application. But then the application programs
should be changed to display a message saying the files are closed and
unavailable for update. At the end of batch processing, another batch
job using EXCI would initiate a CICS transaction that would OPEN and
ENABLE all the VSAM files for that application.
But this approach would not work for DB2 tables, and I am not sure if
there is any similar function for DB2.
Perhaps a global table in CICS could be used to hold an activity
status flag. The table/flag could be updated from batch jobs using
EXCI interfaces. When the flag says that batch processing is active,
all the application programs would refuse to allow any online updates.
When the status is reset, the CICS programs would then allow online
update.
That would probably work for DB2. For VSAM files, especially if you
need to reload them from the batch jobs, it would be better to CLOSE
and DISABLE the VSAM files inside CICS at the beginning of batch
processing, and then OPEN and ENABLE them at the end of batch processing.
With kindest regards,
--
http://arnold.trembley.home.att.net/
| |
| SkippyPB 2006-09-24, 6:55 pm |
| On Sat, 23 Sep 2006 21:42:40 GMT, Arnold Trembley
<arnold.trembley@worldnet.att.net> enlightened us:
>
>
>excel wrote:
>
>The evil person in me wants to suggest CEMT P SHUT IMM, but that would
>simply shut down the entire CICS Region.
>
>I don't believe there is an easy way to do this. Also, depending on
>how many applications may be hosted in CICS, you would need to
>determine which users to kick off.
>
>A better approach would be a CICS transaction initiated from a batch
>job using EXCI interfaces, that would CLOSE and DISABLE all the VSAM
>files used by that application. But then the application programs
>should be changed to display a message saying the files are closed and
>unavailable for update. At the end of batch processing, another batch
>job using EXCI would initiate a CICS transaction that would OPEN and
>ENABLE all the VSAM files for that application.
>
>But this approach would not work for DB2 tables, and I am not sure if
>there is any similar function for DB2.
>
>Perhaps a global table in CICS could be used to hold an activity
>status flag. The table/flag could be updated from batch jobs using
>EXCI interfaces. When the flag says that batch processing is active,
>all the application programs would refuse to allow any online updates.
> When the status is reset, the CICS programs would then allow online
>update.
>
>That would probably work for DB2. For VSAM files, especially if you
>need to reload them from the batch jobs, it would be better to CLOSE
>and DISABLE the VSAM files inside CICS at the beginning of batch
>processing, and then OPEN and ENABLE them at the end of batch processing.
>
>With kindest regards,
In addition to Arnold's suggestion, you might also want to set the
transaction codes of the CICS application to disabled at the same time
that you close the files. Closing the files sets all the pointers and
makes them available to batch updating. Disabling the transactions
gives users different errors if they try to access the application and
generally gives remote users a system not availble error and not cause
a system dump.
Regards,
|
|
|
|
|