ASNA DataGate® 15.0 for IBM i


System Requirements

IBM i Configurations
Windows Configurations

Installation Notes

For more detailed install instructions, see the Installation Guide

What the Installation Will Do
Transferring and Installing DataGate for IBM i
Installing DataGate for IBM i onto the IBM i from Windows
Installing DataGate for IBM i onto the IBM i from the IBM i
Changing the Default DataGate TCP Port
Licensing DataGate for IBM i
Entering the License Code on the IBM i
Authority of the User Profile used to Register DataGate
Configuring DataGate for IBM i
Verifying that TCP/IP is Installed Correctly
Configuring Support for Terminal Emulation
Naming a IBM i Database
Configuring Multiple Versions of DataGate for IBM i Using TCP/IP
Troubleshooting
Troubleshooting DataGate Service
Troubleshooting a DataGate Job that is Not Terminating
Setting up a Subsystem
Troubleshooting Manually Ending Users Jobs
Finding a  IBM i IP address
Upgrading OS/400
Uninstalling DataGate

Release Notes


System Requirements

IBM i Configurations

DataGate 15.0 for IBM i is fully supported for the following OS releases:

Please also consult the release notes for information regarding DataGate for IBM i interoperability with DataGate Client.

Back to Top

Windows Configurations

Windows is not required for installation of DataGate for IBM i, but may be used if desired. The installation notes in this document refer to procedures available in the following Windows releases:

Please consult the installation notes for further details regarding the configuration requirements for installing DataGate for IBM i.

Back to Top

Installation Notes

DataGate for IBM i Installation Instructions

You will achieve fast, record-level DB2/400 database access from Windows with DataGate for IBM i. Whether you are developing your client applications in Visual Basic.NET, C#, Visual RPG.NET, or Visual RPG Classic, DataGate for IBM i provides the direct file access needed for efficient Client/Server processing - without SQL and ODBC.

IBM i connectivity is supported for TCP/IP.

DataGate for IBM i retains all IBM i object authority and object locking. Its Remote Program Call support features automatic program initiation and activation, and allows character, numeric and indicator (Boolean) parameter data types.

DataGate for IBM i provides full object control for the IBM i including: creating files; accessing file definitions; adding, deleting and initializing file members; renaming and copying files. It provides full access to CL commands and data areas, and it utilizes all IBM i CPF error messaging.

Note— The user installing DataGate on the IBM i must have *SECOFR authority.

What the Installation Will Do

On the IBM i

On Windows

Back to Top

Transferring and Installing DataGate for IBM i

The procedure to install DataGate for IBM i on the IBM i consists of 2 parts. The first is to transfer the DataGate software to the IBM i, either from Windows or the IBM i CD drive, and the second is to actually install DataGate into the specified IBM i library.

There is one way in which you can transfer DataGate for IBM i to the IBM i from Windows

There is one way in which you can transfer DataGate for IBM i to the IBM i from another IBM i

Refer to the appropriate installation procedure below for the desired transfer method. Each procedure will have a subheading noting whether the steps are done on the IBM i or Windows.

The last step in each procedure will be to run the command that actually installs DataGate for IBM i onto the IBM i.

Back to Top

Installing DataGate for IBM i onto the IBM i from Windows

Note: The user installing DataGate on the IBM i must have *SECOFR authority.

Prior to installation, DO NOT DELETE or RENAME the ASNA_DG8 library. It is required for all versions of DataGate, even though you may be installing into a library with a different name. Also, if you are installing to an existing subsystem, please be sure that the subsystem has been started prior to the installation.

Installing DataGate for IBM i using FTP

In order to install DataGate for IBM i on the IBM i from a Save file (obtained from the Installation CD), you must have TCP/IP installed on both Windows and on the IBM i. (You must also have FTP installed on your IBM i).

Installing TCP/IP and FTP on the IBM i is beyond the scope of this document. If you do not know whether your IBM i has TCP/IP and/or FTP, please check with your network manager or system provider.

On the IBM i
  1. Sign onto the IBM i using the QSECOFR account.
  2. Create a Save file in QGPL by entering the following command:
On Windows
  1. To upload the Save file from the CD via Windows, an FTP session must be started to the IBM i.

    From Windows, click on the Start button, select Run and enter the following command:

    FTP tcpipaddress

    ‘tcpipaddress’ is either the IBM i’s TCP/IP address such as 199.076.129.35, or a machine name that is registered either in a DNS or a HOSTS file.

  2. When prompted for a user name and password, enter the appropriate information that will give you privileges to upload data to the IBM i.
  3. Once FTP has been started, upload the Save file to the IBM i by entering the following commands:
    1. binary
    2. put x:\Datagate\FTP\ASNAINST QGPL/ASNAINST

      where x is the Windows CD-ROM drive.

    3. quit
