You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Enabler] [zos_job_submit] Add support for GDG/GDS (#1497)
* modified DatasetCreatedError message
* Added gdg functions
* Created unit test for validating gds relative name
* Updated to fail when future gen
* Update arg parser
* Adding gdg support for zos_data_set
* Add escaping function for data set names
* Add unit tests for name escaping
* Remove calls to escape_data_set_name
* renamed tests
* Added MVSDataset class
* Updated escaped symbols
* Updated tests
* Added utils
* Add changelog
* Uncommented test
* Updated exception
* Updated mvsdataset class
* Updated class
* Added type
* Added gds tests
* Testing for special symbols
* Made data set name escaping optional
* Use new class for GDS handling
* Update special chars data set name
* Escape dollar sign in test
* Add positive test for GDG/GDS
* Add negative GDG tests
* Update docs
* Fix data set existence check
* Update docs again
* Add changelog fragment
* Fix merge with dev
* Fix source validation
* Fix validate-modules issue
---------
Co-authored-by: Fernando Flores <[email protected]>
Copy file name to clipboardExpand all lines: docs/source/modules/zos_job_submit.rst
+17-5Lines changed: 17 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,11 +31,13 @@ Parameters
31
31
src
32
32
The source file or data set containing the JCL to submit.
33
33
34
-
It could be a physical sequential data set, a partitioned data set qualified by a member or a path. (e.g "USER.TEST","USER.JCL(TEST)")
34
+
It could be a physical sequential data set, a partitioned data set qualified by a member or a path (e.g. \ :literal:`USER.TEST`\ , \ :literal:`USER.JCL(TEST)`\ ), or a generation data set from a generation data group (for example, \ :literal:`USER.TEST.GDG(-2)`\ ).
35
35
36
-
Or a USS file. (e.g "/u/tester/demo/sample.jcl")
36
+
Or a USS file. (e.g \ :literal:`/u/tester/demo/sample.jcl`\ )
37
37
38
-
Or a LOCAL file in ansible control node. (e.g "/User/tester/ansible-playbook/sample.jcl")
38
+
Or a LOCAL file in ansible control node. (e.g \ :literal:`/User/tester/ansible-playbook/sample.jcl`\ )
39
+
40
+
When using a generation data set, only already created generations are valid. If either the relative name is positive, or negative but not found, the module will fail.
39
41
40
42
|**required**: True
41
43
|**type**: str
@@ -44,11 +46,11 @@ src
44
46
location
45
47
The JCL location. Supported choices are \ :literal:`data\_set`\ , \ :literal:`uss`\ or \ :literal:`local`\ .
46
48
47
-
\ :literal:`data\_set`\ can be a PDS, PDSE, or sequential data set.
49
+
\ :literal:`data\_set`\ can be a PDS, PDSE, sequential data set, or a generation data set.
48
50
49
51
\ :literal:`uss`\ means the JCL location is located in UNIX System Services (USS).
50
52
51
-
\ :literal:`local`\ means locally to the ansible control node.
53
+
\ :literal:`local`\ means locally to the Ansible control node.
52
54
53
55
|**required**: False
54
56
|**type**: str
@@ -311,6 +313,16 @@ Examples
311
313
location: data_set
312
314
max_rc: 16
313
315
316
+
- name: Submit JCL from the latest generation data set in a generation data group.
317
+
zos_job_submit:
318
+
src: HLQ.DATA.GDG(0)
319
+
location: data_set
320
+
321
+
- name: Submit JCL from a previous generation data set in a generation data group.
0 commit comments