View previous topic :: View next topic
|
Author |
Message |
arunust
New User
Joined: 23 Aug 2006 Posts: 4
|
|
|
|
Hi
Please tell me How many bytes of storage PIC S9(07)V99 COMP will take.
Please advice
Arun |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Arun,
Its clearly mentioned in the manuals. Did you refer any before posting? That would have taken little time than posting the query and waiting for the answer.
Anyways, this link might help you -
ibmmainframes.com/size.html |
|
Back to top |
|
|
arunust
New User
Joined: 23 Aug 2006 Posts: 4
|
|
|
|
Hi murmohk1
Thank you very much for your help.I had searched in google but didnt get a good answer,thats why turned to here.Thanks again for ur support and help |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Arun,
Quote: |
I had searched in google but didnt get a good answer,thats why turned to here |
Good to know you had put some effort to know on your own.
A small suggestion, try searching in IBM BOOKMANAGER website for IBM mainframe things. Mostly, you will find answer(s) over there.
You will get better idea for comp(4) in the following link -
publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/IGY3PG31/1.3.4.3?DT=20060329003636
Quote: |
Thanks again for ur support and help |
You are welcome. We are always here to help you out. |
|
Back to top |
|
|
ramco_sita
New User
Joined: 25 Jun 2007 Posts: 40 Location: chennai
|
|
|
|
Comp (with no suffix) leaves the choice of the data type to the compiler writer. The intent of this data type is to make it the most efficient format on any given machine, which is usually some binary format. Because of this, comp varies greatly between platforms, more than most other types
PIC S9(5)V99 COMP-3. Byte size = (5 + 2 + 1) / 2 = 4bytes(internally it gets stored) |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
ramco_sita,
Quote: |
PIC S9(5)V99 COMP-3. Byte size = (5 + 2 + 1) / 2 = 4bytes(internally it gets stored) |
I believe the question is on COMP. From where did you get COMP-3? |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
ramco_sita,
Also
Quote: |
which is usually some binary format. |
How many binary formats are available in the IT world?
PS: Dont consider comp(4). |
|
Back to top |
|
|
|