The below is the sample COBOL program snippet to write logic for VB files.
RECORDING MODE IS V
RECORD IS VARYING FROM 1 TO 14600 CHARACTERS
DEPENDING ON BP-REC-LENGTH.
01 I-BP-REC PIC X(14600).
and, BP-REC-LENGTH can be defined as …..
01 BP-REC-LENGTH PIC 9(4) Value Zero Comp Sync.
This code will work for VB files and it is simple and highly efficient.