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

Author Message
muralithirumalaisamy
Warnings : 1

New User

Joined: 13 Jun 2005
Posts: 12
Location: chennai

 Posted: Tue Jun 12, 2007 9:38 pm    Post subject: Converting Exponential output to normal one Hi, Can anybody Guide me to solve the below problem Im working with rexx language this is regarding the same When im adding 87434358749 + 1 im getting the output as 8.743435E+10 and not as 87434358750 Buit as per my requirement i need the output as 87434358750 Is thre any function in rexx to get that output

expat

Global Moderator

Joined: 14 Mar 2007
Posts: 8652
Location: Back in jolly old England

 Posted: Tue Jun 12, 2007 10:07 pm    Post subject: Have you tried increasing the numeric field length from the default of 9 NUMERIC DIGITS(12)
muralithirumalaisamy
Warnings : 1

New User

Joined: 13 Jun 2005
Posts: 12
Location: chennai

 Posted: Wed Jun 13, 2007 9:07 pm    Post subject: Re: Converting Exponential output to normal one Hi, See in REXX there is no need to declare any field u can straight a way use that That is the compatibility in ress.. So i Believe this will not help by any means Thanks Murali
enrico-sorichetti

Global Moderator

Joined: 14 Mar 2007
Posts: 10439
Location: italy

Posted: Wed Jun 13, 2007 9:44 pm    Post subject: Re: Converting Exponential output to normal one

 Quote: So i Believe this will not help by any means

You believe wrong !
expat is right

please try this

 Code: say "default numeric digits" a = 87434358749 + 1 say " a= " a say "        numeric digits 11 " numeric digits 11  a = 87434358749 + 1 say " a= " a say "        numeric digits 12 " numeric digits 12 a = 87434358749 + 1 say " a= " a

In REXX You do not declare each field' s characteristics,
with "NUMERIC DIGITS" and "NUMERIC FUZZ" You give to the rexx interpreter a default on how to carry on arithmetics and comparisons

regards
e.s
dick scherrer

Site Director

Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

Posted: Wed Jun 13, 2007 11:55 pm    Post subject:

Hello,

If you disagree with a suggestion someone has posted
 Quote: Hi, See in REXX there is no need to declare any field u can straight a way use that That is the compatibility in ress.. So i Believe this will not help by any means Thanks Murali
it is a good to test your response before posting it. . .
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics How to get the output from submit com... Joanna2016 CLIST & REXX 10 Tue Feb 06, 2018 7:26 am VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am Copy selected columns from 2 input fi... Poha Eater DFSORT/ICETOOL 3 Thu Nov 02, 2017 3:43 pm Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm

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