Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref

Author Message
vrch

New User

Joined: 21 Mar 2005
Posts: 20

 Posted: Fri May 06, 2005 5:31 pm    Post subject: How to specify an exponential value for a data-item in cobol 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

Rajen

New User

Joined: 05 May 2005
Posts: 61

 Posted: Fri May 06, 2005 6:34 pm    Post subject: 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
somasundaran_k

Active User

Joined: 03 Jun 2003
Posts: 134

 Posted: Fri May 06, 2005 7:07 pm    Post subject: 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
vrch

New User

Joined: 21 Mar 2005
Posts: 20

 Posted: Fri May 06, 2005 7:13 pm    Post subject: Hi somaundaram It's working... Thank u. Thanks, vrch
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

 © 2003-2017 IBM MAINFRAME Software Support Division
 Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us