View previous topic :: View next topic
|
Author |
Message |
julian123
New User
Joined: 14 Aug 2006 Posts: 25
|
|
|
|
i am a rookie in pli programming. now i have a question as following, pls help.
an input file
Code: |
ABC00000294169560} <- DATA
CCCFFFFFFFFFFFFFFD <- HEX VALUE
123000002941695600 <- HEX VALUE |
my qustion is
1. '00000294169560}' = -29416956.00 ?
2. i used PIC'S(12)9V99' to get '00000294169560}' , and moved it to DEC FIXED(15,2), i got '29416956.00', the sing('-') was lost, how to correct it? |
|
Back to top |
|
|
arunvenu
New User
Joined: 29 May 2008 Posts: 5 Location: Bangalore, India
|
|
|
|
How did you define the DATA variable? is it a CHAR?? Supply more information!! |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
The "sending" field is zoned-decimal (PIC'S(12)9V99' is a typo, i suspect and should be PIC S9(12)V99). The "receiving" field is DEC FIXED(15,2).
Quote: |
Supply more information! |
What additional info do you want? I don't speak pli, but i would think the definition of a signed numeric field to be straightforward. |
|
Back to top |
|
|
|