83
8 Copyright IBM Corporation, 2008. All Rights Reserved. This publication may refer to products that are not currently available in your country. IBM makes no commitment to make available any products referred to herein. IBM Power Systems Agenda Key: Session Number: System i Access for Windows: Data Transfer Tips and Techniques

System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

Embed Size (px)

Citation preview

Page 1: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

8 Copyright IBM Corporation, 2008. All Rights Reserved.This publication may refer to products that are not currently available in your country. IBM makes no commitment to make available any products referred to herein.

IBM Power Systems™

Agenda Key:Session Number:

System i Access for Windows:

Data Transfer Tips and Techniques

Page 2: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Data Transfer Overview

Page 3: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

PC System i

Transfer Request (.DTF, .DTT)

Data Physical files and

Source Physical files

PC Files

Data Transfer

File Description File (FDF)

Database Server

A set of applications for transferring data from PC files to System i files and from System i files to any of the following output devices: PC files, HTML, Display or Printer.

What is Data Transfer?

Page 4: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

What type of files does Data Transfer work with?

What is Data Transfer?

Page 5: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

What makes the Data Transfer applications different from an FTP client?

What is Data Transfer?

Page 6: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Data Transfer transfers data interactively, in batch mode and programmatically

What are the Data Transfer interfaces?

Page 7: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Data Transfer from System i

CWBTF.EXE (The GUI) uploads and downloads data interactively

Data Transfer to System i

What are the Data Transfer interfaces?

Page 8: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

CWBTFCAI.DLL (The Excel Add-in) moves data between database files and the active worksheet so users can take advantage of the facilities of Microsoft® Excel

Excel Add-in Upload functionExcel Add-in Download function

What are the Data Transfer interfaces?

Page 9: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

RTOPCB.EXE, RFROMPCB and RXFERPCB.EXE work with transfer requests. Multiple requests can be processed in batch mode

What are the Data Transfer interfaces?

Page 10: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Database upload request Sample

What are the Data Transfer interfaces?CWBX.DLL (The Programmatic interface) allows to do Data Transfer operations programmatically

Page 11: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Data Transfer Usage

Page 12: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

1) Specify the system name2) Specify the source database file

3) Select your data

5) Set options that are specific to the output device

4) Select the output device

6) Provide the name for your PC file

7) Transfer your data

A basic download with Data Transfer from System i (CWBTF.EXE)

Basic Data Transfer

Page 13: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

A basic download with Data Transfer from System i (CWBTF.EXE)

Basic Data Transfer

Page 14: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

The Details panel has options that are specific to the selected output device

A basic download with Data Transfer from System i (CWBTF.EXE)

Basic Data Transfer

Page 15: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

1) Start the Database file wizard

A basic upload with Data Transfer to System i (CWBTF.EXE)

Basic Data Transfer

Page 16: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

2) Select the PC file

3) Select the file type

A basic upload with Data Transfer to System i (CWBTF.EXE)

Basic Data Transfer

Page 17: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

4) Specify the path for the FDF

5) Set the Data options if needed

A basic upload with Data Transfer to System i (CWBTF.EXE)

Basic Data Transfer

Page 18: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

6) Scan the PC file

7) Review the scanning result

A basic upload with Data Transfer to System i (CWBTF.EXE)

Basic Data Transfer

Page 19: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

8) Specify the system name

9) Specify the database file name

A basic upload with Data Transfer to System i (CWBTF.EXE)

Basic Data Transfer

Page 20: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

10) Specify the file text if needed

11) Confirm the create options

A basic upload with Data Transfer to System i (CWBTF.EXE)

Basic Data Transfer

Page 21: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

12) The final panel confirms the database file has been created successfully

A basic upload with Data Transfer to System i (CWBTF.EXE)

Basic Data Transfer

Page 22: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

13) Finally, transfer your data

Key points about the System i Database file wizard:

•Creating the table and FDF does not transfer the data•Plan ahead by increasing lengths if necessary

A basic upload with Data Transfer to System i (CWBTF.EXE)

Basic Data Transfer

Page 23: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

1) Start the download function

Data Transfer Excel Add-in toolbar

Transfer Requests can be used

The location for the data in the worksheet can be customized

A basic download with the Excel Add-in (CWBTFCAI.DLL)

Basic Data Transfer

Page 24: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

2) Start the download wizard

3) Specify the system name

A basic download with the Excel Add-in (CWBTFCAI.DLL)

Basic Data Transfer

Page 25: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

5) Select your data4) Specify the source database file

Data format options and other download setting are available at this panel

