COBOL-Tough Interview Questions on VB Files

The following are the complex questions related to variable record(VB) files in COBOL. Why this is complex…

The reason is many people confused with record structure of VB files. Some of the questions I have gathered from my friends. The collection is here to go.

  1. VB files can have data varying in length. The length we can control by depending on clause
  2. Table with OCCURS either VB  or FB, can have maximum 7 dimensions
  3. The key value specified in any Array mus not exceed 256 bytes
  4. The EXIT PROGRAM statement should be the last statement in a sequence of imperative statements. When it is not, statements following the EXIT PROGRAM will not be executed if a CALL statement is active
  5. VB files record structure  we can use at different 01 levels
  6. Evaluate – If no WHEN phrase is selected and no WHEN OTHER phrase is specified, execution continues with the next executable statement following the scope delimiter

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.