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.

Using <strong>SAS</strong> Data Libraries HFS Libraries 47<br />

the engine. The various options <strong>for</strong> reserving space and specifying DCB attributes<br />

are not required, nor do they apply to HFS libraries.<br />

Creating HFS Libraries<br />

Creating an HFS library is as simple as creating a <strong>SAS</strong> file in a particular library<br />

directory, as shown in the following example:<br />

libname myproj ’/u/user905/MyProject’;<br />

data myproj.member1;<br />

...<br />

run;<br />

If the library directory does not exist, <strong>SAS</strong> will automatically create the directory if<br />

possible. In the example above, the directory node MyProject would have been created<br />

if it did not already exist, provided the <strong>SAS</strong> session had adequate authority to do so.<br />

However, the other directories in the directory path must exist be<strong>for</strong>e you attempt to<br />

create the library.<br />

General Usage Notes<br />

3 The fully qualified name of a <strong>SAS</strong> file in an HFS library is<br />

/.<br />

The member name in this construction is <strong>for</strong>med by converting to lowercase the<br />

member name specified in the <strong>SAS</strong> session. The filename extension <strong>for</strong> a <strong>SAS</strong> file<br />

is automatically supplied by <strong>SAS</strong> and indicates the member type and the engine<br />

that was used to create the file. For a list of extensions used, see Table 2.2 on page<br />

48. Do not change the filename extension of a <strong>SAS</strong> file because that could cause<br />

unpredictable results. The total length of the fully qualified name must not exceed<br />

254 characters. This is more restrictive than the IBM limits on HFS filenames.<br />

3 When <strong>SAS</strong> creates or updates a member of an HFS library, it places an exclusive<br />

lock on the individual file (but not on the library). The lock prevents other jobs,<br />

processes, or <strong>SAS</strong> sessions from reading, writing, or updating that file until <strong>SAS</strong><br />

finishes using the file, at which time the lock is removed. It is still possible <strong>for</strong><br />

other <strong>SAS</strong> sessions to access other <strong>SAS</strong> files in the library, provided they are<br />

unlocked. The write lock is analagous to the SYSDSN enqueue that is issued when<br />

a data set is allocated with DISP=OLD.<br />

3 When <strong>SAS</strong> reads an existing member of an HFS library, it places a read (or<br />

shared) lock on the individual file, which prevents other jobs, processes, or <strong>SAS</strong><br />

sessions from updating the file, although it is still possible <strong>for</strong> others to read the<br />

file. The read lock is analagous to the SYSDSN enqueue that is issued when a<br />

data set is allocated with DISP=SHR.<br />

3 In per<strong>for</strong>mance testing at <strong>SAS</strong>, native HFS libraries have demonstrated I/O<br />

throughput rates that, <strong>for</strong> a variety of access patterns, generally match or exceed<br />

those demonstrated <strong>for</strong> direct access bound libraries.<br />

3 Although it is possible to externally allocate an HFS library via JCL or the TSO<br />

ALLOCATE command, doing so does not lock or reserve the library in any way.<br />

The main benefit of external allocation is to provide a convenient way to specify a<br />

different library <strong>for</strong> a particular job.<br />

3 When using NFS client capability to access <strong>SAS</strong> files in other operating<br />

environments, specify the xlat(n) option <strong>for</strong> the NFS mount point on z/<strong>OS</strong>.<br />

Similar options might need to be specified in other operating environments when<br />

you are accessing <strong>SAS</strong> files shared by an NFS server running on z/<strong>OS</strong>. For

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

Saved successfully!

Ooh no, something went wrong!