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

How to Remove the Duplicate and Reformat the Output


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

New User


Joined: 24 Aug 2006
Posts: 9

PostPosted: Mon Jun 25, 2007 8:01 pm
Reply with quote

Hi,

Can anybody help me:

I have a file. I want to remove the Duplicate record and reformat the file using ICETOOL.

Sample:
RXXXX
DXXXX
DAAAA
RBBBB

The output should be
AAAA
since I will only include record with first byte = "D")

Can this be done in one step only?

Thank you in advance for your help.
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Mon Jun 25, 2007 8:36 pm
Reply with quote

joelacs1068

The DFSORT/ICETOOL JCL for your requirement is here
Code:
//*******************************************************               
//GETMATCH EXEC PGM=ICETOOL                                             
//TOOLMSG  DD SYSOUT=*                                                 
//DFSMSG   DD SYSOUT=*                                                 
//IN       DD *                                                         
RXXXX                                                                   
DXXXX                                                                   
DAAAA                                                                   
RBBBB                                                                   
/*                                                                     
//OUT      DD SYSOUT=*                                                 
//TOOLIN   DD *                                                         
SELECT FROM(IN) TO(OUT) ON(2,4,CH) NODUPS USING(CP01)         
/*                                                                     
//CP01CNTL DD *                                                         
   OUTFIL FNAMES=OUT,INCLUDE=(1,1,CH,EQ,C'D'),BUILD=(2,4)               
/*                                                                     
//*                                                                     
Back to top
View user's profile Send private message
joelacs1068

New User


Joined: 24 Aug 2006
Posts: 9

PostPosted: Tue Jun 26, 2007 7:49 am
Reply with quote

Hi krisprems,
The job works fine now with the JCL you gave me. Thank you very much and more power.
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Tue Jun 26, 2007 12:21 pm
Reply with quote

Hi joelacs1068
You are welcome!
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 TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Duplicate transid's declared using CEDA CICS 3
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
No new posts Remove leading zeroes SYNCSORT 4
Search our Forums:

Back to Top