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

What is the maximum value that s9(6) Comp can store?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
deepu.surya
Warnings : 1

New User


Joined: 01 Apr 2008
Posts: 10
Location: hyderabad

PostPosted: Tue Mar 10, 2009 6:24 pm
Reply with quote

What is the maximum value that s9(6) Comp can store?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Mar 10, 2009 6:27 pm
Reply with quote

What's the compiler TRUNC option set to?
Back to top
View user's profile Send private message
deepu.surya
Warnings : 1

New User


Joined: 01 Apr 2008
Posts: 10
Location: hyderabad

PostPosted: Tue Mar 10, 2009 6:43 pm
Reply with quote

Sorry...no idea.

but s9(4) comp varialbe is taking values till +32767.
can you tell based on this??
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Mar 10, 2009 7:05 pm
Reply with quote

Based on what you say, TRUNC(BIN) is the option being used. In that case, PIC S9(06) COMP is a full word and can hold values in the range -2,147,483,648 to 2,147,483,647.
Back to top
View user's profile Send private message
deepu.surya
Warnings : 1

New User


Joined: 01 Apr 2008
Posts: 10
Location: hyderabad

PostPosted: Tue Mar 10, 2009 7:28 pm
Reply with quote

ok. thank you.
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 Store the data for fixed length COBOL Programming 1
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts SDSF like solution in EJES (store com... All Other Mainframe Topics 4
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts SORT ERROR PARAMETER VALUE EXCEEDS M... DFSORT/ICETOOL 12
Search our Forums:

Back to Top