mhg@MITRE-BEDFORD.ARPA.UUCP (06/27/86)
Does anyone know how to open an Indexed or Relative (VMS) file given that any keys that might exist are unknown? Ultimately, I want to be able just to read records and write records; I am not interested in what keys (if any) exist or in their positions in the file. Any help is appreciated. Thanks in advance. Mark Granoff (mhg@mitre-bedford)
carl@CITHEX.CALTECH.EDU.UUCP (07/04/86)
Yes. You simply use the OPEN statement (in FORTRAN, use the equivalent in whatever language you're programming in) specifying the type of record access you want (keyed or sequential). RMS figures out what (if any) keys exist without any further help from the user. If you want to create a new file, you must, of course, specify the keys at creation time.