19.06.2013 Views

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6.3.1 Per<strong>for</strong>mance<br />

► Upload the saved data to the host in one of the following <strong>for</strong>mats:<br />

– text (the data is converted from ASCII to EBCDIC be<strong>for</strong>e it is stored on the host)<br />

– binary (the data is stored in ASCII)<br />

To upload the data, you can either use your terminal emulator’s file transfer program, or<br />

use FTP.<br />

► Create a <strong>DB2</strong> table with the appropriate number of columns and data types (consistent<br />

with the number of cells and the types of data stored in a spreadsheet), either as an<br />

EBCDIC (default option), or an ASCII table.<br />

► Use the LOAD utility with FORMAT DELIMITED specified as follows:<br />

– If the spreadsheet data is uploaded to the host in text <strong>for</strong>mat, specify it as shown in<br />

Example 6-3.<br />

Example 6-3 LOAD DATA text <strong>for</strong>mat<br />

LOAD DATA INTO TABLE tablename<br />

FORMAT DELIMITED<br />

– If the spreadsheet data is uploaded to the host in binary <strong>for</strong>mat, specify it as shown in<br />

Figure 6-4.<br />

Example 6-4 LOAD DATA binary <strong>for</strong>mat<br />

LOAD DATA INTO TABLE tablename<br />

FORMAT DELIMITED ASCII<br />

If you want to move the data from <strong>DB2</strong> to a spreadsheet, you take the following steps:<br />

► Use the UNLOAD utility with DELIMITED specified as follows:<br />

– If you want the unloaded data to be in EBCDIC <strong>for</strong>mat, specify as shown in<br />

Example 6-5. The data and the delimiters are unloaded in EBCDIC. Transmit the data<br />

to the workstation to be used by the spreadsheet in text <strong>for</strong>mat.<br />

Example 6-5 UNLOAD DATA in EBCDIC <strong>for</strong>mat<br />

UNLOAD DATA FROM TABLE tablename<br />

FORMAT DELIMITED EBCDIC<br />

– If you want the unloaded data to be in ASCII <strong>for</strong>mat, specify as shown in Example 6-6.<br />

The data and the delimiters are unloaded in ASCII. Transmit the data to the workstation<br />

to be used by the spreadsheet in binary <strong>for</strong>mat.<br />

Example 6-6 UNLOAD DATA in ASCII <strong>for</strong>mat<br />

UNLOAD DATA FROM TABLE tablename<br />

FORMAT DELIMITED ASCII<br />

See <strong>DB2</strong> <strong>UDB</strong> <strong>for</strong> z/<strong>OS</strong> <strong>Version</strong> 8 Utility Guide and Reference, SC18-7427, <strong>for</strong> more<br />

in<strong>for</strong>mation about this topic.<br />

We have tested loading the data from a workstation system with delimited <strong>for</strong>mat into <strong>DB2</strong><br />

and UNLOAD from <strong>DB2</strong> to the data which is used by spreadsheet. The LOAD and UNLOAD<br />

of internal and external <strong>for</strong>mat data have been measured to compare with LOAD and<br />

UNLOAD delimited data.<br />

Chapter 6. Utilities 271

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!