Expert Answer Center > Experts On Demand > View Answer
EMAIL THIS
Experts on Demand
  EXPERTS ON DEMAND HOME     POSE A QUESTION     VIEW ANSWERS     BROWSE BY TOPIC        RSS FEEDS  
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?
HomeExperts on DemandIT Expert Webcast SeriesExpert KnowledgebaseSite Index
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts