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: 10457
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: 972
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: 10457
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 COMP Variables Mismatch gayu7 COBOL Programming 5 Wed Dec 20, 2017 5:06 pm Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm CONDITIONAL USING COMP-2 WITH PROBLEMS. JOSUEGENTIL COBOL Programming 7 Wed Nov 08, 2017 11:13 pm how can i move s9(9) to s9(9) usage comp HARENDRA CHOUDHARY COBOL Programming 3 Mon Nov 06, 2017 12:10 am Move from Comp3 variable to Edited Va... Revathy.nair0485 COBOL Programming 7 Fri Nov 03, 2017 3:30 pm

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