11.01.2013 Views

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.51 Data facility sort (DFSORT)<br />

Paula<br />

Miriam<br />

Marie<br />

Enete<br />

Dovi<br />

Cassio<br />

Carolina<br />

Ana<br />

Descending order<br />

Figure 4-62 DFSORT example<br />

Data facility sort (DFSORT)<br />

The DFSORT licensed program is a high performance data arranger for z/<strong>OS</strong> users. Using<br />

DFSORT you can sort, merge, and copy data sets using EBCDIC, z/Architecture decimal or<br />

binary keys. It also helps you to analyze data and produce detailed reports using the<br />

ICETOOL utility or the OUTFIL function. DFSORT is an optional feature <strong>of</strong> z/<strong>OS</strong>.<br />

DFSORT, together with DFSMS and RACF, form the strategic product base for the evolving<br />

system-managed storage environment. DFSORT is designed to optimize the efficiency and<br />

speed with which operations are completed through synergy with processor, device, and<br />

system features (for example, memory objects, Hiperspace, data space, striping,<br />

compression, extended addressing, DASD and tape device architecture, processor memory,<br />

and processor cache.<br />

DFSORT example<br />

The simple example in Figure 4-62 illustrates how DFSORT merges data sets by combining<br />

two or more files <strong>of</strong> sorted records to form a single data set <strong>of</strong> sorted records.<br />

You can use DFSORT to do simple application tasks such as alphabetizing a list <strong>of</strong> names, or<br />

you can use it to aid complex tasks such as taking inventory or running a billing system. You<br />

can also use DFSORT's record-level editing capability to perform data management tasks.<br />

For most <strong>of</strong> the processing done by DFSORT, the whole data set is affected. However, certain<br />

forms <strong>of</strong> DFSORT processing involve only certain individual records in that data set.<br />

190 <strong>ABCs</strong> <strong>of</strong> z/<strong>OS</strong> <strong>System</strong> <strong>Programming</strong> <strong>Volume</strong> 3<br />

Source Data Set<br />

Marie<br />

Carolina<br />

Ana<br />

Cassio<br />

Dovi<br />

Miriam<br />

Enete<br />

Paula<br />

SORT SORT<br />

Ana<br />

Carolina<br />

Cassio<br />

Dovi<br />

Enete<br />

Marie<br />

Miriam<br />

Paula<br />

Ascending order

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

Saved successfully!

Ooh no, something went wrong!