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 add sequence number for duplicate rec... SRUTHI DRAVIDAMANI COBOL Programming 10 Thu Feb 22, 2018 5:37 pm
No new posts how to add the amount for duplicate r... SRUTHI DRAVIDAMANI COBOL Programming 6 Wed Feb 21, 2018 7:21 pm
No new posts Merging records, but not all the time prino DFSORT/ICETOOL 17 Sat Feb 17, 2018 4:20 pm
No new posts Need all records with high key kalidasvs SYNCSORT 15 Fri Feb 09, 2018 10:38 pm
No new posts Why is SORT rearranging records that ... cschablow DFSORT/ICETOOL 4 Wed Jan 24, 2018 10:14 pm

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