View previous topic :: View next topic
|
Author |
Message |
vijay000
New User
Joined: 26 Jun 2006 Posts: 4
|
|
|
|
Hi Guys,
I am trying to move a data (423ec4c9) ( 1111409865) s(9) comp to 9(10).
But sometimes most significiant digit i.e (1 here) is getting spaced out and it reaching the target variable as 111408865.
Any explanations? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Well, show us some variables definitions and code, and we'll have some explanations. From what you've posted, no explanation is possible. |
|
Back to top |
|
|
vijay000
New User
Joined: 26 Jun 2006 Posts: 4
|
|
|
|
Rob,
I am trying to move like
value-a PIC S9(9) USAGE COMP to value-b PIC 9(10) .
and teh most significant byte(first one) is getting spaced out.
needa some more info |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Nope. PIC 9(10) values don't allow for spaces. Your value is not getting turned into spaces, no matter what you think. It could have a zero in front but not a space. When you compile the program, what is the TRUNC option value? |
|
Back to top |
|
|
vijay000
New User
Joined: 26 Jun 2006 Posts: 4
|
|
|
|
man,
Its TRUNC(BIN) |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
Back to top |
|
|
|