DOPEN Function: z/OS

Opens a directory and returns a directory identifier value.
Category: External Files
z/OS specifics: File systems
See: DOPEN Function in SAS Functions and CALL Routines: Reference



Required Argument

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.
DOPEN applies to directory structures that are available in partitioned data sets (PDS, PDSE) and in UNIX System Services. For code examples, see DINFO Function: z/OS.