What is the primary purpose of the MOVE statement in COBOL?
- To control program flow
- To input data from the user
- To move data from one variable to another
- To perform arithmetic operations
The MOVE statement in COBOL is used to transfer data from one variable to another. It is essential for assigning values to variables and initializing data before processing.
Loading...
Related Quiz
- In a COBOL program, you have encountered a situation where you need to exit the program due to a critical error. Which statement should you use to ensure a clean program termination?
- Which intrinsic function is used to return the current date in COBOL?
- Your COBOL program is reading records from a file, and you want to specify actions to be taken when invalid data is encountered. Which phrase should you use with the READ verb?
- The CLOSE verb in COBOL can be used with the ________ phrase to handle file closing errors.
- What is the purpose of the REDEFINES clause in COBOL?