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
 
Is it possible to do in a single step???

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

New User


Joined: 01 Jun 2011
Posts: 5
Location: Chennai

PostPosted: Tue Dec 20, 2011 3:59 pm    Post subject: Is it possible to do in a single step???
Reply with quote

Dear All,

I have a PS file which a have a list of customer's e-mail address. Now, the requirement is need to identify the statistics of E-mail Service provider

Ex: mail-address @ Service Provider

Sample file:-
=============
aaaaaaa@yahoo.co.in
bbbbbbbb@gmail.com
cccccc@hotmail.com
dddd@facebook.com
eeeeeeee@hotmail.com
ffff@yahoo.co.in

Expected Output:-
=============
yahoo.co.in 2
gmail.com 1
hotmail.com 2
facebook.com 1

Is it possible to do the above task in a single step?
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: Tue Dec 20, 2011 11:27 pm    Post subject:
Reply with quote

You can use a DFSORT job like the following to do what you asked for:

Code:

//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD *
aaaaaaa@yahoo.co.in
bbbbbbbb@gmail.com
cccccc@hotmail.com
dddd@facebook.com
eeeeeeee@hotmail.com
ffff@yahoo.co.in
/*
//SORTOUT DD SYSOUT=*
//SYSIN DD *
  INREC PARSE=(%01=(STARTAFT=C'@',FIXLEN=25)),BUILD=(%01)
  SORT FIELDS=(1,25,CH,A)
  OUTFIL REMOVECC,NODETAIL,
    BUILD=(80X),
    SECTIONS=(1,25,
      TRAILER3=(1,25,X,COUNT=(M10,LENGTH=8)))
/*


SORTOUT would have:

Code:

facebook.com                     1     
gmail.com                        1     
hotmail.com                      2     
yahoo.co.in                      2     
Back to top
View user's profile Send private message
dgokulakrishnan

New User


Joined: 01 Jun 2011
Posts: 5
Location: Chennai

PostPosted: Wed Dec 21, 2011 7:37 am    Post subject: Is it possible to do in a single step???
Reply with quote

Thank you Very Much Frank !!!!
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 Formatting multiple records to a sing... Vignesh Sid SYNCSORT 3 Tue Nov 07, 2017 12:22 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 6 Fri Sep 22, 2017 7:08 am
No new posts More than 1 Include criteria for sing... Roy Ware SYNCSORT 6 Wed Sep 13, 2017 11:45 pm
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm

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