Completing the Installation

This document covers the following topics:


Defining the Natural Business Services Libraries to Natural Security

After you have installed Natural Business Services for the first time and if Natural Security is active, you have to define the following in Natural Security (for detailed information, see Natural Security in the Natural for UNIX documentation):

  1. Define the utility profile for the SYSMAIN utility and allow the function Co (copy) for Programming Objects.

  2. Define the following libraries:

    SYSCST
    SYSDIC
    SYSDICBE
    SYSEXT
    SYSLIBS
    SYSMAP
    SYSBIZ

Important:
You have to do this before invoking the SYSPCI utility for Natural Business Services. Otherwise, the initialization with the SYSPCI utility will fail.

Setting Up Your Products Using the SYSPCI Utility

After you have installed your product, you need to set up a number of files, parameters and individual settings depending on your environment. These are described below. To set them up, you use the SYSPCI utility. For detailed information on this utility, see SYSPCI Utility - Product Configuration and Initialization in Natural's Tools and Utilities documentation.

Natural Business Services requires the following Adabas system files:

NBS_REPOSI, where the logical file number (LFILE) is 135
NBS_SECURED, where the logical file number (LFILE) is 136

Natural Construct requires the following Adabas system file:

FCST, where the logical file number (LFILE) is 227

The database IDs and file numbers of the new or existing files that you specify using the SYSPCI utility are entered into the default parameter file NBSPARM.

The required Adabas files can either be local or remote.

  • Remote Access
    If the file is located in a remote database, Entire Net-Work must be active and the database must be accessible.

  • Existing Local File
    Before you start the SYSPCI utility, make sure that the Adabas database containing the required files is active. With this version, you can continue to use your existing files. No migration of data from the previous version to the current version is necessary.

  • New File
    Before you start the SYSPCI utility, make sure that the Adabas database which will contain the required files is active. The SYSPCI utility will load and initialize these files. This should be also done if another file is required for your product.

Before you create new files with the SYSPCI utility, make sure that the ASSO and DATA sizes of your Adabas database are appropriate for these files. It is therefore recommended that you check the Adabas .fdu files in the <install-dir>/<product>/INSTALL/<product-code> directory for the used sizes. If required, change your database setup so that the files can be created.

For Natural Business Services and Natural Construct, the SYSPCI utility offers the following optional functions:

Option Description
Load Construct data If marked, the Construct help texts, models and frames will be loaded.
Load Predict data If marked, the Predict data for Construct will be loaded.

Important:
Before you configure and initialize Natural Business Services using the SYSPCI utility, make sure that Predict has already been configured and initialized.

Invoking the SYSPCI Utility

In order to invoke the SYSPCI utility, you must first invoke Natural. You can then invoke the SYSPCI utility using the Direct Command window.

Start of instruction setTo invoke the SYSPCI utility

  1. Enter the following command at the UNIX system prompt to invoke Natural:

    natural
  2. Select the Direct menu and press ENTER to invoke the Direct Command window.

  3. Enter the following command in the Direct Command window:

    SYSPCI

    For more information, see SYSPCI Utility - Product Configuration and Initialization in Natural's Tools and Utilities documentation.

Invoking the SYSPCI Utility Using a Shell Script

It is possible to execute certain functions of the SYSPCI utility with a UNIX shell script. Two shell scripts are available in <install-dir>/Natural/INSTALL directory. They are called syspci_reuse.sh and syspci_create.sh. These scripts can be used to automatically call SYSPCI for each installed product to intialize the product.

The scripts can be used for the following tasks:

  • syspci_reuse.sh
    This script executes the SYSPCI utility to initialize installed Natural products with already existing Adabas files.

    Note:
    The necessary conversion of Adabas files to the new version has to be done before starting this script.

  • syspci_create.sh
    This script executes the SYSPCI utility to initialize installed Natural products and create the required Adabas files.

For more information, see SYSPCI Utility - Product Configuration and Initialization in Natural's Tools and Utilities documentation.

Buffer Pool Search Sequence

When using Natural Business Services, ensure that the Natural profile parameter BPSFI is set to OFF in NBSPARM or in your own parameter file so that Search Sequence 2 is used. This means: alternating search in buffer pool and system file(s) for each library.

If BPSFI is set to ON, Search Sequence 1 is used. This means: search buffer pool first for all libraries, then the system file(s).

Activating the Business Service Administration Subsystem

