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

Add 25 digit long numbers


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

Active User


Joined: 24 May 2006
Posts: 133
Location: India

PostPosted: Wed Aug 20, 2008 3:41 pm
Reply with quote

Hi All,

One quick question!

How can we add 25 digit long numbers in COBOL. Looks like Numeric data has a limitation of 18 digits.

Thanks in advance!
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Aug 20, 2008 3:52 pm
Reply with quote

look at the cobol manuals and
search the forum for ARITH EXTENDED
Back to top
View user's profile Send private message
sudhakar84

New User


Joined: 20 Jun 2008
Posts: 25
Location: chennai

PostPosted: Wed Aug 20, 2008 4:29 pm
Reply with quote

Default compiler option for a cobol program will be ARITH(COMPAT).With this compiler option we can do calculation only up to a 18-digit Number.

Please compile the program with the compile parameters ARITH(EXTEND) so that we can do calculation up to a 31-digit Number.
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Ca7 long running jobs report All Other Mainframe Topics 1
No new posts Help, trying to use OVERLAY to get a ... DFSORT/ICETOOL 3
No new posts Cobol-db2 : SQL query is running for ... DB2 4
Search our Forums:

Back to Top