Skip to content

Instantly share code, notes, and snippets.

@mainframed
Last active January 9, 2018 04:01
Show Gist options
  • Save mainframed/cca304ac60fad52106c3ad7ebd82c903 to your computer and use it in GitHub Desktop.
Save mainframed/cca304ac60fad52106c3ad7ebd82c903 to your computer and use it in GitHub Desktop.
#!/bin/sh
#
# This little script will list a lot of datasets and their members
# You need to install tsocmd from ibm (but most people have already)
#
# By SoF
echo " CATList by SoF"
echo ""
echo " [+] Getting Catalog"
sleep 5
/bin/tsocmd listcat > /tmp/cat
echo " [+] Listing members in all datasets"
sleep 4
for i in `cat /tmp/cat`; do echo $i; /bin/tsocmd listds "'$i'" members;done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment