Option patterns and pds_patterns accept a list of string either as a pattern or a list of data set names, so user can provide a list of data set names that contain some GDS relative data set names, in that case, the module needs to resolve the relative name into absolute name before packing to correctly archive the given data set name.
- name: Exclude data sets that have a low level qualifier 'TEST'
zos_find:
patterns: ZOAUSER.GDG(-1)
contains: "hello"
Internally, in the case of a data set name being a GDS relative name we should resolve those names into absolute GDS names when the generation number is 0 or negative.
Following functions will be implemented in #1386
# Sample of soon to be implemented gdg function
if DataSet.is_gds_relative_name(name):
src = DataSet.resolve_gds_absolute_name(src)
Symbols support
Changes done to the BetterArgParser should be adopted in the module to not break and use the correct escaped name in case of the data set name having a symbol in it.
Add symbol support to the dest_data_set name option.
data set name with symbol
ZOAUSER.TE$T
That way, the modules will have to retrieve the new escaped named and the original user provided name inside the dictionary like:
name = DataSet.escape_data_set_name(name)
Escaping special characters could be done via a new function inside the BetterArgParser.
These are some of the special characters:
#
@
$
-
For this task completion we need:
[ ] Do the development work
[ ] Update the docs to talk about GDG and GDS handling in the module.
[ ] Update the docs with at least 1 example on how to use with GDSs.
Enabler description
GDG/GDS Support
Option
patterns
andpds_patterns
accept a list of string either as a pattern or a list of data set names, so user can provide a list of data set names that contain some GDS relative data set names, in that case, the module needs to resolve the relative name into absolute name before packing to correctly archive the given data set name.Internally, in the case of a data set name being a GDS relative name we should resolve those names into absolute GDS names when the generation number is 0 or negative.
Following functions will be implemented in #1386
Symbols support
Changes done to the BetterArgParser should be adopted in the module to not break and use the correct escaped name in case of the data set name having a symbol in it.
Add symbol support to the dest_data_set name option.
data set name with symbol
ZOAUSER.TE$T
That way, the modules will have to retrieve the new escaped named and the original user provided name inside the dictionary like:
Escaping special characters could be done via a new function inside the BetterArgParser. These are some of the special characters:
For this task completion we need:
Ansible module
zos_find