HP OpenVMS Systems

ask the wizard
Content starts here

Accessing previous RMS file record?

» close window

The Question is:

I have both VAX and ALPHA platforms I need to
be able to do a read previous on my records.
Will any of these Read Previous or Priors be
availble in both VAX and ALPHA COBOL Compilers?
If not what languages will be supported on
both platforms that will allow me to do this?

The Answer is :

  The easiest approach likely involves simply maintaining two channels
  to the target (and shared access) RMS file, updating the pointers to
  the records maintained by each file channel as appropriate.
  The ability to maintain multiple channels to a file is a basic feature
  of OpenVMS RMS, and available from all languages.
  Compaq COBOL on Alpha supports READ PRIOR and START LESS for indexed
  files.  Make sure you are using at least the V2.6-496 DEC$COBRTL.EXE
  (V2.6A) on OpenVMS Alpha, as this update includes fixes for problems
  relevent to this question.

answer written or last revised on ( 29-JUN-2000 )

» close window