Can you please explain the significance of the COMPUTE statement?
QUESTION POSED ON: 28 MAR 2005
QUESTION ANSWERED BY: Tom Ross
That is a strange question, and I have no idea what you are really after. What is the significance of any statement in any programming language, considering that we are mere specks in a huge universe!
If you are asking "How does the COMPUTE statement fit in with other COBOL statements?" then I would answer that the COMPUTE statement is for performing arithmetic operations in COBOL. It can be used as a simple assignment:
COMPUTE A = B
Or it can perform complex operations:
COMPUTE A = B ** FUNCTION COS(XYZ) + (F/G + h*i)
Am I close to answering your question?
|
 |
|