To edit or create a relationship, select Option 6.2 Relationships from the Main Menu.
You can also select Option 6 DEFINITIONS to display the Choose a Definition Option menu (see Choose a Definition Option) and select Option 2 RELATIONSHIPS. In either case, the Choose a Relationship panel is displayed.
Figure: Choose a Relationship
---------------------------- Choose a Relationship ---------------------------- OPTION ===> SCROLL ===> PAGE 1 CREATE - Create a Relationship for Specified Parent or Child Table 2 MODIFY - Modify a Relationship for Specified Child Table 3 LIST - List All Relationships for Specified Table Specify Table Name (Child for OPTION 2, Parent or Child for OPTIONS 1 and 3) Creator ID ===> FOPDEMO >> Table Name ===> CUSTOMERS >> Specify Relationship Name (OPTIONS 1 and 2) Relationship Name ===> >> Specify Relationship Type (OPTIONS 2 and 3) Relationship Type ===> (P|0-OPTIM, D-DB2, I-IMS, A-All) Use '_' for DB2 LIKE character ===> NO (Y-Yes, N-No)
The Choose a Relationship panel allows you to create, modify, and select relationships. To use this panel, select an option and provide the needed information. You can type the necessary information on the panel or use DB2® LIKE syntax.
The options on the Choose a Relationship panel include:
After you specify a table name or select one from a selection list, the Create a Relationship panel is displayed. That panel is described in Create a Relationship.
After you indicate the Relationship Type and type a Relationship Name or select one from a selection list, the Modify Relationship panel (for an Optim relationship) or the read-only Browse Relationship panel (for a DB2 relationship) is displayed.
Once you indicate the Relationship Type and supply a Table Name by typing it on the panel or selecting a table from a list, the Select Relationship panel is displayed (refer to Relationship Selection List). Select a table from the list to display the Modify Relationship panel (for an Optim relationship) or the read-only Browse Relationship panel (for a DB2 relationship).
The prompts on the Choose a Relationship panel include:
P or O Include relationships defined to the Optim Directory.
D Include relationships defined to the DB2 Catalog.
I Include IMS™ relationships (Move or Compare for IMS, VSAM, and Sequential Files only).
A Include all types of relationships.
For example, depending on the use of the underscore character, “A_B” can be a three-character name containing the characters “A_B”, as entered, or a three-character name that begins with “A” and ends with “B” with any valid character in the middle.