A file can contain:
Using variable-length records might enable you to save disk space. When you use fixed-length records, you need to make the record length equal to the length of the longest record. If your application generates many short records with occasional long ones, using fixed-length records wastes a lot of disk space, so variable-length records would be a better choice.
The type of record is determined as follows:
To use: | Specify the clause: |
---|---|
Variable-length records | RECORDING MODE IS V |
Fixed-length records | RECORDING MODE IS F |
Otherwise:
Otherwise:
Otherwise, to use variable length records, specify the RECMODE"OSVS" Compiler directive plus one of the following: