View previous topic :: View next topic |
Author |
Message |
madhan1582 Beginner
Joined: 16 May 2007 Posts: 5 Topics: 4 Location: Newyork
|
Posted: Tue Apr 08, 2008 7:46 pm Post subject: Duplicates need to be written in output file |
|
|
Hi,
I have a question about writting the duplicates to the output file.
i have a file with 5 records out of which 3 are duplicate. my output must contain the duplicate recors.
I have tried this using sort (XSUM), but it write only 2 records in output. i need all the 3 records( that has the same value) in the output
eg: Input file
A
B
C
A
A
Output file
A
A
A
Is it possiable by using Sort? _________________ I would like to share some of my known and doubtful things. |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Wed Apr 09, 2008 3:36 am Post subject: |
|
|
1) You cannot do it by JCL - Job Control Language
2) You can do it by a UTILITY e.g. SORT
3) If you search you will find that this question was asked not so long ago _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
|
|