02.05.2013 Views

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Optimizing I/O<br />

Logging SMF Statistics<br />

Optimizing Per<strong>for</strong>mance Optimize I/O <strong>for</strong> Direct Access Bound Libraries 213<br />

SMF statistics are generated by IBM’s System Management Facility. If your system<br />

is configured to enter the SMF exit, and if the <strong>SAS</strong> system options SMF and SMFEXIT=<br />

are in effect, up to 20 SMF statistics can be written to the <strong>SAS</strong> log <strong>for</strong> each task.<br />

SMF statistics are written to the <strong>SAS</strong> log only when the STATS system option is in<br />

effect.<br />

For further in<strong>for</strong>mation on SMF statistics, see the configuration instructions <strong>for</strong> <strong>SAS</strong><br />

in the z/<strong>OS</strong> environment.<br />

To optimize <strong>SAS</strong> input and output in the z/<strong>OS</strong> environment, consider the following<br />

suggestions.<br />

Put Catalogs and Data Sets into Separate Libraries, Using the Optimal<br />

Block Size <strong>for</strong> Each<br />

The physical block size (BLKSIZE= )of a <strong>SAS</strong> bound data library determines both the<br />

minimum page size and the minimum unit of space allocation <strong>for</strong> the library. The 6KB<br />

default is relatively efficient across a range of device types, and it leads to lower<br />

memory requirements <strong>for</strong> catalog buffers. However, when you use the 6KB default,<br />

more DASD space is needed to hold a given amount of data because smaller blocks lead<br />

to capacity losses. In one test case on a 3380, an MXG daily PDB required 8% more<br />

tracks when it was stored in 6KB physical blocks instead of in half-track blocks.<br />

Because the optimal block sizes <strong>for</strong> <strong>SAS</strong> catalogs and <strong>SAS</strong> data sets are not<br />

necessarily the same, consider putting catalogs and data sets into separate libraries.<br />

For catalog libraries, 6KB is a good general physical block size on any device. For data<br />

sets, choose either a full-track or half-track block size, depending on whether the data<br />

library is stored on a device that supports full-track blocks.<br />

Optimize I/O <strong>for</strong> Direct Access Bound Libraries<br />

Determining whether the primary access pattern you want to use is sequential or<br />

random, and then selecting an appropriate page size based on your determination, will<br />

help you optimize the per<strong>for</strong>mance of your <strong>SAS</strong> session. Based on the primary access<br />

pattern you are using, select an appropriate page size according to the guidelines in<br />

“Sequential Processing Pattern” on page 214 and “Random Processing Pattern” on page<br />

214.<br />

The BUFSIZE data set option enables you to establish a non-default page size <strong>for</strong> a<br />

new <strong>SAS</strong> data set, but there are some limitations. Once determined, the page size<br />

becomes a permanent attribute of the <strong>SAS</strong> data set and influences the efficiency of both<br />

the output operation that creates the data set as well as that of subsequent read or<br />

update operations.<br />

The minimum page size that may be specified <strong>for</strong> a <strong>SAS</strong> data set is the block size of<br />

the library that will contain it. Because the library block size is fixed when the library<br />

is created, achieving optimal per<strong>for</strong>mance might require creating new libraries with<br />

special block sizes. You might also have to segregate into separate libraries those<br />

members you access sequentially and those members you access randomly.

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

Saved successfully!

Ooh no, something went wrong!