The _____ clause in COBOL is used to specify the key structure when defining a VSAM file.
- FILE-CONTROL
- KEY
- RECORD
- SELECT
In COBOL, the KEY clause is used within the FILE-CONTROL section to specify the key structure when defining a VSAM file. It defines the data item or items that make up the primary or alternate key of the file.
Loading...
Related Quiz
- What is the purpose of arithmetic operations in COBOL programs?
- In a COBOL program, if you have a numeric data item defined as USAGE COMP-3, what is the effect of applying the REDEFINES clause to it?
- You are developing a COBOL program to process a file with variable-length records that represent customer orders. Each record has a different length based on the number of items ordered. What clause should you use to efficiently read and process these records?
- How can you efficiently navigate through a file containing variable-length records in COBOL?
- The ________ feature in VSAM allows you to access records directly by their key, improving retrieval speed.