Posted: Thu Jun 02, 2005 7:51 am Post subject: Unpacking 9 byte packed decmial
Gurus
Is there a way to unpack 9 byte packed decimal? We have syncsort, file-aid and SAS at our shop.
I understand that syncsort has a limitation of 8 bytes. I searched the help boards and could not get much help on these lines. I'm trying to unpack a 9 byte packed decimal...
Code:
SYSIN :
INREC FIELDS=(1,3,PD,EDIT(TTTTTT),
269,9,PD,EDIT=(STTTTTTTTTTTTT.TTTT),SIGNS=(,-))
*
SORT FIELDS=COPY
WER161B ALTERNATE PARM USED
WER271A INREC STATEMENT : NUMERIC FIELD ERROR
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Thu Jun 02, 2005 8:44 am Post subject:
Mukunda,
Syncsort does not support more than 8 bytes on outrec fields. Since packed decimal fields store the sign the last byte , we can split the field into 2 fields and then re-arrange the fields using outrec
_________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum