× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 28-Feb-2012 11:59 , rob@xxxxxxxxx wrote:

How can one recreate? <<SNIP>>

# Subject: Re: Changing a zoned decimal value with SQL
# From: CRPence <crpbottle@xxxxxxxxx>
# Date: Wed, 14 Jan 2009 14:34:43 -0800
http://archive.midrange.com/midrange-l/200901/msg00511.html

The DB2 for i will tend toward /correcting/ the Binary Coded Decimal [BCD] data to the preferred positive or preferred negative [nibble] value for the system; i.e. the preferred positive 0xF vs the preferred positive 0xC as on IBM mainframes. Only /direct map/ can defeat that tendency; as seen in the <SNIPped> example using FMTOPT(*NOCHK) of CPYF which directly maps the character data across\into the DDS-defined zoned decimal column. All of the nibbles 0xA to 0xF are valid sign nibbles in both of the Zoned Decimal and Packed Decimal BCD representations on the i.

Regards, Chuck

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.