[an error occurred while processing this directive]

HP OpenVMS Systems

ask the wizard
Content starts here

Filename to FID without Open? (RMS, XQP)

» close window

The Question is:

 
How can you obtain the (FID) for a file without opening it from a high level
language? Or better yet, how do you convert a long filename to the short FID
when passing it to ENQ when taking out a lock.
 


The Answer is :

 
  If you wish to obtain the file identification (FID) value without
  opening the file, you can call the RMS system service sys$parse,
  as described in the OpenVMS Record Management Services Reference
  Manual.
 
  If you wish to obtain the FID without calling any RMS services, you
  will need to use the XQP calling interface, as described in the
  OpenVMS I/O User's Reference Manual.
 
  Calls to RMS and to the XQP can be made from most any language.
  Calls to either can be somewhat easier in languages with native
  support for pointers.
 

answer written or last revised on ( 29-DEC-1998 )

» close window