Functions and CALL Routines under OpenVMS |
Category: | General-Purpose OpenVMS |
OpenVMS specifics: | All aspects are host-specific |
Syntax | |
Details | |
Example |
Syntax |
FILEATTR(file-specification,item) |
is the file for which you are requesting information. It can be a character variable, a character literal enclosed in double quotation marks, or another character expression. You must have access to the file that you are referencing.
specifies which attribute of the file you are requesting. It can be a character variable, a character literal enclosed in double quotation marks, or another character expression. If the item is more than 16 characters long, it is truncated. The items that can be requested are the same as the items that can be requested using the DCL lexical function F$FILE_ATTRIBUTE.
Details |
The FILEATTR function returns information about a file based on the type of information that is requested with the item parameter. Numeric values are returned as character values.
The FILEATTR function closely resembles the F$FILE_ATTRIBUTE lexical function of DCL. For more information about DCL lexical functions, see OpenVMS DCL Dictionary.
You cannot request the following attribute information:
Example |
The following example uses the FILEATTR function:
data a; fattr=fileattr("test.sas", "rdt"); put fattr=; run;
This example displays the revision date of the file. The revision date (rdt ) should be the same as the date displayed outside of SAS when you use the DIR/FULL or DIR/DATE=MODIFIED command on the TEST.SAS file.
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.