IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How Many bytes will PIC S9(07)V99 COMP will take


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
arunust

New User


Joined: 23 Aug 2006
Posts: 4

PostPosted: Tue Sep 25, 2007 6:22 pm
Reply with quote

Hi
Please tell me How many bytes of storage PIC S9(07)V99 COMP will take.

Please advice

Arun
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Tue Sep 25, 2007 7:00 pm
Reply with quote

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
View user's profile Send private message
arunust

New User


Joined: 23 Aug 2006
Posts: 4

PostPosted: Wed Sep 26, 2007 4:56 pm
Reply with quote

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 icon_smile.gif
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Wed Sep 26, 2007 6:13 pm
Reply with quote

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
View user's profile Send private message
ramco_sita

New User


Joined: 25 Jun 2007
Posts: 40
Location: chennai

PostPosted: Thu Sep 27, 2007 10:40 am
Reply with quote

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
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Sep 27, 2007 10:46 am
Reply with quote

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
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Sep 27, 2007 10:48 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts Masking variable size field - min 10 ... DFSORT/ICETOOL 4
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts Interviewers are surprised with my an... Mainframe Interview Questions 6
No new posts Cobol COMP-2 fields getting scrambled... Java & MQSeries 6
Search our Forums:

Back to Top