DOPTNAME Function: Windows

Returns the name of a directory information item.
Category: External Files
Windows specifics: directory is the only item available
See: DOPTNAME Function in SAS Functions and CALL Routines: Reference


DOPTNAME(directory-id, nval )

Required Arguments

specifies the identifier that was assigned when the directory was opened, generally by the DOPEN function.
specifies the sequence number of the option.


Under Windows, the only directory information item that is available is Directory, which is the pathname of directory-id. The nval, or sequence number, of Directory is 1. If directory-id points to a list of concatenated directories, then Directory is the list of concatenated directory names.


For an example of using DOPTNAME, see Obtaining Directory Information.