A basic download with the Excel Add-in (CWBTFCAI.DLL)

Basic Data Transfer

Page 26: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

6) Create a download request if needed

7) Transfer your data

A basic download with the Excel Add-in (CWBTFCAI.DLL)

Basic Data Transfer

Page 27: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

1) Select your data

A basic upload with the Excel Add-in (CWBTFCAI.DLL)

Basic Data Transfer

Page 28: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

2) Start the upload function

The first row can be used as column heading, like in this example

3) Start the upload wizard

A basic upload with the Excel Add-in (CWBTFCAI.DLL)

Basic Data Transfer

Page 29: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

4) Specify how you want your data stored

These options create a database file and an FDF file

5) Specify the path and name for FDF

A database file and an FDF file must already in order to use these options

A basic upload with the Excel Add-in (CWBTFCAI.DLL)

Basic Data Transfer

Page 30: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

6) Set the upload options if needed

7) Scan you data

A basic upload with the Excel Add-in (CWBTFCAI.DLL)

Basic Data Transfer

Page 31: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

8) Review the scanning result

Field options such us CCSID, length, default value, etc can be set up at the Details panel

9) Specify the system name

A basic upload with the Excel Add-in (CWBTFCAI.DLL)

Basic Data Transfer

Page 32: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

10) Specify the database file name

11) Specify the file description text if needed

A basic upload with the Excel Add-in (CWBTFCAI.DLL)

Basic Data Transfer

Page 33: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

12) Verify and confirm the upload settings

13) Create the upload request if needed14) Finally, upload your data

A basic upload with the Excel Add-in (CWBTFCAI.DLL)

Basic Data Transfer

Page 34: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

1) Key in the following command

2) Signon to your system if needed

3) Check the download results

All of the parameters are explained here

A basic download with RTOPCB.EXE

Basic Data Transfer

Page 35: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

1) Key in the following command

2) Signon to your system if needed

3) Check the upload results

All of the parameters are explained here

A basic upload with RFROMPCB.EXE

Basic Data Transfer

Page 36: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

1) Key in the following command

2) Check the results

All of the parameters are explained here

The userid and password are required parameters

A basic download with RXFERPCB.EXE

Basic Data Transfer

Page 37: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

…Dim dlr As New cwbx.DatabaseDownloadRequest Dim mySystem As New cwbx.AS400System

mySystem.Define “MySystemName"mySystem.UserID = “MyUserID"mySystem.Password = “MyPassword"

Set dlr.System = mySystemdlr.AS400File = “QIWS/QCUSTCDT"dlr.pcFile = "c:\mycustomers.xls"dlr.pcFile.FileType = cwbdtBIFF8

dlr.Download…

A simple Visual Basic program for running a download using the low level DatabaseDownloadRequest object

A download request is declared A system object is declared

The system object’s properties are initialized

The download request’s properties are initialized

The actual data download takes place

Basic Data TransferA basic download using the ActiveX automation objects

Page 38: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

• Ability to open downloaded files by clicking a button

• New COM-based Excel Add-in

• Ability to set default data types

• Support for processing list files in RXFERPCB.EXE

• Support for parameter markers on download operations

• Support for SQL Table Names

• Support for DECFLOAT data type

• Client Register

V6R1 - What’s New?

Page 39: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Click here to open the file with its corresponding application

Ability to open downloaded files by clicking a button

V6R1 - What’s New?

Page 40: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Excel Add-in Upload functionExcel Add-in Download function

Same toolbar, same appearance, same functionality but multiple transferences can run concurrently

New COM-based Excel Add-in

V6R1 - What’s New?

Page 41: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

A default data type for alphabetic data

A default data type for numeric data

A default CCSID can be specified

These customizations can be persistent

Ability to set default data types

V6R1 - What’s New?

Page 42: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Support for processing list files on RXFERPCB.EXE

V6R1 - What’s New?

Page 43: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

SQL table names can be longer and more descriptive than System names

The Data Transfer GUI now displays SQL table names by default but System names can be displayed instead

Support for SQL table names

V6R1 - What’s New?

Page 44: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Parameter markers can now be inserted in the WHERE clause

Support for parameter markers on download operations

V6R1 - What’s New?

Page 45: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Customized labels can be created for every parameter marker

Support for parameter markers on download operations

V6R1 - What’s New?

Page 46: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Users can tell what data corresponds to every parameter marker

Parameter markers are replaced with the provided values so the download can be performed

Support for parameter markers on download operations

V6R1 - What’s New?

Page 47: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

DECFLOAT is a new data type that Data Transfer supports

