Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 MXG - Processing Compressed DB2 SMF r... vasanthz All Other Mainframe Topics 2 Thu May 10, 2018 12:47 am
No new posts Reformatting and adding additional fi... Badbeef SYNCSORT 6 Thu Apr 05, 2018 4:45 pm
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Merge 2 records sancraig16 SYNCSORT 19 Tue Mar 27, 2018 8:17 pm
No new posts Copy set of records based on condition krish.deepu SYNCSORT 2 Thu Mar 08, 2018 11:39 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us