Difference between revisions of "F$FID TO NAME()"

From VSI OpenVMS Wiki
Jump to: navigation, search
(Created page with "'''F$FID_TO_NAME()''' is a lexical function that translates a file identification to a file specification. =Syntax= F$FI...")
 
(corrected the File specification link)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
'''F$FID_TO_NAME()''' is a [[Lexical functions|lexical function]] that translates a [[FID|file identification]] to a [[File Specification|file specification]].
+
'''F$FID_TO_NAME()''' is a [[Lexical functions|lexical function]] that translates a [[File_ID|file identification]] to a [[File specification|file specification]].
  
 
=Syntax=
 
=Syntax=

Latest revision as of 09:24, 5 April 2019

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"