Rational Developer for System z
PL/I for Windows, Version 8.0, Programming Guide

Connecting to a data source

Your ODBC application needs to connect to the data source either using a logon dialog box or a connection string, depending on the data source.

Using a logon dialog box

Some ODBC applications display a logon dialog box when you are connecting to a data source. In these cases, the data source name has already been specified.

In the logon dialog box, do the following:

  1. Type the name of the remote database or select the name of the remote database from the Database Name drop-down list.

    You must have cataloged any database you want to access from the client.

  2. If required, type your user name (authorization ID).
  3. If required, type your password.

    If you leave your user name and password blank, the ODBC application assumes you have already logged on using SQLLOGN2 (under DOS) or using User Profile Management. If you have not, the application returns an error. You must either type your user name and password in the dialog box or log on using SQLLOGN2 and STARTDRQ (under DOS) or using User Profile Management.

  4. Click OK to complete the logon and to update the values in ODBC.INI.

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)