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;", "", "")

你可能感兴趣的:(python)