When a data item is defined with the OCCURS clause and a DEPENDING ON phrase, the actual number of occurrences is determined at ____________.
- Compile time
- Declaration time
- Execution time
- Initialization time
The actual number of occurrences for an OCCURS clause with a DEPENDING ON phrase is determined at execution time, not during compilation. The DEPENDING ON phrase allows the size to be specified dynamically during program execution.
Loading...
Related Quiz
- In COBOL, the REDEFINES clause is often used to share memory space between two data items with different _____
- In COBOL, the _____ clause is used to specify the action to be taken when a file operation results in an exception condition.
- When dealing with a sequential file, which file organization is commonly used for reading records in a specified order?
- Your COBOL program manages a customer database, and you want to implement file locking for concurrent access. What factors should you consider when choosing between record-level and file-level locking?
- The PERFORM _______ loop in COBOL allows you to iterate through a range of values.