Let's Mainframe! :)
VB (Variable Blocked) file:
There are two types of control information in a VB file-
- Block descriptor Word (BDW) and 2) Record descriptor Word (RDW) with the data in a VB file.
There might be several records in one physical block. Each variable length record has a RECORD DESCRIPTOR WORD(RDW).
RDW is of 4 bytes. The first 2 bytes store the length of the record.
Each block has a BLOCK DESCRIPTOR WORD(BDW) at the beginning of the block. The BDW is of 4 bytes. The first 2 bytes contain
the length of the block.
The representation of a VB block file is below-
BDWRDWRECORDRDWRECORDRDWRECORD
That is why when the logical record length of a Variable blocked file is 80 , it is 4 bytes RDW and 76 bytes data.