Which data types can the OCCURS clause be applied to in COBOL?
- Group items and elementary items
- Only alphabetic data types
- Only elementary items
- Only numeric data types
The OCCURS clause in COBOL can be applied to both group items and elementary items. It allows the definition of repeating data structures for both simple and complex data types, providing flexibility in handling repeated data.
Loading...
Related Quiz
- In COBOL, what is the default scope of a variable declared within a procedure?
- Why are COBOL group data items used in program design?
- In a multi-user environment, what can happen if two users try to update the same record in a file simultaneously?
- COBOL, what is "ON EXCEPTION UNDO" used for in error handling?
- You are working on a COBOL program that needs to read and update customer records stored in a VSAM file. What file organization would you choose, and why?