When you select Option 1 from the INSERT Process menu, the INSERT Process Table Map panel is displayed. Use this panel to specify the destination tables and views and provide processing overrides for individual tables.
--------------------------- INSERT Process Table Map --------------------------
Command ===> Scroll ===> PAGE
Available Commands: APPLY,SAVE,LIST,MAP,POPULATE,ACM,CLEAR,END when Done
MORE>>
Src CID: FOPDEMO Column
Dest CID: SOFTECH >> Map ID ===>
Extract Tables Destination Table Name Type Column Map or "LOCAL"
--------------------- ------------------------->> ------- ---------------------
************************************* TOP *************************************
CUSTOMERS CUSTOMERS TABLE
ORDERS ORDERS UNKNOWN
DETAILS DETAILS VIEW
ITEMS ITEMS LEGACY
*********************************** BOTTOM ************************************
This panel includes:
To edit the list:
If you leave a destination table name blank, the Extract File data from the corresponding source table is ignored for the current Insert Process.
Enter LOCAL to define a Column Map for the current Insert Process only.
Type the Column Map names or request a selection list, using the LIST MAPS command. Leave blank if a Column Map is not used.
You can use the POPULATE command to insert the name of a Column Map.
If you enter a new Column Map name or LOCAL, Move automatically invokes the Column Map editor to allow you to create the Column Map. To edit an existing Column Map, use the MAP command.
The INSERT Process Table Map is presented on two “pages”. MORE, preceded or followed by two arrows, indicates the presence of another page. Use the primary commands LEFT and RIGHT or the assigned function keys to scroll the page horizontally.
To provide processing overrides for selected tables, you can scroll to Overriding on the INSERT Process Table Map panel.
--------------------------- INSERT Process Table Map --------------------------
Command ===> Scroll ===> PAGE
Available Commands: APPLY,SAVE,LIST,MAP,POPULATE,ACM,CLEAR,END when Done
<<MORE
Src CID: FOPDEMO --Overriding--
Dest CID: SOFTECH >> Process Delete
Mode Before
Extract Tables Destination Table Name Type U/I/B Insert
--------------------- ------------------------->> ------- ------- ------
************************************* TOP *************************************
CUSTOMERS CUSTOMERS TABLE
ORDERS ORDERS UNKNOWN
DETAILS DETAILS VIEW
ITEMS ITEMS LEGACY
*********************************** BOTTOM ************************************
Process Mode and Delete Before Insert are displayed on the panel, and are blank by default. These prompts allow you to set the processing options for any table on an individual basis. The default processing options from the Specify INSERT Parameters and Execute panel are used for tables with no overriding parameters. (For a description of the default processing options, see page Insert Parameters Panel.)
If you specify overriding parameters for any table, a message on the panel indicates that you can view active table-level processing options by scrolling.
The LIST command is available for aliases, maps, synonyms, DB2 and Legacy Tables, and views. For example, to obtain a selection list of available DB2 and Legacy Tables, use the command LIST TABLES. A selection list of available tables with the destination Creator ID is displayed and, at the same time, a number is displayed by each name in Extract Tables on the Table Map editor. You can override the destination Creator ID with the LIST TABLES command as in LIST TABLES FOPDEMO.%.
To insert a destination name, type the number of the extract table in Num next to the name in the selection list. You can select as many tables from the list at one time as are listed in Extract Tables on the Table Map editor. Move automatically places a selected name in Destination Table Name, according to the number.
You can use the APPLY command to populate the Table Map with specifications from a previously defined Table Map. If the source tables in the process match the source tables in the Table Map, Move populates the destination table names from the existing Table Map. APPLY can be used to populate all table names and the Dest CID regardless of any entry, or populate only the blank areas.
Move automatically revises the Type each time you modify a destination table name. If you modify the Dest CID, any tables that are specified without an explicit Creator ID automatically use the new Dest CID. This may change the Type value and require review.
For example, assume the Dest CID is SOFTECH and the Destination Table Name is CUSTOMERS. The resultant table name is SOFTECH.CUSTOMERS. However, when the Dest CID is changed to COHEND, the table name becomes COHEND.CUSTOMERS and may be unknown. Move prompts for the information to create the table COHEND.CUSTOMERS before performing the Insert Process. (This prompt is displayed prior to entry onto the Specify INSERT Parameters and Execute panel.) You can explicitly supply the Creator ID with the Destination Table Name. Then, changing the Dest CID does not affect the table name.
Duplicate table names are not allowed. Therefore, the same table name cannot be specified twice as a destination table.
If necessary, you can use the ACM command to open the Choose Access Method pop-up window.
+-------- Choose Access Method -------+
¦ 1 of 4 ¦
¦ Access Method Values: ¦
¦ K - Key Lookup ¦
¦ S - Table Scan ¦
¦ blank - Software Chooses ¦
¦ ¦
¦ Access ¦
¦ Destination Table Name Method ¦
¦ --------------------------- ------ ¦
¦ ************** TOP **************** ¦
¦ FOPDEMO.CUSTOMERS ¦
¦ FOPDEMO.DETAILS ¦
¦ FOPDEMO.ORDERS ¦
¦ FOPDEMO.ITEMS ¦
¦ ************ BOTTOM *************** ¦
+-------------------------------------+
The ACM command allows you to override the default method (scan or key lookup) for accessing the parent or child table for each relationship. A scan reads all rows in a table at one time; whereas a key lookup locates rows using a WHERE clause to search for primary or foreign key values.
For more information, see the Common Elements Manual.
See the Common Elements Manual for details on these commands.
The Common Elements Manual provides detailed information on Column Maps and Table Maps.
Unless one or more Legacy Tables are referenced in the Table Map, use END to return to the Choose a Table Map panel from the display. Use the CANCEL command to abandon any changes made on this panel.
A Legacy Table that is referenced in a Table Map must be associated with a specific data source to be used in an Insert Process. Each time you exit the Table Map Editor using the END command, the Associate Legacy Tables with Data Destinations panel is displayed. The contents of the panel vary based on whether the Legacy Tables in the Table Map reference IMS™ Data, VSAM or sequential files, or both.
Legacy Tables provides detailed information about Legacy Tables.
In the following example, the Table Map references two Legacy Tables as the Source Tables (FOPLEG.LITEMS and FOPIMS.I$DETAILS) and as the Destination Tables (FOPLEG2.LITEMS and FOPIMS2.I$DETAILS). FOPLEG.LITEMS and FOPLEG2.LITEMS reference VSAM files and FOPIMS.I$DETAILS and FOPIMS2.I$DETAILS reference IMS data.
--------------- Associate Legacy Tables with Data Destinations ----------------
Command ===> Scroll ===> PAGE
Source Dataset Prefix : 1 of 2
Overriding Destination Dataset Prefix ===> MORE>>
Source Legacy Table / Source Data / Dest
Destination Dataset Status
Destination Legacy Table IMS--Segment DBD PSB PCB IMSID DBRC LOG
--------------------------- ---- -------- -------- -------- --- ---------- ---
*********************************** TOP *************************************
FOPLEG.LITEMS 'FOPRT.LEGACY.ITEMS' LEGACY
FOPLEG2.LITEMS 'FOPRT2.LEGACY.ITEMS'
FOPIMS.I$DETAILS IMS DETAILS SALEHDAM SALHDAMA 1 IMS9
FOPIMS2.I$DETAILS SALHDAMA 1 IMS9 N N
********************************* BOTTOM ************************************
This panel includes
The Destination Dataset is specified as a default in the Destination Legacy Table. If no data set is specified, this field is blank. To enter or modify the Data Destination:
If the Table Map contains a Legacy Table that references IMS data, IMS is designated and the source and destination segments within the DBD associated with the Legacy Table are displayed.
The PSB provides access to the IMS services that Move requires to access the database records.
The PSB must be included in the PSB library referenced in the Environment Definition for the destination Legacy Table. Specify an asterisk to generate a selection list that includes PSBs referenced in the Environment Definition for the IMS Legacy Table.
The PCB must exist within the specified PSB and grant Move the authorization to manipulate the data. Specify an asterisk to generate a selection list that includes PCBs in the specified PSB.
If the Table Map contains a Legacy Table that references IMS data, IMSID lists the IMS System ID associated with the source Legacy Table in the Table Map. You can specify the IMS ID used to override the ID specified in the Environment Definition for the destination Legacy Tables. The IMS ID is required to access the IMS data when allocated to a control region (i.e., the data is online to IMS).
The default for a HALDB (High Availability Large DataBase), is Y, and that entry cannot be changed.
DBRC use is optional for a non-HALDB, such as HIDAM, HDAM, HISAM, etc. Thus, you may specify Y for a non-HALDB, but it is not required.
If you specify Y, you must specify a dataset name for the IMS log on the Associate IMS Segments with IMS Database Datasets panel. The DD Name “IEFRDER” is used to allocate the log dataset on that panel.
If a PSB with a Processing Option (PROCOPT) other than G (Get) is used while accessing a HALDB in DL/I mode, you must specify the name of the dataset to be allocated for DD Name IEFRDER on the Associate IMS Segments with IMS Database Datasets panel.
After you specify the IEFRDER dataset name and exit the Associate IMS Segments with IMS Database Datasets panel, the Allocate Dataset panel automatically displays. You must provide sufficient Primary and Secondary space units on that panel to allocate the IEFRDER dataset. Failing to do so will cause IMS to abort processing and lock the database from further updates until a recover/rollback is done.
If no IMS Legacy Tables are referenced in the Table Map, use END to return to the INSERT Process menu. If one or more Legacy Tables are referenced and an IMS ID was not specified, use END to display the Associate IMS Segments with IMS Database Datasets panel. Use the CANCEL command to abandon any changes made on this panel and then return.
When you use END to exit the Associate Legacy Tables with Data Destinations panel and one or more Legacy Tables in the Access Definition reference IMS data and an IMS ID was not specified, the Associate IMS Segments With IMS Database Datasets panel is displayed.
This panel allows you to override the default IMS Database Dataset Name specified in the Retrieval Definition.
------------- Associate IMS Segments With IMS Database Datasets ---------------
Command ===> Scroll ===> PAGE
Overriding Destination Dataset Prefix ===> 1 of 7
DBD Segment DD Name Destination IMS Database Dataset Name
-------- -------- -------- -------------------------------------------
******************************** TOP *********************************
ITEMS ITEMSDBD ITEMDD
****************************** BOTTOM ********************************
This panel includes:
Enter the location of the IMS Database Dataset associated with each DD name in the DBD. This data is then associated with the named Legacy Table, during processing.
A Site Option (Require IMS Data Set Names) determines whether you can omit the data set name to allow IMS to dynamically allocate the data set. All users can specify '$MDA' as the data set name to choose dynamic allocation, regardless of this Site Option.
If IMS logging was requested, you must specify the Log dataset for DD Name IEFRDER. If a default name is displayed from the Provide Retrieval Information panel, you can override that name, if needed.
After you specify the IEFRDER dataset name and exit the Associate IMS Segments with IMS Database Datasets panel, the Allocate Dataset panel automatically displays. You must provide sufficient Primary and Secondary space units on that panel to allocate the IEFRDER dataset. Failing to do so will cause IMS to abort processing and lock the database from further updates until a recover/rollback is done.
Use END to return to the INSERT Process menu from the display. Use the CANCEL command to abandon any changes made on this panel.