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

How to sum amounts in Edited format using sort?


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

New User


Joined: 13 Mar 2006
Posts: 59
Location: UK

PostPosted: Mon Dec 04, 2006 10:03 am
Reply with quote

Hi All,

My requirement is to add all amounts based on some sort fields. I can very well do it using SUM fields but the problem is that the amounts are in Edited format (not ZD or BI or PD). For eg... 233.30-

How to add these amounts ?? Is here a way to convert characters to ZD or PD?
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 Dec 04, 2006 9:55 pm
Reply with quote

You can use DFSORT's SFF format to convert those types of values to ZD or PD. You can do that with an INREC statement and SUM the ZD or PD values. Alternatively, you can use SFF directly with the TOT parameter of OUTFIL TRAILERx.

For more information on DFSORT's SFF format, see:

Use [URL] BBCode for External Links

If you want more specific help on this, show an example of your input records and what you want for the output records, and give the starting position and length of the fields you want to convert.
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 Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
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 JCL sort card - get first day and las... JCL & VSAM 9
Search our Forums:

Back to Top