Skip to content

Commit c1a02ef

Browse files
cssh-erikandrewhughes101
authored andcommitted
editorial edits
1 parent 9d17a11 commit c1a02ef

File tree

4 files changed

+48
-42
lines changed

4 files changed

+48
-42
lines changed

docs/source/modules/region_jcl.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3446,7 +3446,7 @@ space_primary
34463446

34473447
If this option is not set, the primary space is dynamically calculated based on the size of the generated CICS startup JCL.
34483448

3449-
If the target data set is a member in a PDS/E, then this value will not have any effect.
3449+
If the target data set is a member in a PDSE, then this value does not have any effect.
34503450

34513451

34523452
| **required**: False
@@ -3461,7 +3461,7 @@ space_secondary
34613461

34623462
If this option is not set, the secondary space is dynamically calculated as 10% of the total size of the generated CICS startup JCL.
34633463

3464-
If the target data set is a member in a PDS/E, then this value will not have any effect.
3464+
If the target data set is a member in a PDSE, then this value does not have any effect.
34653465

34663466

34673467
| **required**: False
@@ -3478,7 +3478,7 @@ space_type
34783478

34793479
If neither \ :literal:`space\_secondary`\ nor \ :literal:`space\_primary`\ is set, then this value does not have any effect.
34803480

3481-
If the target data set is a member in a PDS/E, then this value will not have any effect.
3481+
If the target data set is a member in a PDSE, then this value does not have any effect.
34823482

34833483

34843484
| **required**: False

docs/source/modules/stop_region.rst

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ stop_region -- Stop a CICS region
2020

2121
Synopsis
2222
--------
23-
- Stop a CICS region by issuing a CEMT PERFORM SHUTDOWN, or cancel the job using ZOAU's job cancelling capability.
24-
- 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.
25-
- You can choose the shutdown mode from NORMAL, IMMEDIATE, or CANCEL.
23+
- Stop a CICS region by issuing a CEMT PERFORM SHUTDOWN command, or by canceling the job through the \ :literal:`jobs.cancel`\ utility provided by Z Open Automation Utilities (ZOAU). You can choose the shutdown mode from NORMAL, IMMEDIATE, or CANCEL.
24+
- The \ :literal:`job\_id`\ , \ :literal:`job\_name`\ , or both can be used to shut down a CICS region. If mulitple jobs are running with the same name, the \ :literal:`job\_id`\ is required.
2625
- During a NORMAL or IMMEDIATE shutdown, a shutdown assist transaction should run to enable CICS to shut down in a controlled manner. By default, the CICS-supplied shutdown assist transaction, CESD is used. You can specify a custom shutdown assist transaction in the SDTRAN system initialization parameter. The task runs until the region has successfully shut down, or until the shutdown fails.
27-
- You must have a console installed in the CICS region so that the stop\_region module can communicate with CICS. To define a console, you must install a terminal with the CONSNAME attribute set to your TSO user ID. For detailed instructions, see \ `Defining TSO users as console devices <https://www.ibm.com/docs/en/cics-ts/6.1?topic=cics-defining-tso-users-as-console-devices>`__\ . Add your console definition into one of the resource lists defined on the GRPLIST system initialization parameter so that it gets installed into the CICS region. Alternatively, you can use a DFHCSDUP script to update an existing CSD. This function is provided by the csd module.
28-
- 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 completes in a failed state. Default behaviour does not use a timeout, which is set using a value of -1.
26+
- You must have a console installed in the CICS region so that the stop\_region module can communicate with CICS. To define a console, you must install a terminal with the CONSNAME attribute set to your TSO user ID. For detailed instructions, see \ `Defining TSO users as console devices <https://www.ibm.com/docs/en/cics-ts/latest?topic=cics-defining-tso-users-as-console-devices>`__\ . Add your console definition into one of the resource lists defined on the GRPLIST system initialization parameter so that it gets installed into the CICS region. Alternatively, you can use a DFHCSDUP script to update an existing CSD. This function is provided by the csd module.
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 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, the \ :literal:`timeout`\ parameter assumes a value of -1.
2928

3029

3130

@@ -52,7 +51,7 @@ job_name
5251

