IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to sum the columns which are X format


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Absinthia

New User


Joined: 10 Jan 2008
Posts: 36
Location: CHINA

PostPosted: Mon Feb 16, 2009 11:25 am
Reply with quote

Code:
+----6----+----7----+----8----+--
******************* Top of Data *
24~  ~                    23.65~
40~  ~                    15.49~
40~  ~                    15.49~
10~  ~                     0.00~
30~  ~                   -51.51~
00~  ~                    76.12~
01~  ~                    77.64~
05~  ~                   +360.00~
00~59~                    33.49~
03~  ~                     7.28~


I want to sum the columns which begins from 269 to 278.the sort key is from 20 to 24. How to write the sum card? Is there a method that can convert X to numeric format?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Mon Feb 16, 2009 9:48 pm
Reply with quote

Hello,

The data does not match your definition of the data.

Please correct and re-post (use Preview to make sure the post appears correctly to the forum).

To sum the values you've shown, use SFF (signed free form) rather than ZD, PD, etc..
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Mon Feb 16, 2009 10:13 pm
Reply with quote

Absinthia,

You can use the technique discussed in the "Sum a number with a decimal point" Smart DFSORT Trick at:

Use [URL] BBCode for External Links
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Remote Unload of CLOB Columns DB2 6
No new posts Increase the number of columns in the... IBM Tools 3
Search our Forums:

Back to Top