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
 
Workin with Zoned decimal numbers

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Suneetha1612

New User


Joined: 03 Jan 2008
Posts: 7
Location: Bangalore

PostPosted: Tue Oct 14, 2008 6:57 pm    Post subject: Workin with Zoned decimal numbers
Reply with quote

Hi,

In my job I am multiplying 2 zoned decimal numbers and want to store the result as a Zoned number. The JCL and every thing is working fine but the output is incorrect. If i reading the output as Packed data then the output is correct.
Ex: Num1= 1231.23 and Num2=236.00, then multiplication o/p should be 290570.28. But in my o/p dataset it is showing as
2905702รต
FFFFFFFFC
2905702F
Can you please tell me what is the reason for this and what I need to do?


Thanks for your help in advance,
Suneetha
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Tue Oct 14, 2008 7:02 pm    Post subject:
Reply with quote

Post the code for the variable definitions and the PROCEDURE DIVISION calculation. If it is working for packed decimal, that implies your variable definitions are not right -- zoned decimal and packed decimal are defined differently in COBOL.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
No new posts Joinkeys with decimal scdinesh DFSORT/ICETOOL 3 Fri Feb 10, 2017 4:46 am
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts Row-Numbers of distinct rows? Auryn DB2 1 Thu Oct 20, 2016 4:38 pm

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