To use the Business Service Administration subsystem, you must first activate the system. This section describes a series of updates and system-related functions you must perform to use the supplied demo application and samples. The following topics are covered:

Step 1: Execute the SAG Environment File

To set the required environment variables, execute the sagenv.new file. The environment file must be executed before using Natural Business Services.

Step 2: Define Libraries to Natural Security (First-Time Only)

If Natural Security is installed, start Natural with PARM=NBSPARM and define the following libraries to Natural Security:

Library Contents
SYSBIZDE Natural Business Services demo application.
SYSCSTX Natural Construct source code for user exits.
CSTAPPL Natural Construct SYSERR message text.
SYSCSTDE Natural Construct Adabas demo application.
SYSCSTDS Natural Construct SQL demo application.

Step 3: Add SYSLIBS to Steplib Chain

To activate Natural Business Services, add the SYSLIBS library to your Natural steplib chain (if the library is not already in the steplib chain).

Note:
If you use the Natural Security Administration option to define all Natural system libraries, ensure that the SYSLIBS library is defined as public. (By default, SYSLIBS is protected.)

Step 4: Load Skipped Files (Conditional)

If Natural Security is installed, some files may not have been loaded by the SYSPCI utility. If you want to load frames, models or help texts afterwards, load them using the utilities listed below:

File Utility Described In
CSTnnn.DA4 SYSDICBE Predict documentation (first-time only)
CSTnnn.SYSM CSMLOAD Natural Construct Generation
CSTnnn.SYSR CSFLOAD Multiple Code Frame Import Utility in the Natural Construct Administration and Modeling documentation
CSTnnn.SYSH CSHLOAD CSHLOAD Load Utility in the Natural Construct Help Text documentation

Step 5: Verify System File Assignments

This step verifies that the parameter file was created correctly.

Start of instruction setTo verify the system file assignments

  1. Invoke Natural using the new NBSPARM parameter file.

  2. Log on to the SYSBIZ library.

  3. Issue the VERIFY command.

  4. Enter "LF".

    The following output is displayed:

    Construct System File (LFILE 227) checked successfully
    NBS Secured File (LFILE 136) checked successfully
    NBS Unsecured File (LFILE 135) checked successfully
    FNAT System File checked successfully
    FUSER System File checked successfully
    FDIC System File checked successfully

If any file fails to verify:

  1. Correct the NBSPARM parameter file.

  2. Restart your Natural session.

  3. Reissue the VERIFY command.

Step 6: Run the CVUSRCOP Utility (Conditional)

If Natural Security is installed, some steps may not have been performed by the SYSPCI utility and a message may be displayed indicating that some installation steps have to be performed manually. If this message is displayed, run the CVUSRCOP utility from any library to copy the user exits.

Tip:
If the CVUSRCOP utility returns the Natural error NAT4889 (library is not defined to Natural Security), apply the latest hot fixes for Natural Security.

Step 7: Verify Natural APIs

This step verifies that all required Natural APIs (that is, the USR* subprograms) are available from within the current steplib chain.

Start of instruction setTo verify that all required Natural APIs are available

  1. Log on to the SYSBIZ library.

  2. Issue the VERIFY command.

  3. Enter "US".

    The VERIFY program calls the Natural APIs to confirm their availability.

Step 8: Verify Software AG Editor

This step verifies the installation of the Software AG editor.

Start of instruction setTo verify the installation of the Software AG editor

  1. Log on to the SYSBIZ library.

  2. Invoke the VERIFY program.

  3. Enter "SE".

    The VERIFY program:

    1. Opens a Software AG editor session.

    2. Writes lines to the Software AG editor.

    3. Reads the lines back from the Software AG editor.

    4. Closes the Software AG editor session.

    5. Writes out a success/fail message.

Step 9: Load Default Repository Data

This step populates the Natural Business Services files with data for this version. The CSRLOAD program clears the source area and loads the current repository data.

