CAT Command

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
vijaykatneni2
Participant
Posts: 16
Joined: Thu Jul 26, 2007 12:38 pm

CAT Command

Post by vijaykatneni2 »

Hi,


Can any one help me how to concatenate the text files in datastage without using CAT command.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Two jobs. One overwrites the file. The next appends to it.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vijaykatneni2
Participant
Posts: 16
Joined: Thu Jul 26, 2007 12:38 pm

Post by vijaykatneni2 »

is it possible to do within one job.



[quote="ray.wurlod"]Two jobs. One overwrites the file. The next appends to it.[/quote]
Minhajuddin
Participant
Posts: 467
Joined: Tue Mar 20, 2007 6:36 am
Location: Chennai
Contact:

Post by Minhajuddin »

You can use the funnel stage for this.
Minhajuddin

<a href="http://feeds.feedburner.com/~r/MyExperi ... ~6/2"><img src="http://feeds.feedburner.com/MyExperienc ... lrow.3.gif" alt="My experiences with this DLROW" border="0"></a>
vijaykatneni2
Participant
Posts: 16
Joined: Thu Jul 26, 2007 12:38 pm

Post by vijaykatneni2 »

Yes,we can but the problem is the files has different metadata.


[quote="Minhajuddin"]You can use the funnel stage for this.[/quote]
Raghavendra
Participant
Posts: 147
Joined: Sat Apr 30, 2005 1:23 am
Location: Bangalore,India

Post by Raghavendra »

You can still use two jobs, one overwrites the file and the other appends to it as ray said.File name should be same in both the jobs.
If you don't want to use it then you have to use funnel stage by adjusting the metadata of one file to synchronise both files metadata.
Otherwise you can concatenate all the columns of the file into single column for both files and can use a funnel stage.

Just curious to know why you don't want to use CAT command to concatenate the files.
Raghavendra
Dare to dream and care to achieve ...
Raghavendra
Participant
Posts: 147
Joined: Sat Apr 30, 2005 1:23 am
Location: Bangalore,India

Post by Raghavendra »

You have used a wrong forum to post your question. Please post the query in the correct forum going forward.
Raghavendra
Dare to dream and care to achieve ...
asorrell
Posts: 1707
Joined: Fri Apr 04, 2003 2:00 pm
Location: Colleyville, Texas

Post by asorrell »

Moved to PX Forum
Andy Sorrell
Certified DataStage Consultant
IBM Analytics Champion 2009 - 2020
Post Reply