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_encode] Support for GDS in zos_encode (#1531)
* Update validation to use new data set class
* Add support for GDG/GDS
* Add negative GDS test
* Add more GDS tests
* Fix dest validations
* Update docs
* Add more negative tests
* Add tests for GDS destinations
* Add GDS support for backups
* Add tests for GDS backup support
* Add test for data set with special symbols
* Add changelog fragment
* Update docs
---------
Co-authored-by: Fernando Flores <[email protected]>
Copy file name to clipboardExpand all lines: docs/source/modules/zos_encode.rst
+26-2Lines changed: 26 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,27 +54,31 @@ encoding
54
54
55
55
56
56
src
57
-
The location can be a UNIX System Services (USS) file or path, PS (sequential data set), PDS, PDSE, member of a PDS or PDSE, or KSDS (VSAM data set).
57
+
The location can be a UNIX System Services (USS) file or path, PS (sequential data set), PDS, PDSE, member of a PDS or PDSE, a generation data set (GDS) or KSDS (VSAM data set).
58
58
59
59
The USS path or file must be an absolute pathname.
60
60
61
61
If \ :emphasis:`src`\ is a USS directory, all files will be encoded.
62
62
63
+
Encoding a whole generation data group (GDG) is not supported.
64
+
63
65
|**required**: True
64
66
|**type**: str
65
67
66
68
67
69
dest
68
70
The location where the converted characters are output.
69
71
70
-
The destination \ :emphasis:`dest`\ can be a UNIX System Services (USS) file or path, PS (sequential data set), PDS, PDSE, member of a PDS or PDSE, or KSDS (VSAM data set).
72
+
The destination \ :emphasis:`dest`\ can be a UNIX System Services (USS) file or path, PS (sequential data set), PDS, PDSE, member of a PDS or PDSE, a generation data set (GDS) or KSDS (VSAM data set).
71
73
72
74
If the length of the PDSE member name used in \ :emphasis:`dest`\ is greater than 8 characters, the member name will be truncated when written out.
73
75
74
76
If \ :emphasis:`dest`\ is not specified, the \ :emphasis:`src`\ will be used as the destination and will overwrite the \ :emphasis:`src`\ with the character set in the option \ :emphasis:`to\_encoding`\ .
75
77
76
78
The USS file or path must be an absolute pathname.
77
79
80
+
If \ :emphasis:`dest`\ is a data set, it must be already allocated.
81
+
78
82
|**required**: False
79
83
|**type**: str
80
84
@@ -100,6 +104,8 @@ backup_name
100
104
101
105
\ :literal:`backup\_name`\ will be returned on either success or failure of module execution such that data can be retrieved.
102
106
107
+
If \ :emphasis:`backup\_name`\ is a generation data set (GDS), it must be a relative positive name (for example, \ :literal:`HLQ.USER.GDG(+1)`\ ).
108
+
103
109
|**required**: False
104
110
|**type**: str
105
111
@@ -253,6 +259,24 @@ Examples
253
259
from: ISO8859-1
254
260
to: IBM-1047
255
261
262
+
- name: Convert file encoding from a USS file to a generation data set
263
+
zos_encode:
264
+
src: /zos_encode/test.data
265
+
dest: USER.TEST.GDG(0)
266
+
encoding:
267
+
from: ISO8859-1
268
+
to: IBM-1047
269
+
270
+
- name: Convert file encoding from a USS file to a data set while using a GDG for backup
0 commit comments