Is DECFLOAT an alphabetic or a numeric data type?

Support DECFLOAT data type

V6R1 - What’s New?

Page 48: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

DECFLOAT is a numeric data type with special characteristic

• They can be potentially huge and can easily exceed the capacity of any standard data type so, sometimes they have to be stored and handled as strings.

• There are special DECFLOAT values that cannot be stored as numeric (Infinity, NaN, etc.)

• Small values can be stored an handled as ordinary numeric values

Support DECFLOAT data type

V6R1 - What’s New?

Page 49: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

These cells actually contain strings. No arithmetic operation can be performed with these values but Data Transfer can upload them as DECFLOAT to a database file, where arithmetic operations can be performed

Support DECFLOAT data type

V6R1 - What’s New?

Page 50: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

By default, DECFLOAT values are stored as strings.

Users can select to store them as numeric but conversion errors may result if a value exceeds the capacity of the numeric data type

V6R1 - What’s New?Support DECFLOAT data type

Page 51: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Transfer requests can be configured to run automatically

Data Transfer closes when the completion dialog box is closed

Running Data Transfer by clicking an icon

Tips and Techniques with Data Transfer

Page 52: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Automatic requests run by double clicking the transfer request file (DTT or DTF) or any shortcut to it.

Tips:• IT administrators can put automatic transfer request in a read only location

to let the users run them easily and protect the requests from unauthorized modifications

• The batch applications can be used to create a batch file and process multiple request by clicking an icon

Running Data Transfer by clicking an icon

Tips and Techniques with Data Transfer

Page 53: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

System i Access for Windows does not provide a scheduler program but Window’s Task Scheduler can be used

1) Go to the control panel and start the Task Scheduler wizard

Scheduling a transfer request

Tips and Techniques with Data Transfer

Page 54: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

2) Specify the path to your transfer request

3) Verify the task has been created

Tips:• The completion message can be disabled so the transfer request runs

completely behind the scenes• The batch interface can be used to schedule multi-request

transferences

Scheduling a transfer request

Tips and Techniques with Data Transfer

Page 55: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

The Excel Add-in upload function allows to convert Excel date and time cells, to System i date or time data types, and allows numeric data in character columns to be converted to character data

Excel file options

Tips and Techniques with Data Transfer

Page 56: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Enable the option for converting date and time cells to System i DATE and TIME data in order to upload these data correctly

Excel file options

Tips and Techniques with Data Transfer

Page 57: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Enable the option for allowing numeric data in character columns to be converted to character data in order to upload these data correctly

Tips:• If the format of the cells containing numeric data is changed

to “Text”, the Excel Add-in treats the data as character data

Excel file options

Tips and Techniques with Data Transfer

Page 58: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

HTML File support - Updating a web server on System i5

Workstation running Data Transfer

System i running a Web server

Client PC’s

1) Data Transfer downloads data from a database file and creates an HTML file

2) The HTML file is sent to the Web Server

3) Clients view the data on a Web browser

Using Data Transfer with a Web server

Tips and Techniques with Data Transfer

Page 59: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

HTML File support - Updating a web server on another machine

Workstation running Data Transfer

System i

Client PC’s

1) Data Transfer downloads data from a database file and creates an HTML file

2) The HTML file is sent to the Web Server

3) The Clients view the data on a Web browser

Web server

Using Data Transfer with a Web server

Tips and Techniques with Data Transfer

Page 60: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

How can I create an HTML file using Data Transfer?1) Select HTML as output device

2) Set the HTML specific options if needed

3) Transfer your data

Using Data Transfer with a Web server

Tips and Techniques with Data Transfer

Page 61: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Is it possible to use customized HTML templates?

Data Transfer can insert tabular data into a pre-formatted HTML document at a specified location. The location is defined by an embedded template tag.

The template document may contain graphics, links, frames, and any other HTML elements you provide.

Users must tell Data Transfer what is the embedded tag to look for and replace with the data

Using Data Transfer with a Web server

Tips and Techniques with Data Transfer

Page 62: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

The HTML template must include the embedded tag…<HTML><HEAD><TITLE>Sample HTML Code</TITLE></HEAD><BODY><H1>Customer Data</H1><!-- TABLE1 --></BODY></HTML>…

Tips:• Transferring the DB2 UDB for System i DATALINK type to your HTML file will

produce active links• Data Transfer allows to automatically split up large transfers into linked

HTML files that are more manageable by the web browsers

Using Data Transfer with a Web server

Tips and Techniques with Data Transfer

Page 63: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

• Data Transfer relies on System i5 DB2 database server to store or retrieve data from database files

