Page 1 of 1

zoned decimal field

Posted: Mon Feb 07, 2011 10:04 am
by chris_rover
Hi guys,
when I look at the example videos, I see a numeric type of "zoned decimal", but in my version(2.2.4) there is no such type. I am trying to move data from a file with the field type of zoned, but the screen field is packed(decimal). is there something i am missing?
do I need to do the conversion myself, or does the zoned type still exists?

Re: zoned decimal field

Posted: Tue Feb 08, 2011 11:38 am
by David
The "decimal" type selection in the Profound UI designer creates a zoned decimal field in the display file.

You actually cannot create a packed decimal field in a display file unless you reference a database field which is packed decimal.

So, your example should work fine.

In any case, RPG automatically converts data between zoned and packed decmial formats as needed. So, it actually does not really matter what the underlying types are anyway.