Multiple choice technology mainframe

If there is a record of length 25 and i have to create a Variable Block file to store the record what must be the record length to be given in LRECL statement?

  1. 26

  2. 27

  3. 28

  4. 29

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

For Variable Blocked (VB) files in mainframe JCL, you need to add 4 bytes to the maximum record length for the RDW (Record Descriptor Word). If your actual data record is 25 bytes, LRECL must be 25 + 4 = 29. The 4-byte RDW precedes each record and contains the record length information. This is a standard requirement for variable-length datasets.