Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Extend the decimal values in DIVISION

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Extend the decimal values in DIVISION
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: 2100
Location: UK

PostPosted: Thu Oct 05, 2017 4:08 pm    Post subject:
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    Post subject: Reply to: Extend the decimal values in DIVISION
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts RPG II Problem with unsigned Packed d... Andi1982 All Other Mainframe Topics 6 Tue Sep 11, 2018 6:11 pm
No new posts How can we create a flat file in JAVA... jasorn Java & MQSeries 2 Wed Aug 08, 2018 3:08 pm
This topic is locked: you cannot edit posts or make replies. I need to remove low values in my field shymala COBOL Programming 8 Sun Jul 29, 2018 11:15 am
No new posts KSDS file fields update by passing va... Anil Kumar Prajapati TSO/ISPF 5 Wed Jul 11, 2018 5:59 am
No new posts How can I convert charactor to fixed ... liying DFSORT/ICETOOL 7 Tue May 22, 2018 3:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us