IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to display the total count per key?


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
xpower

New User


Joined: 07 May 2006
Posts: 35

PostPosted: Sun May 09, 2010 3:17 pm
Reply with quote

Hi,
everyone.

I have a following recs

0010000101 10000
0010000101 20000

I hope to get the result below:
0010000101 30000 2(<-- 2: means there r 2 recs for 0010000101)

thank you so much indeed!! :)

Regards,
Shaw
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon May 10, 2010 6:45 am
Reply with quote

Hi,

here is an example which may assist
Code:
//STEP0001 EXEC PGM=SORT                                               
//SYSOUT   DD SYSOUT=*                                                 
//SORTIN   DD *                                                         
0010000101 10000                                                       
0010000101 20000                                                       
/*                                                                     
//SORTOUT  DD SYSOUT=*                                                 
//SYSIN    DD *                                                         
  SORT FIELDS=COPY                                                     
  OUTFIL REMOVECC,NODETAIL,                                             
    SECTIONS=(1,10,                                                     
       TRAILER3=(1,10,TOT=(12,5,ZD),COUNT=(M10,LENGTH=3)))             
/*                                                                     



Gerry
Back to top
View user's profile Send private message
xpower

New User


Joined: 07 May 2006
Posts: 35

PostPosted: Mon May 10, 2010 11:02 am
Reply with quote

hi,

gcicchet. Appreciate your kindess. It works well. :)
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts To get the count of rows for every 1 ... DB2 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts Insert header record with record coun... DFSORT/ICETOOL 14
Search our Forums:

Back to Top