View previous topic :: View next topic
|
Author |
Message |
kodeesm
New User
Joined: 21 Jun 2006 Posts: 5 Location: Pune
|
|
|
|
Hi,
When I am trying to display a PIC s9(7) field, in the SYSOUT it is coming up with 000000{. This field is getting update into the database, In the database it is showing as 972.
Kodeeswaran. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
A decimal value of +0 would display as 000000{ as you've shown. X'F0F0F0F0F0F0C0'. I have no idea where the 972 is coming from. Are you looking at the correct row? column?. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
When I am trying to display a PIC s9(7) field, in the SYSOUT it is coming up with 000000{. |
Have you ensured that a value was actually moved to the field before the DISPLAY was issued? |
|
Back to top |
|
|
kodeesm
New User
Joined: 21 Jun 2006 Posts: 5 Location: Pune
|
|
|
|
Thanks for your valuable info. We are mapping the variables right now to ensure we are on the correct side. |
|
Back to top |
|
|
nitesh.mulay
New User
Joined: 30 May 2006 Posts: 10 Location: Pune
|
|
|
|
you can try with using s9(7) sign leading separate clause |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
How will that help with a value of zero in the display output when the database shows 972? |
|
Back to top |
|
|
shak_pm
New User
Joined: 09 Jan 2009 Posts: 1 Location: chennai
|
|
|
|
Hi ,
I think the value here is 000000{ . the symbol '{ ' is representing a +ve zero for a signed field.But it is displayed as 972 ,so the possibility may the field is getting mapped somewhere before going to databse or please check if the correct row or column value is being checked.
to get the exact value in sysout we can move the field s9(7) value to a editing picture clause and then display. |
|
Back to top |
|
|
|