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 Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm


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