Use resource associations parts to relate a logical file
name to a system resource name that is on the platform where the generated
code is deployed.
To edit a resource associations part, follow these steps:
- Locate the EGL build file you want to work with in the Project
Explorer view. To find it, open the EGL Source folder, and look for
a file with the extension EGLBLD. Right-click on the build file to
open the pop-up menu.
- In the pop-up menu, select . The Build
Parts Editor opens the Build Descriptor part automatically; the default
view is the General Options view.
- If you have the Outline view open, you will see the build parts
listed under the name of your build file. If you do not have the Outline
view open and want to open it, select ; in the Show View dialog box, click to expand General and
select Outline.
- In the Outline view, right-click a resource associations part
and click Open. The editor displays the current
part definition.
- To add a new Association element to the part, click Add
Association or press the Insert key, and type the logical
file name. The logical file name must match one of the following:
- The fileName property for a serial,
indexed, or relative record.
- The queueName property
for an WebSphere® MQ (formerly MQSeries®) record
- printer, if you want to define
how print forms are to be implemented.
- To create an entry to specify how your logical file is to be implemented
for a particular target system, select the row in the Association
elements list that corresponds to your logical file name,
then click Add System. To select your target
system, you can perform one of the following actions:
- Select the corresponding row in the Association elements list,
then click the name once to put the field into edit mode. Select the
new system name from the System drop-down list.
- In the Properties of selected system entries list,
click the system property once to put the Value field
associated with that property into edit mode. Select the new system
name from the Value drop-down list.
- To change the default file type associated with your logical file
name, you can either:
- Select the row in the Association elements list
that corresponds to your logical file name, then click the name once
to put the field into edit mode. Select the new file type from the File
Type drop-down list.
- Select the row in the Association elements list
that corresponds to your logical file name. In the Properties
of selected system entries list, click the fileType property
once to put the Value field associated with
that property into edit mode. Select the file type from the Value drop-down
list.
- Modify the resource associations as needed.
- To associate more than one system and set of related properties
with a logical file name, select the row in the Association
elements list that corresponds to your logical file name.
At the bottom of the Association elements list,
click Add System. The added row is now selected
and available for editing.
- To remove a system and related properties from an associated logical
file name, select the row in the Association elements list
that corresponds to the system you want to remove for your logical
file name. At the bottom of the Association elements list, click Remove or
press the Delete key.
- To remove a logical file name and all associated systems, select
the row in the Association elements list that
corresponds to your logical file name. At the bottom of the Association
elements list, click Remove or
press the Delete key.