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
 
Is a negative numeric value displayed with a "J"

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

New User


Joined: 19 Sep 2006
Posts: 1
Location: Syracuse, NY

PostPosted: Tue Sep 19, 2006 8:23 pm    Post subject: Is a negative numeric value displayed with a "J"
Reply with quote

Is a negative numeric value displayed with a "J" at the right hand side of the value?
Back to top
View user's profile Send private message

DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Tue Sep 19, 2006 10:27 pm    Post subject: Re: Numeric Value
Reply with quote

ravneet,

Yes, and No.

The 'J' represents a '1' with the sign being negative. Take a look at the code below. a 'J' is a hex 'D1', 'K' = hex 'D2' etc. A 'D' in the hex number represents a negative sign, a 'C' a positive sign and a 'F' unsigned (default positive). So, a S9(4), or S9(4) COMP-3 value of -1234 will be displayed as '123M' or hex 'F1F2F3D4'. A value of +1234 will be displayed as '123D' or hex 'F1F2F3C4'

Code:

JKLMNOPQR {ABCDEFGHI 0123456789
DDDDDDDDD4CCCCCCCCCC4FFFFFFFFFF
1234567890012345678900123456789


Dave
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 Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts display the sign only if the value is... useit DFSORT/ICETOOL 3 Wed Oct 04, 2017 5:53 pm
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Hardcoded negative sign value in output scdinesh SYNCSORT 8 Fri Sep 08, 2017 5:28 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

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