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 Paasing symbolic parameter to instrea... Anirudh Anand JCL & VSAM 1 Thu Jul 27, 2017 1:22 pm
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 11 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm


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