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]How to specify an exponential value for a data-item in cobol

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How to specify an exponential value for a data-item in cobol
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    Post subject:
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    Post subject:
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    Post subject:
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    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
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm


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