A LANSA table may also be referred to as a database table. Table columns are defined by adding fields to the table. Once a table is compiled, the records in it can be retrieved, added, updated and deleted.
Objectives
The table definitions will be as follows:
Department Table iiiDepartments | Employee Table iiiEmployees | |
iiiDeptCode** | iiiEmployNumber** |
|
Note: Tables can be created manually or by copying an existing table definition in the LANSA Repository. In this lesson, you will manually create the table definitions so that you can see all the steps involved. If you copy an existing LANSA table definition, the table columns, rules, and all other related database information about the table can be copied.
To achieve these objectives, you will complete the following:
Step 1. Create Table Definition
Step 2. Compile the Table
Step 3. Create Department Maintenance Form
Step 4. Execute Department Maintenance Form
Step 5. Create the Employee Table
Step 6. Create Employee Maintenance Form
Step 7. Execute Employee Maintenance Form
Step 8. Database Attributes
Summary