Chapter Contents |
Previous |
Next |
DOPTNUM |
Category: | External Files |
Syntax | |
Argument | |
Details | |
Examples | |
Example 1: Retrieving the Number of Information Items | |
Example 2: Using DOPTNUM within a DATA Step | |
See Also |
Syntax |
DOPTNUM(directory-id) |
Restriction: | The directory must have been previously opened by using DOPEN. |
Details |
Operating Environment Information: The number, names, and nature of the directory information varies between operating environments. The number of options that are available for a directory varies depending on the operating environment. For details, see the SAS documentation for your operating environment.
Examples |
This example retrieves the number of system-dependent directory information items that are available for the directory MYDIR and closes the directory:
%let filrf=mydir; %let rc=%sysfunc(filename(filrf,physical-name)); %let did=%sysfunc(dopen(&filrf)); %let infocnt=%sysfunc(doptnum(&did)); %let rc=%sysfunc(dclose(&did));
This example creates a data set that retrieves the number of system-dependent information items that are available for the MYDIR directory:
data _null_; rc=filename("mydir","physical-name"); did=dopen("mydir"); infocnt=doptnum(did); rc=dclose(did); run;
See Also |
Functions:
|
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.