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

Author Message
Balaryan
Warnings : 2

New User

Joined: 20 Nov 2009
Posts: 27
Location: chennai

 Posted: Thu Oct 05, 2017 4:05 pm    Post subject: Extend the decimal values in DIVISION 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.

Nic Clouston

Global Moderator

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

 Posted: Thu Oct 05, 2017 4:08 pm    Post subject: Edit masks?
Balaryan
Warnings : 2

New User

Joined: 20 Nov 2009
Posts: 27
Location: chennai

 Posted: Thu Oct 05, 2017 4:40 pm    Post subject: Reply to: Extend the decimal values in DIVISION Nic, I tried EDIT=(TT.TTTT) but it results 0.5600, not 0.5625. Is this right way of using EDIT MASK?
Balaryan
Warnings : 2

New User

Joined: 20 Nov 2009
Posts: 27
Location: chennai

 Posted: Thu Oct 05, 2017 4:57 pm    Post subject: 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. Thanks for your time, Nic.
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics To convert numeric to Packed Decimal vinu78 DFSORT/ICETOOL 9 Fri Jul 31, 2020 7:14 pm a copybook getting improper values in... Mahammad Musthafa COBOL Programming 7 Sat Jul 18, 2020 12:58 am JDBC Driver -Default Values yogi.47eie DB2 1 Mon May 18, 2020 7:27 pm Convert a packed decimal value to zon... Dinesh Mani DB2 6 Mon Mar 16, 2020 6:02 pm Not able to view the values of variab... sattar_engg CA Products 1 Thu Jan 23, 2020 12:32 pm

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