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
 

 

Memory size allocation for Comp data

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
prabhucs01
Warnings : 1

New User


Joined: 07 Mar 2005
Posts: 43

PostPosted: Sun Jan 13, 2008 1:23 pm    Post subject: Memory size allocation for Comp data
Reply with quote

Number of 9's length in bytes

1 to 4 2 Bytes(halfword)
5 to 9 4 Bytes(fullword)
10 to 18 8 Bytes(double word)

if the first four digits require 2 bytes(4bits/digit) then for total 9 digits it must be 36 bits and for 18 must be 72 bits.

could anyone give a detail about hw its been stored. i have checked with the below link too

http://ibmmainframes.com/size.html

sorry if the question is been asked before too. please help me in knowing the way the digits are stored.
Back to top
View user's profile Send private message

Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Sun Jan 13, 2008 6:57 pm    Post subject: Re: Memory size allocation for Comp data
Reply with quote

prabhucs01 wrote:
Number of 9's length in bytes

1 to 4 2 Bytes(halfword)
5 to 9 4 Bytes(fullword)
10 to 18 8 Bytes(double word)

if the first four digits require 2 bytes(4bits/digit) then for total 9 digits it must be 36 bits and for 18 must be 72 bits.

could anyone give a detail about hw its been stored. i have checked with the below link too

http://ibmmainframes.com/size.html

sorry if the question is been asked before too. please help me in knowing the way the digits are stored.


There is not a direct correspondence between the number of decimal digits and the number of binary bits. 8 bits (1 byte) can hold some three decimal digit numbers, 16 bits (2 bytes) can hold some 5 decimal digit numbers.
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 copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts NDM syntax checking without actually ... GAPX1 All Other Mainframe Topics 0 Wed Jun 07, 2017 2:36 am


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