CICS Shutdown - A2K & A2KTEST

     A CICS region can be cancelled via 'C A2K' or 'C A2KTEST' but this is done only in an emergency, as the following startup will be messy and take much longer than we like, since CICS has to determine what transactions were in progress when the CICS came down, finish or back out some work, clean up the files that were open. It is much better to bring the CICS down 'clean'.

     The 'D R,R' command will display outstanding console messages, one for each CICS region. The operator would reply 'R nn,ENDTEST' to shut down A2KTEST, or 'R nn,ENDPROD' to shut down A2K.

     If a CICS is being shut down to apply a Regulatory or Quarterly SUT, it MUST come down 'clean'. After the job ends, the operator should verify a 'clean shutdown' by getting on SDSF, doing 'PRE A2K*', then 'H' to look at the held Sysout. Placing '?' to the left of the job will 'explode' the Sysout. Operator would put 'S' to the left of 'JESMSGLG' and go to the bottom. If it says:
DFHRM0204 A2KTEST THERE ARE NO INDOUBT, COMMIT-FAILED OR BACKOUT-FAILED UOWS.  
DFHRM0130 A2KTEST RECOVERY MANAGER HAS SUCCESSFULLY QUIESCED.                  
DFHDU0303I A2KTEST TRANSACTION DUMP DATA SET DFHDMPB CLOSED.                   
DFHKE1799 A2KTEST  TERMINATION OF CICS IS COMPLETE.                            
the shutdown was 'clean'. If not, the operator would 'S A2K' or 'S A2KTEST' and shut it down again.

     We try to avoid shutting down a CICS region between the hour and 15 minutes past the hour. There are hourly jobs which trigger CICS transactions. The jobs end quickly, but the transactions run for several more minutes and the region will not shut down 'clean' with these transactions running.

     A2KTEST seems to shutdown clean most of the time. However to shut down A2K, all VTAM sessions must be stopped. To do this for A2K:
        r nn,ENDTEST - shut down A2KTEST because it talks to A2K
        V NET,INACT,ID=T019ACT0,I = shut down an 'internal' 3270 session
        V NET,INACT,ID=SWOPENEW,I = shut down the sessions with Openlink
        P DRSV - shut down the CICS printer sessions
         P VSV - we will be shutting down VPS, VSV depends on VPS
        P VPS - we will be shutting down TCP, VPS depends on TCPIP
        P TCPIP - shut down all Rumba '3270' sessions
V NET,ID=A2KPPROD,E - should show 'No Sessions'
R nn,ENDPROD - shut down A2K
     Check A2K came down 'clean', recycle if not.

     Once CICS is down:
          S TCPIP
          S DRSV
          S VPS
          S VSV
          V NET,ACT,ID=T019ACT0,SCOPE=ALL
          V NET,ACT,ID=SWOPENEW,SCOPE=ALL
     so these sessions will reestablish when A2K is later restarted.