Managing JD Edwards World Metadata

How to:

When the server accesses a data source, it needs to know how to interpret the data stored there. For each data source the server will access, you create a synonym that describes the structure of the data source and the server mapping of the data types.

Note: To create synonyms, you need to refresh the metadata, and also have both the JD Edwards World adapter and a DB2 adapter configured.


Top of page

x
Procedure: How to Refresh the Metadata
  1. Right-click the configured JD Edwards World adapter and select Refresh Metadata Repository.

    The Refresh Metadata Repository pane opens.

  2. In the JD Edwards World Version field, choose 7.x or 8.x.
  3. Enter the location of each of the following JDE files in the space provided. Only the library name is needed.

    For Version 7

    For Version 8

    File Use

    F0004 Library

    F0004 Library

    Contains JDE user-defined code types.

    F0005 Library

    F0005 LIbrary

    Contains JDE user defined codes file.

    F9202 Library

    F9202 Library

    Contains JDE data field specifications.

    F9201 Library

    F9210 Library

    Contains JDE data field display text.

    UDC Library

    Contains the name of the new library to be created. It is recommended that you start the name with UDCxxx.

  4. Click Refresh Now to create the files.


x
Procedure: How to Create a Synonym

To create a synonym, you must have previously configured the adapter.

  1. Right-click the configured JD Edwards World adapter and select Create Synonym.

    The Select connection to create synonym page opens.

  2. Click the DB2 connection to be used.
  3. Complete the information required using the Synonym Creation Parameters for JD Edwards World
  4. The final step is setting JD Edwards World security options.

    For details, see How to Set JD Edwards World Security.


Top of page

x
Reference: Synonym Creation Parameters for JD Edwards World

The following list describes the parameters for which you will need to supply values, and related tasks you will need to complete in order to create a synonym for the adapter. These options appear on multiple panes. To advance from pane to pane, click the buttons provided, ending with the Create Synonym button, which generates the synonym based on your entries.

Select Synonym Candidates for DB2 (DB2CON1) Step 1 of 3

Restrict Object Type to

Restrict candidates for synonym creation based on the selected object type(s): Tables, Views, External SQL Scripts, and any other supported objects.

Choosing External SQL Scripts from the drop-down list enables you to represent an SQL Query as a synonym for read-only reporting. A Synonym candidate can be any file that contains one (and only one) valid SQL Query and does not contain end-of-statement delimiters (";" or "/") and comments.

Depending on the adapter, you can further restrict your search by choosing check boxes for listed objects.

Library

Type a string for filtering the Library (or DB2 Collection), inserting the wildcard character (%) as needed at the beginning and/or end of the string. For example, enter: ABC% to select tables or views whose owner IDs begin with the letters ABC; %ABC to select tables or views whose owner IDs end with the letters ABC; %ABC% to select tables or views whose owner IDs contain the letters ABC at the beginning, middle, or end.

Object Name

Type a string for filtering the table, view, or object names, inserting the wildcard character (%) as needed at the beginning and/or end of the string. For example, enter: ABC% to select all tables, views, or objects whose names begin with the letters ABC; %ABC to select all whose names end with the letters ABC; %ABC% to select all whose names contain the letters ABC at the beginning, middle, or end.

Note: When you create a synonym for DB2 on the IBM i platform, standard IBM i naming conventions apply to the target data source. Therefore, the Adapter for DB2 supports the use of double-quotation marks around any library name and/or file name that contains lowercase or NLS characters.

Create Synonym for DB2 (DB2CON1) Step 2 of 3

Cardinality

Select the Cardinality check box to reflect the current cardinality (number of rows or tuples) in the table during metadata creation. Cardinality is used for equi-joins. The order of retrieval is based on the size (cardinality) of the table. Smaller tables are read first.

If the cardinality of the tables to be used in the application are dynamic, it may not be beneficial to choose this setting.

Build cluster using foreign keys (deprecated)

You can select the Build cluster using foreign keys check box to include within this synonym every table related to the current table by a foreign key. However, this option has been deprecated, as the recommended way to create a cluster is by using the Synonym Editor. The resulting multi-table synonym describes all of the foreign key relationships of this table.

Dynamic columns

To specify that the Master File created for the synonym should not contain column information, select the Dynamic columns check box.

If this option is selected, column data is retrieved dynamically from the data source at the time of the request.

One-part name

On the IBM i platform, the One-part name check box is unchecked by default. The unchecked behavior generates a table name that includes the explicit name of the library containing the table. For example, if you specified a library on the first Create Synonym pane, a qualified name like the following is automatically created in the Access File:

TABLENAME=MYLIB/MYTABLE

With this explicit type of entry in the Access File, at run-time the library is directly located and searched for the table name. If you select the check box, the explicit library name is not stored in the metadata (Access File). When the synonym is generated, the library portion of the table name is omitted from the Access File, and appears as follows:

TABLENAME=MYTABLE

With this type of entry in the Access File, at run time the library path of the user is searched until the table name is located.

For Subquery

Only available when External SQL Scripts is selected from the Restrict objects type to drop-down menu. When selected, a SUBQUERY keyword is added to the Access File of the generated synonym. If the corresponding SQL string has valid syntax that can be used in the FROM statement of the generated SQL (what is known as a Derived Table), then the SQL SCRIPT will be processed as a subquery embedded into a FROM clause. This usage allows for more flexibility. For example, the synonym can be used as a target for a JOIN.

If the SQL SCRIPT has parameter markers, such as ? or :, or the syntax contains constructs that are invalid for a derived table, for example ORDER BY, then this keyword should not be selected. At runtime, if SUBQUERY=Y is present and it is determined that the SQL SCRIPT cannot be used in the FROM statement, the setting will be ignored, and a FOC1782 warning message will be issued. The default is selected (SUBQUERY=Y).

Application

Select an application directory. The default value is baseapp.

Prefix/Suffix

If you have tables with identical table names, assign a prefix or a suffix to distinguish them. For example, if you have identically named human resources and payroll tables, assign the prefix HR to distinguish the synonyms for the human resources tables. Note that the resulting synonym name cannot exceed 64 characters.

If all tables and views have unique names, leave the prefix and suffix fields blank.

Customize data type mappings

To change the data type mappings from their default settings, select this check box. The customizable mappings are displayed.

Overwrite Existing Synonyms

To specify that this synonym should overwrite any earlier synonym with the same fully qualified name, select the Overwrite existing synonyms check box.

Note: The connected user must have operating system write privileges in order to recreate a synonym.

Create Synonym for DB2 Step 3 of 3

Select date format

The options are: YMD, YYMD, DMY, MDY, MDYY, DMYY, MYY,YYM. (YYMD is the default setting.) The selected format will be used only if the field is described as a DATE in the DataDictionary.

Presumptive Join

Select the Presumptive Joins check box to include additional DEFINEs (virtual fields) for presumptive join fields in the synonym.

The default setting is ON.

Field Names

Select the Long Fieldname radio button (the default) to display the field descriptions as names on reports. Select the Short Fieldname radio button to use the JDE aliases as field names on reports. The default setting is Long Fieldname.

Language Code

Enter the appropriate Language Code, which exists in the JDE F9292 file. (Leave the field blank for English.)

UDC

Select the UDC check box to ensure that UDC description fields are generated as DEFINEs (virtual fields) in the synonym. The default setting is ON.

Combine UDC

Select the Combine UDC check box to Combine User Defined Code. The default setting is OFF.


WebFOCUS