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

Author Message
karthikr44

Active User

Joined: 25 Aug 2007
Posts: 235
Location: Chennai

 Posted: Tue May 20, 2008 11:24 am    Post subject: In comp-3 variable. what is G in sign bit represent Hi, I know that if the sign bit stored is C - if it is a signed positive D - if it is a signed negative F - if it is unsigned But any one tell me what is G in sign bit represent? Thanks & Regards R KARTHIK

enrico-sorichetti

Global Moderator

Joined: 14 Mar 2007
Posts: 10327
Location: italy

Posted: Tue May 20, 2008 1:46 pm    Post subject: Reply to: In comp-3 variable. what is G in sign bit represen

 Quote: But any one tell me what is G in sign bit represent?

from Your premises assuming that You are talking about the four bits
which represent the sign....

Your question is weird, or worth patenting a new bit architecture/convention

if on the other side You have a packed number containing a positive 6 x'7c'

when You unpack it You get a x'c7' that when printed shows up as c'G"

but the question as You posed it does not make much sense
CICS Guy

Senior Member

Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

Posted: Tue May 20, 2008 3:21 pm    Post subject: Re: In comp-3 variable. what is G in sign bit represent

 karthikr44 wrote: I know that if the sign bit stored is C - if it is a signed positive D - if it is a signed negative F - if it is unsigned But any one tell me what is G in sign bit represent?
The sign 'nibble' is only four bits long, the only values that fit are the hex digits from 0 to F, G is not a hex digit.......
Phrzby Phil

Active Member

Joined: 31 Oct 2006
Posts: 965
Location: Richmond, Virginia

 Posted: Tue May 20, 2008 5:57 pm    Post subject: BTW, CICS Guy and others, why isn't this called a "nybble"?
enrico-sorichetti

Global Moderator

Joined: 14 Mar 2007
Posts: 10327
Location: italy

Posted: Tue May 20, 2008 6:01 pm    Post subject: Reply to: In comp-3 variable. what is G in sign bit represen

wikipedia treats them in the same way

 Quote: A nibble (often, nybble) is the computing term for a four-bit aggregation, or half an octet (an octet being an 8-bit byte). As a nibble contains 4 bits, there are sixteen possible values, so a nibble corresponds to a single hexadecimal digit (thus, it is often referred to as a "hex digit" or "hexit").
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics 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 Hardcoded negative sign value in output scdinesh SYNCSORT 8 Fri Sep 08, 2017 5:28 am Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm

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