On the IBM i
  1. Restore the library called ASNAINST from the Save file by entering the following command:

    RSTLIB ASNAINST DEV(*SAVF) SAVF(QGPL/ASNAINST)

  2. (Upgrade only) Stop the DataGate Server to avoid errors.

    >Installation Library<ENDDG8SVR
  3. To install DataGate for IBM i, execute the following command:

    ASNAINST/DG8LOAD

    When DataGate for IBM i is installed, it is automatically authorized for one user license. If you wish to authorize more than one licensed use of DataGate for IBM i, obtain a license code from ASNA and then enter InstallLib/REGISTER from IBM i command line.

  4. The installation program will display the ASNA Software License Agreement. If you agree with the terms of the license, press the F8 key to continue with the installation. If you do not agree, press the F3 key and the installation will be cancelled.

    Next, the installation program displays the installation options. The installation can be cancelled at any time by pressing the F3 key.

    Installation Library Option:

    Select a library where DataGate for IBM i will be installed. If the library does not exist, it will be automatically created during the installation. The following libraries are not allowed for the installation: QSYS, QGPL, QSPL, QTEMP, VCAT_72 and the distribution library. Libraries called ASNA_DG8 and VCAT_72 are always created.

    Subsystem Options:

    Select a subsystem where DataGate for IBM i will run. You must also specify the library where the subsystem description is located or where it will be created during the installation. This is required so that the installation program can determine whether the specified subsystem exists or must be created. If the subsystem does not exist, it will be automatically created in the specified library during the installation. If you are installing to an existing subsystem, please be sure that the subsystem has been started prior to the installation.

    Service Table Entry Options:

    Select the name of the service table entry and the port that DataGate for IBM i will use. The default values are recommended.

    Start DataGate Option:

    Enter ‘Y’ to have DataGate for IBM i started as soon as the installation has completed. If you select not to start DataGate, you will have to start it manually with the STRDG8SVR command by entering:

    InstallLib/STRDG8SVR

    Where InstallLib is the library into which DataGate for IBM i was installed.

    Clear Cache Library Option:

    Enter ‘Y’ to clear the DataGate for IBM i cache library. This is recommended. Make sure that there are no active DataGate for IBM i jobs if you select this option.

  5. When all options have been selected, press the F6 key to display a verification screen for each of the above options. As you review each option, press Enter if you are satisfied with your selection, otherwise press the F12 key to redisplay the options screen and enter your changes. When all options have been verified, the installation will start.
  6. The installation program will stop the version of DataGate for IBM i that is running out of the specified installation library – if there is one. If there are multiple versions of DataGate for IBM i running, those other versions will not be stopped.
  7. Once the installation has completed, the ASNAINST Save file is no longer needed, and may be deleted. The ASNAINST library is automatically deleted.
  8. You must name the IBM i Database in DataGate Database Manager using Work with Database Names. See Naming an IBM i Database for more information.

Back to Top

Installing DataGate onto the IBM i from the IBM i

Note— The user installing DataGate on the IBM i must have *SECOFR authority.

The following installation processes have two steps.

