How to read multiple txt files into one sequential stage

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
4friends
Participant
Posts: 71
Joined: Tue May 01, 2007 12:51 pm
Location: Mumbai

How to read multiple txt files into one sequential stage

Post by 4friends »

Hi All,

How to read multiple txt files into one sequential stage :?: :?:

files such as
HIST_DATA_2005.txt
HIST_DATA_2006.txt
HIST_DATA_2007.txt

Same metadata

Is Datastage Server Edition capable of :?: :?:

Is there in Enterprise edition
thanks & regards
kk
Maveric
Participant
Posts: 388
Joined: Tue Mar 13, 2007 1:28 am

Post by Maveric »

Enterprise edition, yes. Server, not sure. Select Read Method to "File Pattern" and give the path and file name as path\HIST_DATA_200*.txt
Maveric
Participant
Posts: 388
Joined: Tue Mar 13, 2007 1:28 am

Post by Maveric »

If you read the help document, you will come to know that the sequential file stage in a server job will support multiple input and output links. And you can have one file for each of the output link. Use a link collector to get the data into one link.

This is use full only if the number of files remain constant.
4friends
Participant
Posts: 71
Joined: Tue May 01, 2007 12:51 pm
Location: Mumbai

Post by 4friends »

Thanks Maveric
thanks & regards
kk
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

In parallel job Sequential File stage you can have multiple File properties for reading specific files, for File Pattern for reading files whose names match a given regular expression.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply