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 / venkat

To read given number of files, one can use follow below
steps:
1. In the sequential file stage, Use Read Method as
Specific File(s).
2. Now in the file text field, Put below command.
`ls /* | head -<Number of files to be read>`

This will read given number of files.

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`

Hope this helps.


venkat
09940692102

Is This Answer Correct ?    0 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we improve the performance in datastage?

1105


Have you used Unstructured data?

1321


What are the functionalities of link partitioner?

1022


Where do the datastage jobs get stored?

1218


how to abort the job its matain duplicates?

2574


What is a datastage job?

1013


What are the main features of datastage?

1284


table actions available in oracle connector?

1612


what are the errors,warnings in datastage

2701


Hi All , in PX Job I have passed 4 Parameters and when i run the same job in sequence i dont want to use those parameters , is this possible if yes then how

1552


Differentiate between validated and Compiled in the Datastage?

1282


What are the different type of jobs in datastage?

1043


What are the various kinds of the hash file?

1151


Differentiate between odbc and drs stage?

1050


What are the types of hashed files in data stage

1108