Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 10231
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: 962
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: 10231
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 Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
No new posts Format to pipe delimited with variabl... pshongal SYNCSORT 6 Wed Sep 14, 2016 2:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us