View previous topic :: View next topic
|
Author |
Message |
Rupa.P.V Warnings : 1 New User
Joined: 04 Jul 2006 Posts: 30
|
|
|
|
Can anyone explain me wat is zoned decimal and fixed point format??
And how can we convert Zoned decimal to Fixed decimal format using DFSORT ??
Please provide syntax and example for clear understanding..
Thanks in advance |
|
Back to top |
|
|
chanda.debasish
New User
Joined: 19 Sep 2005 Posts: 9
|
|
|
|
Zoned decimal (ZD) is equivalent to PIC S9(n) and fixed point format(FI) is equivalent to PIC S9(n) COMP.
ZD TO FI conversion can be done in the following way -
Code: |
OUTREC FIELDS=(1,4,ZD,TO=FI)
SORT FIELDS=COPY
|
For example if the input file content is
0001
then output file will contain binary equivalent of 0001. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
Back to top |
|
|
|