DB2 ist ein Produkt der
IBM Corporation. Bitte Copyright- und Trademark-Hinweise beachten!
SQLJ application that uses the DB2 Universal JDBC Driver http://www-1.ibm.com/support/docview.wss?rs=64&context=SSEPEK&q1=sqlj+application&uid=swg27004921&loc=en_US&cs=utf-8&lang=en
Abstract
This sample program shows how to write an SQLJ application using the DB2 Universal JDBC Driver and type 4 connectivity to access a DB2 database.
Content
This sample program shows how to write an SQLJ application using the DB2 Universal JDBC Driver and type 4 connectivity to access a DB2® database.
To run the example:
1. Download the App.sqlj
2. Edit App.sqlj as you are instructed in the comments:
- Update the value of the url variable to specify the server, port, and database for your DB2 server.
3. Translate, compile, customize, and run App.sqlj using the sqlj and db2sqljcustomize utilities and the java command.
Example submitted by:
IBM® Redbook: DB2 for OS/390® and z/OS® Powering the World's e-business Solutions (SG24-5945-00) http://www.redbooks.ibm.com/abstracts/SG245945.html
Rate this example
Notice: This example is from the DB2® Examples Trading Post and is provided on an "as-is" basis. You may copy and modify this example in any form without payment to IBM, for the purposes of designing and developing application programs conforming to the application programming interface for the z/OS or OS/390® operating system for which these examples are written. This example has been tested, but it has not been thoroughly tested under all conditions. IBM, therefore, cannot guarantee or imply reliability, serviceability, or function of this example in your particular environment. Use this example as a model for your own situations.
P.S. Please pass my address to anyone interested in DB2 HOTLINE - thank you.
With kind regards
Michael Dewert, Software GroupTechnical Sales DB2
© Gernot Ruban