View previous topic :: View next topic
|
Author |
Message |
shanmugapriya j
New User
Joined: 28 Dec 2006 Posts: 9 Location: chennai
|
|
|
|
When I use the EDIT for the decimal values conversion
SORT FIELDS=COPY
OUTREC OVERLAY=(1:5,5,PD,EDIT=(STTTT.TT),SIGNS=(,-))
/*
The output results:
The decimal value (0.30) is displaying as (30). Can anyone help on this |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Please post the HEX form of your 5 byte PD field. |
|
Back to top |
|
|
shanmugapriya j
New User
Joined: 28 Dec 2006 Posts: 9 Location: chennai
|
|
|
|
The hex on Form of value 30 is
00000
0003C |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Quote: |
The decimal value (0.30) is displaying as (30). Can anyone help on this
00000
0003C |
Huh? When I run your DFSORT statements with that input, I get the following output:
0000.30
So what do you mean its displaying as 30?
Note that PD value is actually stored as 30 and YOU are using the edit mask to interpret it as .30. |
|
Back to top |
|
|
shanmugapriya j
New User
Joined: 28 Dec 2006 Posts: 9 Location: chennai
|
|
|
|
Thanks its working I have used
OUTREC OVERLAY=(1:5,5,PD,EDIT=(SIIII.II),SIGNS=(,-))
instead of OUTREC OVERLAY=(1:5,5,PD,EDIT=(STTTT.TT),SIGNS=(,-))
Didn't use trailing zero thats the reason. Now it is perfect,
Thanx for your help |
|
Back to top |
|
|
|