How is data storage allocated for a COBOL array defined using the OCCURS clause?

  • Allocation based on the DEPENDING ON clause
  • Allocation determined by the INDEXED BY phrase
  • Contiguous memory allocation for all occurrences
  • Separate memory allocation for each occurrence
Data storage for a COBOL array defined using the OCCURS clause is allocated contiguously in memory for all occurrences. This ensures that the array elements are stored in a sequential block, allowing for efficient access and manipulation of array data.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *