DOPEN Function: Windows

Opens a directory and returns a directory identifier value.

Category: External Files
See: DOPEN Function in SAS Functions and CALL Routines: Reference
FILENAME Function in SAS Functions and CALL Routines: Reference

Syntax

DOPEN("fileref")

Required Argument

fileref

specifies the fileref that is assigned to the directory.

Details

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.