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

[Solved]Power of operator


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

New User


Joined: 29 Apr 2005
Posts: 14
Location: Pune, India.

PostPosted: Thu Aug 25, 2005 12:46 pm
Reply with quote

Hi,

Is there any power of operator in COBOL?
Back to top
View user's profile Send private message
radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 435
Location: chennai, India

PostPosted: Thu Aug 25, 2005 1:57 pm
Reply with quote

As for I knew,power of operator is in 'C' but not in COBOL.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Thu Aug 25, 2005 3:22 pm
Reply with quote

Quote:
,power of operator

Means what....I didnt get.....Do you mean Operator for power....

Regards,

Priyesh.
Back to top
View user's profile Send private message
radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 435
Location: chennai, India

PostPosted: Thu Aug 25, 2005 3:38 pm
Reply with quote

a to the power of b.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Thu Aug 25, 2005 4:45 pm
Reply with quote

Hi mathiprakash/radhakrishnan82,

Is not **?

COMPUTE C = 4 ** 3.
DISPLAY C.

You shall get 64.

Regards,

Priyesh.
Back to top
View user's profile Send private message
radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 435
Location: chennai, India

PostPosted: Thu Aug 25, 2005 5:54 pm
Reply with quote

Priyesh,

I tried but its not working at my end.I don't know whether its upto the compiler limit set.So I think power of operator works in cobol too.But i can't use it.Let me check with my admin.
Power of operator is **.
Muthu,
can u confirm whether you mean such operation for power of operator.
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Thu Aug 25, 2005 6:40 pm
Reply with quote

Hi,

The compute and Power operator (**) is working for me.

Thansk & regards
Rupesh
Back to top
View user's profile Send private message
mathiprakash

New User


Joined: 29 Apr 2005
Posts: 14
Location: Pune, India.

PostPosted: Thu Aug 25, 2005 8:44 pm
Reply with quote

Hi

Its(the ** operator) working for me.

Thanks to
Priyeshr
Radhakrishnan
Rupesh


Regards,
Matty
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 how to solve this power failure shutd... ABENDS & Debugging 5
No new posts Relational operator compare date rang... CLIST & REXX 14
This topic is locked: you cannot edit posts or make replies. China Light and Power Company Limited... Mainframe Jobs 0
No new posts ICETOOL "SUBSET" operator q... DFSORT/ICETOOL 2
No new posts tws opc 5.4 how to change operator te... IBM Tools 5
Search our Forums:

Back to Top