Start of instruction setTo load the repository data

  1. Log on to the SYSBIZ library.

  2. Invoke the CSRLOAD program.

    If you are using the Natural RPC server and NaturalONE to generate your applications, just press ENTER now. You need not modify any information on the resulting screen. Make sure that your Natural RPC server has been set up and is working. For more information, see Natural RPC (Remote Procedure Call) in the Natural for UNIX documentation.

    The following information in this Step 9 applies only if you want to use older applications and the dispatch/security/attach servers.

    This process will load the current repository. Make sure your LFILES          
    are set correctly. This program also clears the source area and generates     
    entries required for the BROKER Attribute File. These must be copied manually.
                                                                                  
    Enter default values to be used to establish server records...                
      Broker ID ........ BKRnnn__________________________                         
      Server qualifiers Prefix: __________ Suffix: __________                     
      Server Class ..... BUSINESS________________________ Unicode (Y/N): N        
      Transaction ...... Natural_________________________                         
      Profile FNAT DBID  ____99                                                   
      Profile FNAT FNR . ___107                                                   
      Profile .......... NBSPARM_ Path to CMPRINT: $NAT_HOME_____________________
                                                                                  
    Natural Security Settings...                                                  
      Servers under NSC  _                                                        
      User id .......... ________________________________                         
      Password .........                                                          
                                                                                  
    Mark default records to be loaded...                                          
      X Users             X Groups            X Domains            X Steplibs     
      X Servers           X Business Services X Security Links

    Note:
    For upgrades, only the Business Services records must be loaded (that is, deselect all records except Business Services in Mark default records to be loaded).

    Tip:
    If you make any errors while specifying this data, you can manually change the repository data in the Business Service Administration subsystem (enter MENU SA MM SE in the command box).

  3. Specify the default settings for the records to be loaded.

    You can use the default values for most settings. Specify the following fields:

    Field Description
    Broker ID Name of the broker to use in this environment.
    Server qualifiers Prefix and suffix values added to the names of the server records being created. The combination of prefix and suffix characters must be less than or equal to 10.
    Server class Name of the server class under which the service will register with Broker. The default class name is BUSINESS, but you can change the name if desired.
    Unicode If you want NBS servers to invoke Natural subprograms that contain Unicode parameters, type "Y" in this field.

    Notes:

    1. The Broker attribute file definition generated by CSRLOAD will be different for a Unicode dispatcher, since the generated entry for SERVER=DISPATCH, SERVICE=MAIN will require CONVERSION=SAGTCHA.
    2. The servers must run in a Unicode-enabled Natural environment.
    Transaction Name of the Natural nucleus under which the service will run. The default transaction name is "Natural", but you can change the name if desired.
    Profile FNAT DBID and FNR Database ID and file number for the Natural FNAT system file in which the NBSPARM parameter file is located.
    Profile Name of the parameter file used. By default, NBSPARM is displayed.
    Path to CMPRINT Path to the batch output file for each server session. This path can be changed if desired, but it must reference an existing path before the server is started. For more information on CMPRINT, see DEBUG Command in the Natural Business Services Administration documentation.
    Natural Security Settings If your servers run under Natural Security, mark Servers under NSC and specify a user ID and password; use the specified user ID and password to start all servers.
  4. Press ENTER.

    The CSRLOAD program displays all records that are being loaded.

    Note:
    If any records currently exist in your Natural Business Services files, they will not be replaced. The output report indicates which records were not replaced. Rename or delete the existing records and rerun the CSRLOAD program, specifying only the objects you want to load.

Load Servers Only

Applies only if you want to use older applications and the dispatch/security/attach servers.

When using the CSRLOAD program, you can optionally load the servers only (attach, dispatch, security, etc.). When loading servers, determine whether the servers will use Natural Security. Although the servers can use any setting for this option, problems may arise if you load a server that uses one option (for example, without assigning Natural Security) and then change the option (for example, specify Natural Security later). To eliminate this problem, you can load different sets of servers that have different options and specify a prefix or suffix to identify each set. For example, you can specify an "NSC-" prefix, select Servers under NSC, and enter a user ID and password to be used with NSC. You can also specify a different Broker (server) class for each set of servers to help with the Broker administration. This allows the same set of servers to start up with and without Natural Security.

Note:
To allow the secure and non-secure servers to run at the same time, define the settings for both sets of servers in Broker.

