Last active
May 29, 2018 16:52
-
-
Save phpdave/a1f5d8a6333d32ca8baa to your computer and use it in GitHub Desktop.
This file contains 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
alias db2='function _db2(){ echo "Running $1"; system -i "call QSYS/QZDFMDB2 parm('\''$1'\'')"; };_db2' | |
db2 "SELECT * FROM MYLIB.MYTABLE" | |
#Get fancy and search the data | |
db2 "SELECT * FROM MYLIB.MYTABLE" | grep "Smith" | |
#Alternatively you can run it through qsh - https://kadler.github.io/2018/05/29/calling-qsh-utilities-from-pase.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://kadler.github.io/2018/05/29/calling-qsh-utilities-from-pase.html