Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 7315

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: 7315

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 File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts Return a Non Numeric value from REXX Learncoholic CLIST & REXX 3 Fri Sep 01, 2017 8:33 pm
No new posts Select numeric portion from CHAR data... balaji81_k DB2 6 Sat Aug 19, 2017 1:51 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us