Description
The Table Definition screen allows you to:
To define a new table, you specify the table type, either view or stored. If the table is a view, you can specify table derivation information. You can identify one or two source tables used to derive the view and specify the conditions used to join two source tables.
Note: If the view is derived from more than two source tables or from one or more records, specify the derivation information on the Extended Derivation screen, discussed in the chapter "Extended Screens".
Access
You can access the Table Definition screen in the following ways:
Sample Screen
CA TDEF CA - Automatic System Facility ** Table Definition ** DC560005 MODIFY AND/OR SELECT NEXT ACTIVITY _ PF1 - Help _ PF4 - Extended Table Definition _ PF2 - Define Columns _ PF5 - Delete Table Definition _ PF3 - Generate _ PF6 - Message Screen Table Name.: APPLICANT Table Owner: SNELL Defn Number: 416 View/Stored: STORED Status.....: REDEFINITION Comments...: Table Derivation Source Table #1 Table Name.: Table Owner: Source Table #2 Table Name.: Table Owner: Column #1: Column #2 Where Column #1 EQ Column #2
Fields
Displays the name of the table specified on the Activity Selection screen.
Displays the name of the table owner specified on the Activity Selection screen.
Enter the table type VIEW or STORED. The default value for this field is STORED. To define a view, specify VIEW. Enter a minimum of one character (V or S) to indicate the table type. The table type can only be changed when the table's status is NEW (see the Status field below).
Enter an optional short (up to 40 characters) description of the table. If DBCS is installed, this field allows both EBCDIC and DBCS characters.
Displays the table definition number generated by the system when the table is defined.
This field can be set by a DBA (or someone with administrative authority), before ASF assigns a number. If ASF has already set a number, it cannot be changed. If the definition number is set to a number other than the default number that ASF would use, ASF will use the skipped numbers for subsequent tables in reverse order. ASF will start with the number preceding the one specified in this field, and work backwards until the skipped numbers are used up. For instance, if the last table's definition number was 120, and you changed the definition of this table to 140, the next table generated will have a table definition number of 139.
Shows the current status of the table, as follows:
Invokes the Help screen.
Invokes the Column Definition screen, which allows you to define, modify, or delete columns for the table.
Creates the application components that allow you to use the table.
Invokes the Extended Table Definition screen, which allows you to specify additional characteristics for the table and displays more information about the table.
Deletes the table definition and its application components. For a stored table, this action erases from the database all data stored in the table. When this function is selected, you are prompted to press [Enter] to delete the table.
Indicates that additional error messages can be displayed on a separate screen. The message display line will instruct you to press [PF6] when there are error messages to be displayed.
Enter the source table names and criteria to create a new table from one or two existing tables. Note that you must hold a COPY passkey for the source tables to perform table derivation. Through table derivation, you can perform the relational operations project, select, and join. You can specify a single source table and derive a new table by choosing columns (projecting) or by choosing specific rows in the table (selecting). Alternatively, you can specify two source tables and join them on a common column value. From the joined tables you can then choose columns and select rows.
Define a table through a simple table derivation by completing the response fields under the Table Derivation heading, as follows:
If you are deriving a table from only one source table, you do not have to enter any other information for the simple table derivation.
Complete the following fields to specify the criteria that join the two source tables. Typically, a simple table derivation is based on a column common to both source tables. This column is called the join column.
Note: You can use the Table Definition screen to begin defining a table derivation, then access the Extended Table Derivation screen to identify additional sources and/or join criteria. To access the Extended Table Derivation screen, type xder in the screen name field.
|
Copyright © 2014 CA.
All rights reserved.
|
|