Start of instruction setTo load the servers only

  1. Log on to the SYSBIZ library.

  2. Invoke the CSRLOAD program.

  3. Select one or more server options.

  4. Deselect all options except Servers in the Default Records to be Loaded section.

    For example:

    This process will load the current repository. Make sure your LFILES          
    are set correctly. This program also clears the source area and generates     
    entries required for the BROKER Attribute File. These must be copied manually.
                                                                                  
    Enter default values to be used to establish server records...                
      Broker ID ........ BKRnnn__________________________                         
      Server qualifiers Prefix: __________ Suffix: __________                     
      Server Class ..... BUSINESS________________________ Unicode (Y/N): N        
      Transaction ...... Natural_________________________                         
      Profile FNAT DBID  ____99                                                   
      Profile FNAT FNR . ___107                                                   
      Profile .......... NBSPARM_ Path to CMPRINT: $NAT_HOME____________________
                                                                                  
    Natural Security Settings...                                                  
      Servers under NSC  _                                                        
      User id .......... ________________________________                         
      Password .........                                                          
                                                                                  
    Mark default records to be loaded...                                          
      _ Users             _ Groups            _ Domains            _ Steplibs     
      X Servers           _ Business Services _ Security Links
    
  5. Press ENTER.

    The selected servers are loaded.

Create Servers for Other Environments

Applies only if you want to use older applications and the dispatch/security/attach servers.

You can also run the CSRLOAD utility again to create servers for other environments. To create servers for other environments, add a prefix or suffix as server qualifiers and specify an alternate server class.

Step 10: Update Broker Attribute File (for Older Applications Only)

Note:
This step is only required if you want to use older applications and the dispatch/security/attach servers. It does not apply if you are using the Natural RPC server and NaturalONE to generate your applications.

When the CSRLOAD program ends, the Natural source area contains the definitions required for the Broker attribute file. Copy these definitions from the source area to your Broker attribute file and confirm the following global settings:

*-------------------------------------------------------------------*
* Broker specific Attributes / Definition of global resources       *
*-------------------------------------------------------------------*
 DEFAULTS = BROKER
   NUM-CLIENT        = 250
   NUM-CONVERSATION  = 1000
   NUM-SERVER        = 50
   NUM-SERVICE       = 500
   NUM-LONG-BUFFER   = 500
   NUM-SHORT-BUFFER  = 2000

Step 11: Verify Broker Attribute File (for Older Applications Only)

Note:
This step is only required if you want to use older applications and the dispatch/security/attach servers. It does not apply if you are using the Natural RPC server and NaturalONE to generate your applications.

This step verifies the additions to the Broker attribute file.

Start of instruction setTo verify the Broker attribute file additions

  1. Log on to the SYSBIZ library.

  2. Issue the VERIFY command.

  3. Enter "AF".

    A confirmation message is displayed:

    Business service                         Broker service
    ------------------------- -------------------------------------------------
    ATTACH                    BKR057/BUSINESSSERVICES-QA/ATTACH/MAIN
                              MAIN and CMD services registered successfully
    CFACTORY                  BKR057/BUSINESSSERVICES-QA/CFACTORY/MAIN
                              MAIN and CMD services registered successfully
    DISPATCH                  BKR057/BUSINESSSERVICES-QA/DISPATCH/MAIN
                              MAIN and CMD services registered successfully
    SECURITY                  BKR057/BUSINESSSERVICES-QA/Security/MAIN
                              MAIN and CMD services registered successfully
    TIMESTAMP                 BKR057/BUSINESSSERVICES-QA/TIMESTAMP/MAIN
                              MAIN and CMD services registered successfully

If any errors appear in the output, correct either the records in your Natural Business Services file or the definitions in your Broker attribute file and rerun the test.

Step 12: Verify Message Queue API

This step verifies the message queue API.

Start of instruction setTo verify the message queue API

  1. Log on to the SYSBIZ library.

  2. Invoke the VERIFY program.

  3. Enter "MQ".

    The VERIFY program:

    1. Calls the message queue (conversation factory) APIs to pass data (as a multi-part message). This confirms that no limits are specified on Broker message lengths that will cause SQUSEND/SQURECV to fail.

    2. Sends the binary values from H'00' to H'FF'. This confirms that no translation routine was added to the Broker attribute file.

    3. Confirms that the data it receives matches the data it sent.

Step 13: Confirm all Verifications

This step confirms that all verifications have been successful.

Start of instruction setTo confirm all verifications

  1. Log on to the SYSBIZ library.

  2. Invoke the VERIFY program.

  3. Enter "*".

    The program performs all verifications and confirms that:

    • the required Adabas files are available

    • the required class/server/service combinations for NBS have been defined in the Broker attribute file

    • the required Natural APIs are available

    • the program editor is available

    • the middleware connection is working

    • the steplib chain settings are correct

Installing the Natural Client Service Runtime Component

After the installation, the Natural client service runtime component is available in the NaturalBusinessServices/INSTALL/inplnbs directory. Its name is NBSNCSR.SAG.

