Version 4.2.6 for Mainframes (Update)
 —  Database Management System Interfaces  —

Issuing DB2 Commands from Natural

The DB2 Command part of the Natural Tools for DB2 enables you to issue DB2 commands from a Natural environment.

A file is maintained for each user on the system file FUSER. This file is stored under the object name DB2$CMD in the Natural library of the current user.

You can select a command and submit it, save the command file and save and/or print the output report.

This section covers the following topics:


Invoking the DB2 Command Part

Start of instruction set To invoke the Interactive SQL function

Top of page

Displaying the Command File

Start of instruction set To display the command file

Start of instruction set To execute a command

Start of instruction setTo save the command file

  1. Press PF5 (Save).

    The output file is stored under the object name DB2$OUT in the Natural library of the current user.

  2. Press PF3 (Exit) to return to the command file.

    You can submit further commands.

Top of page

Displaying the Output Report

Start of instruction set To display the last output record

Top of page