_file - UDM Built-in Variable
The _file built-in variable contains the name of the file for the current iteration in a forfiles loop. _file also has special attributes, as shown in the following table.
For information on using _file and its special attributes, see _file Variable Attributes.
Note
_file cannot be set using the set command.
Attribute Name |
Description |
---|---|
accessdate |
Date on which the file was last accessed. |
accesstime |
Time when the file was last accessed. |
accesstimestamp |
Combination of accessdate and accesstime: yyyy-mm-dd hh:mm:ss[.nnn]. |
createdate |
Date on which the file was created. Note Creation dates and times are guaranteed to be reliable only on Windows. The value returned for this attribute on UNIX systems reflects the file's most recent status change on the file system. Such changes include - but are not limited to - ownership changes, permissions changes, and content changes. This means that the value returned in this attribute will be the actual create date/time only if the file and its properties have not changed since it was created. (For more information on the times recorded for files, refer to documentation for the UNIX |
createtime |
Time when the file was created. Note Creation dates and times are guaranteed to be reliable only on Windows. The value returned for this attribute on UNIX systems reflects the file's most recent status change on the file system. Such changes include - but are not limited to - ownership changes, permissions changes, and content changes. This means that the value returned in this attribute will be the actual create date/time only if the file and its properties have not changed since it was created. (For more information on the times recorded for files, refer to documentation for the UNIX |
createtimestamp |
Combination of createdate and createtime: yyyy-mm-dd hh:mm:ss[.nnn]. Note Creation dates and times are guaranteed to be reliable only on Windows. The value returned for this attribute on UNIX systems reflects the file's most recent status change on the file system. Such changes include - but are not limited to - ownership changes, permissions changes, and content changes. This means that the value returned in this attribute will be the actual create date/time only if the file and its properties have not changed since it was created. (For more information on the times recorded for files, refer to documentation for the UNIX |
moddate |
Date on which the file was last modified (referenced for z/OS). |
modtime |
Time when the file was last modified (referenced for z/OS). |
modtimestamp |
Combination of moddate and modtime: yyyy-mm-dd hh:mm:ss[.nnn]. |
name |
Name of the file (same as referencing _file itself without any attributes). |
size |
Size of the file (in bytes). |
type |
Type of file. Values are: type has meaning in a forfiles statement under IBM i in the LIB file system:
|