Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Reg:Displaying the particular month o... bhavana yalavarthi All Other Mainframe Topics 4 Sat Jul 08, 2017 8:13 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Alter &DATENS field in HEADER1 Angad DFSORT/ICETOOL 4 Mon Apr 24, 2017 11:49 am
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us