Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
COMPUTE A = 10 ** B??

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
daye.Zheng

New User


Joined: 15 Feb 2008
Posts: 22
Location: China

PostPosted: Tue Jul 29, 2008 8:19 am    Post subject: COMPUTE A = 10 ** B??
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
References
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 8729
Location: 221 B Baker St

PostPosted: Tue Jul 29, 2008 8:43 am    Post subject:
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: 1148
Location: Mumbai - India

PostPosted: Tue Jul 29, 2008 11:29 am    Post subject: Reply to: COMPUTE A = 10 ** B??
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1