Help In merging the Files

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
e1994264
Premium Member
Premium Member
Posts: 28
Joined: Mon Jul 18, 2011 5:12 pm

Help In merging the Files

Post by e1994264 »

Hi,
I got 2 ouput files with different stuctures. I need to append in to one file . and sort it based on COL2 and COL1 Please let me know:

Example:
File 1:
P001,101, US
P001,102, MI

File2:
P002,101, XYZ,234354432,loc,12
P002, 102, XYZ,43543,loc,13

I think it should be possible by unix scripting. If how it is
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

It could be done in DataStage also.
Choose a job you love, and you will never have to work a day in your life. - Confucius
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Do you know what commands you might use in such a script, or are you relying upon DSXchange to fill a gap in your knowledge of operating system commands?

This problem can be solved with a single command pipeline - you don't even need a script!
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply