| IBM MAINFRAME HELP & SUPPORT FORUMS Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
|
| View previous topic :: View next topic |
| Author |
Message |
Prajesh_v_p
Joined: 24 May 2006
Posts: 111
Location: India
|
| Posted: Wed Aug 20, 2008 3:41 pm Post subject: Add 25 digit long numbers |
|
|
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 |
|
enrico-sorichetti
Joined: 14 Mar 2007
Posts: 3168
Location: italy
|
| Posted: Wed Aug 20, 2008 3:52 pm Post subject: Reply to: Add 25 digit long numbers |
|
|
look at the cobol manuals and
search the forum for ARITH EXTENDED |
|
| Back to top |
|
sudhakar84
Joined: 20 Jun 2008
Posts: 21
Location: chennai
|
| Posted: Wed Aug 20, 2008 4:29 pm Post subject: Reply to: Add 25 digit long numbers |
|
|
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 |
|
| |
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
|