MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Duplicates need to be written in output file

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
madhan1582
Beginner


Joined: 16 May 2007
Posts: 5
Topics: 4
Location: Newyork

PostPosted: Tue Apr 08, 2008 7:46 pm    Post subject: Duplicates need to be written in output file Reply with quote

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
View user's profile Send private message Yahoo Messenger
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Wed Apr 09, 2008 3:36 am    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Wed Apr 09, 2008 10:16 am    Post subject: Reply with quote

madhan1582,

Please search before posting. Check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=9&highlight=alldups
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group