Skip to content

Instantly share code, notes, and snippets.

@plavjanik
Last active March 22, 2022 10:58
Show Gist options
  • Select an option

  • Save plavjanik/dced8fc4fd30146a05312182c21c1317 to your computer and use it in GitHub Desktop.

Select an option

Save plavjanik/dced8fc4fd30146a05312182c21c1317 to your computer and use it in GitHub Desktop.
import subprocess
completed_process = subprocess.run('zowe zos-files list data-set "MFAAS.ZIGI.*"',
shell=True, capture_output=True, check=True, encoding="utf8")
data_set_names = completed_process.stdout.splitlines()
for data_set_names in data_set_names:
print(data_set_names)
# Prints list of data sets with ZOWEUSER prefix - for example:
# ZOWEUSER.EXEC
# ZOWEUSER.PANELS
# ZOWEUSER.README
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment