|
12 | 12 | module: stop_region
|
13 | 13 | short_description: Stop a CICS region
|
14 | 14 | description:
|
15 |
| - - Stop a CICS region by issuing a CEMT PERFORM SHUTDOWN, or cancel the job using ZOAU's job cancelling capability. |
16 |
| - - The job_id, job_name, or both can be used to shutdown a region. If mulitple jobs are running with the same name, the job_id is required. |
17 |
| - - You can choose the shutdown mode from NORMAL, IMMEDIATE, or CANCEL. |
| 15 | + - Stop a CICS region by issuing a CEMT PERFORM SHUTDOWN command, or by canceling the job through the C(jobs.cancel) utility provided by |
| 16 | + Z Open Automation Utilities (ZOAU). You can choose the shutdown mode from NORMAL, IMMEDIATE, or CANCEL. |
| 17 | + - The O(job_id), O(job_name), or both can be used to shut down a CICS region. If mulitple jobs are running with the same name, the O(job_id) is required. |
18 | 18 | - During a NORMAL or IMMEDIATE shutdown, a shutdown assist transaction should run to enable CICS to shut down in a controlled manner.
|
19 | 19 | By default, the CICS-supplied shutdown assist transaction, CESD is used. You can specify a custom shutdown assist transaction in the
|
20 | 20 | SDTRAN system initialization parameter. The task runs until the region has successfully shut down, or until the shutdown fails.
|
21 | 21 | - You must have a console installed in the CICS region so that the stop_region module can communicate with CICS. To define a console,
|
22 | 22 | you must install a terminal with the CONSNAME attribute set to your TSO user ID. For detailed instructions, see
|
23 |
| - L(Defining TSO users as console devices,https://www.ibm.com/docs/en/cics-ts/6.1?topic=cics-defining-tso-users-as-console-devices). |
| 23 | + L(Defining TSO users as console devices,https://www.ibm.com/docs/en/cics-ts/latest?topic=cics-defining-tso-users-as-console-devices). |
24 | 24 | Add your console definition into one of the resource lists defined on the GRPLIST system initialization parameter so that it gets
|
25 | 25 | installed into the CICS region.
|
26 | 26 | Alternatively, you can use a DFHCSDUP script to update an existing CSD. This function is provided by the csd module.
|
27 |
| - - You may specify a timeout, in seconds, to wait for the region to stop after issuing the command. If this timeout is reached, the module |
28 |
| - completes in a failed state. Default behaviour does not use a timeout, which is set using a value of -1. |
| 27 | + - You can specify a timeout, in seconds, for CICS shutdown processing. After a request to stop CICS is issued, if CICS shutdown processing is not |
| 28 | + completed when this timeout is reached, the module completes in a failed state. By default, the stop_region module does not use a timeout, that is, |
| 29 | + the O(timeout) parameter assumes a value of -1. |
29 | 30 | version_added: 1.1.0-beta.5
|
30 | 31 | author:
|
31 | 32 | - Kiera Bennett (@KieraBennett)
|
|
40 | 41 | description:
|
41 | 42 | - Identifies the job name belonging to the running CICS region.
|
42 | 43 | - The stop_region module uses this job name to identify the state of the CICS region and shut it down.
|
43 |
| - - The job_name must be unique; if multiple jobs with the same name are running, use job_id. |
| 44 | + - The O(job_name) must be unique; if multiple jobs with the same name are running, use O(job_id). |
44 | 45 | type: str
|
45 | 46 | required: false
|
46 | 47 | mode:
|
47 | 48 | description:
|
48 | 49 | - Specify the type of shutdown to be executed on the CICS region.
|
| 50 | + - Specify C(normal) to perform a normal shutdown. This instructs the stop_region module to issue a CEMT PERFORM SHUTDOWN command. |
| 51 | + - Specify C(immediate) to perform an immediate shutdown. This instructs the stop_region module to issue a CEMT PERFORM SHUTDOWN IMMEDIATE command. |
| 52 | + - Specify C(cancel) to cancel the CICS region. This instructs the stop_region module to use ZOAU's C(jobs.cancel) utility to process the request. |
49 | 53 | type: str
|
50 | 54 | required: false
|
51 | 55 | default: normal
|
|
67 | 71 | required: false
|
68 | 72 | timeout:
|
69 | 73 | description:
|
70 |
| - - Time to wait for region to stop, in seconds. |
| 74 | + - The maximum time, in seconds, to wait for CICS shutdown processing to complete. |
71 | 75 | - Specify -1 to exclude a timeout.
|
72 | 76 | type: int
|
73 | 77 | default: -1
|
|
76 | 80 |
|
77 | 81 |
|
78 | 82 | EXAMPLES = r'''
|
79 |
| -- name: "Stop CICS region" |
| 83 | +- name: "Stop CICS region using job ID" |
80 | 84 | ibm.ibm_zos_cics.stop_region:
|
81 | 85 | job_id: JOB12345
|
82 | 86 |
|
83 |
| -- name: "Stop CICS region immediately" |
| 87 | +- name: "Stop CICS region immediately using job ID" |
84 | 88 | ibm.ibm_zos_cics.stop_region:
|
85 | 89 | job_id: JOB12354
|
86 | 90 | mode: immediate
|
87 | 91 |
|
88 |
| -- name: "Stop CICS region with name and ID" |
| 92 | +- name: "Stop CICS region using job name and job ID" |
89 | 93 | ibm.ibm_zos_cics.stop_region:
|
90 | 94 | job_id: JOB12354
|
91 | 95 | job_name: MYREG01
|
92 | 96 |
|
93 |
| -- name: "Stop CICS using job name" |
| 97 | +- name: "Stop CICS region using job name" |
94 | 98 | ibm.ibm_zos_cics.stop_region:
|
95 | 99 | job_name: ANS1234
|
96 | 100 | mode: normal
|
97 | 101 |
|
98 |
| -- name: "Cancel CICS region" |
| 102 | +- name: "Cancel CICS region using job name" |
99 | 103 | ibm.ibm_zos_cics.stop_region:
|
100 | 104 | job_name: ANS1234
|
101 | 105 | mode: cancel
|
|
138 | 142 | returned: always
|
139 | 143 | type: bool
|
140 | 144 | jobs:
|
141 |
| - description: The output information for a list of jobs matching specified criteria. |
| 145 | + description: The output information for a list of jobs matching the specified criteria. |
142 | 146 | type: list
|
143 | 147 | returned: on zos_job_query module execution
|
144 | 148 | elements: dict
|
|
205 | 209 | returned: on zos_operator module execution
|
206 | 210 | type: int
|
207 | 211 | max_rc:
|
208 |
| - description: The maximum return code from the tso status command |
| 212 | + description: The maximum return code from the TSO status command |
209 | 213 | returned: on zos_tso_command module execution
|
210 | 214 | type: int
|
211 | 215 | output:
|
212 |
| - description: The output from the tso command |
| 216 | + description: The output from the TSO command. |
213 | 217 | returned: on zos_tso_command module execution
|
214 | 218 | type: list
|
215 | 219 | elements: dict
|
|
232 | 236 | type: int
|
233 | 237 |
|
234 | 238 | msg:
|
235 |
| - description: A string containing an error message if applicable |
| 239 | + description: A string containing an error message if applicable. |
236 | 240 | returned: always
|
237 | 241 | type: str
|
238 | 242 | '''
|
|
0 commit comments