In COBOL, the FUNCTION ______ intrinsic function can be used to determine the current date.
- CURRENT-DATE
- DATE
- DAY
- TIME
The FUNCTION CURRENT-DATE in COBOL is used to retrieve the current date and time. It returns a data structure containing various components such as year, month, day, hour, minute, and second.
Loading...
Related Quiz
- In COBOL, what is the primary purpose of the "NOT ON EXCEPTION" clause?
- In a COBOL program for a bank, you need to determine the account type and apply specific rules based on the account type (e.g., savings, checking, or credit card). Which conditional statement is best suited for this complex decision-making process?
- You are tasked with building a COBOL application that can generate custom reports based on user input and database data. What COBOL feature or technique would be most suitable for this task?
- The "OCCURS" clause in COBOL is often used in conjunction with variable-length records to specify the maximum _____ of records in a group.
- COBOL's support for database connectivity is often achieved through _____.