5352
The stop\_region module uses this job name to identify the state of the CICS region and shut it down.
5453

55-
The job\_name must be unique; if multiple jobs with the same name are running, use job\_id.
54+
The \ :literal:`job\_name`\ must be unique; if multiple jobs with the same name are running, use \ :literal:`job\_id`\ .
5655

5756

5857
| **required**: False
@@ -63,6 +62,12 @@ job_name
6362
mode
6463
Specify the type of shutdown to be executed on the CICS region.
6564

65+
Specify \ :literal:`normal`\ to perform a normal shutdown. This instructs the stop\_region module to issue a CEMT PERFORM SHUTDOWN command.
66+
67+
Specify \ :literal:`immediate`\ to perform an immediate shutdown. This instructs the stop\_region module to issue a CEMT PERFORM SHUTDOWN IMMEDIATE command.
68+
69+
Specify \ :literal:`cancel`\ to cancel the CICS region. This instructs the stop\_region module to use ZOAU's \ :literal:`jobs.cancel`\ utility to process the request.
70+
6671

6772
| **required**: False
6873
| **type**: str
@@ -92,7 +97,7 @@ sdtran
9297

9398

9499
timeout
95-
Time to wait for region to stop, in seconds.
100+
The maximum time, in seconds, to wait for CICS shutdown processing to complete.
96101

97102
Specify -1 to exclude a timeout.
98103

@@ -110,26 +115,26 @@ Examples
110115
.. code-block:: yaml+jinja
111116

112117

113-
- name: "Stop CICS region"
118+
- name: "Stop CICS region using job ID"
114119
ibm.ibm_zos_cics.stop_region:
115120
job_id: JOB12345
116121

117-
- name: "Stop CICS region immediately"
122+
- name: "Stop CICS region immediately using job ID"
118123
ibm.ibm_zos_cics.stop_region:
119124
job_id: JOB12354
120125
mode: immediate
121126

122-
- name: "Stop CICS region with name and ID"
127+
- name: "Stop CICS region using job name and job ID"
123128
ibm.ibm_zos_cics.stop_region:
124129
job_id: JOB12354
125130
job_name: MYREG01
126131

127-
- name: "Stop CICS using job name"
132+
- name: "Stop CICS region using job name"
128133
ibm.ibm_zos_cics.stop_region:
129134
job_name: ANS1234
130135
mode: normal
131136

132-
- name: "Cancel CICS region"
137+
- name: "Cancel CICS region using job name"
133138
ibm.ibm_zos_cics.stop_region:
134139
job_name: ANS1234
135140
mode: cancel
@@ -213,7 +218,7 @@ Return Values
213218

214219

215220
jobs
216-
| The output information for a list of jobs matching specified criteria.
221+
| The output information for a list of jobs matching the specified criteria.
217222
218223
| **returned**: on zos_job_query module execution
219224
| **type**: list
@@ -336,15 +341,15 @@ Return Values
336341

337342

338343
max_rc
339-
| The maximum return code from the tso status command
344+
| The maximum return code from the TSO status command
340345
341346
| **returned**: on zos_tso_command module execution
342347
| **type**: int
343348
344349

345350

346351
output
347-
| The output from the tso command
352+
| The output from the TSO command.
348353
349354
| **returned**: on zos_tso_command module execution
350355
| **type**: list
@@ -390,7 +395,7 @@ Return Values
390395

391396

392397
msg
393-
| A string containing an error message if applicable
398+
| A string containing an error message if applicable.
394399
395400
| **returned**: always
396401
| **type**: str

