Hands-on Exercise
Hands-on Exercise: DIRECTORY in DCL
Elements: F$FILE_ATTRIBUTES(fsp,attr)
fsp: Filespec returned by F$SEARCH()
attr: We’ll use these:EOF – Count of blocks usedALQ – Allocation quantityCDT – File Creation Date
Notes:
F$FILE_ATTRIBUTES() is new to our discussion. It returns information about files. It has many keywords.
We’ll use these F$FILE_ATTRIBUTES() keywords to get attributes of the files we find using F$SEARCH():o EOF is the count of blocks actually used by data in the file.o ALQ is the count of blocks allocated to the file.o CDT is the creation date of the file.