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
Reading multiple input files using external source stage
Moderators: chulett, rschirm, roy
Re: Reading multiple input files using external source stage
Hi
u can use fileset .
Thanks
Sanjay
u can use fileset .
Thanks
Sanjay
Abhijeet wrote: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
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: