IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

In comp-3 variable. what is G in sign bit represent


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Tue May 20, 2008 11:24 am
Reply with quote

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
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue May 20, 2008 1:46 pm
Reply with quote

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 icon_smile.gif
Back to top
View user's profile Send private message
CICS Guy

Senior Member


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

PostPosted: Tue May 20, 2008 3:21 pm
Reply with quote

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.......
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


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

PostPosted: Tue May 20, 2008 5:57 pm
Reply with quote

BTW, CICS Guy and others, why isn't this called a "nybble"?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue May 20, 2008 6:01 pm
Reply with quote

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").
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts parsing variable length/position data... DFSORT/ICETOOL 5
Search our Forums:

Back to Top