Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Query regarding numeric data variable

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
sharad_shanu

New User


Joined: 03 Oct 2006
Posts: 40

PostPosted: Fri May 28, 2010 11:16 am    Post subject: Query regarding numeric data variable
Reply with quote

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
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Fri May 28, 2010 11:28 am    Post subject: Reply to: Query regarding numeric data variable
Reply with quote

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

http://speleotrove.com/decimal/#decNumber
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri May 28, 2010 4:25 pm    Post subject: Re: Query regarding numeric data variable
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Fri May 28, 2010 4:29 pm    Post subject: Reply to: Query regarding numeric data variable
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri May 28, 2010 4:31 pm    Post subject: Re: Query regarding numeric data variable
Reply with quote

Anuj Dhawan wrote:
Just out of curiosity, what this data would signify?

A contractors daily rate icon_lol.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Fri May 28, 2010 5:38 pm    Post subject: Reply to: Query regarding numeric data variable
Reply with quote

Nahh it's the HMPPM rate
waiting for somebody to ask what HMPPM means icon_biggrin.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7904
Location: Bellevue, IA

PostPosted: Fri May 28, 2010 5:41 pm    Post subject:
Reply with quote

okay, enrico, what does HMPPM mean? icon_smile.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Fri May 28, 2010 5:42 pm    Post subject: Reply to: Query regarding numeric data variable
Reply with quote

Horse Manure Produced Per Minute icon_biggrin.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Fri May 28, 2010 5:46 pm    Post subject: Reply to: Query regarding numeric data variable
Reply with quote

here is a pointer to an HM generator
http://ibmmainframes.com/viewtopic.php?t=35440&highlight=foggy
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri May 28, 2010 5:57 pm    Post subject: Re: Query regarding numeric data variable
Reply with quote

expat wrote:
Anuj Dhawan wrote:
Just out of curiocity, what this data would signify?

A contractors daily rate icon_lol.gif
Then file does not belong to Indian Contractors, for sure! icon_biggrin.gif
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Fri May 28, 2010 6:35 pm    Post subject: Re: Query regarding numeric data variable
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri May 28, 2010 7:52 pm    Post subject: Re: Query regarding numeric data variable
Reply with quote

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
View user's profile Send private message
icemanroh

New User


Joined: 23 Aug 2008
Posts: 25
Location: Mumbai

PostPosted: Tue Jun 01, 2010 11:25 am    Post subject: Re: Reply to: Query regarding numeric data variable
Reply with quote

enrico-sorichetti wrote:
Horse Manure Produced Per Minute icon_biggrin.gif


icon_lol.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm
No new posts ODPP(Optim Data privacy Provider) Iss... Rama kishore IBM Tools 1 Mon Nov 07, 2016 5:46 pm
No new posts Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us