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
 

 

Maximum Numeric digits in Easytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
swatheeswaran

New User


Joined: 04 Nov 2008
Posts: 7
Location: Chennai

PostPosted: Wed Dec 14, 2011 7:20 am    Post subject: Maximum Numeric digits in Easytrieve
Reply with quote

Hi,

I have a variable S9(24)V9(4) COMP-3 to be declared in Easytrieve.
Space occupied is 15 bytes.

Easytrieve declaration:
TEMP-AMT 1 15 P

Length is invalid,maximum digits allowed in easytrieve is 18.

By using ARITH(EXTEND), we can declare this S9(24)V9(4) COMP-3 in COBOL.

Do we have anything in easytrieve to declare S9(24)V9(4) COMP-3.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Dec 14, 2011 10:30 am    Post subject:
Reply with quote

Hello,

Not that i am aware of. . .

If you get nothing useful quickly, post a reply Wed afternoon your time or Thursday sometime. I should be where my latest Easytrieve documentation is then. . .
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7251

PostPosted: Wed Dec 14, 2011 11:27 am    Post subject: Reply to: Maximum Numeric digits in Easytrieve
Reply with quote

Why is this in the DB2 forum not in CA?

Not that I'm aware of. If there is an option it would be specified on the Easytrieve PARM statement, so you can check your documentation there.

I'd be fascinated to know what you have with 24 non-decimal digits and four decimal digits.

What do you want to do with the field in the Easytrieve program? If you are just shifting it on to an output file, you could use 15 A as your definition.
Back to top
View user's profile Send private message
swatheeswaran

New User


Joined: 04 Nov 2008
Posts: 7
Location: Chennai

PostPosted: Wed Dec 14, 2011 2:28 pm    Post subject: Maximum Numeric digits in Easytrieve
Reply with quote

Hi Bill,
Thanks for replying. I am not shifting it to o/p file, I would be doing few calculations on that amount field.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7251

PostPosted: Wed Dec 14, 2011 3:09 pm    Post subject: Reply to: Maximum Numeric digits in Easytrieve
Reply with quote

Makes things a bit trcky then.

If the digits beyond 18 are used, and it has to be in an Easytriieve, I'd say your best bet would be to call a Cobol module to do any manipulation you need with the field.

Otherwise you'd need to break it up and use math:


Code:
Value = A + B
Value * X = (A + B) * X = (A * X) + (B * X)


But you'd be making things complex taking apart and putting back together, problems displaying the value etc.

I'd go for the CALL to Cobol or not Easytrieve.
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 -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts Easytrieve - Report writing - Only 1 ... Abhi Nature CA Products 2 Wed Sep 14, 2016 11:40 am
No new posts Casting a Binary Number to Numeric in... Bob Steinkraus Java & MQSeries 6 Tue Aug 09, 2016 5:58 pm
This topic is locked: you cannot edit posts or make replies. Alphanumeric to Numeric move on UNIX mistah kurtz COBOL Programming 16 Wed Jul 27, 2016 8:47 pm
No new posts RACF Easytrieve Plus macro Susan Jackson CA Products 0 Fri Jun 03, 2016 8:25 pm


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