Skip to content

Instantly share code, notes, and snippets.

@plavjanik
Created March 22, 2022 10:05
Show Gist options
  • Select an option

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

Select an option

Save plavjanik/566e865d6156c22651d62f83fe07ac76 to your computer and use it in GitHub Desktop.
Example of simple Bash script with Zowe CLI
#!/usr/bin/env bash
set -ex
# Obtain the list of data sets:
dslist=$(zowe zos-files list data-set "MY.PROJECT.DS*")
# Delete each data set in the list:
IFS=$'\n'
for ds in $dslist
do
echo "Deleting Temporary Project Dataset: $ds"
zowe files delete ds "$ds" -f
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment