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
 
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 Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 5 Fri Sep 22, 2017 7:08 am
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am

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