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

[Solved]How to specify an exponential value for a data-item in cobol


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

New User


Joined: 21 Mar 2005
Posts: 20

PostPosted: Fri May 06, 2005 5:31 pm
Reply with quote

I want to specify an exponential value to a data item.
I specified like this....

77 A pic 9(4) value 3 * * 4

Then i am getting " * was invalid " message.

And i again tried with MOVE statement like:

MOVE 3 * * 4 TO A.

Then also i am getting same msg.

Plz let me know is there any wrong with me.

Thanks,
Vrch
Back to top
View user's profile Send private message
Rajen

New User


Joined: 05 May 2005
Posts: 61

PostPosted: Fri May 06, 2005 6:34 pm
Reply with quote

hi vrch,
I am sorry to say that but i think we dont have option for Exponential.
In your case that 3**4.
You need to run a loop, thru simple logic.
Correct me if i am wrong.

Thanks
Raj
Back to top
View user's profile Send private message
somasundaran_k

Active User


Joined: 03 Jun 2003
Posts: 134

PostPosted: Fri May 06, 2005 7:07 pm
Reply with quote

vrch
Exponential is an arithmetic expression. Like addition ,division etc.. So you can't assign it with a value clause.

Try this method

01 A pic 9(4).

COMPUTE A = 3 ** 4

Raj
We do have this. ** represents exponential.

Regds
-Som
Back to top
View user's profile Send private message
vrch

New User


Joined: 21 Mar 2005
Posts: 20

PostPosted: Fri May 06, 2005 7:13 pm
Reply with quote

Hi somaundaram

It's working...

Thank u.

Thanks,
vrch
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 save SYSLOG as text data via P... All Other Mainframe Topics 4
No new posts Store the data for fixed length COBOL Programming 1
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
Search our Forums:

Back to Top