Adding an employee at a remote location
You can use the distributed organization sample application to add information for employees at remote locations.
Procedure
To add an employee at a remote location:
- Enter the following values:
- On the ACTION line, enter a for add.
- On the OBJECT line, enter em for employee.
- On the SEARCH CRITERIA line, enter ei for employee number.
- On the LOCATION line, enter your server location for the remote location.
- On the DATA line, enter the employee ID of the employee to be added (sj0100 in the example below).
Figure 1. Starting the distributed organization application DB2 ORGANIZATION APPLICATION ===>_ ACTION .........:a A (ADD) E (ERASE) D (DISPLAY) U (UPDATE) OBJECT .........:em DE (DEPARTMENT) EM (EMPLOYEE) DS (DEPT STRUCTURE) SEARCH CRITERIA :ei DI (DEPARTMENT ID) MN (MANAGER NAME) DN (DEPARTMENT NAME) EI (EMPLOYEE ID) MI (MANAGER ID) EN (EMPLOYEE NAME) LOCATION .......:your server location (Blank implies local location) DATA ...........:sj0100 PRESS: ENTER to process END to exit
- Press the ENTER key. The panel below allows you to enter information only about the employee. The department information on the panel is protected. Enter the necessary information about the employee.
Figure 2. Employee to be added DB2 ORGANIZATION APPLICATION ===>_ ADD AN EMPLOYEE DEPARTMENT ID : NAME : MANAGER ID : ADMIN DEP ID : LOCATION : EMPLOYEE ID : SJ0100 FIRST NAME : W MIDDLE INITIAL : LAST NAME : WALTERS WORK DEPT ID : F22 PRESS: ENTER TO PROCESS END TO EXIT
- Press the ENTER key to process or END to exit. If you press
the ENTER key, a message appears on the panel indicating that the
employee has been added.
Figure 3. Employee successfully added DB2 ORGANIZATION APPLICATION ===>_ DSN8002I DSN8HC3-EMPLOYEE SUCCESSFULLY ADDED ADD AN EMPLOYEE DEPARTMENT ID : F22 NAME : SPIFFY COMPUTER SERVICE DIV. MANAGER ID : ADMIN DEP ID : E01 LOCATION : SAN_JOSE EMPLOYEE ID : SJ0100 FIRST NAME : W MIDDLE INITIAL : LAST NAME : WALTERS WORK DEPT ID : F22 PRESS: ENTER TO PROCESS END TO EXIT
- Press the ENTER key to return to the selection panel or END to exit.