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
 
How Many bytes will PIC S9(07)V99 COMP will take

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How Many bytes will PIC S9(07)V99 COMP will take
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: 1439
Location: Bangalore,India

PostPosted: Tue Sep 25, 2007 7:00 pm    Post subject:
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 -

http://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    Post subject: thanks
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: 1439
Location: Bangalore,India

PostPosted: Wed Sep 26, 2007 6:13 pm    Post subject:
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 -
http://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    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Thu Sep 27, 2007 10:46 am    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Thu Sep 27, 2007 10:48 am    Post subject:
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    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 Error in SQL-PLIST3 'Above value tru... rikdeb DB2 4 Wed Sep 06, 2017 1:34 pm
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
No new posts Need help to populate date in COMP-3 ... chetanambi DFSORT/ICETOOL 3 Tue Jun 21, 2016 12:25 pm
No new posts comparing comp-3 and unpacked numbers juares castro COBOL Programming 3 Mon May 30, 2016 6:46 pm

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