Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

[Solved]Power of operator

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Power of operator
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: 436
Location: chennai, India

PostPosted: Thu Aug 25, 2005 1:57 pm    Post subject:
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: 1452
Location: Chicago, IL

PostPosted: Thu Aug 25, 2005 3:22 pm    Post subject: Re: Power of operator
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: 436
Location: chennai, India

PostPosted: Thu Aug 25, 2005 3:38 pm    Post subject:
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: 1452
Location: Chicago, IL

PostPosted: Thu Aug 25, 2005 4:45 pm    Post subject: Re: Power of operator
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: 436
Location: chennai, India

PostPosted: Thu Aug 25, 2005 5:54 pm    Post subject:
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: 464

PostPosted: Thu Aug 25, 2005 6:40 pm    Post subject: Re: Power of operator
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. China Light and Power Company Limited... Express Mainframe Jobs 0 Wed Nov 11, 2015 7:14 pm
No new posts ICETOOL "SUBSET" operator q... David Sde DFSORT/ICETOOL 2 Tue Jul 28, 2015 7:53 pm
No new posts tws opc 5.4 how to change operator te... italo_pm IBM Tools 5 Wed Apr 29, 2015 11:22 am
No new posts using Parse on some other operator fo... guptae DFSORT/ICETOOL 6 Thu Dec 11, 2014 11:11 am
No new posts Rexx not equals operator harisukumaran CLIST & REXX 5 Sat Sep 20, 2014 2:57 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us