Reading multiple input files using external source stage
Posted: Wed May 31, 2006 9:52 pm
Hi,
I have to read N input files all with the same schema.Their complete path along with the filenames are stored in file A. Now i have to concatenate all these files to create one input file.
Right now I have a job which reads the file A from a external source stage using the unix command
"cat A | xargs zcat -f"
And then links the output of the stage to a sequential file.
My question is , is there a better approach to handle the above scenario?
Thanks
~Abhi
I have to read N input files all with the same schema.Their complete path along with the filenames are stored in file A. Now i have to concatenate all these files to create one input file.
Right now I have a job which reads the file A from a external source stage using the unix command
"cat A | xargs zcat -f"
And then links the output of the stage to a sequential file.
My question is , is there a better approach to handle the above scenario?
Thanks
~Abhi