Previous Page | Next Page

Functions and CALL Routines under UNIX

DOPEN Function: UNIX

Opens a directory, and returns a directory identifier value.
Category: External Files
UNIX specifics: fileref can be assigned with an environment variable
See: DOPEN Function in SAS Language Reference: Dictionary





specifies the fileref assigned to the directory. In a DATA step, fileref can be a character expression, a string enclosed in quotation marks, or a DATA step variable whose value contains the fileref. In a macro, fileref can be any expression.


DOPEN opens a directory and returns a directory identifier value (a number greater than 0) that is used to identify the open directory in other SAS external file access functions. If the directory could not be opened, DOPEN returns 0. The directory to be opened must be identified by a fileref.

Previous Page | Next Page | Top of Page