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 

how to concatenate duplicate records

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
sree_sen
Beginner


Joined: 24 Jun 2005
Posts: 10
Topics: 3

PostPosted: Fri Jul 22, 2005 7:13 am    Post subject: how to concatenate duplicate records Reply with quote

Hi,

I am posting this as I dont have the quick solutions to this - The requirement is I have an I/p file where certain details are as follows -

123 Abcd

234 nijpoi

123 pqrs

123 mnop

234 jjoijojgsg


I want to concatenate the duplicate records here - my o/p file would be more like -

123 Abcdpqrsmnop

234 nijpoijjoijojgsg


Thanks in Advance
_________________
-Sree
Back to top
View user's profile Send private message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Fri Jul 22, 2005 8:12 am    Post subject: Reply with quote

Sree,
Do you have DFSORT/ICETOOL? Are the number of duplicates constant? If the answer is Yes for both these questions then, read about SPLICE operator in DFSORT/ICETOOL.

What would you want to do with non-duplicate records?
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Fri Jul 22, 2005 6:07 pm    Post subject: Reply with quote

If your input records really have a variable number of bytes you want to "join" from various records (e.g. 4 in each 123 record, 6 in the first 234 record and 10 in the second 234 record, then you can't do this with DFSORT's SPLICE. Is that what the input really looks like and is that what the output should really look like, or are there actually spaces in there that are not being shown? If that's not the way the data actually looks, then try using ubb code tags around the data to show it as it actually looks.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
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 -> Utilities 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