MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

max value stored in a comp field

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
sankar narayanan
Beginner


Joined: 16 Oct 2007
Posts: 29
Topics: 12

PostPosted: Fri Jun 06, 2008 4:33 am    Post subject: max value stored in a comp field Reply with quote

hi all,
can you please tell me what is a maximum value stored in the different comp (comp, comp-2 and comp-3) fields and can i store +20000 in
pic s9(4) field?

also please explain me how the values are stored in the comp type fields. are there any sort of calculations for these? if yes please explain me.

Thanks in advance.
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Fri Jun 06, 2008 5:48 am    Post subject: Reply with quote

Look up the manuals - that is what they are there for. To make it easier there are links at the top of this web page - #Quick Manuals. Look at both the COBOL manuals and do a search on USAGE. That will give lots of nice, relevant and correct reading.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Jun 06, 2008 10:22 am    Post subject: Reply with quote

sankar narayanan,

As Nic pointed out refer the manuals. Click on the Quick manuals link and the cobol manuals are at the top.

Choose the "Enterprise COBOL Language Reference" and read the section 5.3.16.1

While you are at it you might also want to read the compiler option TRUNC which dictates the storage

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/igy3pg10/2.4.52

Hope this helps...

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group