Back to Top

  • See the above section titled Installing DataGate for IBM i with FTP, starting with step 8, for detailed instructions and information about the various installation options.

    Once the installation is completed, the ASNAINST Save file is no longer needed, and may be deleted. The ASNAINST library is automatically deleted.

    When DataGate for IBM i is installed, it is automatically authorized for one user license. If you wish to authorize more than one licensed use of DataGate for IBM i, obtain a code from ASNA and then InstallLib/REGISTER from IBM i command line.

  • Back to Top

    Changing the Default DataGate TCP Port

    To modify the installed (default) TCP/IP port 5042 to another port:

    1. Enter the command WRKSRVTBLE (Work with service table entries) to verify the name of the DataGate service. On the prompt screen, press <enter> and list of table entries is displayed; the entry list is typically in arrival sequence, so this entry should be at or near the bottom of the list. Scroll down the list of entries until you see port 5042. The default DataGate Service name is "Acceler8DBServer". Write down the Service name and then press the F3 key.
    2. The entry for port 5042 must first be removed. On the command line, enter RMVSRVTBLE and press <enter>. In the Service prompt field, enter the name of the DataGate service from the Service Table entry; in the Port prompt field enter "5042"; and in the Protocol prompt field prompt enter "tcp". Press <enter> and the entry will be removed from the Service Table.
    3. To add the entry for the port you wish to use, on the command line, enter ADDSRVTBLE and press <enter>. In the Service field prompt enter "Acceler8DBServer"; in the Port prompt field enter the port number you want to use; in the Protocol prompt field enter "tcp" (this must be lower-case); and in the Text prompt field enter "DataGate/400 Service Table Entry" and then press <enter>.

      The name that you entered for the service on the ADDSRVTBLE command must match the name in the TCPSERVICE data area in the DataGate library (by default it is "Acceler8DBServer").

    Back to Top

    Licensing DataGate for IBM i

    Before DataGate for IBM i may be used on any IBM i, a valid license code, issued by ASNA, must be entered. For new trials, this code will be sent with the product if the machine serial number and model type are known at the time of shipping.

    The code issued with a trial of DataGate for IBM i will license, or register the product to be used on a specified machine up to a specified date. If it is required to move the product onto another machine, upgrade the model type, or extend the trial period, please contact your Distributor or ASNA for a new license code.

    Once the product has been purchased, a new license code will be issued to register the product on a permanent basis. This code will be based either on unlimited users, or on a per-user basis.

    Back to Top

    Entering the License Code on the IBM i

    A new license code is entered, or a current license can be viewed or changed by using the product’s Registration Assistant program.

    When installing the product for the first time, or when an upgrade is installed, the Registration Assistant screen is displayed with the bottom of the screen displaying whether the current License Code is valid or not. If the License Code is valid, press F3 to continue. If not, call ASNA or your Distributor to get a new License Code.

    Note— You cannot use the product without a proper License Code.

    To Enter, Display, or Change a License Code on the IBM i

    1. If you are not already at the Registration Assistant Screen, enter the following:
      InstallLib/REGISTER
      Where InstallLib is the library into which DataGate for IBM i was installed.

    2. Enter or verify the information to the display, as detailed below.

      System Name
      The name of the IBM i will automatically display.

      Model
      The model of the IBM i will automatically display.

      Serial Number
      The serial number of the IBM i will automatically display.

      License Key
      For a new license, enter the 16-digit license code acquired from ASNA exactly as it is given.

      License Type
      License Type specifies if the licensing is for an individual machine, or for the entire company.

      • To license, or register the current machine, use *MACH, which is the default.
      • To license, or register the entire company, enter *SITE.


      Customer Name
      The name of the user that was entered when the product was installed will automatically display. However, you can change this name as needed.

      Company Name
      The name of the company that was entered when the product was installed will automatically display. However, you can change this name as needed.

      If you are entering a Site License, the name of the company must be spelled exactly as determined by you and ASNA. This name is also case-sensitive, so capitalization must match exactly.

      Start Date
      The Start Date specifies if the product has been purchased, in which you have a Permanent code, or if the product is a ‘Trial’, which is only valid for a specified period.
      • If the product has been purchased, use *PERM, which is the default.
      • For a ‘Trial’ of the product, enter the starting date in the format MM/DD/YYYY.

      Expiration Date
      The Expiration Date indicates the date on which the license code will expire.
      • If the product has been purchased, use *PERM, which is the default.
      • For a ‘Trial’ of the product, enter the ending date of the trial as specified by ASNA in the format MM/DD/YYYY.

      User Count
      User Count specifies the number of concurrent users that can access the product, as a per-user-basis, or as unlimited.
      • For unlimited users, use *UNLIM, which is the default.
      • For a specified number of users, enter the user count as a positive integer.
    3. Acceptance of a valid licensing code is confirmed at the bottom of the screen. Press F3 to continue.

      If the message “The License is Invalid” displays, recheck all entries. If no errors were made in any of the entries, call ASNA or your National Distributor for further assistance.

      If the message “Couldn't create license data area, check authority and try again" displays, you do not have the proper authority to register DataGate for IBM i. See Authority of the User Profile used to Register DataGate for more information.

    Back to Top

    Authority of the User Profile used to Register DataGate

    The user profile used to register DataGate software must have *CHANGE authority to the ASNA_DG8 library. Additionally, it must have *ALL authority to the DGPCODE4 data area in ASNA_DG8, if it already exists (say, from a previous registration of the product).

    The user profile must have these authorities regardless of the method used to register the program.

    As an example, suppose user profile ADBUSER is to be used to register DataGate. The successful execution of the following two IBM i commands prior to registration will insure that the required object authorities will be available to ADBUSER:

    GRTOBJAUT OBJ(QSYS/ASNA_DG8) OBJTYPE(*LIB) USER(ADBUSER) AUT(*CHANGE)

    GRTOBJAUT OBJ(ASNA_DG8/DGPCODE4) OBJTYPE(*DTAARA) USER(ADBUSER) AUT(*ALL)

    Remember that the DGPCODE4 data area may not exist yet if DataGate has never been registered on the machine. If so, the second command is not necessary.

    Back to Top

    Back to Top

    Release Notes

    DataGate Client Compatibility

    Character Data Translation

    Back to Top

       June 13, 2017        © 2007-2017 ASNA. All rights reserved.