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

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

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

Functions and CALL Routines under z/<strong>OS</strong> MOPEN Function 269<br />

<strong>SAS</strong>-data-library<br />

specifies the physical filename of the <strong>SAS</strong> data library that is associated with the<br />

libref.<br />

Details<br />

If the LIBNAME function returns a 0, then the function was successful. However, you<br />

could receive a non-zero value, even if the function was successful. A non-zero value is<br />

returned if an error, warning, or note is produced. To determine if the function was<br />

successful, look through the <strong>SAS</strong> log and use the following guidelines:<br />

3 If a warning or note was generated, then the function was successful.<br />

3 If an error was generated, then the function was not successful.<br />

If no value is provided <strong>for</strong> <strong>SAS</strong>-data-library or if <strong>SAS</strong>-data-library has a value of<br />

’’(with or without a space), LIBNAME disassociates the libref from the data library.<br />

DDnames (assigned by JCL or the TSO ALLOCATE command) can also be used to<br />

refer to <strong>SAS</strong> data libraries.<br />

Example<br />

rc=libname(’v9dat’,’myapp.demo.v9dat’, ’v9’);<br />

See Also<br />

MOPEN Function<br />

3 “LIBNAME Statement” on page 392<br />

Opens a file by directory ID and by member name, and returns either the file identifier or a 0<br />

Category: External Files<br />

z/<strong>OS</strong> specifics: file systems, open-mode<br />

See: MOPEN Function in <strong>SAS</strong> Language Reference: Dictionary<br />

Syntax<br />

MOPEN(directory-id,member-name)<br />

open-mode<br />

specifies the type of access to the file.<br />

A APPEND mode allows writing new records after the current end of<br />

the file. The A option is valid only <strong>for</strong> UNIX System Services. An<br />

error will be returned if you specify A <strong>for</strong> a PDS or PDSE member.<br />

O OUTPUT mode defaults to the OPEN mode specified in the<br />

operating environment option in the FILENAME statement or

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

Saved successfully!

Ooh no, something went wrong!