A remote unit of work relational database sample program is shipped with the SQL product. There are several files and members within the QSQL library to help you set up an environment that will run a distributed DB2® UDB for iSeries™ sample program.
To use these files and members, you need to run the SETUP batch job located in the file QSQL/QSQSAMP. The SETUP batch job allows you to customize the example to do the following:
Before running the SETUP, you may need to edit the SETUP member of the QSQL/QSQSAMP file. Instructions are included in the member as comments. To run the SETUP, specify the following command on the system command line:
========> SBMDBJOB QSQL/QSQSAMP SETUP
Wait for the batch job to complete.
To use the sample program, specify the following command on the command line:
========> ADDLIBLE QSQSAMP
To call the first display that allows you to customize the sample program, specify the following command on the command line.
========> CALL QSQ8HC3
The following display appears. From this display, you can customize your database sample program.
DB2 for OS/400 ORGANIZATION APPLICATION ACTION...........: _ A (ADD) E (ERASE) D (DISPLAY) U (UPDATE) OBJECT...........: __ DE (DEPARTMENT) EM (EMPLOYEE) DS (DEPT STRUCTURE) SEARCH CRITERIA..: __ DI (DEPARTMENT ID) MN (MANAGER NAME) DN (DEPARTMENT NAME) EI (EMPLOYEE ID) MI (MANAGER ID) EN (EMPLOYEE NAME) LOCATION.........: ________________ (BLANK IMPLIES LOCAL LOCATION) DATA.............: _______________________________ Bottom F3=Exit (C) COPYRIGHT IBM CORP. 1982, 1991