• Data Transfer retrieves and downloads data from database files by having System i5 DB2 database server run SQL queries that users create

• Data Transfer provides a GUI for users to create their SQL queries easily

Using the Data Transfer query builder

Tips and Techniques with Data Transfer

Page 64: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Data Transfer from System i Excel Add-in download function

Data Transfer from System i and the Excel Add-in download function, allow to use the query builder. Click the Data Options button to bring up the Change Data Options panel

Using the Data Transfer query builder

Tips and Techniques with Data Transfer

Page 65: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Enter SQL-like statement directly into the edit panels or …

click the Details button to bring up the query builder

Using the Data Transfer query builder

Tips and Techniques with Data Transfer

Page 66: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Double click on field names in the field list to add them to the Select clause

Functions such as SUM may also be used to return functional results

Using the Data Transfer query builder

Tips and Techniques with Data Transfer

Page 67: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Specify conditions by building a Where clause

Double click on a field name then specify a test condition by double clicking on a test operator

Tip:• This is the panel where you can insert parameter

markers

Using the Data Transfer query builder

Tips and Techniques with Data Transfer

Page 68: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

An Order By clause may be specified to order the data

Double click on a field name and specify the order criterion

Using the Data Transfer query builder

Tips and Techniques with Data Transfer

Page 69: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Using the Data Transfer query builder

Double click on a field name to specify the field by which the records will be grouped

Tips and Techniques with Data Transfer

Page 70: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Using the Data Transfer query builder

Conditional record grouping from a Group By operation may be done by specifying a Having clause

Tips and Techniques with Data Transfer

Page 71: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

A Native SQL interface is provided for power users or for situations where the Data Transfer format does not provide enough functionality

Using the Data Transfer query builder

Tips and Techniques with Data Transfer

Page 72: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

After choosing to process your statement as Native SQL, the Data Options button activates a Native SQL panel

The Native SQL interface allows you to type in a free form SELECT statement. A list of files and columns in those files are provided to help you build your statement

Using the Data Transfer query builder

Tips and Techniques with Data Transfer

Page 73: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Tips and Techniques with Data TransferSetting up your library list

To aid us when we are looking for files, Data Transfer allows to add libraries to the library list

Page 74: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Tips and Techniques with Data TransferSetting the desired signon mode and security options

Tip:• By using the Windows user and password

as signon mode, automatic transfer request and scheduled transfer requests signon behind the scenes so user don’t have to do it interactively

Data Transfer supports several signon modes and can work over SSL connections

Page 75: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

• An optional initialization file users can use to control some Data Transfer options that are not controllable through the GUI

• Described at: http://www-1.ibm.com/support/docview.wss?uid=nas1352f81ff9d0d4c86862565c2007cae44

Example:

Tips and Techniques with Data TransferUndocumented Data Transfer options: CWBTFR.INI

Page 76: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Appendix

Page 77: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

More about the ActiveX automation objectsActiveX? Automation Objects? So what's this?

ActiveX Automations are re-usable objects that reside on your Windows PC. Many times they can be used to run an application by "remote" with a program or script

So what can they do for me?

ActiveX automations can be used to quickly and easily perform many tasks with little or no user intervention. For example, a program may use the Automations for Microsoft Excel to perform various data calculations without ever bringing up the Excel interface.

ActiveX automations can be used to create new custom interfaces over applications that have ActiveX automations. A few examples are Microsoft Office products, Internet Explorer, the PC5250 emulator, and various System i Access for Windows functions.

Page 78: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

OK, How do I use them?

ActiveX automations are supported by many programming languages including:

•Visual Basic•Visual Basic for Applications (used by Microsoft Office)•Visual Basic Script (used in web pages and the PC5250 emulator)•C++•Many other applications and development environments

You must write program code to use these objects. Or allow some development tool to write the code for you

What Automations are available for Data Transfer?

•High level Automation•Low level Automation

More about the ActiveX automation objects

Page 79: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Using a high level object: DatabaseTransfer

These two lines of Visual Basic (VB) code can be used to run a download:

Dim dt As New cwbx.DatabaseTransferdt.Download "mysys", "qiws/qcustcdt", "c:\myfile.xls", cwbdtBIFF5

To do an upload:

dt.Upload "mysys", "cwbxtest/qcustcdt", "c:\qcustcdt.txt", "c:\qcustcdt.fdf“

To run a saved request:

dt.Transfer "c:\qcustlst.dtf"

More about the ActiveX automation objects

Page 80: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Using a high level object: DatabaseTransfer

