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.

end;<br />

/* Close the file */<br />

rc=FCL<strong>OS</strong>E(fid);<br />

/* Deallocate the file */<br />

rc=FILENAME(’myfile’);<br />

run;<br />

Output 13.6 UNIX System Services File In<strong>for</strong>mation<br />

In<strong>for</strong>mation <strong>for</strong> a UNIX<br />

System Services File:<br />

File Name /u/userid/one<br />

Access Permission -rw-rw-rw-<br />

Number of Links 1<br />

Owner Name USERID<br />

Group Name GRP<br />

File Size 4<br />

Last Modified Apr 13 13:57<br />

NOTE: The DATA statement used<br />

0.07 CPU seconds and 5227K.<br />

See Also<br />

FOPEN Function<br />

3 “FCL<strong>OS</strong>E Function” on page 257<br />

3 “FOPEN Function” on page 265<br />

3 “FOPTNAME Function” on page 266<br />

3 “FOPTNUM Function” on page 267<br />

Functions and CALL Routines under z/<strong>OS</strong> FOPEN Function 265<br />

Opens an external file and returns a file identifier value<br />

Category: External Files<br />

z/<strong>OS</strong> specifics: files opened with FOPEN must be explicitly closed with FCL<strong>OS</strong>E<br />

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

Syntax<br />

FOPEN(‘fileref’)<br />

fileref<br />

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

open-mode<br />

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

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

of the file.

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

Saved successfully!

Ooh no, something went wrong!