Topics: |
When the server accesses a data source, it needs information on 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 IMS data types.
You can create metadata entirely from the Web Console or the Data Management Console. The generated synonyms consist of a Master File and an Access File.
How to: |
Reference: |
Synonyms define unique names (or aliases) for each IMS PSB that is accessible from a server. Synonyms are useful because they hide location information and the identity of the underlying data source from client applications. They also provide support for extended metadata features of the server, such as virtual fields and additional security mechanisms.
For the Adapter for IMS to access an IMS PSB, you must create a synonym for each IMS PSB you access. The logical description of an IMS file is stored in a Master File, which describes the field layout.
Using synonyms allows an object to be moved or renamed while allowing client applications to continue functioning without modification. The only modification required is a redefinition of the synonym on the server. The result of creating a synonym is a Master File and Access File.
The Applications page opens.
The Connect to Data page opens.
Depending on the type of adapter you chose, one of the following options appears on the context menu.
The button may be labeled Next, Create Synonym, Create Base Synonyms, Create Cluster Synonym, or Update Base Synonyms.
The synonym creation process for most adapters has been consolidated so that you can enter all necessary parameters on one page. However, for some adapters such as LDAP, you must click Next buttons until you get to a page that has a Create Synonym button.
The synonym is created and added under the specified application directory.
Note: When creating a synonym, if you choose the Validate check box (where available), the server adjusts special characters and checks for reserved words. For more information, see Validation for Special Characters and Reserved Words.
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 may 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.
Selecting this check box adds a Name input field that allows you to filter the PSB names for which you wish to create synonyms.
Enter a string for filtering the PSB names, inserting the wildcard character (%) as needed at the beginning and/or end of the string. For example, enter ABC% to select PSBs which begin with the letters ABC; %ABC to select PSBs which end with the letters ABC; %ABC% to select PSBs which contain the letters ABC at the beginning, middle, or end
Is the MVS library name that corresponds to the IMS DBDLIB. This must be a fully qualified MVS data set name.
Is the MVS library name that corresponds to the IMS PSBLIB. This must be a fully qualified MVS data set name.
Select a member name from the drop-down list.
COBOL FD Selection Options
Select this option if you have a Cobol FD library available that describes the PCB view. You have to select segments in this case.
If you do not select this option, the final screen opens without the option to select a Cobol FD entry. Create Synonym then creates a skeleton synonym using the Data Base Definition defined fields.
Select one of the following from the drop-down list:
Depending on your selection for File System, enter the fully qualified PDS name or absolute directory path that contains the COBOL FD.
Depending on your selection for File System, enter the member name or file that contains the COBOL FD.
You can enter a string for filtering these names, inserting the wildcard character (%) as needed at the beginning and/or end of the string. For example, enter ABC% to select names which begin with the letters ABC; %ABC to select names which end with the letters ABC; %ABC% to select names which contain the letters ABC at the beginning, middle, or end.
If you selected Absolute HFS directory pathname as the file system, enter the extension of the file that contains the COBOL FD.
For each segment that you want to map using a COBOL FD, select the appropriate COBOL FD from the drop-down list.
Additional Options
Select the Validate check box if you wish to convert all special characters to underscores and perform a name check to prevent the use of reserved names. (This is accomplished by adding numbers to the names.) This parameter ensures that names adhere to specifications. See Validation for Special Characters and Reserved Words for more information.
When the Validate option is unchecked, only the following characters are converted to underscores: '-'; ' '; ' \'; '/'; ','; '$'. No checking is performed for names.
Select the Make unique check box if you wish to set the scope for field and group names to the entire synonym. This ensures that no duplicate names are used, even in different segments of the synonym. When this option is unchecked, the scope is the segment.
Optionally, select Customize COBOL FD conversion options to customize how the COBOL FD is translated. If you do not select the check box, default translation settings are applied.
For more information, see Customization Options for COBOL File Descriptions.
Select an application directory. The default value is baseapp.
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.
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.
This column displays the name that will be assigned to each synonym. To assign a different name, replace the displayed value.
Use the following steps to create a synonym for the AIHDAM data source:
The Applications page opens.
The Select adapter to configure or Select connection to create synonym pane opens.
Note: You can also create a synonym from the Adapters page by right-clicking the configured IMS connection and selecting Create Synonym.
IMS.V7R1M0.B.DBDLIB
IMS.V7R1M0.B.PSBLIB
ai%
The PSB Selection screen opens.
The PCB Selection screen opens.
You should get a message indicating that the synonym was created successfully.
FILENAME=AIHDAM, SUFFIX=IMS , $ SEGMENT=LANGUAGE, SEGTYPE=S0, $ $ GROUP=AIHDAM_IO, ALIAS=E1, USAGE=A19, ACTUAL=A19, $ FIELDNAME=EMPL6, ALIAS=EMPL6.HKY, USAGE=I11, ACTUAL=I4, $ FIELDNAME=LANG6, ALIAS=LANG6.IMS, USAGE=A15, ACTUAL=A15, $
PSB=AIHDPSB, WRITE=NO, PCBNUMBER=5, PL1=NO, $ SEGNAME=LANGUAGE, KEYTYPE=S0, $ XDFLD=IXEMP6, SRCH=EMPL6, ALTPCBNUMBER=5, $
Once you have created a synonym, you can right-click the synonym name in the Adapter navigation pane of either the Web Console or the Data Management Console to access the available options.
For a list of options, see Synonym Management Options.
The SENSEG parameter is used in a PCB description to define a subset of accessible DBD segments. CREATE SYNONYM produces Master File segments based on the SENSEG information obtained from the PSB, and not from the database definition.
The SENSFLD parameter is used in a PCB description to define a subset of accessible IMS fields in a segment. IMS fields are defined in the DBD. The list of fields in a Master File SEGMENT is generated based on the SENSFLD information, and not on the DBD field definitions.
SENSFLD macros can redefine the layout of an IMS database segment record by using the "START = xx" parameter. Different layouts can be defined in the DBD and SENSFLD. The Master File segment layout (field information) is derived from the SENSFLD.
WebFOCUS | |
Feedback |