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_fetch] Add gdg support to zos_fetch (#1519)
* Add support for GDGs
* Update module docs
* Fix fetch when requesting GDSs
* Add first version of GDG support tests
* Fix file name for GDS fetch
* Fix source existence check
* Add negative GDS test
* Add GDG fetching
* Update zos_fetch's RST
* Add changelog fragment
* Fix pep8 issues
* Update special chars test
---------
Co-authored-by: André Marcel Gutiérrez Benítez <[email protected]>
Copy file name to clipboardExpand all lines: docs/source/modules/zos_fetch.rst
+22-2Lines changed: 22 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,11 +16,13 @@ zos_fetch -- Fetch data from z/OS
16
16
17
17
Synopsis
18
18
--------
19
-
- This module fetches a UNIX System Services (USS) file, PS (sequential data set), PDS, PDSE, member of a PDS or PDSE, or KSDS (VSAM data set) from a remote z/OS system.
19
+
- This module fetches a UNIX System Services (USS) file, PS (sequential data set), PDS, PDSE, member of a PDS or PDSE, generation data set (GDS), generation data group (GDG), or KSDS (VSAM data set) from a remote z/OS system.
20
20
- When fetching a sequential data set, the destination file name will be the same as the data set name.
21
21
- When fetching a PDS or PDSE, the destination will be a directory with the same name as the PDS or PDSE.
22
22
- When fetching a PDS/PDSE member, destination will be a file.
23
23
- Files that already exist at \ :literal:`dest`\ will be overwritten if they are different than \ :literal:`src`\ .
24
+
- When fetching a GDS, the relative name will be resolved to its absolute one.
25
+
- When fetching a generation data group, the destination will be a directory with the same name as the GDG.
24
26
25
27
26
28
@@ -31,7 +33,7 @@ Parameters
31
33
32
34
33
35
src
34
-
Name of a UNIX System Services (USS) file, PS (sequential data set), PDS, PDSE, member of a PDS, PDSE or KSDS (VSAM data set).
36
+
Name of a UNIX System Services (USS) file, PS (sequential data set), PDS, PDSE, member of a PDS, PDSE, GDS, GDG or KSDS (VSAM data set).
35
37
36
38
USS file paths should be absolute paths.
37
39
@@ -187,6 +189,24 @@ Examples
187
189
to: ISO8859-1
188
190
flat: true
189
191
192
+
- name: Fetch the current generation data set from a GDG
193
+
zos_fetch:
194
+
src: USERHLQ.DATA.SET(0)
195
+
dest: /tmp/
196
+
flat: true
197
+
198
+
- name: Fetch a previous generation data set from a GDG
0 commit comments