DOPTNUM Function: Windows

Returns the number of information items that are available for a directory.

Category: External Files
Windows specifics: directory is the only item available
See: DOPTNUM Function in SAS Functions and CALL Routines: Reference



Required Argument


specifies the identifier that was assigned when the directory was opened, generally by the DOPEN function.


Under Windows, only one information item is available for a directory. The name of the item is Directory; its value is the pathname or list of pathnames for directory-id, and its sequence number is 1. Since only one information item is available for a directory, this function returns a value of 1.


For an example of the DOPTNUM function, see Obtaining Directory Information .