Last active
March 22, 2022 10:58
-
-
Save plavjanik/dced8fc4fd30146a05312182c21c1317 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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