To work with the EGL Text User Interface sample, do as follows:
- 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
- To generate and run the application as a Java application, do this:
- Import the
EmployeeLinkage.eglbld file into your build descriptor
- Make sure the build descriptor option linkage is set to EmployeeLinkage
- Make sure the build descriptor option targetNLS is set to ENU
- Make sure a valid user ID and password are supplied for a DB2 SQL database connection
- Select Window > Preferences
- Expand EGL and select SQL Database Connections
- Supply a valid DB2 User ID and password
- 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.
- Right click on the project and select Generate
- Right click on DCLIENT.java or LCLIENT.java in the JavaSource directory and select Run > Java Application
- To generate and run the application as a z/OS CICS COBOL application, do this:
- Import the
EmployeeLinkage.eglbld file into your build descriptor
- Make sure the build descriptor option linkage is set to EmployeeLinkage
- Make sure the build descriptor option targetNLS is set to ENU
- Make sure the build descriptor has the correct values for the symparms
DSNLOAD, ELA, and DSYS; for example: DSNLOAD = DSN7.DSNLOAD, ELA = WSED.R5V1M2, DSYS=DSN7
- Right click on the project and select Generate
- Define the transaction and the generated programs, data tables, and form groups to CICS
- Execute the transaction
|