ims_psb_gen – Generate IMS PSB¶
Synopsis¶
The Program Specification Block (PSB) Generation utility places the created PSB in the PSB library so that it can be used by IMS application programs.
Parameters¶
- src
The src field can reference a PDS, PDSE member, sequential data set, or UNIX System Services file path.
If a PDS is specified, all members within the PDS will be treated as individual PSB source members to be processed.
required: Falsetype: str- location
The PSB source location, Supported options are DATA_SET or USS. The default is DATA_SET.
The DATA_SET option can be used for a PDS, PDSE, or sequential data set.
required: Falsetype: strdefault: DATA_SETchoices: DATA_SET, USS- replace
When ‘replace’ is ‘true’, an existing PSB member matching the name in the input PSB source will be overwitten.
required: Falsetype: booldefault: True- member_list
A list of member names if the source specified is a data set.
Optionally, proceeding the source_member, a colon with a target name for the generated PSB member can be specified. If no target name is specified, source_name will be used as the target name.
If ‘member_list’ is empty and location is set to ‘DATA_SET’ or not specified, then src is expected to be a sequential data set.
Elements are of the list are str or dict with single key-value pair
required: Falsetype: raw- psb_name
Target name of the generated PSB member.
This parameter is only required and applies if src is a sequential data set.
required: Falsetype: str- batch
Batch can be used to perform multiple operations in a single module call.
Expects a list of the location(s) of the IMS Program Specification Block (PSB) source to be compiled.
The source can reference a PDS or PDSE member, sequential data set or UNIX System Services file path.
required: Falsetype: listelements: dict- src
The src field can reference a PDS, PDSE member, sequential data set, or UNIX System Services file path.
If a PDS is specified, all members within the PDS will be treated as individual PSB source members to be processed.
required: Falsetype: str- location
The PSB source location, Supported options are DATA_SET or USS. The default is DATA_SET.
The DATA_SET option can be used for a PDS, PDSE, or sequential data set.
required: Falsetype: strdefault: DATA_SETchoices: DATA_SET, USS- replace
When ‘replace’ is ‘true’, an existing PSB member matching the name in the input PSB source will be overwitten.
required: Falsetype: booldefault: True- member_list
A list of member names if the source specified is a data set.
Optionally, proceeding the source_member, a colon with a target name for the generated PSB member can be specified. If no target name is specified, source_name will be used as the target name.
If ‘member_list’ is empty and location is set to ‘DATA_SET’ or not specified, then src is expected to be a sequential data set.
Elements are of the list are str or dict with single key-value
required: Falsetype: raw- psb_name
Target name of the generated PSB member.
This parameter is only required and applies if src is a sequential data set.
required: Falsetype: str
- sys_lib
A list of required macro libraries that are needed to compile the PSB source. These libraries will be used as the sys_lib at compile time.
required: Truetype: listelements: str- dest
The target output PSBLIB partitioned data set in which the PSB members will be generated.
required: Truetype: str
Examples¶
---
- name: Basic example of IMS PSBGEN module with single data set
ims_psb_gen:
src: /tmp/src/somefile
location: USS
replace: true
dest: SOME.DATA.SET.PSBLIB
sys_lib:
- SOME.DATA.SET.SDFSMAC
- SYS1.MACLIB
- name: Basic example of IMS PSBGEN module
ims_psb_gen:
batch:
-
src: /tmp/psbgen02
location: USS
replace: true
-
src: OMVSADM.IMSTESTU.ANSIBLE.PSB.SRC
location: DATA_SET
member_list: [PSBGENL : TARGET1, PSBGENL : TARGET2]
-
src: OMVSADM.IMSTESTU.ANSIBLE.PSB.SRC
member_list: [PSBGENL, PSBGENL]
replace: true
-
src: OMVSADM.IMSTESTU.ANSIBLE.PSB.SRC
member_list:
- 'COGPSBL': 'TARGET3'
- 'COGPSBL2': 'TARGET4'
replace: true
-
src: OMVSADM.IMSTESTU.ANSIBLE.PSB.SQ
location: DATA_SET
psb_name: SEQ
dest: IMSBANK.IMS1.PSBLIB
sys_lib:
- IMSBLD.I15RTSMM.SDFSMAC
- SYS1.MACLIB
Notes¶
Note
Currently ims_psb_gen does not support copying symbolic links from both local to remote and remote to remote.
Return Values¶
- batch_result
List of output for each PSBGEN run on each element in the list of input source if input is batch.
returned: on batch calltype: listelements: dict- return_text
Status message.
returned: alwaystype: strsample: Invalid input source list being passed without content.- src
input psb src name processed.
returned: alwaystype: str
- msg
The message of the PSBGEN execution result.
returned: alwaystype: strsample: PSBGEN execution was successful.- rc
Module return code (0 for success)
returned: alwaystype: int- stderr
Module standard error.
returned: failuretype: strsample: Output data set for DDNAME has invalid record format.- stdout
Module standard output.
returned: successtype: strsample: PSBGEN execution was successful.