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

Extend the decimal values in DIVISION


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Balaryan
Warnings : 2

New User


Joined: 20 Nov 2009
Posts: 27
Location: chennai

PostPosted: Thu Oct 05, 2017 4:05 pm
Reply with quote

Hi All,

I am trying to perform DIVISION in DFSORT by dividing the value 22.50 by 40. I am getting the result '0.56' which is right. But is there any option to get the result from 0.NN to 0.NNNN say 0.5625 to extend the fractional part?

Please let me know if I am missing anything above.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2454
Location: Hampshire, UK

PostPosted: Thu Oct 05, 2017 4:08 pm
Reply with quote

Edit masks?
Back to top
View user's profile Send private message
Balaryan
Warnings : 2

New User


Joined: 20 Nov 2009
Posts: 27
Location: chennai

PostPosted: Thu Oct 05, 2017 4:40 pm
Reply with quote

Nic,

I tried EDIT=(TT.TTTT) but it results 0.5600, not 0.5625.

Is this right way of using EDIT MASK?
Back to top
View user's profile Send private message
Balaryan
Warnings : 2

New User


Joined: 20 Nov 2009
Posts: 27
Location: chennai

PostPosted: Thu Oct 05, 2017 4:57 pm
Reply with quote

It worked now. Thanks to Arun raj reply on the below listed posted.

http://ibmmainframes.com/about36441.html

I multiplied the input 22.50 by 100, then divide by 40 and it provided the desired results. icon_smile.gif

Thanks for your time, Nic.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Help required to reset decimal points... DFSORT/ICETOOL 10
No new posts Unable to interpret a hex value to De... COBOL Programming 7
No new posts how to eliminate null indicator value... DB2 7
No new posts small int to zoned decimal conversion DFSORT/ICETOOL 3
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
Search our Forums:

Back to Top