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
 
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 JES2 job size field matching Windows ... SRICOBSAS All Other Mainframe Topics 4 Tue Sep 05, 2017 5:49 pm
No new posts Question related to Data dictionary f... rexx77 SYNCSORT 3 Thu Aug 31, 2017 7:23 am
No new posts Extract Data till prev hour balaji81_k DB2 16 Fri Aug 25, 2017 9:25 pm
No new posts FTP data transfer from PC to Mainfram... AJAYREDDY All Other Mainframe Topics 8 Wed Aug 23, 2017 9:59 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm

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