The DatabaseTransfer automation object also contains properties you can query or set for the transfer request:

• Errors - for query only. A standard collection of error messages. Messages get put into this collection while the request is running

• Password - Allows you to set the password for the System i5 connection necessary for the transfer

• TransferResults - Allow you to get the number of rows transferred, return codes, and error and warning locations.

• UserID - Allows you to set the user ID to use for this transfer request.

More about the ActiveX automation objects

Page 81: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Do you need more information?

Additional Information on the System i Access for Windows ActiveX automation objects can be found in the System i Access for Windows Toolkit. This information can be found under the ActiveX section of the Database portion of the Toolkit documentation.

Sample programs are available at:

http://www-03.ibm.com/systems/i/software/access/windows/toolkit/database.html

More about the ActiveX automation objects

Page 82: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Sample Code Disclaimer

This material contains IBM copyrighted sample programming source code for your consideration. This sample code has not been thoroughly tested under all conditions. IBM, therefore, cannot guarantee or imply reliability, serviceability, or function. IBM provides no program services for this material. This material is provided "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO THE ABOVE EXCLUSIONS MAY NOT APPLY TO YOU. IN NO EVENT WILL IBM BE LIABLE TO ANY PARTY FOR ANY DIRECT, INDIRECT, SPECIAL OR OTHER CONSEQUENTIAL DAMAGES FOR ANY USE OF THIS MATERIAL INCLUDING, WITHOUT LIMITATION, ANY LOST PROFITS, BUSINESS INTERRUPTION, LOSS OF PROGRAMS OR OTHER DATA ON YOUR INFORMATION HANDLING SYSTEM OR OTHERWISE, EVEN IF EXPRESSLY ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

Page 83: System i Access for Windows - IBM WWW PageSystem i Access for Windows: Data Transfer Tips and Techniques. ... Database Server A set of applications for transferring data from PC files

IBM Power Systems

© 2008 IBM Corporation

Trademarks and Disclaimers

© IBM Corporation 1994-2007. All rights reserved.References in this document to IBM products or services do not imply that IBM intends to make them available in every country.

Trademarks of International Business Machines Corporation in the United States, other countries, or both can be found on the World Wide Web at http://www.ibm.com/legal/copytrade.shtml.

Intel, Intel logo, Intel Inside, Intel Inside logo, Intel Centrino, Intel Centrino logo, Celeron, Intel Xeon, Intel SpeedStep, Itanium, and Pentium are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries.Linux is a registered trademark of Linus Torvalds in the United States, other countries, or both.Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation in the United States, other countries, or both.IT Infrastructure Library is a registered trademark of the Central Computer and Telecommunications Agency which is now part of the Office of Government Commerce.ITIL is a registered trademark, and a registered community trademark of the Office of Government Commerce, and is registered in the U.S. Patent and Trademark Office.UNIX is a registered trademark of The Open Group in the United States and other countries.Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.Other company, product, or service names may be trademarks or service marks of others.

Information is provided "AS IS" without warranty of any kind.

The customer examples described are presented as illustrations of how those customers have used IBM products and the results they may have achieved. Actual environmental costs and performance characteristics may vary by customer.

Information concerning non-IBM products was obtained from a supplier of these products, published announcement material, or other publicly available sources and does not constitute an endorsement of such products by IBM. Sources for non-IBM list prices and performance numbers are taken from publicly available information, including vendor announcements and vendor worldwide homepages. IBM has not tested these products and cannot confirm the accuracy of performance, capability, or any other claims related to non-IBM products. Questions on the capability of non-IBM products should be addressed to the supplier of those products.

All statements regarding IBM future direction and intent are subject to change or withdrawal without notice, and represent goals and objectives only.

Some information addresses anticipated future capabilities. Such information is not intended as a definitive statement of a commitment to specific levels of performance, function or delivery schedules with respect to any future products. Such commitments are only made in IBM product announcements. The information is presented here to communicate IBM's current investment and development activities as a good faith effort to help with our customers' future planning.

Performance is based on measurements and projections using standard IBM benchmarks in a controlled environment. The actual throughput or performance that any user will experience will vary depending upon considerations such as the amount of multiprogramming in the user's job stream, the I/O configuration, the storage configuration, and the workload processed. Therefore, no assurance can be given that an individual user will achieve throughput or performance improvements equivalent to the ratios stated here.

Prices are suggested U.S. list prices and are subject to change without notice. Starting price may not include a hard drive, operating system or other features. Contact your IBM representative or Business Partner for the most current pricing in your geography.

Photographs shown may be engineering prototypes. Changes may be incorporated in production models.