4 Replies Latest reply on Jul 31, 2020 3:42 PM by Gilles Robert

    Does anyone know if you can add criteria to the TASKKILL option in MV for CICS?

    Chris Forzaglia
      Share This:

      We'd like to consider only killing a task if it's being executed by a specific 'userid'?

      I don't see how I can differentiate a task in the Transaction Group.

      e.g. we have one TASK named TSK1 but when it runs long from User USR1 we want to let it, but if it runs long from USRA we want to cancel it.

        • 1. Re: Does anyone know if you can add criteria to the TASKKILL option in MV for CICS?
          Simon Chang

          Hi Chris

           

          No, this is not currently possible, the userid is not one of the criteria used for the CICS Task Kill Exit. But maybe you could raise an RFE with your local BMC Support Centre for future consideration.

           

          Regards

          Simon

          2 of 2 people found this helpful
          • 2. Re: Does anyone know if you can add criteria to the TASKKILL option in MV for CICS?
            Chris Forzaglia

            Thank you for your reply.  I did put in a ticket to support and they confirmed this and gave the Auto Operations option which may work.

             

            Hi Chris,
            Do you have Mainview Autooperator or some other Automation product in your shop?  If so, I believe it would be fairly easy to set up an Alarm report using your CTASK view based on Elapsed time (T1ELAPSTIM) and userid (T1USERID).  You can generate an alarm report that produces console messages that can be used by an automation product to take action (such as cancelling a task).  Here is a link to our Alarm documentation:

            https://docs.bmc.com/docs/display/mcdv630/Using+MainView+Alarm+Management

            1 of 1 people found this helpful
            • 3. Re: Does anyone know if you can add criteria to the TASKKILL option in MV for CICS?
              Mario Rinaudo

              Hi Chris,

              Another option to try is defining a MainView Alarm on the CTASK view using the T1ELAPSTIM and T1USERID criteria and issue a CICS CEMT purge/kill command via the MainView Alarm Console Command feature.

              The example below has the variables you need to identify the CICS target and CICS task ID.

               

              I ran this on our system successfully to check.

               

              Regards, Mario

               

              EG:

              Console Command (Authorized Users Only)     

              F &ALMXSTGT,CEMT S TAS(&T1IDC.V) F          

              2 of 2 people found this helpful
              • 4. Re: Does anyone know if you can add criteria to the TASKKILL option in MV for CICS?
                Gilles Robert

                Hello Chris,

                 

                Another method if you like the controls provided with MainView for CICS auto-kill feature (CPU Time, Elapsed Time, Storage, TD Queue ans so on)  to use the Warning mode only for certain transaction/region. In other words TaskKill can be use for everything else to effectively kill task and for some specific transaction name use Warning mode and select the issuance of a WTO and/or Log to AutoOPERATOR for some CICS Regions.

                 

                The WTO, when activated, looks like this:

                 

                N FFF1FFF BMCA    20213 15:02:32.59 STC99779 40000010  +FT700W  TASK GR02 #45596 CICSUSER A=BBCP GRCIGR02  CPUTIME  _____8.2 >

                S                                                        _____5.0

                 

                Note the W in the FT700 message indicate a warning mode, an E indicate a successful kill.

                It is a simple matter from an automation standpoint (task number, transaction name and userid are found in the message) to decide whether or not the task should be kill or a notification email should be sent.

                 

                Hope this help, Gilles

                1 of 1 people found this helpful