You are designing a COBOL program to process sales data. Which type of COBOL data item would you use to group related sales information, such as product code, quantity sold, and total sales amount?
- GROUP
- JUSTIFIED
- OCCURS
- REDEFINES
In COBOL, the GROUP data item is used to structure related data fields together. It allows you to group multiple elementary items under a single name, facilitating the organization of data, such as grouping sales details like product code, quantity, and total sales amount.
Loading...
Related Quiz
- What is the significance of the INPUT PROCEDURE in a COBOL SORT statement?
- The _______ clause in COBOL is used to specify the file organization for indexed files, such as sequential or random.
- When implementing file locking, the _______ and _______ modes are used to specify the type of access allowed to files.
- Which data types can the OCCURS clause be applied to in COBOL?
- In COBOL, the "AT END" phrase can be used to handle exceptions related to reaching the _____ of a file.