Load multiple .csv files into a single .csv file

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
BIuser
Premium Member
Premium Member
Posts: 238
Joined: Thu Feb 02, 2006 4:03 am
Location: South Africa

Load multiple .csv files into a single .csv file

Post by BIuser »

Hi All

I have 16 .csv file which I have to laod from a Sequential file to another.

the format is as followa:-

SEQUENTIAL FILE(17 .csv files) ------>Transformer----------->Sequential file(1 big file)

Can anyone help
-------------------------
https://www.ssa.co.za
Shadab_Farooque
Participant
Posts: 21
Joined: Tue Apr 24, 2007 12:39 am

Re: Load multiple .csv files into a single .csv file

Post by Shadab_Farooque »

Are the Columns in the 17 csv files different or all have same columns.
Shadab Farooque
k1980pc
Participant
Posts: 9
Joined: Fri Jun 15, 2007 3:31 am

Re: Load multiple .csv files into a single .csv file

Post by k1980pc »

BIuser wrote:Hi All

I have 16 .csv file which I have to laod from a Sequential file to another.

the format is as followa:-

SEQUENTIAL FILE(17 .csv files) ------>Transformer----------->Sequential file(1 big file)

Can anyone help
In your source sequential file stage, use *.csv [ or sufficiently narrow it down]. Change Read Method to "file pattern". Now handle it as if you got just one csv :)
DS will read the files in parallel mode - Multiple readers at same time but single reader per file ( since you have used file pattern)

PS : I assumed all those files have same format.
Last edited by k1980pc on Mon Jul 23, 2007 6:59 am, edited 1 time in total.
RELAXEN UND WATSCHEN DER BLINKENLICHTEN
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Start by asking a more specific question. What problem are you having?

If the metadata is identical across the files, why not just concatenate the files together from the command line?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply