Python for z/OS

  • Install pythondev
  • Install DB2 or server driver package
  • easy_install ibm_db
  • Get license file from torolab.

   ftp://db2ftp.torolab.ibm.com:/devinst/db2_v95GA/licenses/s071001/consv_zs/db2/license/db2consv_zs.lic

 

  • Run follow command:

    db2licm –a db2consv_zs.lic

  • Test your connection:
import ibm_db
ibm_db.connect("DATABASE=name;HOSTNAME=host;PORT=60000;PROTOCOL=TCPIP;UID=username;
                PWD=password;", "", "")
posted @ 2014-02-13 11:20  db2zos  阅读(444)  评论(0编辑  收藏  举报