Configuring the Adapter for NATURAL

In this section:

x

Configuring the adapter consists of specifying connection and authentication information for each of the connections you want to establish.


Top of page

x
Declaring Connection Attributes

How to:

Reference:

In order to connect to NATURAL, the adapter requires connection and authentication information. You supply this information using the SET CONNECTION_ATTRIBUTES command. You can:

You can declare connections to more than one data source by including multiple SET CONNECTION_ATTRIBUTES commands. The actual connection to NATURAL takes place when the first query that references that connection is issued. If you issue multiple SET CONNECTION_ATTRIBUTES commands:



x
Procedure: How to Declare Connection Attributes

You can configure the adapter from either the Web Console or the Data Management Console.

  1. From the Web Console menu bar, click Adapters.

    or

    From the Data Management Console, expand the Adapters folder.

    The Adapters folder opens.

  2. Expand the Available folder, if it is not already expanded.
  3. Expand the appropriate group folder and the specific adapter folder. The group folder is described in the connection attributes reference.
  4. Right-click the adapter name and/or version and select Configure.

    The Add Adapter to Configuration pane opens.

  5. Enter values for the parameters required by the adapter, as described in the connection attributes reference.
  6. Click Configure. The configured adapter is added to the Adapters list in the navigation pane.


x
Reference: Connection Attributes for NATURAL

The NATURAL Batch adapter is under the Procedures group folder

The following list describes the connection attributes for which you can supply values. To complete the attribute declaration, click the Configure button.

Connection name

Logical name used to identify this particular set of connection attributes. The default is CON01.

Natural driver

Is the name of the NATURAL driver. This required value is installation dependent.

Security

There are three methods by which a user can be authenticated when connecting to a database server:

  • Explicit. The user ID and password are explicitly specified for each connection and passed to the database, at connection time, for authentication.
  • Password Passthru. The user ID and password received from the client application are passed to the database, at connection time, for authentication.
  • Trusted. The adapter connects to the database using the database rules for an impersonated process that are relevant to the current operating system.
User

Primary authorization ID by which you are known to the data source.

Password

Is the password associated with the user name. This field is only displayed when the security mode of the server is non-trusted.

Natural Session Parameters

NATURAL session dynamic parameters (system specific). These parameters are required:

  • FDIC is a system file containing cross-reference information and DDMs. If Predict is installed at your site, FDIC is the Predict dictionary file. If Predict is not installed at your site, FDIC is identical to either FNAT or FUSER and on the mainframe contains DDMs only. FDIC is specified with the FDIC profile parameter. FDIC includes two parameters with the values Database number and File number.
  • INTENS. For related information, see System-Specific Usage Notes.

See your Natural Reference documentation for details.

Adabas Session Parameters

On USS platforms, these parameters are usually provided in the DDCARD DD statement. They include four parameters: database number, device type, SVC number, and MODE. See the Software AG documentation for details.

Select profile

Select a profile from the drop-down menu to indicate the level of profile in which to store the CONNECTION_ATTRIBUTES command. The global profile, edasprof.prf, is the default.

If you wish to create a new profile, either a user profile (user.prf) or a group profile if available on your platform (using the appropriate naming convention), choose New Profile from the drop-down menu and enter a name in the Profile Name field (the extension is added automatically).

Store the connection attributes in the server profile (edasprof).



x
Syntax: How to Declare Connection Attributes Manually

Explicit authentication. The user ID and password are explicitly specified for each connection and passed to NATURAL, at connection time, for authentication.

ENGINE NATB SET CONNECTION_ATTRIBUTES [connection]/userid,password: "parameters_list"

Password passthru authentication. The user ID and password are explicitly specified for each connection and passed to NATURAL CICS, at connection time, for authentication.

ENGINE NATB SET CONNECTION_ATTRIBUTES [connection]/: "parameters_list"

Trusted. The adapter connects to NATURAL as an operating system login using the credentials of the operating system user impersonated by the server data access agent.

ENGINE NATB SET CONNECTION_ATTRIBUTES [connection]/,: "parameters_list"

where:

NATB

Indicates the adapter. You can omit this value if you previously issued the SET SQLENGINE command.

connection

Is a logical name used to identify this particular set of connection attributes. In the Access File, it becomes the CONNECTION=connection_name value. For details, see Access File Attributes.

userid

Is the primary authorization ID by which you are known to the Adapter for NATURAL.

password

Is the password associated with the primary authorization ID.

parameters_list

The following parameters are supported (some optional and some required):

natnuc_name is the name of the NATURAL driver. This required parameter is NATURAL installation dependent.

natuser_id is the userid for NATURAL security. This parameter is optional.

natpwsd_pswd is the password for NATURAL security. This parameter is optional.

'natparm_value' is the NATURAL session dynamic parameters (system specific). These parameters are required. For details, see System-Specific Usage Notes.

'adaparm_value' is applicable only on USS platforms, ADABAS session parameters, usually provided in the DDCARD DD statement, include four parameters: database#, device type, SVC#, and MODE. See the Software AG documentation for details.



x
Reference: System-Specific Usage Notes


Example: Sample Connection Declarations

Windows:

ENGINE NATB SET CONNECTION_ATTRIBUTES CON3 /,: "NATNUC natural NATPARM 
'PARM=IWAYPARM'"

UNIX:

ENGINE NATB SET CONNECTION_ATTRIBUTES CON3 /,: "NATNUC natural NATPARM 
'PARM=IWAYPARM BP=NATBP'"

z/OS:

ENGINE NATB SET CONNECTION_ATTRIBUTES CON3 /,: "NATNUC NAT314BA NATPARM 
'FDIC=(,21),INTENS=1' ADAPARM 'ADARUN DB=003,DE=3390,SVC=240,MODE=MULTI'"

WebFOCUS