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.

270 PATHNAME Function Chapter 13<br />

Details<br />

function. If no operating environment option is specified, it allows<br />

writing new records at the beginning of the file.<br />

MOPEN returns the identifier <strong>for</strong> the file, or 0 if the file could not be opened.<br />

MOPEN applies to members in partitioned data sets (PDS and PDSE) and UNIX<br />

System Services (USS) files. Under z/<strong>OS</strong>, MOPEN can open PDS and PDSE members<br />

<strong>for</strong> output only. It can open USS files <strong>for</strong> output or append.<br />

See Also<br />

PATHNAME Function<br />

3 “DOPEN Function” on page 254<br />

Returns the physical name of a <strong>SAS</strong> data library or of an external file or returns a blank<br />

Category: <strong>SAS</strong> File I/O<br />

Category: External Files<br />

z/<strong>OS</strong> specifics: fileref, libref<br />

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

Syntax<br />

PATHNAME((‘fileref’ | ‘libref’) )<br />

fileref<br />

specifies the fileref assigned to an external file.<br />

libref<br />

specifies the libref assigned to a <strong>SAS</strong> library.<br />

search-level<br />

specifies whether to search <strong>for</strong> a fileref or a libref.<br />

Note: If search-level is omitted, PATHNAME searches <strong>for</strong> a fileref or libref with<br />

the specified name. R<br />

F specifies a search <strong>for</strong> a fileref.<br />

L specifies a search <strong>for</strong> a libref.<br />

Details<br />

PATHNAME returns the physical name of an external file or a <strong>SAS</strong> library, or returns a<br />

blank if fileref or libref is invalid. When PATHNAME is applied to a concatenation, it<br />

returns a list of data set names enclosed in parentheses.<br />

Under z/<strong>OS</strong>, you can also use any valid DDname that was previously allocated using<br />

a TSO ALLOCATE command or a JCL DD statement.

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

Saved successfully!

Ooh no, something went wrong!