Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref

Author Message
ravneet

New User

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

 Posted: Tue Sep 19, 2006 8:23 pm    Post subject: Is a negative numeric value displayed with a "J" Is a negative numeric value displayed with a "J" at the right hand side of the value?

DavidatK

Active Member

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

Posted: Tue Sep 19, 2006 10:27 pm    Post subject: Re: Numeric Value

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
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm display the sign only if the value is... useit DFSORT/ICETOOL 3 Wed Oct 04, 2017 5:53 pm File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

 © 2003-2017 IBM MAINFRAME Software Support Division
 Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us