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
 

 

How to Remove the Duplicate and Reformat the Output

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: How to Remove the Duplicate and Reformat the Output
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    Post subject:
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    Post subject:
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    Post subject:
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    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 Incorrect output when trying to add n... monica1 PL/I & Assembler 11 Fri Jan 13, 2017 5:02 pm
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am
No new posts output data in CSV Format janmejay COBOL Programming 8 Sat Oct 15, 2016 2:20 pm


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