intrapartition – Create and remove the CICS transient data intrapartition data set
Synopsis
Create and remove the transient data intrapartition data set used by a CICS® region. This data set holds all the data for intrapartition queues.
You can use this module when provisioning or de-provisioning a CICS region.
Use the
state
option to specify the intended state for the transient data intrapartition data set. For example,state=initial
will create a transient data intrapartition data set if it doesn’t exist.
Parameters
- region_data_sets
The location of the region data sets to be created using a template, for example,
REGIONS.ABCD0001.<< data_set_name >>
.If you want to use a data set that already exists, ensure that the data set is a transient data intrapartition data set.
required: Truetype: dict- dfhintra
Overrides the templated location for the transient data intrapartition data set.
required: Falsetype: dict- dsn
The data set name of the transient data intrapartition to override the template.
required: Falsetype: str
- template
The base location of the region data sets with a template.
required: Falsetype: str
- space_primary
The size of the primary space allocated to the transient data intrapartition data set. Note that this is just the value; the unit is specified with
space_type
.This option takes effect only when the transient data intrapartition data set is being created. If the data set already exists, the option has no effect.
required: Falsetype: intdefault: 100- space_secondary
The size of the secondary space allocated to the transient data intrapartition data set. Note that this is just the value; the unit is specified with
space_type
.This option takes effect only when the transient data intrapartition data set is being created. If the data set already exists, the option has no effect.
required: Falsetype: intdefault: 10- space_type
The unit portion of the transient data intrapartition data set size. Note that this is just the unit; the value is specified with
space_primary
.This option takes effect only when the transient data intrapartition data set is being created. If the data set already exists, the option has no effect.
The size can be specified in megabytes (
M
), kilobytes (K
), records (REC
), cylinders (CYL
), or tracks (TRK
).required: Falsetype: strdefault: RECchoices: M, K, REC, CYL, TRK- state
The intended state for the transient data intrapartition data set, which the module will aim to achieve.
absent
will remove the transient data intrapartition data set entirely, if it already exists.initial
will create the transient data intrapartition data set if it does not already exist.warm
will retain an existing transient data intrapartition data set in its current state.required: Truetype: strchoices: initial, absent, warm
Examples
- name: Initialize a transient data intrapartition data set
ibm.ibm_zos_cics.intrapartition:
region_data_sets:
template: "REGIONS.ABCD0001.<< data_set_name >>"
state: "initial"
- name: Initialize a large transient data intrapartition data set
ibm.ibm_zos_cics.intrapartition:
region_data_sets:
template: "REGIONS.ABCD0001.<< data_set_name >>"
space_primary: 50
space_type: "M"
state: "initial"
- name: Delete a transient data intrapartition data set
ibm.ibm_zos_cics.intrapartition:
region_data_sets:
template: "REGIONS.ABCD0001.<< data_set_name >>"
state: "absent"
Return Values
- changed
True if the state was changed, otherwise False.returned: alwaystype: bool- failed
True if the Ansible task failed, otherwise False.returned: alwaystype: bool- start_state
The state of the transient data intrapartition data set before the Ansible task runs.returned: alwaystype: dict
- data_set_organization
The organization of the data set at the start of the Ansible task.returned: alwaystype: strsample: VSAM- exists
True if the transient data intrapartition data set exists.returned: alwaystype: bool- end_state
The state of the transient data intrapartition data set at the end of the Ansible task.returned: alwaystype: dict
- data_set_organization
The organization of the data set at the end of the Ansible task.returned: alwaystype: strsample: VSAM- exists
True if the transient data intrapartition data set exists.returned: alwaystype: bool- executions
A list of program executions performed during the Ansible task.returned: alwaystype: list
- name
A human-readable name for the program execution.returned: alwaystype: str- rc
The return code for the program execution.returned: alwaystype: int- stdout
The standard out stream returned by the program execution.returned: alwaystype: str- stderr
The standard error stream returned from the program execution.returned: alwaystype: str