IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

COMPUTE A = 10 ** B??


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
daye.Zheng

New User


Joined: 15 Feb 2008
Posts: 22
Location: China

PostPosted: Tue Jul 29, 2008 8:19 am
Reply with quote

Hi all,

I got a problem.

COMPUTE A = 10 ** B,

My question is what is the ** meanning??

if the B is 10, what is the result of A ??
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jul 29, 2008 8:43 am
Reply with quote

Hello,

What happens when you run this on your system?

At the top of the page is a link to "IBM Manuals". Click on the COBOL Language Reference for the version of COBOL you are using. Search in that manual (the flashlight/tubelight) for "Arithmetic operators".
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Tue Jul 29, 2008 11:29 am
Reply with quote

Daye,

Quote:
My question is what is the ** meanning??


It refers to "exponentiation" and as suggested by Dick do refer the manuals.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compute statement with Cobol Z/os 5.2 COBOL Programming 2
No new posts ROUNDED Problem with COMPUTE statement COBOL Programming 11
No new posts Compute statement not working COBOL Programming 5
No new posts Getting S0C7 in the compute statement COBOL Programming 4
No new posts Compute in Outrec JCL & VSAM 2
Search our Forums:

Back to Top