How to Use the SQL Query Interface

SQL queries are used when downloading one or more files to your PC.  An SQL query allows you to select specific records, how they are sorted, and how they are grouped.  Press the "Options" button to connect to the server to retrieve the field information for each file selected.  You may enter the SQL query directly into the editbox or use the SQL Query Options dialog to create SQL queries.

SQL Queries are supported through the BlueZone Host File Transfer (5250) Interface.

To launch the Host File Transfer (5250) application:
  1. Launch an iSeries Display session.

  2. Choose Transfer:Send/Receive... from the BlueZone MenuBar.

  3. The Host File Transfer (5250) application will be displayed.

To access the SQL Query Tab:
  1. Choose Transfer:Transfer Setup from the Host File Transfer MenuBar.

  2. The Transfer Setup dialog will be displayed.

  3. Click the SQL tab

  4. The SQL Query edit box will be displayed.

To access the SQL Query Options:
  1. Access the SQL Query edit box as described above.

  2. Click the Options... button at the bottom of the SQL Query edit box.

  3. A Host Login dialog box will be displayed.

  4. Log on to the host or click the Cancel button.

  5. The SQL Query Options dialog will be displayed as shown here:

This is where you can build your SQL Query statements.  Each tab represents an SQL Query condition.

The following list describes each condition:

Each clause should be on a separate line.  The default SQL query of SELECT * is used when there is no custom SQL query configured.

For example:

SELECT *

WHERE (t1.IMITM = t2.IMITM)

 


Related Topics:

Configure LIPI File Transfer