Multiple Flat Files as Input

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Gurudutt
Participant
Posts: 3
Joined: Tue Aug 12, 2003 8:45 am

Multiple Flat Files as Input

Post by Gurudutt »

I have a situation where I Have to use two flat files as input and the output is also a flat file. Please let me know how we can do this in datastage. This is concat of UNIX(Append). The source should not be disturbed.

GD
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Go to the job properties and select ExecSH as a before-job subroutine providing an appopriate command as the Input Value. For example:
cat file1 file2 > file3
Then have DataStage process file3.

There are other ways, but this is the fastest and most efficient.


Ray Wurlod
Education and Consulting Services
ABN 57 092 448 518
Post Reply