F$FID TO NAME()

From VSI OpenVMS Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

F$FID_TO_NAME() is a lexical function that translates a file identification to a file specification.

Syntax

F$FID_TO_NAME(device-name,file-id)

device-name:

Specifies the device on which the file resides. You can specify a logical name for the device.

file-id:

Specifies the file identification that is to be translated into the correlating file specification.

Examples

$ dir/file_id test.com

Directory SYS$SYSROOT:[SYSMGR]

TEST.COM;2           (6221,2,0)
TEST.COM;1           (6218,5,0)

Total of 2 files.
$ a = f$fid_to_name("dka0","6221,2,0")
$ show sym a
  A = "DISK$ALPHASYS:[SYS0.SYSMGR]TEST.COM;2"