HP Basic Reverse file read
Posted: Tue Feb 28, 2023 6:32 pm
I'm trying to read a file in reverse using HP Basic and I came across this paragraph in Guide to OpenVMS File Applications:
8.4.3 Processing Indexed Files
Indexed files provide the most record-processing flexibility. Your program can read existing records from the file in sequential, random access by RFA mode or random access by key mode. RMS also allows you to write any number of new records into an indexed file if you do not violate a specified key constraint, such as not allowing duplicate key values.
In random access by key mode, RMS provides two forward search key options for use with one of four match options (see Section 8.4.3.2). A reverse search key option permits reverse random access when used in combination with either of the two forward search key options.
There was an example but it was written in C and, unfortunately, my current company doesn't have a C license.
Has anyone ever accomplished this and if so can you provide examples?
8.4.3 Processing Indexed Files
Indexed files provide the most record-processing flexibility. Your program can read existing records from the file in sequential, random access by RFA mode or random access by key mode. RMS also allows you to write any number of new records into an indexed file if you do not violate a specified key constraint, such as not allowing duplicate key values.
In random access by key mode, RMS provides two forward search key options for use with one of four match options (see Section 8.4.3.2). A reverse search key option permits reverse random access when used in combination with either of the two forward search key options.
There was an example but it was written in C and, unfortunately, my current company doesn't have a C license.
Has anyone ever accomplished this and if so can you provide examples?