Creating a proper environment for building and running DB2 applications requires properly setting up the following:
Checking your Compiler or Interpreter Environment
To develop DB2 programs, you must use a compiler or interpreter for one of the supported programming languages for your operating system, listed in "Supported Software by Platform". It is recommended that you ensure your existing compiler or interpreter environment is correctly set up by first building a non-DB2 application. Then, if you encounter any problems, please see the documentation that comes with your compiler or interpreter.
Setting Up the DB2 Environment
To set up your DB2 environment, the following must be installed and working:
Updating the Database Manager Configuration File
This file contains important settings for application development. You can change these settings by entering:
db2 update dbm cfg using <keyword> <value>
and you can view the settings by entering:
db2 get dbm cfg
See the Command Reference for more information on using these commands.
For more detailed information on installation and setup, refer to the Quick Beginnings book for your operating system.
When the above are installed and working, you can set up your operating system environment by following the steps in one of the following sections:
After you set up your operating system environment, you may want to create the sample database, which is used by the sample programs in this book. To create the database, see "Creating, Cataloging, and Binding the Sample Database"