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
 

 

record count with the contol break

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
senthilarumugam

New User


Joined: 09 May 2006
Posts: 19
Location: chennai

PostPosted: Thu Jul 26, 2007 10:19 pm    Post subject: record count with the contol break
Reply with quote

Hi,
I have the following requirements.

Code:

dept    dept-cde    point
-----   ---------   ----------
AAA     001         0.1
AAA     001         0.2
AAA     001         0.3
BBB     002         0.4
BBB     002         0.5
CCC     005         0.6
CCC     005         0.7
CCC     005         0.7


I need the ouput like,

Code:

dept    dept-cde    total-point
-----   ---------   ----------
AAA     001         0.6
BBB     002         0.9
CCC     005         2.0
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: Thu Jul 26, 2007 11:11 pm    Post subject:
Reply with quote

Here's a DFSORT job that will do what I think you asked for:


Code:

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD *
AAA     001         0.1
AAA     001         0.2
AAA     001         0.3
BBB     002         0.4
BBB     002         0.5
CCC     005         0.6
CCC     005         0.7
CCC     005         0.7
//SORTOUT DD SYSOUT=*
//SYSIN    DD    *
  OPTION COPY
  OUTFIL REMOVECC,NODETAIL,
    SECTIONS=(1,11,
      TRAILER3=(1,20,21:TOT=(21,3,UFF,EDIT=(T.T))))


SORTOUT has:

Code:

AAA     001         0.6
BBB     002         0.9
CCC     005         2.0
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 update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm
No new posts sort with previous record anatol DFSORT/ICETOOL 9 Thu Oct 06, 2016 2:36 am
No new posts Get Record count in summary record fo... Atul Banke DFSORT/ICETOOL 21 Fri Sep 23, 2016 4:17 pm
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm


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