Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Displaying a PIC s9(7) field

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
kodeesm

New User


Joined: 21 Jun 2006
Posts: 3
Location: Pune

PostPosted: Thu Jan 08, 2009 9:38 pm    Post subject: Displaying a PIC s9(7) field
Reply with quote

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
View user's profile Send private message

Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Thu Jan 08, 2009 9:55 pm    Post subject:
Reply with quote

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
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Jan 08, 2009 10:43 pm    Post subject:
Reply with quote

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
View user's profile Send private message
kodeesm

New User


Joined: 21 Jun 2006
Posts: 3
Location: Pune

PostPosted: Thu Jan 08, 2009 11:50 pm    Post subject: Reply to: Displaying a PIC s9(7) field
Reply with quote

Thanks for your valuable info. We are mapping the variables right now to ensure we are on the correct side.
Back to top
View user's profile Send private message
nitesh.mulay

New User


Joined: 30 May 2006
Posts: 10
Location: Pune

PostPosted: Fri Jan 09, 2009 10:14 am    Post subject:
Reply with quote

you can try with using s9(7) sign leading separate clause
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jan 09, 2009 10:19 am    Post subject:
Reply with quote

Hello,

How will that help with a value of zero in the display output when the database shows 972?
Back to top
View user's profile Send private message
shak_pm

New User


Joined: 09 Jan 2009
Posts: 1
Location: chennai

PostPosted: Fri Jan 09, 2009 1:58 pm    Post subject: Reply to: Displaying a PIC s9(7) field
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to include a particular field val... sakrat DFSORT/ICETOOL 8 Fri Apr 06, 2018 8:27 pm
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
This topic is locked: you cannot edit posts or make replies. Incrementing current time field by 30... arunsoods DFSORT/ICETOOL 11 Thu Oct 26, 2017 3:22 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us