|
May 2005 Technical Tip – Easytrieve: A Cautionary Note on the use of Packed Decimal Fields Last month I had a former student tell me that Easytrieve should not be used on packed decimal fields because it treated all packed decimal fields as unsigned. I told her that this was not the case and set about to write a short Easytrieve program to verify this. The results surprised me! What I discovered was that if a decimal specification is omitted, the sign is indeed lost! The following program will serve to demonstrate:
The IDCAMS dump follows. You can see the sign in the first field but not in the second:
The moral of this story is always include the decimal specification for packed decimal fields. We hope you will consider Caliber Data Training when searching for Easytrieve training. Go to the articles index. Written by Bill Qualls. Copyright © 2005 by Caliber Data Training 800.938.1222 |