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
 

 

Syncsort to SUM records

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
krsenthil85

New User


Joined: 31 Aug 2007
Posts: 55
Location: bangalore

PostPosted: Fri Feb 26, 2010 5:52 pm    Post subject: Syncsort to SUM records
Reply with quote

I have to sumup for the following data

My input is

Code:
 024   CBS   000 000 005 
 024   CBS   001 000 000 
 024   CBS   000 000 001 
 024   WEB   000 000 004 
 024   WEB   000 000 002 
 024   WEB   003 000 000 



My output should be like below

Code:
 024   CBS   001 000 006
 024   WEB   003 000 006 


Last 3X3 bytes are used in summing the records.
Some one please help me to achieve this.
Back to top
View user's profile Send private message

GMBUKU

New User


Joined: 24 Feb 2010
Posts: 1
Location: Germany

PostPosted: Fri Feb 26, 2010 6:03 pm    Post subject: Reply to: Syncsort to SUM records
Reply with quote

Code:

  SORT FIELDS=(7,3,CH,A)                     
  SUM FIELDS=(13,3,21,3),FORMAT=ZD     
  OPTION ZDPRINT                             


best regards icon_razz.gif
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts Inserting records based on conditions vickey_dw DFSORT/ICETOOL 9 Wed Feb 22, 2017 1:33 pm
No new posts To Merge mutliple records into a sing... anandgbe DFSORT/ICETOOL 6 Wed Feb 22, 2017 8:49 am


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