COBOL: Tough Interview Questions on VB Files

In this post, I have given tough COBOL interview questions on variable record(VB) files.

The reason is many people confused with the 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 a maximum of 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

Related Posts

Author: Srini

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