Here are the instructions for setting up the EGL Text User
Interface sample.
Before you begin
Before running the sample, do the following:
- Ensure that DB2® and the
Sample database are installed on the target platform.
- To debug, right click on either DetailClient.egl
or ListingClient.egl and select Debug EGL program.
About this task
To generate and run the application, do the following:
Procedure
- Import EmployeeLinkage.eglbld into your
build descriptor file. Open the file in your EGL editor, click the
"Imports" tab, and the "Add" button. Specify EmployeeLinkage.eglbld in
the resulting dialog.
- Set the build descriptor option linkage is set to
"EmployeeLinkage".
- Set the build descriptor option targetNLS to "ENU".
- If you are generating for Java™,
supply a valid user ID and password for a DB2 SQL database connection. Under , expand EGL and select SQL Database Connections; supply
a valid DB2 User ID and password.
- If you are generating for Java,
make sure the project Java build
path contains the path of the db2jcc.jar file on your machine; for
example: D:\Program Files\IBM\SQLLIB\java\db2jcc.jar. Also include
db2jcc_license_cu.jar and db2jcc_license_cisuz.jar if they are in
the same directory.
- If you are generating for COBOL, make sure the build descriptor
has the correct values for the DSNLOAD, ELA, and DSYS symbolic parameters;
for example: DSNLOAD = DB2INST.SDSNLOAD, ELA = ELA.V6R0M1,
DSYS = DSNX
- Right click on the project and select Generate.
- Right click on DCLIENT.java or LCLIENT.java in the JavaSource
directory and select .