Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to read multiple files at different directories using a
single Sequential File stage in DS Enterprise Edition

Answer Posted / venkata ramana

To read given number of files, one can use follow below

In the sequential file stage, Use
Read Method =File Pattern
File Pattern=`ls /* | head -<Number of files to be read>`

For example, I had 5 files, with similar pattern (as
date*.txt), in working folder say "/data/working/". If we
want to read three files out of these five files, one can
use following command:
`ls /data/working/date*.txt | head -3`

Just modified Venkat's Answer based on tested job.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

AGGREGATOR default datatype

1514


How to clean the datastage repository?

1176


What are system variables and sequencers in datastage

1174


What all are the different way to run a job?

1137


What are the components of ascential data stage?

1240


What are stage variables?

1250


How can we perform the 2nd time extraction of client database without accepting the data which is already loaded in first time extraction?

2485


How to find value from a column in a dataset?

2249


What are the stages in datastage?

1135


What is use Array size in datastage

1821


how many rows sorted in sort stage by default in server jobs

4047


How to convert RGB Value to Hexadecimal values in datastage?

4052


Can you explain tagbatch restructure operator?

1214


What are the steps required to kill the job in Datastage?

1262


Difference between ‘validated ok’ and ‘compiled’ in data stage?

1347