To create a runtime environment for generated Natural clients, install this file in a non-Natural Business Services environment.

Start of instruction setTo install the Natural client service runtime component

  1. Load the NBSNCSR.SAG file as follows:

    • Invoke the Natural INPL utility.

    • Set work file 1 to the file name.

    • Enter the following:

      INPL
      B
  2. Run the CVCLICOP utility.

    This utility copies the subprograms required by the Natural client service runtime component to the SYSTEM library. That is, it copies:

    • the Natural APIs (USR* subprograms) from the SYSEXT library

    • the NAT* subprograms from the SYSLIBS library

Installing in Static (One-Language) Mode

By default, Natural Construct is installed in dynamic (multilingual) mode, which allows users to display Natural Construct in any available language. If you intend to run the system in one language only, you can install Natural Construct in static (one-language) mode to improve performance and reduce database calls. For information, see Static (One-Language) Mode in the Natural Construct Administration and Modeling documentation.

Note:
Installing in static mode does not limit your ability to generate multilingual applications; static mode applies to the Natural Construct interface only.

Verifying the Installation

After installing a full version of Natural Business Services, there are several procedures you can perform to ensure that the product has been installed correctly. This is explained in the topics below.

Regenerate and Recatalog the Natural Business Services Demo System

Start of instruction setTo regenerate and recatalog the Natural Business Services demo system

  1. Log on to the demo system as follows:

    • "SYSNBSDE" for Adabas

    • "SYSNBSDS" for SQL

  2. Enter "NCSTBGEN" in the Direct Command box.

    The Multiple Generation panel is displayed.

  3. Type "*" in the first Module field.

  4. Type "x" in the Catalog regenerated modules field.

  5. Press ENTER.

    The utility regenerates all modules and produces a report listing the names of the modules it generated.

Note:
If the modules cannot be regenerated or recataloged, check the Natural parameters. If a NAT0082 error occurs, one or more modules is not loaded. Check the INPL jobs to determine which modules are missing.

Access the Business Service Administration Subsystem

Start of instruction setTo access the Business Service Administration subsystem

  1. Log on to the SYSBIZ library.

  2. Enter "menu" in the Direct Command box.

    The Business Service Administration Subsystem main menu should be displayed.

  3. Enter "AA" in the Function field.

    The Application Administration main menu is displayed.

  4. Enter "MM" in the Function field.

    The Application Administration Maintenance menu is displayed.

  5. Enter "DO" in the Function field.

    The Maintain Domains Table panel is displayed.

  6. Enter "B" in the Action field.

    The Select Domain window is displayed. Ensure that the supplied domains are loaded. These domains are ADMIN, CST, DEMO, INTERNAL, and VBADDIN.

Regenerate and Recatalog the Natural Construct Demo System

Start of instruction setTo regenerate and recatalog the demo system

  1. Log on to the demo system as follows:

    • "SYSCSTDE" for Adabas

    • "SYSCSTDS" for SQL

  2. Enter "NCSTBGEN" in the Direct Command box.

    The Multiple Generation panel is displayed.

  3. Type "*" in the first Module field.

  4. Type "x" in the Catalog regenerated modules field.

  5. Press ENTER.

    The utility regenerates all modules and produces a report listing the names of the modules it generated.

    Note:
    If the modules cannot be regenerated or recataloged, check the Natural parameters. If a NAT0082 error occurs, one or more modules are not loaded. Check the INPL jobs to determine which modules are missing.

Access the Natural Construct Demo System

Start of instruction setTo access the demo system

  1. Enter "menu" in the Direct Command box.

    The Order Entry main menu should be displayed.

  2. Select a function from the menu.

    Ensure that the function is available and working.

Access the Natural Construct Help Text Subsystem

Start of instruction setTo access the Help Text subsystem

  1. Enter "ncsth" in the Direct Command box.

    The Help Text main menu should be displayed.

  2. Enter "L" in the Function field to list the available help members.

    Ensure that the Natural Business Services help members are loaded.

Access the Natural Construct Administration and Modeling Subsystem

Start of instruction setTo access the Natural Construct Administration and Modeling subsystem

  1. Log on to the SYSCST library.

  2. Enter "menu" in the Direct Command box.

    The Administration main menu should be displayed.

  3. Enter "M" in the Function field.

    The Maintain Models panel is displayed.

  4. Enter "B" in the Action field.

    The Select Model window is displayed. Ensure that the supplied models are loaded.