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

Find count of employee by division code


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

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Thu Aug 09, 2007 11:50 pm
Reply with quote

Hi all
My query goes like this,
The i/p looks like
Code:

123456789 111
123456768 222
123465346 321
124346576 111
123243545 222
Where first field is employee number and second field is division code
I need to know the count of employees by division code. That is the O/p expected goes like this
Code:

111 2
222 2
321 1

The o/p contains the division and num of emploess under that division.
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Fri Aug 10, 2007 12:22 am
Reply with quote

i solved it my self, using sections.
Code:
 OUTFIL NODETAIL,                                                       
  SECTIONS=(11,3,                                                   
    TRAILER3=(11,3,X,COUNT=(EDIT=(IIT))))                           
/*                                                                     

Just had got stuck with syntax errors icon_exclaim.gif
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Fri Aug 10, 2007 1:35 am
Reply with quote

You don't want REMOVECC?
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 run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
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
Search our Forums:

Back to Top