plugins/doc_fragments/region_jcl.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ class ModuleDocFragment(object):
1919
If the CICS startup JCL data set already exists, the option has no effect.
2020
- If this option is not set, the primary space is dynamically calculated based on the
2121
size of the generated CICS startup JCL.
22-
- If the target data set is a member in a PDS/E, then this value will not have any
23-
effect.
22+
- If the target data set is a member in a PDSE, then this value does not have any effect.
2423
type: int
2524
required: false
2625
space_secondary:
@@ -31,8 +30,7 @@ class ModuleDocFragment(object):
3130
If the CICS startup JCL data set already exists, the option has no effect.
3231
- If this option is not set, the secondary space is dynamically calculated as 10% of
3332
the total size of the generated CICS startup JCL.
34-
- If the target data set is a member in a PDS/E, then this value will not have any
35-
effect.
33+
- If the target data set is a member in a PDSE, then this value does not have any effect.
3634
type: int
3735
required: false
3836
space_type:
@@ -46,8 +44,7 @@ class ModuleDocFragment(object):
4644
cylinders (V(CYL)), or tracks (V(TRK)).
4745
- If neither O(space_secondary) nor O(space_primary) is set, then this value does
4846
not have any effect.
49-
- If the target data set is a member in a PDS/E, then this value will not have any
50-
effect.
47+
- If the target data set is a member in a PDSE, then this value does not have any effect.
5148
required: false
5249
type: str
5350
choices:

plugins/modules/stop_region.py

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,21 @@
1212
module: stop_region
1313
short_description: Stop a CICS region
1414
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.
1818
- During a NORMAL or IMMEDIATE shutdown, a shutdown assist transaction should run to enable CICS to shut down in a controlled manner.
1919
By default, the CICS-supplied shutdown assist transaction, CESD is used. You can specify a custom shutdown assist transaction in the
2020
SDTRAN system initialization parameter. The task runs until the region has successfully shut down, or until the shutdown fails.
2121
- You must have a console installed in the CICS region so that the stop_region module can communicate with CICS. To define a console,
2222
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).
2424
Add your console definition into one of the resource lists defined on the GRPLIST system initialization parameter so that it gets
2525
installed into the CICS region.
2626
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.
2930
version_added: 1.1.0-beta.5
3031
author:
3132
- Kiera Bennett (@KieraBennett)
@@ -40,12 +41,15 @@
4041
description:
4142
- Identifies the job name belonging to the running CICS region.
4243
- 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).
4445
type: str
4546
required: false
4647
mode:
4748
description:
4849
- 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.
4953
type: str
5054
required: false
5155
default: normal
@@ -67,7 +71,7 @@
6771
required: false
6872
timeout:
6973
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.
7175
- Specify -1 to exclude a timeout.
7276
type: int
7377
default: -1
@@ -76,26 +80,26 @@
7680

7781

7882
EXAMPLES = r'''
79-
- name: "Stop CICS region"
83+
- name: "Stop CICS region using job ID"
8084
ibm.ibm_zos_cics.stop_region:
8185
job_id: JOB12345
8286
83-
- name: "Stop CICS region immediately"
87+
- name: "Stop CICS region immediately using job ID"
8488
ibm.ibm_zos_cics.stop_region:
8589
job_id: JOB12354
8690
mode: immediate
8791
88-
- name: "Stop CICS region with name and ID"
92+
- name: "Stop CICS region using job name and job ID"
8993
ibm.ibm_zos_cics.stop_region:
9094
job_id: JOB12354
9195
job_name: MYREG01
9296
93-
- name: "Stop CICS using job name"
97+
- name: "Stop CICS region using job name"
9498
ibm.ibm_zos_cics.stop_region:
9599
job_name: ANS1234
96100
mode: normal
97101
98-
- name: "Cancel CICS region"
102+
- name: "Cancel CICS region using job name"
99103
ibm.ibm_zos_cics.stop_region:
100104
job_name: ANS1234
101105
mode: cancel
@@ -138,7 +142,7 @@
138142
returned: always
139143
type: bool
140144
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.
142146
type: list
143147
returned: on zos_job_query module execution
144148
elements: dict
@@ -205,11 +209,11 @@
205209
returned: on zos_operator module execution
206210
type: int
207211
max_rc:
208-
description: The maximum return code from the tso status command
212+
description: The maximum return code from the TSO status command
209213
returned: on zos_tso_command module execution
210214
type: int
211215
output:
212-
description: The output from the tso command
216+
description: The output from the TSO command.
213217
returned: on zos_tso_command module execution
214218
type: list
215219
elements: dict
@@ -232,7 +236,7 @@
232236
type: int
233237
234238
msg:
235-
description: A string containing an error message if applicable
239+
description: A string containing an error message if applicable.
236240
returned: always
237241
type: str
238242
'''

0 commit comments

Comments
 (0)