View previous topic :: View next topic
|
Author |
Message |
sharad_shanu
New User
Joined: 03 Oct 2006 Posts: 40
|
|
|
|
Hi,
I am receiving an 40 digit numeric data item in input file in cobol. We know that cobol can handle only upto 18 bit in case of numeric data. Therefore there is a challenge for me to handle this.
Please suggest.
Regard, |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
it certainly will be...
even with the most modern cobol option ARITH(EXTEND) You will be able to manage at most 31 digits!
some of the powers of Your organization should review the requirements
or plan to acquire/write in house <something> for very large number processing
speleotrove.com/decimal/#decNumber |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
sharad_shanu wrote: |
I am receiving an 40 digit numeric data item in input file in cobol. |
Just out of curiosity, what this data would signify? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
Quote: |
just out of curiosity, what this data would signify? |
puzzling, but more puzzling is a similar thread where the TS need 14 decimal digits after the comma |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Anuj Dhawan wrote: |
Just out of curiosity, what this data would signify? |
A contractors daily rate |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
Nahh it's the HMPPM rate
waiting for somebody to ask what HMPPM means |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
okay, enrico, what does HMPPM mean? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
Horse Manure Produced Per Minute |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
expat wrote: |
Anuj Dhawan wrote: |
Just out of curiocity, what this data would signify? |
A contractors daily rate |
Then file does not belong to Indian Contractors, for sure! |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
sharad_shanu wrote: |
Hi,
I am receiving an 40 digit numeric data item in input file in cobol. We know that cobol can handle only upto 18 bit in case of numeric data. Therefore there is a challenge for me to handle this. |
OK, you receive a 40-Digit Numeric Data Item. Do you have to touch it arithmetically for any reason?
You can store it in a PIC X(40) field (DISPLAY-NUMERIC) or a PIC X(21) field (PACKED-DECIMAL).
It's only data....
Bill |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Bill O'Boyle wrote: |
Do you have to touch it arithmetically for any reason? |
Yep, that was the intention to ask about the significance of data - but no answer so far! |
|
Back to top |
|
|
icemanroh
New User
Joined: 23 Aug 2008 Posts: 25 Location: Mumbai
|
|
|
|
enrico-sorichetti wrote: |
Horse Manure Produced Per Minute |
|
|
Back to top |
|
|
|