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 How to pick only YYMMDD from DATE1P (... atulbaviskar SYNCSORT 7 Wed Mar 22, 2017 11:39 am
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm


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