F$FID TO NAME()

From VSI OpenVMS Wiki
Revision as of 09:23, 5 April 2019 by Darya.zelenina (talk | contribs) (corrected the File_ID link)
Jump to: navigation, search

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"