Module 7 — RMS & File Structure
Overview
This module introduces the Record Management Services (RMS) architecture used by OpenVMS for file access. You’ll learn about record formats, file organizations, key structures, indexing, bucket allocation, and how applications interact with RMS-managed files.
Exam: Multiple‑Choice Questions
1. Which RMS file organization stores records sequentially in the order they are written?
2. Which record format uses fixed-length records?
3. Which RMS structure contains metadata such as record size, bucket size, and file organization?
4. Which file organization supports multiple keys and indexed access?
5. Which command displays RMS attributes for a file?
Hands‑On Exercises
Exercise 1 — Inspect RMS Attributes
- Choose a file and run:
SHOW FILE/FULL filename.ext - Identify:
- File organization
- Record format
- Maximum record size
- Bucket size
Exercise 2 — Create a Sequential File
- Create a file using EDIT/TPU or EVE.
- Save multiple lines of text.
- Inspect RMS attributes again to confirm sequential organization.
Exercise 3 — Create a Relative File
- Use the CREATE command:
CREATE/FDL=RELATIVE.FDL RELFILE.DAT - Populate it with test records using a simple DCL script.
- Inspect record numbers and fixed slots.
Exercise 4 — Create an Indexed File
- Build an FDL file defining:
- Primary key
- Optional alternate keys
- Bucket size
- Create the file:
CREATE/FDL=INDEXED.FDL INDEXFILE.DAT - Insert records using a DCL loop or application tool.
Exercise 5 — Analyze RMS Structures
- Run:
ANALYZE/RMS INDEXFILE.DAT - Review:
- Key definitions
- Bucket layout
- Record distribution
Scenario‑Based Troubleshooting Challenges
Scenario 1 — Indexed File Corruption
An application reports “key not found” even though the record exists.
Expected approach:
ANALYZE/RMS- Check bucket splits
- Check index corruption
- Rebuild using CONVERT/FDL
Scenario 2 — Performance Degradation
Indexed file access becomes slow over time.
Expected approach:
- Check bucket fill levels
- Check for excessive splits
- Rebuild file with optimized FDL
- Consider larger bucket size
Scenario 3 — Application Cannot Write to Relative File
Writes fail with “record slot unavailable.”
Expected approach:
- Check relative record numbers
- Check file allocation
- Check for full slot table
- Rebuild or extend file
Answer Key
The answer key for this module is located at:
answers/module7-answers.md