Folder to read Text 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
endyl13
Premium Member
Premium Member
Posts: 44
Joined: Tue Jun 25, 2002 12:47 am
Location: Qatar
Contact:

Folder to read Text File

Post by endyl13 »

Hi,
How can I use Folder Stage to read Text File data sources? I put some TXT file on a folder, all of them in the same format but come from different systems.
I've tried to use it and connect it to Seq File Stage, but it didn't work.
I looked at the XML Samples, seem like the Folder Stage only worked to read XML files, is that true?

Any help is really appreaciated...

Thanks in advance

Endy

Regards

ND
cwong
Charter Member
Charter Member
Posts: 26
Joined: Tue Apr 30, 2002 8:02 am
Location: Canada

Post by cwong »

Endy,

Folder Stage is meant to support multiple files to/from XML Reader and Writer.
For text file, if you have multiple text files to send into a sequential stage, you may use an OS command to combine them into one big file and then use the big file in the seq stage, i.e. cat /inDir/infiles* > /tmpDir/inBigfile.txt

Hope this help ...
Post Reply