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
 

 

How to sum amounts in Edited format using sort?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: How to sum amounts in Edited format using sort?
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 Moderator


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

PostPosted: Mon Dec 04, 2006 9:55 pm    Post subject:
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:

www.ibm.com/servers/storage/support/software/sort/mvs/pdug/

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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
No new posts Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm


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