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 SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Optimize sort inrec parse vishwakotin DFSORT/ICETOOL 6 Mon Jun 26, 2017 11:15 pm
No new posts Reduce CPU Times for Join Sort santoshn SYNCSORT 12 Sat Jun 10, 2017 1:40 pm
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am


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