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
 
In comp-3 variable. what is G in sign bit represent

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: In comp-3 variable. what is G in sign bit represent
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Tue May 20, 2008 1:46 pm    Post subject: Reply to: In comp-3 variable. what is G in sign bit represen
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: 2150
Location: At my coffee table

PostPosted: Tue May 20, 2008 3:21 pm    Post subject: Re: In comp-3 variable. what is G in sign bit represent
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

Active Member


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

PostPosted: Tue May 20, 2008 5:57 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Tue May 20, 2008 6:01 pm    Post subject: Reply to: In comp-3 variable. what is G in sign bit represen
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    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 Hardcoded negative sign value in output scdinesh SYNCSORT 8 Fri Sep 08, 2017 5:28 am
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm

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