🎴 Flashcard Mode

Mainframe Development Fundamentals - COBOL, JCL, ISPF & DB2

Card1 / 17
Mastered0
Review0
QuestionClick to flip

Is compute w=u a valid statement ?

AnswerClick to flip back
A
True
💡 Explanation:

The COBOL statement COMPUTE W=U is valid syntax. The COMPUTE verb assigns the result of an arithmetic expression to a receiving field. In this case, it simply assigns the value of U to W. While MOVE would be more typical for simple assignment, COMPUTE is syntactically correct and functional.

Change Mode