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.

46 HFS Libraries Chapter 2<br />

3 To release the library data set prior to the end of the <strong>SAS</strong> session, specify the <strong>SAS</strong><br />

TAPECL<strong>OS</strong>E=FREE system option prior to the <strong>SAS</strong> DATA step or procedure that<br />

will write the members of the library. For tape libraries, this step is necessary to<br />

make the tape device and volumes available <strong>for</strong> other jobs prior to the end of the<br />

<strong>SAS</strong> session.<br />

Controlling Library Block Size<br />

Because sequential access bound libraries use RECFM=U, the block size value is an<br />

upper limit <strong>for</strong> the maximum size of a block. The value that <strong>SAS</strong> uses <strong>for</strong> any given<br />

session, <strong>for</strong> either a new or existing library, is specified by the user from the following<br />

hierarchy of sources:<br />

3 the block size value specified on allocation, either in the LIBNAME statement or,<br />

<strong>for</strong> external allocation, in the DD statement or TSO ALLOCATE command<br />

3 the block size value specified in the data set label, that is, the value specified on<br />

the DISP=NEW allocation that created the data set<br />

3 32760.<br />

HFS Libraries<br />

A hierarchical file system (HFS) library is a collection of <strong>SAS</strong> files of the same engine<br />

type that are stored in a single directory of the HFS of z/<strong>OS</strong> UNIX System Services<br />

(USS). Each <strong>SAS</strong> library member resides in a separate HFS file. USS is a default<br />

component of z/<strong>OS</strong>, and the availability of HFS is limited only by the extent to which it<br />

has been implemented at a particular installation.<br />

Note: In addition to the original HFS implementation, z/<strong>OS</strong> also provides another<br />

UNIX file system known as zFS. zFS, which provides certain per<strong>for</strong>mance and<br />

manageability benefits, is functionally equivalent from the perspective of a <strong>SAS</strong> user.<br />

All in<strong>for</strong>mation regarding HFS libraries applies equally to <strong>SAS</strong> files that reside in a<br />

zFS file system. Whether the HFS or zFS implementation is used <strong>for</strong> a particular file<br />

system is controlled by your systems administrator, not by <strong>SAS</strong>. R<br />

HFS libraries provide many important capabilities that are not available in other<br />

types of library implementations:<br />

3 Members of HFS libraries can be processed by versions of <strong>SAS</strong> running in other<br />

operating environments via the <strong>SAS</strong> cross-environment data access (CEDA)<br />

facility. The individual <strong>SAS</strong> files can be copied (via a utility such as FTP) to other<br />

operating environments and can be directly read by the versions <strong>for</strong> the target<br />

operating environment. Conversely, <strong>SAS</strong> files created in most other operating<br />

environments can be copied to an HFS directory and read directly by the z/<strong>OS</strong><br />

version of <strong>SAS</strong> via CEDA. This technique can be further extended by using the<br />

network file system (NFS) capability of z/<strong>OS</strong> to either mount directories that exist<br />

on remote hosts (NFS client) or to share an HFS directory with other hosts (NFS<br />

server).<br />

3 HFS directory names can contain mixed case, and they can also be longer than a z/<br />

<strong>OS</strong> data set name. The directory hierarchy provides more flexibility <strong>for</strong> organizing<br />

files.<br />

3 Multiple <strong>SAS</strong> jobs can simultaneously update different members of the same<br />

library. This provides more flexibility than that of direct access and sequential<br />

access bound libraries, which only permit one <strong>SAS</strong> job to have update access to a<br />

library at a given time.<br />

3 Allocating and assigning an HFS library is very straight<strong>for</strong>ward. The LIBNAME<br />

statement merely needs to specify the libref, the HFS directory path, and perhaps

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

Saved successfully!

Ooh no, something went wrong!