The examples in this manual use the sample database distributed with Optim, which is described in this topic.
If Optim Legacy is installed, the sample data also includes several legacy files. Like the sample database, these files are created as part of the installation process. A sequential file, FOPDEMO.BKORDER, two VSAM data sets, FOPDEMO.VENDITEM and FOPDEMO.VENDOR, and four IMS data sets, FOPDEMO.FOPDEPDB, FOPDEMO.FOPDEPIX, FOPDEMO.FOPJOBDB, and FOPDEMO.FOPJOBIX, are provided.
For each legacy record, Optim Legacy needs a user-defined object, called a Legacy Table that describes the legacy data. Legacy Tables for records in the IMS and VSAM data sets are included in the sample data. These Legacy Tables are:
You can create a Legacy Table using COBOL or PL1 copybooks. Three COBOL copybooks are provided as part of the sample data and stored in the Installation Library. The distributed copybooks are:
The legacy data has a relational structure that must be replicated with user-defined relationships in order to use the legacy data in Move processes. The Optim relationship RVV (between the VENDOR and VENDITEM VSAM Legacy Tables) and the IMS relationships I1_2 (between the DEPARTMENT and EMPLOYEE IMS Legacy Tables) and I2_3 (between the EMPLOYEE and POSITION IMS Legacy Tables) are distributed with the sample data. Other relationships involving the sample legacy data are created in Scenario 3 – Legacy Tables.
Only the tables listed in the following charts are used in this manual. (The OPTIM_ prefix for each table name is not shown in the charts.) The charts show the tables and the relationships between them for each scenario listed in this manual. The arrows indicate the flow from parent to child.

The tables, files, and Optim relationships used in Scenario 3a are depicted in the following diagram. In this scenario, you will use sample data to extract back orders from the sequential file BKORDER, related items from the DB2 table ITEMS, and related records from the VSAM files VENDITEM and VENDOR. The DB2 table ITEMS is the parent of the Legacy Tables BKORDER and VENDITEM through the Optim relationships RIB and RIV, and VENDOR is the parent of VENDITEM through the RVV relationship.


If you use this manual as a tutorial, relationships may have been added in other training functions or by other users. Also, the data in DB2 tables or legacy files may have been changed in other sessions, or by other users.